@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,397 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The disclosure summary (design section 6): what a library says about its AI-made assets, read
|
|
3
|
+
* from the cards and the provenance each card names, for a developer filling in Steam's AI content
|
|
4
|
+
* survey or itch.io's AI tags. Only the fields it reports are read: no prompt, parameter or
|
|
5
|
+
* request ID reaches the summary. It is help for the developer, not a compliance claim.
|
|
6
|
+
*/
|
|
7
|
+
import { createHash } from "node:crypto";
|
|
8
|
+
import { readFileSync, existsSync } from "node:fs";
|
|
9
|
+
import { join, relative, resolve } from "node:path";
|
|
10
|
+
import { CORE_REGISTRY } from "./extensions/registry.js";
|
|
11
|
+
import { mediaOf } from "./media.js";
|
|
12
|
+
import { upstreamOf } from "./dataflows.js";
|
|
13
|
+
import { canCarryCredentials, readCredentials } from "./credentials.js";
|
|
14
|
+
import { markableMediaType } from "./handoff/mark-check.js";
|
|
15
|
+
import { readDigitalSourceType, readMarkedModels, parseDigitalSourceType } from "./metadata.js";
|
|
16
|
+
import { parseCard } from "./library/card.js";
|
|
17
|
+
import { libraryPath } from "./library/paths.js";
|
|
18
|
+
import { scanLibrary } from "./library/write.js";
|
|
19
|
+
import { adapterOf } from "./providers/adapter.js";
|
|
20
|
+
const compare = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
|
21
|
+
function list(map) {
|
|
22
|
+
return [...map]
|
|
23
|
+
.map(([name, assets]) => ({ name, assets }))
|
|
24
|
+
.sort((a, b) => b.assets - a.assets || compare(a.name, b.name));
|
|
25
|
+
}
|
|
26
|
+
function strings(value) {
|
|
27
|
+
return Array.isArray(value) ? value.filter((v) => typeof v === "string") : [];
|
|
28
|
+
}
|
|
29
|
+
const AI_TYPES = new Set(["trainedAlgorithmicMedia", "compositeWithTrainedAlgorithmicMedia"]);
|
|
30
|
+
/** The provenance record in a file: the file itself, or the object a manifest embeds it as. */
|
|
31
|
+
function findProvenance(value, depth) {
|
|
32
|
+
if (value === null || typeof value !== "object" || Array.isArray(value) || depth > 4)
|
|
33
|
+
return undefined;
|
|
34
|
+
const object = value;
|
|
35
|
+
if (Array.isArray(object["models"]) && typeof object["route"] === "string")
|
|
36
|
+
return object;
|
|
37
|
+
for (const child of Object.values(object)) {
|
|
38
|
+
const found = findProvenance(child, depth + 1);
|
|
39
|
+
if (found !== undefined)
|
|
40
|
+
return found;
|
|
41
|
+
}
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The date a record made before routes carried `providerTermsAsOf` wrote into its terms text as
|
|
46
|
+
* `(as of YYYY-MM-DD)`; read only when no call of the library records the date as a field.
|
|
47
|
+
*/
|
|
48
|
+
function legacyTermsAsOf(text) {
|
|
49
|
+
return /\(as of (\d{4}-\d{2}-\d{2})\)/.exec(text)?.[1];
|
|
50
|
+
}
|
|
51
|
+
/** The sound entry of an audio asset: what its provenance's route record says, and no more. */
|
|
52
|
+
function soundOf(asset, kind, provenance) {
|
|
53
|
+
const calls = (Array.isArray(provenance?.["calls"]) ? provenance["calls"] : []);
|
|
54
|
+
const models = new Set(strings(provenance?.["models"]));
|
|
55
|
+
const providers = new Set();
|
|
56
|
+
const plans = new Set();
|
|
57
|
+
let exclusive = true;
|
|
58
|
+
let optOut;
|
|
59
|
+
for (const call of calls) {
|
|
60
|
+
if (typeof call?.model === "string" && models.size === 0)
|
|
61
|
+
models.add(call.model);
|
|
62
|
+
const provider = typeof call?.route === "string" ? call.route.split(":")[0] : undefined;
|
|
63
|
+
if (provider)
|
|
64
|
+
providers.add(provider);
|
|
65
|
+
if (typeof call?.outputGrant?.plan === "string")
|
|
66
|
+
plans.add(call.outputGrant.plan);
|
|
67
|
+
if (call?.outputGrant?.exclusive === false)
|
|
68
|
+
exclusive = false;
|
|
69
|
+
const out = call?.trainingOptOut;
|
|
70
|
+
if (optOut === undefined &&
|
|
71
|
+
typeof out?.optedOut === "boolean" &&
|
|
72
|
+
typeof out.since === "string" &&
|
|
73
|
+
typeof out.source === "string")
|
|
74
|
+
optOut = { optedOut: out.optedOut, since: out.since, source: out.source };
|
|
75
|
+
}
|
|
76
|
+
const head = `Sound: ${asset} (${kind}): `;
|
|
77
|
+
if (calls.length === 0 || providers.size === 0)
|
|
78
|
+
return {
|
|
79
|
+
asset,
|
|
80
|
+
kind,
|
|
81
|
+
models: [],
|
|
82
|
+
providers: [],
|
|
83
|
+
plans: [],
|
|
84
|
+
line: `${head}route record unavailable`,
|
|
85
|
+
};
|
|
86
|
+
const line = `${head}${[...models].join(", ") || "unnamed model"} via ${[...providers].join(", ")}` +
|
|
87
|
+
(plans.size === 0 ? "" : `, ${[...plans].join(", ")} plan`) +
|
|
88
|
+
(exclusive ? "" : ", non-exclusive") +
|
|
89
|
+
(optOut === undefined
|
|
90
|
+
? ""
|
|
91
|
+
: `, training opt-out declared by the developer: ${optOut.optedOut ? "yes" : "no"} since ${optOut.since}`);
|
|
92
|
+
return {
|
|
93
|
+
asset,
|
|
94
|
+
kind,
|
|
95
|
+
models: [...models],
|
|
96
|
+
providers: [...providers],
|
|
97
|
+
plans: [...plans],
|
|
98
|
+
...(!exclusive && { exclusive: false }),
|
|
99
|
+
...(optOut !== undefined && { trainingOptOut: optOut }),
|
|
100
|
+
line,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/** Summarises the library under `root` from its cards and provenance. */
|
|
104
|
+
export async function disclose(root, options = {}) {
|
|
105
|
+
const kindMedia = options.kinds ?? CORE_REGISTRY;
|
|
106
|
+
const byKind = {};
|
|
107
|
+
const sources = new Map();
|
|
108
|
+
const models = new Map();
|
|
109
|
+
const providers = new Map();
|
|
110
|
+
const vendors = new Map();
|
|
111
|
+
const terms = new Map();
|
|
112
|
+
const termDates = new Map();
|
|
113
|
+
const withoutProvenance = [];
|
|
114
|
+
const sounds = [];
|
|
115
|
+
const signers = new Map();
|
|
116
|
+
let approvedAi = 0;
|
|
117
|
+
const { cards: allCards, unreadable } = scanLibrary(root);
|
|
118
|
+
const mediaName = (card) => relative(resolve(root), resolve(card.dir, card.resource ?? `${card.id}.md`))
|
|
119
|
+
.split("\\")
|
|
120
|
+
.join("/");
|
|
121
|
+
const selected = options.selected === undefined ? undefined : new Set(options.selected);
|
|
122
|
+
const unresolvedAssets = selected === undefined
|
|
123
|
+
? unreadable
|
|
124
|
+
.filter((record) => record.code === "card_invalid")
|
|
125
|
+
.map((record) => relative(resolve(root), record.file).split("\\").join("/"))
|
|
126
|
+
: [...selected].filter((name) => !allCards.some((card) => mediaName(card) === name));
|
|
127
|
+
const affectedAssets = [];
|
|
128
|
+
const cards = allCards
|
|
129
|
+
.filter((card) => selected === undefined || selected.has(mediaName(card)))
|
|
130
|
+
.sort((a, b) => compare(join(a.dir, a.id), join(b.dir, b.id)));
|
|
131
|
+
const bump = (map, key) => {
|
|
132
|
+
map.set(key, (map.get(key) ?? 0) + 1);
|
|
133
|
+
};
|
|
134
|
+
for (const found of cards) {
|
|
135
|
+
const path = join(found.dir, `${found.id}.md`);
|
|
136
|
+
let kind = "unknown";
|
|
137
|
+
let provenance;
|
|
138
|
+
let state;
|
|
139
|
+
let declaredOrigin;
|
|
140
|
+
try {
|
|
141
|
+
const data = parseCard(readFileSync(path, "utf8"), path).data;
|
|
142
|
+
if (typeof data["kind"] === "string")
|
|
143
|
+
kind = data["kind"];
|
|
144
|
+
state = data["state"];
|
|
145
|
+
declaredOrigin = data["origin"];
|
|
146
|
+
const entry = (Array.isArray(data["sources"]) ? data["sources"] : []).find((s) => s?.id === "provenance");
|
|
147
|
+
if (typeof entry?.resource === "string") {
|
|
148
|
+
// The source is the provenance file, or the manifest when the profile embeds provenance.
|
|
149
|
+
const doc = JSON.parse(readFileSync(libraryPath(root, found.dir, entry.resource, path), "utf8"));
|
|
150
|
+
provenance = findProvenance(doc, 0);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
provenance = undefined;
|
|
155
|
+
}
|
|
156
|
+
// Without a provenance file (a profile that embeds it in its manifest) the media's own mark
|
|
157
|
+
// says the source type and the models.
|
|
158
|
+
let marked;
|
|
159
|
+
// Without a provenance file, the media's own C2PA manifest says which certificate signed.
|
|
160
|
+
let credentials;
|
|
161
|
+
if (provenance === undefined) {
|
|
162
|
+
withoutProvenance.push(path);
|
|
163
|
+
const type = found.resource === undefined ? undefined : markableMediaType(found.resource);
|
|
164
|
+
if (found.resource !== undefined && type !== undefined) {
|
|
165
|
+
try {
|
|
166
|
+
const bytes = new Uint8Array(readFileSync(join(found.dir, found.resource)));
|
|
167
|
+
marked = {
|
|
168
|
+
...(readDigitalSourceType(bytes, type) !== undefined && {
|
|
169
|
+
source: readDigitalSourceType(bytes, type),
|
|
170
|
+
}),
|
|
171
|
+
models: (readMarkedModels(bytes, type) ?? "").split("; ").filter(Boolean),
|
|
172
|
+
};
|
|
173
|
+
const read = canCarryCredentials(type) ? await readCredentials(bytes, type) : undefined;
|
|
174
|
+
if (read?.certificateSha256 !== undefined)
|
|
175
|
+
credentials = {
|
|
176
|
+
certificateSha256: read.certificateSha256,
|
|
177
|
+
subject: read.signer.subject ?? "",
|
|
178
|
+
development: read.development === true,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
catch {
|
|
182
|
+
marked = undefined;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const declared = provenance?.["digitalSourceType"] ?? marked?.source;
|
|
187
|
+
const source = typeof declared === "string" && declared !== "undeclared"
|
|
188
|
+
? (declared.split("/").pop() ?? "unknown")
|
|
189
|
+
: "unknown";
|
|
190
|
+
const name = mediaName(found);
|
|
191
|
+
if (AI_TYPES.has(source))
|
|
192
|
+
affectedAssets.push(name);
|
|
193
|
+
let mediaMatches = false;
|
|
194
|
+
if (found.resource && found.sha256) {
|
|
195
|
+
try {
|
|
196
|
+
mediaMatches =
|
|
197
|
+
createHash("sha256")
|
|
198
|
+
.update(readFileSync(join(found.dir, found.resource)))
|
|
199
|
+
.digest("hex") === found.sha256;
|
|
200
|
+
}
|
|
201
|
+
catch {
|
|
202
|
+
/* Unavailable bytes remain unresolved. */
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
const originKind = declaredOrigin && typeof declaredOrigin === "object"
|
|
206
|
+
? declaredOrigin["kind"]
|
|
207
|
+
: undefined;
|
|
208
|
+
if (source === "unknown" ||
|
|
209
|
+
typeof declared !== "string" ||
|
|
210
|
+
parseDigitalSourceType(declared) === undefined ||
|
|
211
|
+
originKind === "unknown" ||
|
|
212
|
+
!found.resource ||
|
|
213
|
+
!existsSync(join(found.dir, found.resource)) ||
|
|
214
|
+
!mediaMatches)
|
|
215
|
+
unresolvedAssets.push(name);
|
|
216
|
+
if (mediaOf(kind, kindMedia) === "audio")
|
|
217
|
+
sounds.push(soundOf(name, kind, provenance));
|
|
218
|
+
const row = (byKind[kind] ??= {});
|
|
219
|
+
row[source] = (row[source] ?? 0) + 1;
|
|
220
|
+
bump(sources, source);
|
|
221
|
+
if (AI_TYPES.has(source) && state === "approved")
|
|
222
|
+
approvedAi += 1;
|
|
223
|
+
for (const model of new Set(provenance ? strings(provenance["models"]) : (marked?.models ?? [])))
|
|
224
|
+
bump(models, model);
|
|
225
|
+
const calls = Array.isArray(provenance?.["calls"]) ? provenance["calls"] : [];
|
|
226
|
+
const named = new Set();
|
|
227
|
+
const vendorNames = new Set();
|
|
228
|
+
for (const call of calls) {
|
|
229
|
+
const fields = call;
|
|
230
|
+
const route = typeof fields?.route === "string" ? fields.route.split(":") : [];
|
|
231
|
+
const providerId = route[0];
|
|
232
|
+
if (route.length < 3 || !providerId)
|
|
233
|
+
continue;
|
|
234
|
+
named.add(providerId);
|
|
235
|
+
const entry = options.settings?.providers[providerId] ?? {};
|
|
236
|
+
const adapter = options.settings === undefined ? undefined : adapterOf(providerId, entry);
|
|
237
|
+
const model = route.slice(2).join(":");
|
|
238
|
+
const vendor = adapter === undefined ? null : upstreamOf(adapter.id, model);
|
|
239
|
+
if (vendor !== null)
|
|
240
|
+
vendorNames.add(vendor);
|
|
241
|
+
}
|
|
242
|
+
if (named.size === 0 &&
|
|
243
|
+
strings(provenance?.["models"]).length > 0 &&
|
|
244
|
+
typeof provenance?.["route"] === "string")
|
|
245
|
+
named.add(provenance["route"]);
|
|
246
|
+
for (const vendor of vendorNames)
|
|
247
|
+
bump(vendors, vendor);
|
|
248
|
+
for (const provider of named)
|
|
249
|
+
bump(providers, provider);
|
|
250
|
+
for (const t of new Set(strings(provenance?.["providerTerms"])))
|
|
251
|
+
bump(terms, t);
|
|
252
|
+
for (const call of calls) {
|
|
253
|
+
const fields = call;
|
|
254
|
+
if (typeof fields?.providerTerms === "string" && typeof fields.providerTermsAsOf === "string")
|
|
255
|
+
termDates.set(fields.providerTerms, fields.providerTermsAsOf);
|
|
256
|
+
}
|
|
257
|
+
const signer = (provenance?.["contentCredentials"] ?? credentials);
|
|
258
|
+
if (signer && typeof signer === "object" && typeof signer["certificateSha256"] === "string") {
|
|
259
|
+
const hash = signer["certificateSha256"];
|
|
260
|
+
const entry = signers.get(hash) ?? {
|
|
261
|
+
subject: typeof signer["subject"] === "string" ? signer["subject"] : "",
|
|
262
|
+
certificateSha256: hash,
|
|
263
|
+
development: signer["development"] === true,
|
|
264
|
+
assets: 0,
|
|
265
|
+
};
|
|
266
|
+
entry.assets += 1;
|
|
267
|
+
signers.set(hash, entry);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const signerList = [...signers.values()].sort((a, b) => b.assets - a.assets || compare(a.certificateSha256, b.certificateSha256));
|
|
271
|
+
const signed = signerList.reduce((n, x) => n + x.assets, 0);
|
|
272
|
+
const development = signerList.filter((x) => x.development).reduce((n, x) => n + x.assets, 0);
|
|
273
|
+
const contentCredentials = {
|
|
274
|
+
signed,
|
|
275
|
+
development,
|
|
276
|
+
signers: signerList,
|
|
277
|
+
...(development > 0 && {
|
|
278
|
+
note: `${development} ${development === 1 ? "asset was" : "assets were"} signed with Assetgrove's local development certificate, ` +
|
|
279
|
+
"which no C2PA trust list holds. A certificate from a C2PA-recognised authority, set in developer settings " +
|
|
280
|
+
"`contentCredentials`, replaces it before release.",
|
|
281
|
+
}),
|
|
282
|
+
};
|
|
283
|
+
const termList = [...terms]
|
|
284
|
+
.map(([text, assets]) => {
|
|
285
|
+
const asOf = termDates.get(text) ?? legacyTermsAsOf(text);
|
|
286
|
+
return { terms: text, ...(asOf !== undefined && { asOf }), assets };
|
|
287
|
+
})
|
|
288
|
+
.sort((a, b) => compare(a.terms, b.terms));
|
|
289
|
+
sounds.sort((a, b) => compare(a.asset, b.asset));
|
|
290
|
+
const soundLines = sounds.map((sound) => `\n${sound.line}`).join("");
|
|
291
|
+
const generated = cards.length;
|
|
292
|
+
const aiAssets = [...sources].filter(([s]) => AI_TYPES.has(s)).reduce((n, [, c]) => n + c, 0);
|
|
293
|
+
const modelNames = list(models).map((m) => m.name);
|
|
294
|
+
const kinds = Object.keys(byKind).sort();
|
|
295
|
+
const made = modelNames.length > 0 ? ` with ${modelNames.join(", ")}` : "";
|
|
296
|
+
const approvedText = approvedAi === 0
|
|
297
|
+
? "none of them is recorded as approved by the developer yet"
|
|
298
|
+
: `${approvedAi} of them recorded as approved by the developer`;
|
|
299
|
+
const steam = aiAssets === 0
|
|
300
|
+
? `Pre-generated AI content: none recorded in ${generated} library assets.`
|
|
301
|
+
: `Pre-generated AI content: ${aiAssets} of ${generated} assets (${kinds.join(", ")}) were made${made}, ` +
|
|
302
|
+
`${approvedText}. Live-generated AI content: [developer to fill in].`;
|
|
303
|
+
const steamText = steam + soundLines;
|
|
304
|
+
const itchTags = aiAssets === 0 ? [] : ["ai-generated-assets"];
|
|
305
|
+
const itchText = aiAssets === 0
|
|
306
|
+
? "No AI-generated assets recorded."
|
|
307
|
+
: `AI-generated assets: ${aiAssets} of ${generated} (${kinds.join(", ")})${made}.`;
|
|
308
|
+
const itchFull = itchText + soundLines;
|
|
309
|
+
return {
|
|
310
|
+
assets: generated,
|
|
311
|
+
byKind,
|
|
312
|
+
bySourceType: list(sources),
|
|
313
|
+
models: list(models),
|
|
314
|
+
providers: list(providers),
|
|
315
|
+
vendors: list(vendors),
|
|
316
|
+
terms: termList,
|
|
317
|
+
contentCredentials,
|
|
318
|
+
withoutProvenance,
|
|
319
|
+
sounds,
|
|
320
|
+
godot: {
|
|
321
|
+
policy: "https://docs.godotengine.org/en/stable/community/asset_store/faq.html",
|
|
322
|
+
checkedOn: "2026-11-19",
|
|
323
|
+
status: unresolvedAssets.length || affectedAssets.length ? "unresolved" : "resolved",
|
|
324
|
+
affectedAssets,
|
|
325
|
+
unresolvedAssets: [...new Set([...unresolvedAssets, ...affectedAssets])].sort(compare),
|
|
326
|
+
what: affectedAssets.length ? affectedAssets.join(", ") : "No generated media recorded.",
|
|
327
|
+
how: affectedAssets.length
|
|
328
|
+
? `Generated or edited with AI${made}. Developer must describe the creation process.`
|
|
329
|
+
: "No AI creation process recorded.",
|
|
330
|
+
},
|
|
331
|
+
playdate: {
|
|
332
|
+
policy: "https://help.play.date/catalog-developer/ai-disclosure/",
|
|
333
|
+
checkedOn: "2026-11-19",
|
|
334
|
+
status: unresolvedAssets.length ? "unresolved" : "resolved",
|
|
335
|
+
affectedAssets,
|
|
336
|
+
unresolvedAssets: [...new Set(unresolvedAssets)].sort(compare),
|
|
337
|
+
what: affectedAssets.length
|
|
338
|
+
? "Selected AI media triggers the April 2026 new-title Catalog exclusion."
|
|
339
|
+
: "No selected AI media trigger recorded.",
|
|
340
|
+
how: "New-title policy only; code assistance and grandfathered titles require developer review. This is media evidence, not title eligibility.",
|
|
341
|
+
},
|
|
342
|
+
steam: steamText,
|
|
343
|
+
itch: { tags: itchTags, text: itchFull },
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
/** The summary as Markdown, for `--out`. */
|
|
347
|
+
export function disclosureMarkdown(d) {
|
|
348
|
+
const rows = (items) => items.length ? items.map((i) => `- ${i.name}: ${i.assets}`) : ["- none"];
|
|
349
|
+
return ([
|
|
350
|
+
"# AI disclosure summary",
|
|
351
|
+
"",
|
|
352
|
+
`Assets read: ${d.assets}`,
|
|
353
|
+
"",
|
|
354
|
+
"## Assets by kind and source type",
|
|
355
|
+
...Object.entries(d.byKind).flatMap(([kind, row]) => Object.entries(row).map(([source, n]) => `- ${kind} / ${source}: ${n}`)),
|
|
356
|
+
"",
|
|
357
|
+
"## Models",
|
|
358
|
+
...rows(d.models),
|
|
359
|
+
"",
|
|
360
|
+
"## Providers",
|
|
361
|
+
...rows(d.providers),
|
|
362
|
+
"",
|
|
363
|
+
"## Model vendors behind gateways",
|
|
364
|
+
...rows(d.vendors),
|
|
365
|
+
"",
|
|
366
|
+
"## Provider terms",
|
|
367
|
+
...(d.terms.length
|
|
368
|
+
? d.terms.map((t) => `- ${t.terms}${t.asOf ? ` [${t.asOf}]` : ""}: ${t.assets}`)
|
|
369
|
+
: ["- none"]),
|
|
370
|
+
"",
|
|
371
|
+
"## Content credentials",
|
|
372
|
+
`Signed assets: ${d.contentCredentials.signed}`,
|
|
373
|
+
...d.contentCredentials.signers.map((x) => `- ${x.subject} (${x.development ? "development, " : ""}sha256 ${x.certificateSha256}): ${x.assets}`),
|
|
374
|
+
...(d.contentCredentials.note ? [d.contentCredentials.note] : []),
|
|
375
|
+
"",
|
|
376
|
+
"## Godot Asset Store AI usage disclosure",
|
|
377
|
+
`Status: ${d.godot.status}`,
|
|
378
|
+
`What: ${d.godot.what}`,
|
|
379
|
+
`How: ${d.godot.how}`,
|
|
380
|
+
`Unresolved assets: ${d.godot.unresolvedAssets.join(", ") || "none"}`,
|
|
381
|
+
"",
|
|
382
|
+
"## Playdate Catalog (April 2026 new-title policy)",
|
|
383
|
+
`Status: ${d.playdate.status}`,
|
|
384
|
+
d.playdate.what,
|
|
385
|
+
d.playdate.how,
|
|
386
|
+
`Affected assets: ${d.playdate.affectedAssets.join(", ") || "none"}`,
|
|
387
|
+
`Unresolved assets: ${d.playdate.unresolvedAssets.join(", ") || "none"}`,
|
|
388
|
+
"",
|
|
389
|
+
"## Steam AI content survey",
|
|
390
|
+
d.steam,
|
|
391
|
+
"",
|
|
392
|
+
"## itch.io AI tags",
|
|
393
|
+
`Tags: ${d.itch.tags.join(", ") || "none"}`,
|
|
394
|
+
d.itch.text,
|
|
395
|
+
"",
|
|
396
|
+
].join("\n") + "\n");
|
|
397
|
+
}
|
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { SettingsError } from "./errors.ts";
|
|
2
|
+
import type { Settings } from "./settings.ts";
|
|
3
|
+
export type Env = Record<string, string | undefined>;
|
|
4
|
+
export { SettingsError };
|
|
5
|
+
/** The key variable each adapter reads by default; settings may name more with `keyEnv`. */
|
|
6
|
+
export declare const DEFAULT_KEY_ENV: readonly ["AI_GATEWAY_API_KEY", "ANTHROPIC_API_KEY", "OPENAI_API_KEY", "TRIPO_API_KEY"];
|
|
7
|
+
/** The one spend variable read: the work item when `--work-item` names none. */
|
|
8
|
+
export declare const WORK_ITEM_ENV = "ASSETGROVE_WORK_ITEM";
|
|
9
|
+
/** The value of the key variable `name` as set, untrimmed; undefined when unset. */
|
|
10
|
+
export declare function keyValue(name: string, env?: Env): string | undefined;
|
|
11
|
+
/** `$ASSETGROVE_WORK_ITEM` as set, untrimmed; undefined when unset. */
|
|
12
|
+
export declare function workItemEnv(env?: Env): string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Sets `CBOR_NATIVE_ACCELERATION_DISABLED` to `true` unless it is set, so cbor-x (which
|
|
15
|
+
* `@auth0/cose` uses) never loads the optional `cbor-extract` native addon (src/pure-cbor.ts).
|
|
16
|
+
*/
|
|
17
|
+
export declare function disableNativeCbor(env?: Env): void;
|
|
18
|
+
/** Whether `$GIT_DIR` is set to a non-empty value. */
|
|
19
|
+
export declare function gitDirSet(env?: Env): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The Windows search path: `PATH` and `PATHEXT` as set, each found case-insensitively since the
|
|
22
|
+
* Windows environment is; undefined when unset.
|
|
23
|
+
*/
|
|
24
|
+
export declare function windowsSearchPath(env?: Env): {
|
|
25
|
+
path: string | undefined;
|
|
26
|
+
pathext: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
/** Variables that redirect or unwrap the TLS carrying a key; refused whatever is configured. */
|
|
29
|
+
export declare const TLS_PROXY_VARIABLES: readonly ["NODE_EXTRA_CA_CERTS", "NODE_USE_SYSTEM_CA", "NODE_TLS_REJECT_UNAUTHORIZED", "NODE_USE_ENV_PROXY", "HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY"];
|
|
30
|
+
/** The AWS variables Lance's object store reads; refused when the search store is s3://. */
|
|
31
|
+
export declare const AWS_STORE_VARIABLES: readonly ["AWS_ENDPOINT_URL", "AWS_ENDPOINT_URL_S3", "AWS_REGION", "AWS_DEFAULT_REGION", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "AWS_PROFILE", "AWS_CONFIG_FILE", "AWS_SHARED_CREDENTIALS_FILE", "AWS_ALLOW_HTTP"];
|
|
32
|
+
/** The Anthropic SDK's endpoint variable; refused when an anthropic adapter is configured. */
|
|
33
|
+
export declare const ANTHROPIC_BASE_URL_VARIABLE = "ANTHROPIC_BASE_URL";
|
|
34
|
+
/** The OpenAI SDK's endpoint variable; refused when an openai adapter is configured. */
|
|
35
|
+
export declare const OPENAI_BASE_URL_VARIABLE = "OPENAI_BASE_URL";
|
|
36
|
+
/**
|
|
37
|
+
* Every variable that can redirect or unwrap the TLS carrying a key, or redirect search index data
|
|
38
|
+
* (design section 7.2); each is refused in either case unless allowed, and the conditional ones
|
|
39
|
+
* only when the configuration uses what reads them.
|
|
40
|
+
*/
|
|
41
|
+
export declare const REFUSED_VARIABLES: readonly ["NODE_EXTRA_CA_CERTS", "NODE_USE_SYSTEM_CA", "NODE_TLS_REJECT_UNAUTHORIZED", "NODE_USE_ENV_PROXY", "HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "ANTHROPIC_BASE_URL", "OPENAI_BASE_URL", "AWS_ENDPOINT_URL", "AWS_ENDPOINT_URL_S3", "AWS_REGION", "AWS_DEFAULT_REGION", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "AWS_PROFILE", "AWS_CONFIG_FILE", "AWS_SHARED_CREDENTIALS_FILE", "AWS_ALLOW_HTTP"];
|
|
42
|
+
/** What the configuration uses, so the variables only those read are refused only then. */
|
|
43
|
+
export interface EnvUses {
|
|
44
|
+
s3Store: boolean;
|
|
45
|
+
/** The adapter name of each configured provider. */
|
|
46
|
+
adapters: readonly string[];
|
|
47
|
+
}
|
|
48
|
+
/** The uses of `settings`: an s3:// search store, and each provider's adapter (`adapter`, else its id). */
|
|
49
|
+
export declare function envUses(settings: Pick<Settings, "providers" | "search">): EnvUses;
|
|
50
|
+
/**
|
|
51
|
+
* The set variables `checkEnvironment` would refuse, by the name they are set under. Without
|
|
52
|
+
* `uses`, every variable is refused.
|
|
53
|
+
*/
|
|
54
|
+
export declare function refusedVariables(allow?: readonly string[], env?: Env, uses?: EnvUses): string[];
|
|
55
|
+
/**
|
|
56
|
+
* Throws `settings_invalid` when a refused variable is set and `environment.allow` does not list
|
|
57
|
+
* it. Run at server start and before every command that sends a key.
|
|
58
|
+
*/
|
|
59
|
+
export declare function checkEnvironment(allow?: readonly string[], env?: Env, uses?: EnvUses): void;
|
|
60
|
+
/**
|
|
61
|
+
* The environment without the variables `names`, matched case-insensitively (the Windows
|
|
62
|
+
* environment is case-insensitive): what a command a developer wrote is started with, so it never
|
|
63
|
+
* holds a key.
|
|
64
|
+
*/
|
|
65
|
+
export declare function withoutVariables(names: Iterable<string>, env?: Env): Env;
|
|
66
|
+
/** The environment with Git told to take no optional lock, so a read such as `ls-files` writes nothing in `.git`. */
|
|
67
|
+
export declare function gitReadOnlyEnv(env?: Env): Env;
|
|
68
|
+
/** `$ASSETGROVE_CONFIG` when set (empty counts as unset). */
|
|
69
|
+
export declare function configOverride(env?: Env): string | undefined;
|
|
70
|
+
/** The environment with `$ASSETGROVE_CONFIG` set to `path`, to load a settings file in trial. */
|
|
71
|
+
export declare function withConfigOverride(path: string, env?: Env): Env;
|
|
72
|
+
/** `$XDG_CONFIG_HOME` or `~/.config`; `%APPDATA%` on Windows. */
|
|
73
|
+
export declare function configHome(env?: Env, platform?: string): string;
|
|
74
|
+
/** `$XDG_STATE_HOME` or `~/.local/state`; `%LOCALAPPDATA%` on Windows. */
|
|
75
|
+
export declare function stateHome(env?: Env, platform?: string): string;
|
|
76
|
+
/** The user's home directory: `$HOME`, else `%USERPROFILE%`, else the system's answer. */
|
|
77
|
+
export declare function homeDir(env?: Env): string;
|
|
78
|
+
/**
|
|
79
|
+
* Points `$ASSETGROVE_CONFIG` at `settingsPath` and unsets `$ASSETGROVE_WORK_ITEM` and every
|
|
80
|
+
* refused variable (in either spelling), so a command run in this process reads only that settings
|
|
81
|
+
* file; returns a function that puts back what each held. The test kit's temporary project
|
|
82
|
+
* (src/testing/project.ts) holds the environment so while it is open.
|
|
83
|
+
*/
|
|
84
|
+
export declare function isolateForSettings(settingsPath: string, env?: Env): () => void;
|
|
85
|
+
/**
|
|
86
|
+
* Replaces the variables of `env` (the process environment) with `next`'s, in place, or keeps them
|
|
87
|
+
* when `next` is absent; returns a function that puts back what `env` held before. The test kit's
|
|
88
|
+
* `cli()` (src/testing/cli.ts) runs one command line in process so.
|
|
89
|
+
*/
|
|
90
|
+
export declare function replaceEnv(next: Env | undefined, env?: Env): () => void;
|