@series-inc/stowkit-cli 0.1.22 → 0.1.23

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.
@@ -209,7 +209,7 @@ export function generateDefaultStowmeta(relativePath, type) {
209
209
  };
210
210
  switch (resolvedType) {
211
211
  case AssetType.Texture2D:
212
- return { ...base, type: 'texture', quality: 'fastest', resize: 'full', generateMipmaps: false };
212
+ return { ...base, type: 'texture', quality: 'fastest', resize: 'quarter', generateMipmaps: false };
213
213
  case AssetType.Audio:
214
214
  return { ...base, type: 'audio', aacQuality: 'medium', sampleRate: 'auto' };
215
215
  case AssetType.StaticMesh:
@@ -235,7 +235,7 @@ export function generateDefaultGlbChild(name, childType) {
235
235
  switch (childType) {
236
236
  case 'texture':
237
237
  child.quality = 'fastest';
238
- child.resize = 'full';
238
+ child.resize = 'quarter';
239
239
  child.generateMipmaps = false;
240
240
  break;
241
241
  case 'audio':
package/dist/server.js CHANGED
@@ -89,37 +89,17 @@ function queueProcessing(opts = {}) {
89
89
  }
90
90
  }
91
91
  }
92
- // Build the processing queue:
93
- // - GLB children promote their parent container
94
- // - Containers go first (they process their own children internally)
95
- // - Deduplicate
96
- const containerIds = new Set();
97
- const directIds = [];
92
+ // Build the processing queue — process children directly (their source data
93
+ // is already in BlobStore from the initial GLB extraction). Only promote to
94
+ // parent container when the container itself is a target (re-export, preserveHierarchy change).
95
+ const queue = [];
98
96
  const seen = new Set();
99
97
  for (const a of targets) {
100
- if (a.parentId) {
101
- // GLB child — process via parent container
102
- if (!containerIds.has(a.parentId)) {
103
- containerIds.add(a.parentId);
104
- const container = assets.find(x => x.id === a.parentId);
105
- if (container)
106
- container.status = 'pending';
107
- }
108
- }
109
- else if (!seen.has(a.id)) {
98
+ if (!seen.has(a.id)) {
110
99
  seen.add(a.id);
111
- directIds.push(a.id);
112
- }
113
- }
114
- // Containers first, then other assets (containers already in directIds stay in place)
115
- const queue = [];
116
- for (const cid of containerIds) {
117
- if (!seen.has(cid)) {
118
- queue.push(cid);
119
- seen.add(cid);
100
+ queue.push(a.id);
120
101
  }
121
102
  }
122
- queue.push(...directIds);
123
103
  if (queue.length === 0)
124
104
  return;
125
105
  console.log(`[server] Processing ${queue.length} asset(s)${force ? ' (force)' : ''}...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@series-inc/stowkit-cli",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "stowkit": "./dist/cli.js"
package/skill.md CHANGED
@@ -87,13 +87,13 @@ Every source asset gets a `.stowmeta` sidecar file generated by `stowkit build`
87
87
  "tags": [],
88
88
  "pack": "default",
89
89
  "quality": "normal",
90
- "resize": "full",
90
+ "resize": "quarter",
91
91
  "generateMipmaps": false
92
92
  }
93
93
  ```
94
94
 
95
95
  **Quality values:** fastest, fast, normal, high, best
96
- **Resize values:** full, half, quarter, eighth
96
+ **Resize values:** full, half, quarter (default), eighth
97
97
 
98
98
  **Audio example:**
99
99
  ```json
@@ -169,7 +169,7 @@ When a `.glb` or `.gltf` file is added, it gets a `glbContainer` stowmeta. On th
169
169
  "childType": "texture",
170
170
  "stringId": "hero_diffuse",
171
171
  "quality": "fastest",
172
- "resize": "full",
172
+ "resize": "quarter",
173
173
  "generateMipmaps": false
174
174
  },
175
175
  {