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/cli.js
CHANGED
|
@@ -3551,9 +3551,25 @@ function ensureSpawnHelperExecutable() {
|
|
|
3551
3551
|
const helper = join(nodePtyDir, "..", "prebuilds", `${process.platform}-${process.arch}`, "spawn-helper");
|
|
3552
3552
|
try {
|
|
3553
3553
|
accessSync(helper, constants.X_OK);
|
|
3554
|
-
} catch {
|
|
3555
|
-
|
|
3554
|
+
} catch (error2) {
|
|
3555
|
+
if (isMissingFileError(error2)) {
|
|
3556
|
+
return;
|
|
3557
|
+
}
|
|
3558
|
+
try {
|
|
3559
|
+
chmodSync(helper, 493);
|
|
3560
|
+
} catch (chmodError) {
|
|
3561
|
+
if (isMissingFileError(chmodError)) {
|
|
3562
|
+
return;
|
|
3563
|
+
}
|
|
3564
|
+
throw chmodError;
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
function isMissingFileError(error2) {
|
|
3569
|
+
if (!(error2 instanceof Error)) {
|
|
3570
|
+
return false;
|
|
3556
3571
|
}
|
|
3572
|
+
return "code" in error2 && error2.code === "ENOENT";
|
|
3557
3573
|
}
|
|
3558
3574
|
function matchPattern(buffer, pattern) {
|
|
3559
3575
|
const clean = normalizeHistoryBuffer(stripAnsi2(buffer));
|