@oh-my-pi/pi-natives 15.11.4 → 15.11.7
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 +32 -8
- package/native/index.js +1 -1
- package/package.json +6 -6
package/native/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export declare class Shell {
|
|
|
136
136
|
* `packages/natives/native/index.js` (which derives the name from
|
|
137
137
|
* `package.json#version`).
|
|
138
138
|
*/
|
|
139
|
-
export declare function
|
|
139
|
+
export declare function __piNativesV15_11_7(): void
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Apply conservative pre-execution rewrites to a bash command.
|
|
@@ -1285,15 +1285,19 @@ export interface PtyStartOptions {
|
|
|
1285
1285
|
export declare function readImageFromClipboard(): Promise<ClipboardImage | undefined | null>
|
|
1286
1286
|
|
|
1287
1287
|
/**
|
|
1288
|
-
* Render one snapcompact frame: print pre-normalized text onto a
|
|
1289
|
-
* bitmap and encode it as PNG.
|
|
1288
|
+
* Render one snapcompact frame: print pre-normalized text onto a
|
|
1289
|
+
* `size`-wide bitmap and encode it as PNG.
|
|
1290
1290
|
*
|
|
1291
|
-
* The
|
|
1291
|
+
* The bitmap height hugs the rows the text actually occupies
|
|
1292
|
+
* (`usedRows * lineRepeat * cellHeight`), so a partially filled frame never
|
|
1293
|
+
* pays for blank padding rows. The glyph grid holds `floor(size/cellWidth) *
|
|
1292
1294
|
* floor(size/cellHeight/lineRepeat)` characters; input beyond that is ignored
|
|
1293
1295
|
* (the caller chunks text to capacity). Native-cell shapes encode as 4-bit
|
|
1294
1296
|
* indexed PNG; stretched shapes (target cell != font cell) encode as RGB.
|
|
1295
|
-
* `
|
|
1296
|
-
* cell
|
|
1297
|
+
* `stretch: false` pins the indexed path, printing natural-size glyphs on the
|
|
1298
|
+
* requested cell box; `columns: 2` flows pre-wrapped newline-separated lines
|
|
1299
|
+
* down two newspaper columns. `U+000E`/`U+000F` in `text` toggle dim-gray ink
|
|
1300
|
+
* spans without occupying a cell.
|
|
1297
1301
|
* Returns the PNG encoded as base64, created as a one-byte (Latin-1) JS
|
|
1298
1302
|
* string straight from native code — no `Uint8Array` hop or JS-side
|
|
1299
1303
|
* re-encode.
|
|
@@ -1431,9 +1435,16 @@ export declare function sliceWithWidth(line: string, startCol: number, length: n
|
|
|
1431
1435
|
|
|
1432
1436
|
/** Shape options for one snapcompact frame. */
|
|
1433
1437
|
export interface SnapcompactRenderOptions {
|
|
1434
|
-
/**
|
|
1438
|
+
/**
|
|
1439
|
+
* Frame width in pixels; also bounds the grid rows
|
|
1440
|
+
* (`floor(size/cellHeight/lineRepeat)`). Output height hugs the rows the
|
|
1441
|
+
* text actually uses instead of padding to a square.
|
|
1442
|
+
*/
|
|
1435
1443
|
size: number
|
|
1436
|
-
/**
|
|
1444
|
+
/**
|
|
1445
|
+
* Bundled font: `"5x8"`, `"6x12"`, `"8x13"` (X.org BDF) or `"8x8"`
|
|
1446
|
+
* (unscii-8). Default `"5x8"`.
|
|
1447
|
+
*/
|
|
1437
1448
|
font?: string
|
|
1438
1449
|
/**
|
|
1439
1450
|
* Target cell advance in pixels. Differing from the font's natural cell
|
|
@@ -1452,6 +1463,19 @@ export interface SnapcompactRenderOptions {
|
|
|
1452
1463
|
* pale highlight band. Default 1.
|
|
1453
1464
|
*/
|
|
1454
1465
|
lineRepeat?: number
|
|
1466
|
+
/**
|
|
1467
|
+
* Stretch behavior. Unset: auto — Lanczos-stretch whenever the target
|
|
1468
|
+
* cell differs from the font's natural cell. `false`: never stretch —
|
|
1469
|
+
* render indexed with glyphs at natural size on the requested cell box
|
|
1470
|
+
* (e.g. 8x13 glyphs on an 8x16 pitch, the "8on16" shapes). `true`: force
|
|
1471
|
+
* the stretch path (identical to auto; natural cells render indexed).
|
|
1472
|
+
*/
|
|
1473
|
+
stretch?: boolean
|
|
1474
|
+
/**
|
|
1475
|
+
* Layout columns: `1` (default) row-major grid; `2` two newspaper "doc"
|
|
1476
|
+
* columns of pre-wrapped newline-separated lines.
|
|
1477
|
+
*/
|
|
1478
|
+
columns?: number
|
|
1455
1479
|
}
|
|
1456
1480
|
|
|
1457
1481
|
export declare function summarizeCode(options: SummaryOptions): SummaryResult
|
package/native/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export const PtySession = nativeBindings.PtySession;
|
|
|
23
23
|
export const Shell = nativeBindings.Shell;
|
|
24
24
|
|
|
25
25
|
// functions
|
|
26
|
-
export const
|
|
26
|
+
export const __piNativesV15_11_7 = nativeBindings.__piNativesV15_11_7;
|
|
27
27
|
export const applyBashFixups = nativeBindings.applyBashFixups;
|
|
28
28
|
export const astEdit = nativeBindings.astEdit;
|
|
29
29
|
export const astGrep = nativeBindings.astGrep;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-natives",
|
|
3
|
-
"version": "15.11.
|
|
3
|
+
"version": "15.11.7",
|
|
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://omp.sh",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@oh-my-pi/pi-natives-linux-x64": "15.11.
|
|
70
|
-
"@oh-my-pi/pi-natives-linux-arm64": "15.11.
|
|
71
|
-
"@oh-my-pi/pi-natives-darwin-x64": "15.11.
|
|
72
|
-
"@oh-my-pi/pi-natives-darwin-arm64": "15.11.
|
|
73
|
-
"@oh-my-pi/pi-natives-win32-x64": "15.11.
|
|
69
|
+
"@oh-my-pi/pi-natives-linux-x64": "15.11.7",
|
|
70
|
+
"@oh-my-pi/pi-natives-linux-arm64": "15.11.7",
|
|
71
|
+
"@oh-my-pi/pi-natives-darwin-x64": "15.11.7",
|
|
72
|
+
"@oh-my-pi/pi-natives-darwin-arm64": "15.11.7",
|
|
73
|
+
"@oh-my-pi/pi-natives-win32-x64": "15.11.7"
|
|
74
74
|
}
|
|
75
75
|
}
|