@oh-my-pi/pi-natives 18.1.6 → 18.1.9
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 +34 -1
- package/native/index.js +3 -1
- package/native/loader-state.js +8 -1
- package/package.json +7 -6
package/native/index.d.ts
CHANGED
|
@@ -233,6 +233,23 @@ export declare class MacAppearanceObserver {
|
|
|
233
233
|
stop(): void
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
+
/** A transactional, process-owned native OAuth callback receiver. */
|
|
237
|
+
export declare class NativeOAuthCallback {
|
|
238
|
+
/** Create a receiver without touching the filesystem or OS registration. */
|
|
239
|
+
constructor(options: NativeOAuthCallbackOptions)
|
|
240
|
+
/**
|
|
241
|
+
* Register the scheme transactionally. Returns false on unsupported or
|
|
242
|
+
* remote sessions.
|
|
243
|
+
*/
|
|
244
|
+
start(): Promise<boolean>
|
|
245
|
+
/** Cancel an in-progress start and every pending callback wait. */
|
|
246
|
+
cancel(): void
|
|
247
|
+
/** Wait for and atomically claim the callback URL. */
|
|
248
|
+
waitForCallback(timeoutMs?: number | undefined | null): Promise<string>
|
|
249
|
+
/** Restore prior OS state and release ownership. Safe to call repeatedly. */
|
|
250
|
+
dispose(): Promise<undefined>
|
|
251
|
+
}
|
|
252
|
+
|
|
236
253
|
/**
|
|
237
254
|
* Long-lived cross-platform power assertion.
|
|
238
255
|
*
|
|
@@ -631,7 +648,7 @@ export declare function __ompInstallTokioRuntime(): void
|
|
|
631
648
|
* `packages/natives/native/index.js` (which derives the name from
|
|
632
649
|
* `package.json#version`).
|
|
633
650
|
*/
|
|
634
|
-
export declare function
|
|
651
|
+
export declare function __piNativesV18_1_9(): void
|
|
635
652
|
|
|
636
653
|
/**
|
|
637
654
|
* Apply ast-grep rewrite rules to matching files; honors `dryRun` and returns
|
|
@@ -994,6 +1011,16 @@ export declare function cosineSimilarityPairs(vectors: Float64Array, count: numb
|
|
|
994
1011
|
*/
|
|
995
1012
|
export declare function countTokens(input: string | string[], encoding?: Encoding | undefined | null): number
|
|
996
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* Decode one complete SIXEL control string into a PNG.
|
|
1016
|
+
*
|
|
1017
|
+
* The decoder is deliberately bounded before handing the stream to
|
|
1018
|
+
* `icy_sixel`: raster declarations, repeats, and row advances are scanned
|
|
1019
|
+
* first so hostile dimensions cannot make the dependency allocate its much
|
|
1020
|
+
* larger internal maximum.
|
|
1021
|
+
*/
|
|
1022
|
+
export declare function decodeSixelToPng(bytes: Uint8Array): Uint8Array
|
|
1023
|
+
|
|
997
1024
|
export interface DesktopCapabilities {
|
|
998
1025
|
backend: string
|
|
999
1026
|
displayServer?: string
|
|
@@ -2166,6 +2193,12 @@ export interface MinimizerResult {
|
|
|
2166
2193
|
*/
|
|
2167
2194
|
export declare function mmrRerankIndices(contents: Array<string>, scores: Float64Array, lambdaParam: number, topK: number): Uint32Array
|
|
2168
2195
|
|
|
2196
|
+
/** Construction options for [`NativeOAuthCallback`]. */
|
|
2197
|
+
export interface NativeOAuthCallbackOptions {
|
|
2198
|
+
/** Custom URL scheme to register. */
|
|
2199
|
+
scheme: string
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2169
2202
|
/**
|
|
2170
2203
|
* Named-node chain containing `options.line`, innermost-first, excluding the
|
|
2171
2204
|
* whole-file root.
|
package/native/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export const FileLock = nativeBindings.FileLock;
|
|
|
27
27
|
export const HighlightStream = nativeBindings.HighlightStream;
|
|
28
28
|
export const LiveWebRtcPeer = nativeBindings.LiveWebRtcPeer;
|
|
29
29
|
export const MacAppearanceObserver = nativeBindings.MacAppearanceObserver;
|
|
30
|
+
export const NativeOAuthCallback = nativeBindings.NativeOAuthCallback;
|
|
30
31
|
export const PowerAssertion = nativeBindings.PowerAssertion;
|
|
31
32
|
export const Process = nativeBindings.Process;
|
|
32
33
|
export const PtySession = nativeBindings.PtySession;
|
|
@@ -38,7 +39,7 @@ export const VcsRepo = nativeBindings.VcsRepo;
|
|
|
38
39
|
|
|
39
40
|
// functions
|
|
40
41
|
export const __ompInstallTokioRuntime = nativeBindings.__ompInstallTokioRuntime;
|
|
41
|
-
export const
|
|
42
|
+
export const __piNativesV18_1_9 = nativeBindings.__piNativesV18_1_9;
|
|
42
43
|
export const astEdit = nativeBindings.astEdit;
|
|
43
44
|
export const astGrep = nativeBindings.astGrep;
|
|
44
45
|
export const astMatch = nativeBindings.astMatch;
|
|
@@ -46,6 +47,7 @@ export const blockRangeAt = nativeBindings.blockRangeAt;
|
|
|
46
47
|
export const copyToClipboard = nativeBindings.copyToClipboard;
|
|
47
48
|
export const cosineSimilarityPairs = nativeBindings.cosineSimilarityPairs;
|
|
48
49
|
export const countTokens = nativeBindings.countTokens;
|
|
50
|
+
export const decodeSixelToPng = nativeBindings.decodeSixelToPng;
|
|
49
51
|
export const detectMacOSAppearance = nativeBindings.detectMacOSAppearance;
|
|
50
52
|
export const deviceCheckGenerateToken = nativeBindings.deviceCheckGenerateToken;
|
|
51
53
|
export const diffLineRuns = nativeBindings.diffLineRuns;
|
package/native/loader-state.js
CHANGED
|
@@ -31,7 +31,14 @@ import { embeddedAddon } from "./embedded-addon.js";
|
|
|
31
31
|
* post-build `--reset` stub) is the authoritative compiled-mode signal.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const SUPPORTED_PLATFORMS = [
|
|
34
|
+
const SUPPORTED_PLATFORMS = [
|
|
35
|
+
"linux-x64",
|
|
36
|
+
"linux-arm64",
|
|
37
|
+
"darwin-x64",
|
|
38
|
+
"darwin-arm64",
|
|
39
|
+
"win32-x64",
|
|
40
|
+
"win32-arm64",
|
|
41
|
+
];
|
|
35
42
|
|
|
36
43
|
/**
|
|
37
44
|
* Streaming startup marker, enabled by `PI_DEBUG_STARTUP`. Local copy of the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-natives",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.9",
|
|
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,11 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"optionalDependencies": {
|
|
101
|
-
"@oh-my-pi/pi-natives-linux-x64": "18.1.
|
|
102
|
-
"@oh-my-pi/pi-natives-linux-arm64": "18.1.
|
|
103
|
-
"@oh-my-pi/pi-natives-darwin-x64": "18.1.
|
|
104
|
-
"@oh-my-pi/pi-natives-darwin-arm64": "18.1.
|
|
105
|
-
"@oh-my-pi/pi-natives-win32-x64": "18.1.
|
|
101
|
+
"@oh-my-pi/pi-natives-linux-x64": "18.1.9",
|
|
102
|
+
"@oh-my-pi/pi-natives-linux-arm64": "18.1.9",
|
|
103
|
+
"@oh-my-pi/pi-natives-darwin-x64": "18.1.9",
|
|
104
|
+
"@oh-my-pi/pi-natives-darwin-arm64": "18.1.9",
|
|
105
|
+
"@oh-my-pi/pi-natives-win32-x64": "18.1.9",
|
|
106
|
+
"@oh-my-pi/pi-natives-win32-arm64": "18.1.9"
|
|
106
107
|
}
|
|
107
108
|
}
|