@gajae-code/natives 0.12.5 → 0.12.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 CHANGED
@@ -491,7 +491,7 @@ export declare function __piNativesPublishOutcomeV1(): void
491
491
  * `packages/natives/native/index.js` (which derives the name from
492
492
  * `package.json#version`).
493
493
  */
494
- export declare function __piNativesV0_12_5(): void
494
+ export declare function __piNativesV0_12_6(): void
495
495
 
496
496
  /**
497
497
  * Apply conservative pre-execution rewrites to a bash command.
@@ -840,7 +840,7 @@ export declare function encodeSixel(bytes: Uint8Array, targetWidthPx: number, ta
840
840
  * caller-planned root remains in place while its opened descriptor is
841
841
  * authoritative throughout recursive removal.
842
842
  */
843
- export declare function exactRemoveDirectoryTree(path: string, snapshot: NativeDirectoryTreeSnapshot): NativeExactUnlinkResult
843
+ export declare function exactRemoveDirectoryTree(path: string, snapshot: NativeDirectoryTreeSnapshot, parentIdentity?: NativeDirectoryParentIdentity | undefined | null): NativeExactUnlinkResult
844
844
 
845
845
  /**
846
846
  * Restore only the detached object that still has the supplied platform
@@ -1659,6 +1659,11 @@ export type NativeCanonicalDirectoryIdentity =
1659
1659
  code: "not_found" | "not_directory" | "not_utf8" | "network_unsupported" | "identity_unavailable" | "io_error";
1660
1660
  }
1661
1661
 
1662
+ export interface NativeDirectoryParentIdentity {
1663
+ dev: bigint
1664
+ ino: bigint
1665
+ }
1666
+
1662
1667
  /**
1663
1668
  * A deterministic, no-follow description of a directory tree. `relative_path`
1664
1669
  * is UTF-8, uses `/` separators, and is empty only for the root entry.
@@ -1668,6 +1673,7 @@ export interface NativeDirectoryTreeEntry {
1668
1673
  kind: string
1669
1674
  dev: string
1670
1675
  ino: string
1676
+ nlink: string
1671
1677
  size: string
1672
1678
  mtimeNs: string
1673
1679
  ctimeNs: string
@@ -1697,6 +1703,9 @@ export interface NativeDirectoryTreeSnapshot {
1697
1703
  export interface NativeExactFileIdentity {
1698
1704
  dev: bigint
1699
1705
  ino: bigint
1706
+ nlink?: bigint
1707
+ parentDev?: bigint
1708
+ parentIno?: bigint
1700
1709
  size: bigint
1701
1710
  mtimeNs: bigint
1702
1711
  /**
@@ -2180,6 +2189,17 @@ export interface ShellRunResult {
2180
2189
  cancelled: boolean
2181
2190
  /** Whether the command timed out before completion. */
2182
2191
  timedOut: boolean
2192
+ /**
2193
+ * Whether the core output reader failed to settle before execution
2194
+ * returned.
2195
+ */
2196
+ outputCaptureIncomplete?: boolean
2197
+ /** Chunks dropped before the JavaScript output callback could receive them. */
2198
+ droppedOutputChunks?: number
2199
+ /** Bytes dropped before the JavaScript output callback could receive them. */
2200
+ droppedOutputBytes?: number
2201
+ /** Whether a loss counter exceeded JavaScript's exact integer range. */
2202
+ outputLossCountSaturated?: boolean
2183
2203
  /**
2184
2204
  * When the minimizer rewrote the captured output, this carries the
2185
2205
  * original buffer + telemetry so the session layer can persist it as
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 __piNativesV0_12_5 = nativeBindings.__piNativesV0_12_5;
33
+ export const __piNativesV0_12_6 = nativeBindings.__piNativesV0_12_6;
34
34
  export const applyBashFixups = nativeBindings.applyBashFixups;
35
35
  export const applyOwnerOnlyFdSecurity = nativeBindings.applyOwnerOnlyFdSecurity;
36
36
  export const applyOwnerOnlyPathSecurity = nativeBindings.applyOwnerOnlyPathSecurity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gajae-code/natives",
3
- "version": "0.12.5",
3
+ "version": "0.12.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.12.5",
65
- "@gajae-code/natives-darwin-x64": "0.12.5",
66
- "@gajae-code/natives-linux-arm64": "0.12.5",
67
- "@gajae-code/natives-linux-x64": "0.12.5",
68
- "@gajae-code/natives-win32-x64": "0.12.5"
64
+ "@gajae-code/natives-darwin-arm64": "0.12.6",
65
+ "@gajae-code/natives-darwin-x64": "0.12.6",
66
+ "@gajae-code/natives-linux-arm64": "0.12.6",
67
+ "@gajae-code/natives-linux-x64": "0.12.6",
68
+ "@gajae-code/natives-win32-x64": "0.12.6"
69
69
  },
70
70
  "exports": {
71
71
  ".": {