@oh-my-pi/pi-natives 17.0.4 → 17.0.6
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/native/index.d.ts +9 -6
- package/native/index.js +1 -1
- package/package.json +6 -6
package/native/index.d.ts
CHANGED
|
@@ -84,13 +84,16 @@ export declare class Process {
|
|
|
84
84
|
/** Stateful PTY session for interactive stdin/stdout passthrough. */
|
|
85
85
|
export declare class PtySession {
|
|
86
86
|
constructor()
|
|
87
|
-
/** Start a shell command and stream output chunks via callback. */
|
|
88
|
-
start(options: PtyStartOptions, onChunk?: ((error: Error | null, chunk: string) => void) | undefined | null): Promise<PtyRunResult>
|
|
89
87
|
/**
|
|
90
|
-
* Start
|
|
91
|
-
*
|
|
88
|
+
* Start a shell command, stream output chunks, and report the spawned child
|
|
89
|
+
* PID.
|
|
92
90
|
*/
|
|
93
|
-
|
|
91
|
+
start(options: PtyStartOptions, onChunk?: ((error: Error | null, chunk: string) => void) | undefined | null, onStart?: ((error: Error | null, pid: number) => void) | undefined | null): Promise<PtyRunResult>
|
|
92
|
+
/**
|
|
93
|
+
* Start an executable with separate arguments, stream output chunks, and
|
|
94
|
+
* report the spawned child PID.
|
|
95
|
+
*/
|
|
96
|
+
startArgv(options: PtyArgvStartOptions, onChunk?: ((error: Error | null, chunk: string) => void) | undefined | null, onStart?: ((error: Error | null, pid: number) => void) | undefined | null): Promise<PtyRunResult>
|
|
94
97
|
/** Write raw input bytes to PTY stdin. */
|
|
95
98
|
write(data: string): void
|
|
96
99
|
/** Resize the active PTY. */
|
|
@@ -175,7 +178,7 @@ export declare function __ompInstallTokioRuntime(): void
|
|
|
175
178
|
* `packages/natives/native/index.js` (which derives the name from
|
|
176
179
|
* `package.json#version`).
|
|
177
180
|
*/
|
|
178
|
-
export declare function
|
|
181
|
+
export declare function __piNativesV17_0_6(): void
|
|
179
182
|
|
|
180
183
|
/**
|
|
181
184
|
* Apply ast-grep rewrite rules to matching files; honors `dryRun` and returns
|
package/native/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export const Shell = nativeBindings.Shell;
|
|
|
24
24
|
|
|
25
25
|
// functions
|
|
26
26
|
export const __ompInstallTokioRuntime = nativeBindings.__ompInstallTokioRuntime;
|
|
27
|
-
export const
|
|
27
|
+
export const __piNativesV17_0_6 = nativeBindings.__piNativesV17_0_6;
|
|
28
28
|
export const astEdit = nativeBindings.astEdit;
|
|
29
29
|
export const astGrep = nativeBindings.astGrep;
|
|
30
30
|
export const astMatch = nativeBindings.astMatch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-natives",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.6",
|
|
4
4
|
"description": "Native Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
|
-
"@oh-my-pi/pi-natives-linux-x64": "17.0.
|
|
71
|
-
"@oh-my-pi/pi-natives-linux-arm64": "17.0.
|
|
72
|
-
"@oh-my-pi/pi-natives-darwin-x64": "17.0.
|
|
73
|
-
"@oh-my-pi/pi-natives-darwin-arm64": "17.0.
|
|
74
|
-
"@oh-my-pi/pi-natives-win32-x64": "17.0.
|
|
70
|
+
"@oh-my-pi/pi-natives-linux-x64": "17.0.6",
|
|
71
|
+
"@oh-my-pi/pi-natives-linux-arm64": "17.0.6",
|
|
72
|
+
"@oh-my-pi/pi-natives-darwin-x64": "17.0.6",
|
|
73
|
+
"@oh-my-pi/pi-natives-darwin-arm64": "17.0.6",
|
|
74
|
+
"@oh-my-pi/pi-natives-win32-x64": "17.0.6"
|
|
75
75
|
}
|
|
76
76
|
}
|