terminal-pilot 0.0.20 → 0.0.22
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 +1011 -452
- package/dist/cli.js.map +4 -4
- package/dist/commands/close-session.js +6 -4
- package/dist/commands/close-session.js.map +3 -3
- package/dist/commands/create-session.js +6 -4
- package/dist/commands/create-session.js.map +3 -3
- package/dist/commands/fill.js +6 -4
- package/dist/commands/fill.js.map +3 -3
- package/dist/commands/get-session.js +6 -4
- package/dist/commands/get-session.js.map +3 -3
- package/dist/commands/index.js +299 -159
- package/dist/commands/index.js.map +4 -4
- package/dist/commands/install.js +251 -113
- package/dist/commands/install.js.map +4 -4
- package/dist/commands/installer.js +190 -62
- package/dist/commands/installer.js.map +4 -4
- package/dist/commands/list-sessions.js +6 -4
- package/dist/commands/list-sessions.js.map +3 -3
- package/dist/commands/press-key.js +6 -4
- package/dist/commands/press-key.js.map +3 -3
- package/dist/commands/read-history.js +6 -4
- package/dist/commands/read-history.js.map +3 -3
- package/dist/commands/read-screen.js +6 -4
- package/dist/commands/read-screen.js.map +3 -3
- package/dist/commands/resize.js +6 -4
- package/dist/commands/resize.js.map +3 -3
- package/dist/commands/runtime.js +6 -4
- package/dist/commands/runtime.js.map +3 -3
- package/dist/commands/screenshot.js +17 -8
- package/dist/commands/screenshot.js.map +3 -3
- package/dist/commands/send-signal.js +6 -4
- package/dist/commands/send-signal.js.map +3 -3
- package/dist/commands/type.js +6 -4
- package/dist/commands/type.js.map +3 -3
- package/dist/commands/uninstall.js +226 -98
- package/dist/commands/uninstall.js.map +4 -4
- package/dist/commands/wait-for-exit.js +6 -4
- package/dist/commands/wait-for-exit.js.map +3 -3
- package/dist/commands/wait-for.js +6 -4
- package/dist/commands/wait-for.js.map +3 -3
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +8 -0
- package/dist/errors.js.map +7 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +3 -3
- package/dist/terminal-pilot.js +6 -4
- package/dist/terminal-pilot.js.map +3 -3
- package/dist/terminal-session.js +6 -4
- package/dist/terminal-session.js.map +3 -3
- package/dist/testing/cli-repl.js +1011 -452
- package/dist/testing/cli-repl.js.map +4 -4
- package/dist/testing/qa-cli.js +1011 -452
- package/dist/testing/qa-cli.js.map +4 -4
- package/node_modules/@poe-code/agent-skill-config/dist/apply.js +4 -1
- package/node_modules/@poe-code/agent-skill-config/dist/bridge-active-skills.js +1 -1
- package/node_modules/@poe-code/agent-skill-config/dist/git-exclude.js +17 -9
- package/node_modules/@poe-code/agent-skill-config/dist/templates.js +4 -1
- package/package.json +2 -1
package/dist/commands/fill.js
CHANGED
|
@@ -494,6 +494,11 @@ function consumeTerminatedString(input, index, allowBellTerminator) {
|
|
|
494
494
|
return input.length;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
+
// src/errors.ts
|
|
498
|
+
function hasOwnErrorCode(error, code) {
|
|
499
|
+
return error instanceof Error && Object.prototype.hasOwnProperty.call(error, "code") && error.code === code;
|
|
500
|
+
}
|
|
501
|
+
|
|
497
502
|
// src/terminal-buffer.ts
|
|
498
503
|
var RESET_SGR = "\x1B[0m";
|
|
499
504
|
var DEC_SPECIAL_GRAPHICS = {
|
|
@@ -1593,10 +1598,7 @@ function ensureSpawnHelperExecutable() {
|
|
|
1593
1598
|
}
|
|
1594
1599
|
}
|
|
1595
1600
|
function isMissingFileError(error) {
|
|
1596
|
-
|
|
1597
|
-
return false;
|
|
1598
|
-
}
|
|
1599
|
-
return "code" in error && error.code === "ENOENT";
|
|
1601
|
+
return hasOwnErrorCode(error, "ENOENT");
|
|
1600
1602
|
}
|
|
1601
1603
|
function matchPattern(buffer, pattern) {
|
|
1602
1604
|
const clean = normalizeHistoryBuffer(stripAnsi(buffer));
|