@gajae-code/natives 0.16.4 → 0.16.6
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 +12 -1
- package/native/index.js +1 -1
- package/native/loader-state.d.ts +2 -0
- package/native/loader-state.js +8 -4
- package/package.json +6 -6
package/native/index.d.ts
CHANGED
|
@@ -544,7 +544,7 @@ export declare function __piNativesPublishOutcomeV1(): void
|
|
|
544
544
|
* `packages/natives/native/index.js` (which derives the name from
|
|
545
545
|
* `package.json#version`).
|
|
546
546
|
*/
|
|
547
|
-
export declare function
|
|
547
|
+
export declare function __piNativesV0_16_6(): void
|
|
548
548
|
|
|
549
549
|
/**
|
|
550
550
|
* Apply conservative pre-execution rewrites to a bash command.
|
|
@@ -2302,6 +2302,8 @@ export interface ShellExecuteOptions {
|
|
|
2302
2302
|
minimizer?: MinimizerOptions
|
|
2303
2303
|
/** Abort signal for cancelling the operation. */
|
|
2304
2304
|
signal?: unknown
|
|
2305
|
+
/** Keep external commands inside the embedding process group. */
|
|
2306
|
+
containedProcessGroup?: boolean
|
|
2305
2307
|
}
|
|
2306
2308
|
|
|
2307
2309
|
/** Options for configuring a persistent shell session. */
|
|
@@ -2312,6 +2314,15 @@ export interface ShellOptions {
|
|
|
2312
2314
|
snapshotPath?: string
|
|
2313
2315
|
/** Optional per-command output minimizer configuration. */
|
|
2314
2316
|
minimizer?: MinimizerOptions
|
|
2317
|
+
/**
|
|
2318
|
+
* Keep external commands inside the embedding process group. Used only by
|
|
2319
|
+
* an already-isolated shell worker whose parent supervises that group.
|
|
2320
|
+
*/
|
|
2321
|
+
containedProcessGroup?: boolean
|
|
2322
|
+
/** Private append-only ownership ledger used by the external guardian. */
|
|
2323
|
+
ownershipLedgerPath?: string
|
|
2324
|
+
/** Authentication key for ownership ledger records. */
|
|
2325
|
+
ownershipLedgerToken?: string
|
|
2315
2326
|
}
|
|
2316
2327
|
|
|
2317
2328
|
/** Options for running a shell command. */
|
package/native/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export const Shell = nativeBindings.Shell;
|
|
|
30
30
|
|
|
31
31
|
// functions
|
|
32
32
|
export const __piNativesPublishOutcomeV1 = nativeBindings.__piNativesPublishOutcomeV1;
|
|
33
|
-
export const
|
|
33
|
+
export const __piNativesV0_16_6 = nativeBindings.__piNativesV0_16_6;
|
|
34
34
|
export const applyBashFixups = nativeBindings.applyBashFixups;
|
|
35
35
|
export const applyOwnerOnlyFdSecurity = nativeBindings.applyOwnerOnlyFdSecurity;
|
|
36
36
|
export const applyOwnerOnlyPathSecurity = nativeBindings.applyOwnerOnlyPathSecurity;
|
package/native/loader-state.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export function detectWin32Avx2Support(
|
|
|
30
30
|
report?: (diagnostic: Win32Avx2ProbeDiagnostic) => void,
|
|
31
31
|
): boolean;
|
|
32
32
|
|
|
33
|
+
export function getVariantOverride(env?: Record<string, string | undefined>): "modern" | "baseline" | null;
|
|
34
|
+
|
|
33
35
|
export interface GetAddonFilenamesInput {
|
|
34
36
|
tag: string;
|
|
35
37
|
arch: string;
|
package/native/loader-state.js
CHANGED
|
@@ -484,10 +484,14 @@ export function detectWin32Avx2Support(
|
|
|
484
484
|
return probeWin32Avx2ViaPowerShell(run, report);
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
function getVariantOverride() {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
487
|
+
export function getVariantOverride(env = process.env) {
|
|
488
|
+
// `GJC_NATIVE_VARIANT` is the documented name (docs/natives-architecture.md,
|
|
489
|
+
// docs/natives-addon-loader-runtime.md, docs/natives-build-release-debugging.md);
|
|
490
|
+
// `PI_NATIVE_VARIANT` is the pre-rebrand name kept as a fallback. An empty or
|
|
491
|
+
// blank canonical value falls through rather than masking the legacy one.
|
|
492
|
+
const raw = env.GJC_NATIVE_VARIANT?.trim() || env.PI_NATIVE_VARIANT?.trim();
|
|
493
|
+
if (!raw) return null;
|
|
494
|
+
if (raw === "modern" || raw === "baseline") return raw;
|
|
491
495
|
return null;
|
|
492
496
|
}
|
|
493
497
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gajae-code/natives",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.6",
|
|
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.16.
|
|
65
|
-
"@gajae-code/natives-darwin-x64": "0.16.
|
|
66
|
-
"@gajae-code/natives-linux-arm64": "0.16.
|
|
67
|
-
"@gajae-code/natives-linux-x64": "0.16.
|
|
68
|
-
"@gajae-code/natives-win32-x64": "0.16.
|
|
64
|
+
"@gajae-code/natives-darwin-arm64": "0.16.6",
|
|
65
|
+
"@gajae-code/natives-darwin-x64": "0.16.6",
|
|
66
|
+
"@gajae-code/natives-linux-arm64": "0.16.6",
|
|
67
|
+
"@gajae-code/natives-linux-x64": "0.16.6",
|
|
68
|
+
"@gajae-code/natives-win32-x64": "0.16.6"
|
|
69
69
|
},
|
|
70
70
|
"exports": {
|
|
71
71
|
".": {
|