@oh-my-pi/pi-natives 18.12.6 → 18.13.0
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 +22 -2
- package/native/index.js +1 -0
- package/package.json +7 -7
package/native/index.d.ts
CHANGED
|
@@ -947,9 +947,18 @@ export interface Application {
|
|
|
947
947
|
pid?: number
|
|
948
948
|
}
|
|
949
949
|
|
|
950
|
-
/**
|
|
950
|
+
/**
|
|
951
|
+
* How `apps.open` opens its target.
|
|
952
|
+
*
|
|
953
|
+
* `activate` deliberately brings the application forward. On macOS a file,
|
|
954
|
+
* folder or URL target opens in its default application, or in `app` (an
|
|
955
|
+
* application ID, name or path); `reveal` instead shows the file or folder
|
|
956
|
+
* selected in Finder, which comes to the front.
|
|
957
|
+
*/
|
|
951
958
|
export interface ApplicationOpenOptions {
|
|
952
959
|
activate?: boolean
|
|
960
|
+
reveal?: boolean
|
|
961
|
+
app?: string
|
|
953
962
|
}
|
|
954
963
|
|
|
955
964
|
/** Filters the native application inventory without requiring screen access. */
|
|
@@ -1717,12 +1726,13 @@ export declare function diffWords(oldText: string, newText: string): Array<DiffC
|
|
|
1717
1726
|
|
|
1718
1727
|
/**
|
|
1719
1728
|
* Whole-call apply outcome. `is_error` carries the model-facing failure in
|
|
1720
|
-
* `text` with no files.
|
|
1729
|
+
* `text` with no files, and `error_kind` its class (`EditError::kind`).
|
|
1721
1730
|
*/
|
|
1722
1731
|
export interface EditApplyOutcome {
|
|
1723
1732
|
text: string
|
|
1724
1733
|
files: Array<EditFileOutcome>
|
|
1725
1734
|
isError: boolean
|
|
1735
|
+
errorKind?: string
|
|
1726
1736
|
}
|
|
1727
1737
|
|
|
1728
1738
|
/** Apply-time knobs. */
|
|
@@ -1750,6 +1760,9 @@ export interface EditDiffResult {
|
|
|
1750
1760
|
/** Numbered unified diff between two texts (`generateDiffString`). */
|
|
1751
1761
|
export declare function editDiffString(oldText: string, newText: string, path?: string | undefined | null): EditDiffResult
|
|
1752
1762
|
|
|
1763
|
+
/** Every `errorKind` a failed apply outcome can carry. */
|
|
1764
|
+
export declare function editErrorKinds(): Array<string>
|
|
1765
|
+
|
|
1753
1766
|
/** A destructive file operation a payload declares. */
|
|
1754
1767
|
export interface EditFileOpIntent {
|
|
1755
1768
|
/** `delete` | `move`. */
|
|
@@ -2221,6 +2234,13 @@ export interface GrepOptions {
|
|
|
2221
2234
|
* every file under it.
|
|
2222
2235
|
*/
|
|
2223
2236
|
glob?: string
|
|
2237
|
+
/**
|
|
2238
|
+
* Glob patterns of files and directories to leave out, relative to `path`:
|
|
2239
|
+
* one without `/` matches at any depth (`*.test.ts`, `vendor`), a leading
|
|
2240
|
+
* `/` anchors it to `path` (`/vendor`); a matched directory is not
|
|
2241
|
+
* searched.
|
|
2242
|
+
*/
|
|
2243
|
+
exclude?: Array<string>
|
|
2224
2244
|
/**
|
|
2225
2245
|
* Match simple glob patterns at any depth (default: true; `*.ts` ->
|
|
2226
2246
|
* `**\/*.ts`). Set false when `glob` is already relative to `path`.
|
package/native/index.js
CHANGED
|
@@ -75,6 +75,7 @@ export const diffWords = nativeBindings.diffWords ?? missingNativeExport("diffWo
|
|
|
75
75
|
export const editAutoGeneratedMessage = nativeBindings.editAutoGeneratedMessage ?? missingNativeExport("editAutoGeneratedMessage");
|
|
76
76
|
export const editDescription = nativeBindings.editDescription ?? missingNativeExport("editDescription");
|
|
77
77
|
export const editDiffString = nativeBindings.editDiffString ?? missingNativeExport("editDiffString");
|
|
78
|
+
export const editErrorKinds = nativeBindings.editErrorKinds ?? missingNativeExport("editErrorKinds");
|
|
78
79
|
export const editGrammar = nativeBindings.editGrammar ?? missingNativeExport("editGrammar");
|
|
79
80
|
export const editInspect = nativeBindings.editInspect ?? missingNativeExport("editInspect");
|
|
80
81
|
export const enclosingBlockBoundaries = nativeBindings.enclosingBlockBoundaries ?? missingNativeExport("enclosingBlockBoundaries");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-natives",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.13.0",
|
|
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",
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"optionalDependencies": {
|
|
116
|
-
"@oh-my-pi/pi-natives-linux-x64": "18.
|
|
117
|
-
"@oh-my-pi/pi-natives-linux-arm64": "18.
|
|
118
|
-
"@oh-my-pi/pi-natives-darwin-x64": "18.
|
|
119
|
-
"@oh-my-pi/pi-natives-darwin-arm64": "18.
|
|
120
|
-
"@oh-my-pi/pi-natives-win32-x64": "18.
|
|
121
|
-
"@oh-my-pi/pi-natives-win32-arm64": "18.
|
|
116
|
+
"@oh-my-pi/pi-natives-linux-x64": "18.13.0",
|
|
117
|
+
"@oh-my-pi/pi-natives-linux-arm64": "18.13.0",
|
|
118
|
+
"@oh-my-pi/pi-natives-darwin-x64": "18.13.0",
|
|
119
|
+
"@oh-my-pi/pi-natives-darwin-arm64": "18.13.0",
|
|
120
|
+
"@oh-my-pi/pi-natives-win32-x64": "18.13.0",
|
|
121
|
+
"@oh-my-pi/pi-natives-win32-arm64": "18.13.0"
|
|
122
122
|
}
|
|
123
123
|
}
|