terminal-pilot 0.0.8 → 0.0.9
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/cli.js +18 -2
- package/dist/cli.js.map +3 -3
- package/dist/commands/close-session.js +18 -2
- package/dist/commands/close-session.js.map +2 -2
- package/dist/commands/create-session.js +18 -2
- package/dist/commands/create-session.js.map +2 -2
- package/dist/commands/fill.js +18 -2
- package/dist/commands/fill.js.map +2 -2
- package/dist/commands/get-session.js +18 -2
- package/dist/commands/get-session.js.map +2 -2
- package/dist/commands/index.js +18 -2
- package/dist/commands/index.js.map +2 -2
- package/dist/commands/list-sessions.js +18 -2
- package/dist/commands/list-sessions.js.map +2 -2
- package/dist/commands/press-key.js +18 -2
- package/dist/commands/press-key.js.map +2 -2
- package/dist/commands/read-history.js +18 -2
- package/dist/commands/read-history.js.map +2 -2
- package/dist/commands/read-screen.js +18 -2
- package/dist/commands/read-screen.js.map +2 -2
- package/dist/commands/resize.js +18 -2
- package/dist/commands/resize.js.map +2 -2
- package/dist/commands/runtime.js +18 -2
- package/dist/commands/runtime.js.map +2 -2
- package/dist/commands/screenshot.js +18 -2
- package/dist/commands/screenshot.js.map +2 -2
- package/dist/commands/send-signal.js +18 -2
- package/dist/commands/send-signal.js.map +2 -2
- package/dist/commands/type.js +18 -2
- package/dist/commands/type.js.map +2 -2
- package/dist/commands/wait-for-exit.js +18 -2
- package/dist/commands/wait-for-exit.js.map +2 -2
- package/dist/commands/wait-for.js +18 -2
- package/dist/commands/wait-for.js.map +2 -2
- package/dist/index.js +18 -2
- package/dist/index.js.map +2 -2
- package/dist/terminal-pilot.js +18 -2
- package/dist/terminal-pilot.js.map +2 -2
- package/dist/terminal-session.js +18 -2
- package/dist/terminal-session.js.map +2 -2
- package/dist/testing/cli-repl.js +18 -2
- package/dist/testing/cli-repl.js.map +3 -3
- package/dist/testing/qa-cli.js +18 -2
- package/dist/testing/qa-cli.js.map +3 -3
- package/package.json +1 -1
package/dist/testing/qa-cli.js
CHANGED
|
@@ -3557,9 +3557,25 @@ function ensureSpawnHelperExecutable() {
|
|
|
3557
3557
|
const helper = join(nodePtyDir, "..", "prebuilds", `${process.platform}-${process.arch}`, "spawn-helper");
|
|
3558
3558
|
try {
|
|
3559
3559
|
accessSync(helper, constants.X_OK);
|
|
3560
|
-
} catch {
|
|
3561
|
-
|
|
3560
|
+
} catch (error2) {
|
|
3561
|
+
if (isMissingFileError(error2)) {
|
|
3562
|
+
return;
|
|
3563
|
+
}
|
|
3564
|
+
try {
|
|
3565
|
+
chmodSync(helper, 493);
|
|
3566
|
+
} catch (chmodError) {
|
|
3567
|
+
if (isMissingFileError(chmodError)) {
|
|
3568
|
+
return;
|
|
3569
|
+
}
|
|
3570
|
+
throw chmodError;
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
function isMissingFileError(error2) {
|
|
3575
|
+
if (!(error2 instanceof Error)) {
|
|
3576
|
+
return false;
|
|
3562
3577
|
}
|
|
3578
|
+
return "code" in error2 && error2.code === "ENOENT";
|
|
3563
3579
|
}
|
|
3564
3580
|
function matchPattern(buffer, pattern) {
|
|
3565
3581
|
const clean = normalizeHistoryBuffer(stripAnsi(buffer));
|