pty-manager 1.7.2 → 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 +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pty-worker.js +20 -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
|
@@ -2634,6 +2634,14 @@ var BunCompatiblePTYManager = class extends import_events3.EventEmitter {
|
|
|
2634
2634
|
this.sendCommand({ cmd: "sendKeys", id, keys });
|
|
2635
2635
|
await this.createPending(`sendKeys:${id}`);
|
|
2636
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
|
+
}
|
|
2637
2645
|
/**
|
|
2638
2646
|
* Paste text to a session
|
|
2639
2647
|
*/
|