browser-extension-manager 1.1.11 → 1.1.12
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/gulp/tasks/translate.js +26 -3
- package/firebase-debug.log +28 -0
- package/package.json +1 -1
|
@@ -150,11 +150,29 @@ ${JSON.stringify(messages, null, 2)}
|
|
|
150
150
|
|
|
151
151
|
Output the translated JSON:`;
|
|
152
152
|
|
|
153
|
+
// Write prompt to temp file to avoid shell escaping issues
|
|
154
|
+
const tempDir = path.join(process.cwd(), '.temp');
|
|
155
|
+
const tempFile = path.join(tempDir, `translate-${targetLang}.txt`);
|
|
156
|
+
|
|
153
157
|
try {
|
|
158
|
+
// Ensure temp dir exists and write prompt
|
|
159
|
+
jetpack.dir(tempDir);
|
|
160
|
+
jetpack.write(tempFile, prompt);
|
|
161
|
+
|
|
162
|
+
// Build command - pipe from file
|
|
163
|
+
const command = `cat "${tempFile}" | claude -p -`;
|
|
164
|
+
|
|
165
|
+
// Log start
|
|
166
|
+
logger.log(`[${targetLang}] Calling Claude CLI...`);
|
|
167
|
+
|
|
154
168
|
// Run Claude CLI
|
|
155
|
-
const result = await execute(
|
|
156
|
-
|
|
157
|
-
|
|
169
|
+
const result = await execute(command);
|
|
170
|
+
|
|
171
|
+
// Log response received
|
|
172
|
+
logger.log(`[${targetLang}] Claude CLI responded (${result.length} chars)`);
|
|
173
|
+
|
|
174
|
+
// Clean up temp file
|
|
175
|
+
jetpack.remove(tempFile);
|
|
158
176
|
|
|
159
177
|
// Parse result - extract JSON from response
|
|
160
178
|
const jsonMatch = result.match(/\{[\s\S]*\}/);
|
|
@@ -162,8 +180,13 @@ Output the translated JSON:`;
|
|
|
162
180
|
throw new Error('No JSON found in Claude response');
|
|
163
181
|
}
|
|
164
182
|
|
|
183
|
+
// Log success
|
|
184
|
+
logger.log(`[${targetLang}] Parsed JSON successfully`);
|
|
185
|
+
|
|
165
186
|
return JSON.parse(jsonMatch[0]);
|
|
166
187
|
} catch (e) {
|
|
188
|
+
// Clean up temp file on error
|
|
189
|
+
jetpack.remove(tempFile);
|
|
167
190
|
throw new Error(`Claude CLI failed: ${e.message}`);
|
|
168
191
|
}
|
|
169
192
|
}
|
package/firebase-debug.log
CHANGED
|
@@ -796,3 +796,31 @@
|
|
|
796
796
|
[debug] [2025-11-25T10:40:43.620Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
797
797
|
[debug] [2025-11-25T10:40:43.621Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
798
798
|
[debug] [2025-11-25T10:40:43.621Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
799
|
+
[debug] [2025-11-26T00:17:51.793Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
800
|
+
[debug] [2025-11-26T00:17:51.796Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
801
|
+
[debug] [2025-11-26T00:17:51.796Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
802
|
+
[debug] [2025-11-26T00:17:51.796Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
803
|
+
[debug] [2025-11-26T00:17:51.819Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
804
|
+
[debug] [2025-11-26T00:17:51.819Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
805
|
+
[debug] [2025-11-26T00:17:51.908Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
806
|
+
[debug] [2025-11-26T00:17:51.908Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
807
|
+
[debug] [2025-11-26T00:17:51.909Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
808
|
+
[debug] [2025-11-26T00:17:51.910Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
809
|
+
[debug] [2025-11-26T00:17:51.911Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
810
|
+
[debug] [2025-11-26T00:17:51.911Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
811
|
+
[debug] [2025-11-26T00:17:51.912Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
812
|
+
[debug] [2025-11-26T00:17:51.912Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
813
|
+
[debug] [2025-11-26T00:17:52.839Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
814
|
+
[debug] [2025-11-26T00:17:52.842Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
815
|
+
[debug] [2025-11-26T00:17:52.842Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
816
|
+
[debug] [2025-11-26T00:17:52.842Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
817
|
+
[debug] [2025-11-26T00:17:52.850Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
818
|
+
[debug] [2025-11-26T00:17:52.851Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
819
|
+
[debug] [2025-11-26T00:17:52.895Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
820
|
+
[debug] [2025-11-26T00:17:52.896Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
821
|
+
[debug] [2025-11-26T00:17:52.897Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
822
|
+
[debug] [2025-11-26T00:17:52.897Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
823
|
+
[debug] [2025-11-26T00:17:52.900Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
824
|
+
[debug] [2025-11-26T00:17:52.900Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
825
|
+
[debug] [2025-11-26T00:17:52.900Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
826
|
+
[debug] [2025-11-26T00:17:52.900Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|