@gajae-code/natives 0.17.4 → 0.17.5

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 CHANGED
@@ -442,6 +442,12 @@ export declare class RecoveryFsFile {
442
442
  export declare class RecoveryFsRoot {
443
443
  /** Return the stable identity of the retained root descriptor. */
444
444
  identity(): RecoveryFsResult
445
+ /**
446
+ * Return the latest bounded managed-recovery sweep metrics and lifetime
447
+ * removal counters. The per-root sweep remains throttled to once per
448
+ * minute.
449
+ */
450
+ recoveryReaperMetrics(): RecoveryFsReaperMetrics
445
451
  /**
446
452
  * Derive a retained child-directory capability from this root and exact
447
453
  * identity evidence.
@@ -583,7 +589,7 @@ export declare function __piNativesPublishOutcomeV1(): void
583
589
  * `packages/natives/native/index.js` (which derives the name from
584
590
  * `package.json#version`).
585
591
  */
586
- export declare function __piNativesV0_17_4(): void
592
+ export declare function __piNativesV0_17_5(): void
587
593
 
588
594
  /**
589
595
  * Apply conservative pre-execution rewrites to a bash command.
@@ -2257,6 +2263,8 @@ export interface PtyStartOptions {
2257
2263
  cwd?: string
2258
2264
  /** Environment variables for this command. */
2259
2265
  env?: Record<string, string>
2266
+ /** Environment variable names to remove from the child process. */
2267
+ unsetEnv?: Array<string>
2260
2268
  /** Timeout in milliseconds before cancelling. */
2261
2269
  timeoutMs?: number
2262
2270
  /** Abort signal for cancelling the operation. */
@@ -2326,6 +2334,24 @@ export interface RecoveryFsPublishSyncFailure {
2326
2334
  kind: string
2327
2335
  }
2328
2336
 
2337
+ /**
2338
+ * Bounded managed-recovery reaper counters. Large counters are decimal strings
2339
+ * so JavaScript callers do not lose precision above `Number.MAX_SAFE_INTEGER`.
2340
+ */
2341
+ export interface RecoveryFsReaperMetrics {
2342
+ ok: boolean
2343
+ code?: string
2344
+ scannedEntries: string
2345
+ reapedFiles: string
2346
+ reapedBytes: string
2347
+ preservedEntries: string
2348
+ failures: string
2349
+ scanLimited: boolean
2350
+ totalReapedFiles: string
2351
+ totalReapedBytes: string
2352
+ totalFailures: string
2353
+ }
2354
+
2329
2355
  export interface RecoveryFsResult {
2330
2356
  ok: boolean
2331
2357
  code?: string
@@ -2522,6 +2548,8 @@ export interface ShellRunOptions {
2522
2548
  cwd?: string
2523
2549
  /** Environment variables to apply for this command only. */
2524
2550
  env?: Record<string, string>
2551
+ /** Environment variable names to mask for this command only. */
2552
+ unsetEnv?: Array<string>
2525
2553
  /** Timeout in milliseconds before cancelling the command. */
2526
2554
  timeoutMs?: number
2527
2555
  /** Abort signal for cancelling the operation. */
package/native/index.js CHANGED
@@ -31,7 +31,7 @@ export const Shell = nativeBindings.Shell;
31
31
 
32
32
  // functions
33
33
  export const __piNativesPublishOutcomeV1 = nativeBindings.__piNativesPublishOutcomeV1;
34
- export const __piNativesV0_17_4 = nativeBindings.__piNativesV0_17_4;
34
+ export const __piNativesV0_17_5 = nativeBindings.__piNativesV0_17_5;
35
35
  export const applyBashFixups = nativeBindings.applyBashFixups;
36
36
  export const applyOwnerOnlyFdSecurity = nativeBindings.applyOwnerOnlyFdSecurity;
37
37
  export const applyOwnerOnlyPathSecurity = nativeBindings.applyOwnerOnlyPathSecurity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gajae-code/natives",
3
- "version": "0.17.4",
3
+ "version": "0.17.5",
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.17.4",
65
- "@gajae-code/natives-darwin-x64": "0.17.4",
66
- "@gajae-code/natives-linux-arm64": "0.17.4",
67
- "@gajae-code/natives-linux-x64": "0.17.4",
68
- "@gajae-code/natives-win32-x64": "0.17.4"
64
+ "@gajae-code/natives-darwin-arm64": "0.17.5",
65
+ "@gajae-code/natives-darwin-x64": "0.17.5",
66
+ "@gajae-code/natives-linux-arm64": "0.17.5",
67
+ "@gajae-code/natives-linux-x64": "0.17.5",
68
+ "@gajae-code/natives-win32-x64": "0.17.5"
69
69
  },
70
70
  "exports": {
71
71
  ".": {