@gajae-code/natives 0.8.2 → 0.9.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 +7 -6
- package/native/index.js +3 -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_0(): void
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* Apply conservative pre-execution rewrites to a bash command.
|
|
@@ -1650,11 +1650,9 @@ export interface SummarySegment {
|
|
|
1650
1650
|
*/
|
|
1651
1651
|
export declare function supportsLanguage(lang: string): boolean
|
|
1652
1652
|
|
|
1653
|
-
/**
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
* Pads with spaces when requested.
|
|
1657
|
-
*/
|
|
1653
|
+
/** Truncate many strings to a visible width, preserving ANSI codes. */
|
|
1654
|
+
export declare function truncateLinesToWidth(lines: Array<string>, maxWidth: number, ellipsisKind: Ellipsis | undefined | null, pad: boolean | undefined | null, tabWidth: number): Array<string>
|
|
1655
|
+
|
|
1658
1656
|
export declare function truncateToWidth(text: string, maxWidth: number, ellipsisKind: Ellipsis | undefined | null, pad: boolean | undefined | null, tabWidth: number): string
|
|
1659
1657
|
|
|
1660
1658
|
/**
|
|
@@ -1664,6 +1662,9 @@ export declare function truncateToWidth(text: string, maxWidth: number, ellipsis
|
|
|
1664
1662
|
*/
|
|
1665
1663
|
export declare function visibleWidth(text: string, tabWidth: number): number
|
|
1666
1664
|
|
|
1665
|
+
/** Calculate visible widths of many strings, excluding ANSI escape sequences. */
|
|
1666
|
+
export declare function visibleWidths(lines: Array<string>, tabWidth: number): Array<number>
|
|
1667
|
+
|
|
1667
1668
|
/** Profiling results returned to JavaScript. */
|
|
1668
1669
|
export interface WorkProfile {
|
|
1669
1670
|
/** Folded stack format for flamegraph tools. */
|
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_0 = nativeBindings.__piNativesV0_9_0;
|
|
31
31
|
export const applyBashFixups = nativeBindings.applyBashFixups;
|
|
32
32
|
export const astEdit = nativeBindings.astEdit;
|
|
33
33
|
export const astGrep = nativeBindings.astGrep;
|
|
@@ -70,8 +70,10 @@ export const search = nativeBindings.search;
|
|
|
70
70
|
export const sliceWithWidth = nativeBindings.sliceWithWidth;
|
|
71
71
|
export const summarizeCode = nativeBindings.summarizeCode;
|
|
72
72
|
export const supportsLanguage = nativeBindings.supportsLanguage;
|
|
73
|
+
export const truncateLinesToWidth = nativeBindings.truncateLinesToWidth;
|
|
73
74
|
export const truncateToWidth = nativeBindings.truncateToWidth;
|
|
74
75
|
export const visibleWidth = nativeBindings.visibleWidth;
|
|
76
|
+
export const visibleWidths = nativeBindings.visibleWidths;
|
|
75
77
|
export const wrapTextWithAnsi = nativeBindings.wrapTextWithAnsi;
|
|
76
78
|
|
|
77
79
|
// string/numeric enums (napi-rs string_enum produces TS-only const enum)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gajae-code/natives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
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.
|
|
65
|
-
"@gajae-code/natives-darwin-x64": "0.
|
|
66
|
-
"@gajae-code/natives-linux-arm64": "0.
|
|
67
|
-
"@gajae-code/natives-linux-x64": "0.
|
|
68
|
-
"@gajae-code/natives-win32-x64": "0.
|
|
64
|
+
"@gajae-code/natives-darwin-arm64": "0.9.0",
|
|
65
|
+
"@gajae-code/natives-darwin-x64": "0.9.0",
|
|
66
|
+
"@gajae-code/natives-linux-arm64": "0.9.0",
|
|
67
|
+
"@gajae-code/natives-linux-x64": "0.9.0",
|
|
68
|
+
"@gajae-code/natives-win32-x64": "0.9.0"
|
|
69
69
|
},
|
|
70
70
|
"exports": {
|
|
71
71
|
".": {
|