visual-ai-staging 0.0.6 → 0.0.7

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/cli.js +3 -3
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -17,7 +17,7 @@ function openBrowser(targetUrl) {
17
17
  }
18
18
 
19
19
  function resolveStoragePath(originHeader, folderType) {
20
- const resolvedBase = path.resolve(__dirname);
20
+ const resolvedBase = process.cwd();
21
21
  let hostname = '';
22
22
  if (originHeader) {
23
23
  try {
@@ -70,7 +70,7 @@ Commands:
70
70
  }
71
71
 
72
72
  if (command === 'init') {
73
- const resolvedBase = path.resolve(__dirname);
73
+ const resolvedBase = process.cwd();
74
74
  const audioDir = path.join(resolvedBase, '.ai-staging', 'audio');
75
75
  const feedbackDir = path.join(resolvedBase, '.ai-staging', 'feedback');
76
76
  const extAudioDir = path.join(resolvedBase, '.ai-staging', 'external', 'audio');
@@ -135,7 +135,7 @@ if (command === 'init') {
135
135
 
136
136
  if (command === 'dev') {
137
137
  let activePort = 3000;
138
- const resolvedBase = path.resolve(__dirname);
138
+ const resolvedBase = process.cwd();
139
139
 
140
140
  // Auto-initialize directories silently on server startup if they do not exist
141
141
  const audioDir = path.join(resolvedBase, '.ai-staging', 'audio');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visual-ai-staging",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Visual AI Staging Companion — Bridge the gap between UI design staging and AI coding assistants.",
5
5
  "license": "MIT",
6
6
  "main": "app.js",