pty-manager 1.7.1 → 1.7.3
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/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pty-worker.js +23 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1108,6 +1108,10 @@ declare class BunCompatiblePTYManager extends EventEmitter {
|
|
|
1108
1108
|
* Send special keys to a session
|
|
1109
1109
|
*/
|
|
1110
1110
|
sendKeys(id: string, keys: string | string[]): Promise<void>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Write raw data to a session (bypasses adapter formatting)
|
|
1113
|
+
*/
|
|
1114
|
+
writeRaw(id: string, data: string): Promise<void>;
|
|
1111
1115
|
/**
|
|
1112
1116
|
* Paste text to a session
|
|
1113
1117
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1108,6 +1108,10 @@ declare class BunCompatiblePTYManager extends EventEmitter {
|
|
|
1108
1108
|
* Send special keys to a session
|
|
1109
1109
|
*/
|
|
1110
1110
|
sendKeys(id: string, keys: string | string[]): Promise<void>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Write raw data to a session (bypasses adapter formatting)
|
|
1113
|
+
*/
|
|
1114
|
+
writeRaw(id: string, data: string): Promise<void>;
|
|
1111
1115
|
/**
|
|
1112
1116
|
* Paste text to a session
|
|
1113
1117
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1204,6 +1204,7 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
|
|
|
1204
1204
|
this._status = "busy";
|
|
1205
1205
|
this.outputBuffer = "";
|
|
1206
1206
|
this.emit("status_changed", "busy");
|
|
1207
|
+
this._stallEmissionCount = 0;
|
|
1207
1208
|
this.resetStallTimer();
|
|
1208
1209
|
const msg = {
|
|
1209
1210
|
id: `${this.id}-msg-${++this.messageCounter}`,
|
|
@@ -1241,6 +1242,8 @@ var PTYSession = class _PTYSession extends import_events.EventEmitter {
|
|
|
1241
1242
|
throw new Error("Session not started");
|
|
1242
1243
|
}
|
|
1243
1244
|
const keyList = Array.isArray(keys) ? keys : [keys];
|
|
1245
|
+
this._stallEmissionCount = 0;
|
|
1246
|
+
this.resetStallTimer();
|
|
1244
1247
|
for (const key of keyList) {
|
|
1245
1248
|
const normalizedKey = key.toLowerCase().trim();
|
|
1246
1249
|
const sequence = SPECIAL_KEYS[normalizedKey];
|
|
@@ -2631,6 +2634,14 @@ var BunCompatiblePTYManager = class extends import_events3.EventEmitter {
|
|
|
2631
2634
|
this.sendCommand({ cmd: "sendKeys", id, keys });
|
|
2632
2635
|
await this.createPending(`sendKeys:${id}`);
|
|
2633
2636
|
}
|
|
2637
|
+
/**
|
|
2638
|
+
* Write raw data to a session (bypasses adapter formatting)
|
|
2639
|
+
*/
|
|
2640
|
+
async writeRaw(id, data) {
|
|
2641
|
+
await this.waitForReady();
|
|
2642
|
+
this.sendCommand({ cmd: "writeRaw", id, data });
|
|
2643
|
+
await this.createPending(`writeRaw:${id}`);
|
|
2644
|
+
}
|
|
2634
2645
|
/**
|
|
2635
2646
|
* Paste text to a session
|
|
2636
2647
|
*/
|