@gajae-code/natives 0.9.1 → 0.9.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/native/index.d.ts +10 -4
- package/native/index.js +2 -1
- package/package.json +6 -6
package/native/index.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ export declare class Shell {
|
|
|
298
298
|
* `packages/natives/native/index.js` (which derives the name from
|
|
299
299
|
* `package.json#version`).
|
|
300
300
|
*/
|
|
301
|
-
export declare function
|
|
301
|
+
export declare function __piNativesV0_9_3(): void
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* Apply conservative pre-execution rewrites to a bash command.
|
|
@@ -985,11 +985,11 @@ export interface HtmlToMarkdownOptions {
|
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
/**
|
|
988
|
-
* An inbound message forwarded to the TypeScript host: a free-text injection
|
|
989
|
-
*
|
|
988
|
+
* An inbound message forwarded to the TypeScript host: a free-text injection,
|
|
989
|
+
* in-thread config command, or deterministic control command.
|
|
990
990
|
*/
|
|
991
991
|
export interface InboundEvent {
|
|
992
|
-
/**
|
|
992
|
+
/** Inbound kind (`user_message`, `config_command`, or `control_command`). */
|
|
993
993
|
kind: string
|
|
994
994
|
/** The session this inbound belongs to. */
|
|
995
995
|
sessionId: string
|
|
@@ -1003,6 +1003,10 @@ export interface InboundEvent {
|
|
|
1003
1003
|
verbosity?: string
|
|
1004
1004
|
/** Requested redaction state (`config_command` only). */
|
|
1005
1005
|
redact?: boolean
|
|
1006
|
+
/** Client-generated request id (`control_command` only). */
|
|
1007
|
+
requestId?: string
|
|
1008
|
+
/** JSON-encoded command payload (`control_command` only). */
|
|
1009
|
+
commandJson?: string
|
|
1006
1010
|
/**
|
|
1007
1011
|
* Inline image attachments forwarded with the message (`user_message`
|
|
1008
1012
|
* only).
|
|
@@ -1455,6 +1459,8 @@ export interface PtyStartOptions {
|
|
|
1455
1459
|
shell?: string
|
|
1456
1460
|
}
|
|
1457
1461
|
|
|
1462
|
+
export declare function ptyTimeoutCount(): bigint
|
|
1463
|
+
|
|
1458
1464
|
/**
|
|
1459
1465
|
* Read an image from the system clipboard.
|
|
1460
1466
|
*
|
package/native/index.js
CHANGED
|
@@ -27,7 +27,7 @@ export const PtySession = nativeBindings.PtySession;
|
|
|
27
27
|
export const Shell = nativeBindings.Shell;
|
|
28
28
|
|
|
29
29
|
// functions
|
|
30
|
-
export const
|
|
30
|
+
export const __piNativesV0_9_3 = nativeBindings.__piNativesV0_9_3;
|
|
31
31
|
export const applyBashFixups = nativeBindings.applyBashFixups;
|
|
32
32
|
export const astEdit = nativeBindings.astEdit;
|
|
33
33
|
export const astGrep = nativeBindings.astGrep;
|
|
@@ -65,6 +65,7 @@ export const matchesLegacySequence = nativeBindings.matchesLegacySequence;
|
|
|
65
65
|
export const nativeBuildInfo = nativeBindings.nativeBuildInfo;
|
|
66
66
|
export const parseKey = nativeBindings.parseKey;
|
|
67
67
|
export const parseKittySequence = nativeBindings.parseKittySequence;
|
|
68
|
+
export const ptyTimeoutCount = nativeBindings.ptyTimeoutCount;
|
|
68
69
|
export const readImageFromClipboard = nativeBindings.readImageFromClipboard;
|
|
69
70
|
export const search = nativeBindings.search;
|
|
70
71
|
export const sliceWithWidth = nativeBindings.sliceWithWidth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gajae-code/natives",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
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://gajae-code.com",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"README.md"
|
|
62
62
|
],
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@gajae-code/natives-darwin-arm64": "0.9.
|
|
65
|
-
"@gajae-code/natives-darwin-x64": "0.9.
|
|
66
|
-
"@gajae-code/natives-linux-arm64": "0.9.
|
|
67
|
-
"@gajae-code/natives-linux-x64": "0.9.
|
|
68
|
-
"@gajae-code/natives-win32-x64": "0.9.
|
|
64
|
+
"@gajae-code/natives-darwin-arm64": "0.9.3",
|
|
65
|
+
"@gajae-code/natives-darwin-x64": "0.9.3",
|
|
66
|
+
"@gajae-code/natives-linux-arm64": "0.9.3",
|
|
67
|
+
"@gajae-code/natives-linux-x64": "0.9.3",
|
|
68
|
+
"@gajae-code/natives-win32-x64": "0.9.3"
|
|
69
69
|
},
|
|
70
70
|
"exports": {
|
|
71
71
|
".": {
|