@writepanda/cli 1.92.0 → 1.98.0
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/bin/pandastudio.mjs +16 -1
- package/package.json +1 -1
package/bin/pandastudio.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
3
|
+
// Source of truth: electron/cli/pandastudio.mjs (edit that instead).
|
|
4
|
+
// This copy is overwritten by scripts/sync-cli-to-package.mjs on publish.
|
|
2
5
|
// pandastudio — local CLI for the PandaStudio automation surface.
|
|
3
6
|
//
|
|
4
7
|
// Design goals (per the HuggingFace CLI-vs-MCP analysis):
|
|
@@ -23,7 +26,19 @@ import os from "node:os";
|
|
|
23
26
|
import path from "node:path";
|
|
24
27
|
import process from "node:process";
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
// When our stdout is piped into a downstream command that exits early
|
|
30
|
+
// (e.g. `pandastudio ... | head`, or a failing `jq`), subsequent writes hit a
|
|
31
|
+
// closed pipe and Node throws an unhandled 'error' (write EPIPE), dumping a
|
|
32
|
+
// ~15-line stack trace that looks like a crash. A closed downstream is normal
|
|
33
|
+
// — exit silently and cleanly instead.
|
|
34
|
+
for (const stream of [process.stdout, process.stderr]) {
|
|
35
|
+
stream.on("error", (err) => {
|
|
36
|
+
if (err && err.code === "EPIPE") process.exit(0);
|
|
37
|
+
throw err;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const VERSION = "1.16.0";
|
|
27
42
|
|
|
28
43
|
function configDir() {
|
|
29
44
|
// PANDASTUDIO_CONFIG_DIR mirrors the override the main process
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@writepanda/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.98.0",
|
|
4
4
|
"description": "Drive PandaStudio (a desktop video editor for YouTube creators) from the command line. Talks to a localhost HTTP API the desktop app exposes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pandastudio",
|