@aura3d/cli 4.2.0 → 4.3.1
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/dist/cli-help.d.ts.map +1 -1
- package/dist/cli-help.js +4 -2
- package/dist/cli-help.js.map +1 -1
- package/dist/cli.js +85 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/assets/index.js +2 -2
- package/dist/commands/assets/index.js.map +1 -1
- package/dist/commands/meshyLedger.d.ts +125 -14
- package/dist/commands/meshyLedger.d.ts.map +1 -1
- package/dist/commands/meshyLedger.js +262 -35
- package/dist/commands/meshyLedger.js.map +1 -1
- package/dist/commands/prd13/run.js +19 -16
- package/dist/commands/prd13/run.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/skin/analysis.d.ts +137 -0
- package/dist/skin/analysis.d.ts.map +1 -0
- package/dist/skin/analysis.js +382 -0
- package/dist/skin/analysis.js.map +1 -0
- package/dist/skin/command.d.ts +75 -0
- package/dist/skin/command.d.ts.map +1 -0
- package/dist/skin/command.js +208 -0
- package/dist/skin/command.js.map +1 -0
- package/dist/skin/glbEdit.d.ts +14 -0
- package/dist/skin/glbEdit.d.ts.map +1 -0
- package/dist/skin/glbEdit.js +152 -0
- package/dist/skin/glbEdit.js.map +1 -0
- package/dist/skin/gltf.d.ts +159 -0
- package/dist/skin/gltf.d.ts.map +1 -0
- package/dist/skin/gltf.js +379 -0
- package/dist/skin/gltf.js.map +1 -0
- package/dist/skin/rebuildLimbs.d.ts +31 -0
- package/dist/skin/rebuildLimbs.d.ts.map +1 -0
- package/dist/skin/rebuildLimbs.js +326 -0
- package/dist/skin/rebuildLimbs.js.map +1 -0
- package/dist/skin/refitSkeleton.d.ts +23 -0
- package/dist/skin/refitSkeleton.d.ts.map +1 -0
- package/dist/skin/refitSkeleton.js +288 -0
- package/dist/skin/refitSkeleton.js.map +1 -0
- package/dist/skin/repair.d.ts +45 -0
- package/dist/skin/repair.d.ts.map +1 -0
- package/dist/skin/repair.js +192 -0
- package/dist/skin/repair.js.map +1 -0
- package/package.json +5 -5
- package/skills/aura3d-art-direction/SKILL.md +1 -1
- package/skills/aura3d-assets/SKILL.md +3 -2
- package/skills/aura3d-browser-game/SKILL.md +1 -0
- package/skills/aura3d-character-animation/SKILL.md +3 -1
- package/skills/aura3d-materials-environments/references/custom-shader-chunks.md +8 -2
- package/skills/llms.txt +2 -2
- package/skills/meshy-cli/SKILL.md +11 -10
- package/skills/meshy-cli/references/asset-tooling.md +16 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { readSkinAllowlist, skinReleaseFailures } from "./skin/command.js";
|
|
2
3
|
import { execFileSync } from "node:child_process";
|
|
3
4
|
import { createHash } from "node:crypto";
|
|
4
5
|
import { createRequire } from "node:module";
|
|
@@ -16,6 +17,12 @@ import { shouldScanSource, validateAssetSource } from "./asset-source-validation
|
|
|
16
17
|
import { listAssets, readAssetManifest, writeAssetManifest, writeTypedAssets } from "./asset-manifest.js";
|
|
17
18
|
export { animationCliAssetProfiles, getAnimationAssetProfileDefinition } from "./animation-asset-profiles.js";
|
|
18
19
|
export { validateAnimationAssets, parseAnimationClipMap, DEFAULT_ANIMATION_ACTIONS } from "./animation-asset-validator.js";
|
|
20
|
+
export { analyzeSkin, DEFAULT_SKIN_THRESHOLDS, findHumanoidLegs, SKIN_BIND_MISMATCH, SKIN_FLAP, SKIN_JOINT_RANGE, SKIN_STRETCH, SKIN_WEIGHT_DISTANT, SKIN_WEIGHT_SUM } from "./skin/analysis.js";
|
|
21
|
+
export { repairSkin } from "./skin/repair.js";
|
|
22
|
+
export { rebuildLimbs, RebuildLimbsUnsupported } from "./skin/rebuildLimbs.js";
|
|
23
|
+
export { refitSkeleton, RefitUnsupported } from "./skin/refitSkeleton.js";
|
|
24
|
+
export { checkProjectSkins, checkAssetSkin, readSkinAllowlist, SKIN_ALLOW_FILE } from "./skin/command.js";
|
|
25
|
+
export { parseGlb, readGlbFile, writeGlbFile } from "./skin/gltf.js";
|
|
19
26
|
export { formatScreeningReport, screenAssetCandidates } from "./asset-screening-pipeline.js";
|
|
20
27
|
export { createRetainedRenderProbe, createScreeningEffects, hashStagedFile, inspectGlbGeometry } from "./asset-screening-effects.js";
|
|
21
28
|
export { admissionRequirementForIntent, licensesForPolicy, licenseSatisfiesPolicy, searchQueriesForIntent, validateAssetIntent, MIN_INTENT_HERO_AZIMUTHS } from "./asset-intent.js";
|
|
@@ -739,6 +746,7 @@ export function validateAssets(options = {}) {
|
|
|
739
746
|
failures.push(`Missing asset provenance evidence file: ${options.provenanceFile}`);
|
|
740
747
|
}
|
|
741
748
|
const warnings = [];
|
|
749
|
+
let skinAllow;
|
|
742
750
|
warnings.push(...createDuplicateHashWarnings(manifest, externalProvenance));
|
|
743
751
|
for (const asset of manifest.assets) {
|
|
744
752
|
const outputPath = resolve(projectDir, asset.outputPath);
|
|
@@ -778,6 +786,11 @@ export function validateAssets(options = {}) {
|
|
|
778
786
|
if (missingAudio.length)
|
|
779
787
|
failures.push(`${asset.id}: release audio missing C-25 provenance fields: ${missingAudio.join(", ")}.`);
|
|
780
788
|
}
|
|
789
|
+
if (release) {
|
|
790
|
+
// Rigged characters: stretched triangles, flaps, bad weights, impossible joint ranges (known defects live in aura.skin-allow.json)
|
|
791
|
+
skinAllow ??= readSkinAllowlist(projectDir);
|
|
792
|
+
failures.push(...skinReleaseFailures(projectDir, asset, skinAllow).failures);
|
|
793
|
+
}
|
|
781
794
|
warnings.push(...createDerivedMetadataDriftWarnings(outputPath, asset));
|
|
782
795
|
if (release)
|
|
783
796
|
warnings.push(...createReleaseStructuredQualityWarnings(projectDir, asset));
|