@oh-my-pi/pi-natives 18.0.9 → 18.0.10
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 +19 -1
- package/native/index.js +2 -1
- package/package.json +6 -6
package/native/index.d.ts
CHANGED
|
@@ -392,6 +392,8 @@ export declare class VcsGitRepo {
|
|
|
392
392
|
logOnelines(count: number, signal?: unknown | undefined | null): Promise<Array<string>>
|
|
393
393
|
/** Commits in a range. */
|
|
394
394
|
revListRange(base: string, head: string, signal?: unknown | undefined | null): Promise<Array<string>>
|
|
395
|
+
/** Best common ancestor of two revisions. */
|
|
396
|
+
mergeBase(a: string, b: string, signal?: unknown | undefined | null): Promise<string | undefined | null>
|
|
395
397
|
/** Commits touching a file. */
|
|
396
398
|
revListTouching(rev: string, file: string, limit: number, signal?: unknown | undefined | null): Promise<Array<string>>
|
|
397
399
|
/** Commit details. */
|
|
@@ -571,7 +573,7 @@ export declare function __ompInstallTokioRuntime(): void
|
|
|
571
573
|
* `packages/natives/native/index.js` (which derives the name from
|
|
572
574
|
* `package.json#version`).
|
|
573
575
|
*/
|
|
574
|
-
export declare function
|
|
576
|
+
export declare function __piNativesV18_0_10(): void
|
|
575
577
|
|
|
576
578
|
/**
|
|
577
579
|
* Apply ast-grep rewrite rules to matching files; honors `dryRun` and returns
|
|
@@ -1204,6 +1206,22 @@ export declare enum Encoding {
|
|
|
1204
1206
|
Glm5 = 'Glm5'
|
|
1205
1207
|
}
|
|
1206
1208
|
|
|
1209
|
+
/**
|
|
1210
|
+
* Replace the current process image via `execvp(3)`.
|
|
1211
|
+
*
|
|
1212
|
+
* On success this never returns: the kernel tears down every other thread and
|
|
1213
|
+
* the new program takes over this PID, controlling terminal, and inherited
|
|
1214
|
+
* (non-`CLOEXEC`) file descriptors. Callers must flush logs and restore the
|
|
1215
|
+
* terminal first — no JS or native cleanup runs after a successful call.
|
|
1216
|
+
*
|
|
1217
|
+
* # Errors
|
|
1218
|
+
* Returns an error, leaving the process untouched, when `argv` is empty, an
|
|
1219
|
+
* argument contains an interior NUL byte, or the exec itself fails (e.g.
|
|
1220
|
+
* executable not found). Windows has no exec-replace semantics, so this
|
|
1221
|
+
* always errors there; callers fall back to spawn-and-wait.
|
|
1222
|
+
*/
|
|
1223
|
+
export declare function execReplace(argv: Array<string>): void
|
|
1224
|
+
|
|
1207
1225
|
/**
|
|
1208
1226
|
* Execute a brush shell command.
|
|
1209
1227
|
*
|
package/native/index.js
CHANGED
|
@@ -36,7 +36,7 @@ export const VcsRepo = nativeBindings.VcsRepo;
|
|
|
36
36
|
|
|
37
37
|
// functions
|
|
38
38
|
export const __ompInstallTokioRuntime = nativeBindings.__ompInstallTokioRuntime;
|
|
39
|
-
export const
|
|
39
|
+
export const __piNativesV18_0_10 = nativeBindings.__piNativesV18_0_10;
|
|
40
40
|
export const astEdit = nativeBindings.astEdit;
|
|
41
41
|
export const astGrep = nativeBindings.astGrep;
|
|
42
42
|
export const astMatch = nativeBindings.astMatch;
|
|
@@ -51,6 +51,7 @@ export const diffLines = nativeBindings.diffLines;
|
|
|
51
51
|
export const diffWords = nativeBindings.diffWords;
|
|
52
52
|
export const enclosingBlockBoundaries = nativeBindings.enclosingBlockBoundaries;
|
|
53
53
|
export const encodeSixel = nativeBindings.encodeSixel;
|
|
54
|
+
export const execReplace = nativeBindings.execReplace;
|
|
54
55
|
export const executeShell = nativeBindings.executeShell;
|
|
55
56
|
export const extractSegments = nativeBindings.extractSegments;
|
|
56
57
|
export const fuzzyFind = nativeBindings.fuzzyFind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-natives",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.10",
|
|
4
4
|
"description": "Native Rust bindings for PDF conversion, audio, WebRTC, grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"optionalDependencies": {
|
|
101
|
-
"@oh-my-pi/pi-natives-linux-x64": "18.0.
|
|
102
|
-
"@oh-my-pi/pi-natives-linux-arm64": "18.0.
|
|
103
|
-
"@oh-my-pi/pi-natives-darwin-x64": "18.0.
|
|
104
|
-
"@oh-my-pi/pi-natives-darwin-arm64": "18.0.
|
|
105
|
-
"@oh-my-pi/pi-natives-win32-x64": "18.0.
|
|
101
|
+
"@oh-my-pi/pi-natives-linux-x64": "18.0.10",
|
|
102
|
+
"@oh-my-pi/pi-natives-linux-arm64": "18.0.10",
|
|
103
|
+
"@oh-my-pi/pi-natives-darwin-x64": "18.0.10",
|
|
104
|
+
"@oh-my-pi/pi-natives-darwin-arm64": "18.0.10",
|
|
105
|
+
"@oh-my-pi/pi-natives-win32-x64": "18.0.10"
|
|
106
106
|
}
|
|
107
107
|
}
|