visual-ai-staging 0.0.5 → 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.
- package/cli.js +3 -3
- 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 =
|
|
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 =
|
|
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 =
|
|
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');
|