@series-inc/stowkit-cli 0.1.17 → 0.1.18

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.
Files changed (2) hide show
  1. package/dist/server.js +10 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -523,8 +523,14 @@ async function processOneAsset(id) {
523
523
  const asset = assets.find(a => a.id === id);
524
524
  if (!asset)
525
525
  return;
526
- if (asset.type === AssetType.MaterialSchema)
526
+ if (asset.type === AssetType.MaterialSchema) {
527
+ // Materials are metadata-only — no encoding needed. Ensure they're always ready.
528
+ if (asset.status !== 'ready') {
529
+ asset.status = 'ready';
530
+ broadcast({ type: 'asset-update', id, updates: { status: 'ready' } });
531
+ }
527
532
  return;
533
+ }
528
534
  // GLB children: if source data isn't in BlobStore, re-extract from parent GLB
529
535
  // and process just this child (not the entire container)
530
536
  if (asset.parentId && !BlobStore.getSource(id)) {
@@ -741,9 +747,12 @@ async function handleRequest(req, res, staticApps) {
741
747
  [...currentIds].some(id => !diskIds.has(id)) ||
742
748
  [...diskIds].some(id => !currentIds.has(id));
743
749
  // Check for modified files (size or mtime changed)
750
+ // Skip MaterialSchema — .stowmat files are metadata-only and written by the server itself
744
751
  const modifiedIds = [];
745
752
  if (!changed) {
746
753
  for (const asset of currentAssets) {
754
+ if (asset.type === AssetType.MaterialSchema)
755
+ continue;
747
756
  const diskFile = diskFiles.get(asset.id);
748
757
  if (diskFile && asset.sourceSize > 0 && diskFile.size !== asset.sourceSize) {
749
758
  modifiedIds.push(asset.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@series-inc/stowkit-cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "stowkit": "./dist/cli.js"