@gajae-code/natives 0.17.2 → 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_2(): void
592
+ export declare function __piNativesV0_17_5(): void
587
593
 
588
594
  /**
589
595
  * Apply conservative pre-execution rewrites to a bash command.
@@ -1962,6 +1968,12 @@ export interface NativeExactFileIdentity {
1962
1968
  * hard links. Remaining links are retained after exact quarantine cleanup.
1963
1969
  */
1964
1970
  allowHardLink?: boolean
1971
+ /**
1972
+ * Require the authorized regular file to retain at least two hard links at
1973
+ * every identity check. This is used by cleanup paths that remove only a
1974
+ * surplus alias while preserving the live transcript link.
1975
+ */
1976
+ requireHardLink?: boolean
1965
1977
  }
1966
1978
 
1967
1979
  /** Typed result of an identity-bound regular-file deletion or directory detach. */
@@ -2251,6 +2263,8 @@ export interface PtyStartOptions {
2251
2263
  cwd?: string
2252
2264
  /** Environment variables for this command. */
2253
2265
  env?: Record<string, string>
2266
+ /** Environment variable names to remove from the child process. */
2267
+ unsetEnv?: Array<string>
2254
2268
  /** Timeout in milliseconds before cancelling. */
2255
2269
  timeoutMs?: number
2256
2270
  /** Abort signal for cancelling the operation. */
@@ -2320,6 +2334,24 @@ export interface RecoveryFsPublishSyncFailure {
2320
2334
  kind: string
2321
2335
  }
2322
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
+
2323
2355
  export interface RecoveryFsResult {
2324
2356
  ok: boolean
2325
2357
  code?: string
@@ -2516,6 +2548,8 @@ export interface ShellRunOptions {
2516
2548
  cwd?: string
2517
2549
  /** Environment variables to apply for this command only. */
2518
2550
  env?: Record<string, string>
2551
+ /** Environment variable names to mask for this command only. */
2552
+ unsetEnv?: Array<string>
2519
2553
  /** Timeout in milliseconds before cancelling the command. */
2520
2554
  timeoutMs?: number
2521
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_2 = nativeBindings.__piNativesV0_17_2;
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.2",
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.2",
65
- "@gajae-code/natives-darwin-x64": "0.17.2",
66
- "@gajae-code/natives-linux-arm64": "0.17.2",
67
- "@gajae-code/natives-linux-x64": "0.17.2",
68
- "@gajae-code/natives-win32-x64": "0.17.2"
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
  ".": {