@series-inc/stowkit-cli 0.6.41 → 0.6.42

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/init.js CHANGED
@@ -62,13 +62,16 @@ export async function initProject(projectDir, opts) {
62
62
  }
63
63
  // Prompt for engine setup unless explicitly set via flag
64
64
  let withEngine = opts?.withEngine ?? false;
65
+ let withPublish = opts?.withPublish ?? false;
65
66
  const noEngine = opts?.noEngine ?? false;
66
- if (!withEngine && !noEngine && process.stdin.isTTY) {
67
+ if (!withEngine && !noEngine && !withPublish && process.stdin.isTTY) {
67
68
  const choice = await promptMenu('What would you like to set up?', [
68
69
  'StowKit (asset pipeline only)',
69
70
  'StowKit + 3D Engine (includes @series-inc/rundot-3d-engine)',
71
+ 'StowKit + Publish (includes assets-package.json for publishing)',
70
72
  ]);
71
73
  withEngine = choice === 1;
74
+ withPublish = choice === 2;
72
75
  }
73
76
  // Create srcArtDir with .gitignore for cache files
74
77
  const srcArtDir = 'assets';
@@ -154,7 +157,7 @@ export async function initProject(projectDir, opts) {
154
157
  await installEngine(absDir);
155
158
  }
156
159
  // Create assets-package.json for publishing
157
- if (opts?.withPublish) {
160
+ if (withPublish) {
158
161
  const { initAssetsPackage } = await import('./assets-package.js');
159
162
  await initAssetsPackage(absDir, { name: path.basename(absDir) });
160
163
  console.log(` Publish config: assets-package.json`);
package/dist/server.js CHANGED
@@ -1757,7 +1757,8 @@ async function handleRequest(req, res, staticApps) {
1757
1757
  const parts = textureId.replace(/\\/g, '/').split('/');
1758
1758
  const stem = parts[parts.length - 1].replace(/\.[^.]+$/, '').replace(/^SpriteSheet/, '').replace(/^spritesheet/i, '');
1759
1759
  const folder = parts.length >= 2 ? parts[parts.length - 2] : '';
1760
- const safeName = [folder, stem].filter(Boolean).join('_').replace(/\s+/g, '_').toLowerCase();
1760
+ const safeFolder = folder.replace(/\./g, '');
1761
+ const safeName = [safeFolder, stem].filter(Boolean).join('_').replace(/\s+/g, '_').toLowerCase();
1761
1762
  const sheetName = `${safeName}_animation`;
1762
1763
  const targetFolder = parts.slice(0, -1).join('/');
1763
1764
  const baseName = `${sheetName}.stowspritesheet`;
@@ -1848,7 +1849,8 @@ async function handleRequest(req, res, staticApps) {
1848
1849
  const parts = textureId.replace(/\\/g, '/').split('/');
1849
1850
  const stem = parts[parts.length - 1].replace(/\.[^.]+$/, '').replace(/^SpriteSheet/, '').replace(/^spritesheet/i, '');
1850
1851
  const folder = parts.length >= 2 ? parts[parts.length - 2] : '';
1851
- const safeName = [folder, stem].filter(Boolean).join('_').replace(/\s+/g, '_').toLowerCase();
1852
+ const safeFolder = folder.replace(/\./g, '');
1853
+ const safeName = [safeFolder, stem].filter(Boolean).join('_').replace(/\s+/g, '_').toLowerCase();
1852
1854
  const sheetName = `${safeName}_animation`;
1853
1855
  const targetFolder = parts.slice(0, -1).join('/');
1854
1856
  const baseName = `${sheetName}.stowspritesheet`;
@@ -2755,7 +2757,8 @@ async function handleRequest(req, res, staticApps) {
2755
2757
  const parts = id.replace(/\\/g, '/').split('/');
2756
2758
  const stem = parts[parts.length - 1].replace(/\.[^.]+$/, '').replace(/^SpriteSheet/, '').replace(/^spritesheet/i, '');
2757
2759
  const folder = parts.length >= 2 ? parts[parts.length - 2] : '';
2758
- const safeName = [folder, stem].filter(Boolean).join('_').replace(/\s+/g, '_').toLowerCase();
2760
+ const safeFolder = folder.replace(/\./g, '');
2761
+ const safeName = [safeFolder, stem].filter(Boolean).join('_').replace(/\s+/g, '_').toLowerCase();
2759
2762
  const sheetName = `${safeName}_animation`;
2760
2763
  const targetFolder = parts.slice(0, -1).join('/');
2761
2764
  const baseName = `${sheetName}.stowspritesheet`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@series-inc/stowkit-cli",
3
- "version": "0.6.41",
3
+ "version": "0.6.42",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "stowkit": "./dist/cli.js"
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@google/genai": "^1.46.0",
22
22
  "@series-inc/stowkit-editor": "^0.1.8",
23
- "@series-inc/stowkit-packer-gui": "^0.1.30",
23
+ "@series-inc/stowkit-packer-gui": "^0.1.31",
24
24
  "@strangeape/ffmpeg-audio-wasm": "^0.1.0",
25
25
  "draco3d": "^1.5.7",
26
26
  "fbx-parser": "^2.1.3",