@oh-my-pi/pi-natives 18.14.0 → 18.14.2

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.
Files changed (2) hide show
  1. package/native/index.d.ts +15 -0
  2. package/package.json +7 -7
package/native/index.d.ts CHANGED
@@ -252,6 +252,14 @@ export declare class EditStore {
252
252
  export declare class FileLock {
253
253
  /** Try to acquire `path` without blocking. */
254
254
  static tryAcquire(path: string): FileLock
255
+ /**
256
+ * Whether any handle, in any process including this one, holds `path`.
257
+ *
258
+ * Observes without locking or opening the lock: a `connect(2)` probe on
259
+ * Linux, an `F_GETLK` query on other Unix platforms, a `\BaseNamedObjects`
260
+ * directory listing on Windows. A concurrent `tryAcquire()` never meets it.
261
+ */
262
+ static isHeld(path: string): boolean
255
263
  /** Whether this handle owns the requested lock. */
256
264
  get acquired(): boolean
257
265
  /** Release this handle's ownership without affecting a successor. */
@@ -2659,6 +2667,13 @@ export interface ListWorkspaceOptions {
2659
2667
  hidden?: boolean
2660
2668
  /** Respect .gitignore files. Default: true. */
2661
2669
  gitignore?: boolean
2670
+ /**
2671
+ * Prune dependency, VCS, build-output, and cache directory names
2672
+ * (`node_modules`, `.git`, `dist`, `target`, …); `false` lists them too.
2673
+ * Hidden entries still require `hidden: true`; ignored entries require
2674
+ * `gitignore: false`. Default: true.
2675
+ */
2676
+ pruneExcludedDirs?: boolean
2662
2677
  /**
2663
2678
  * Also surface AGENTS.md files in directories at depth 1..=4, even when
2664
2679
  * gitignore would otherwise hide the file. Walks deeper than `maxDepth`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-natives",
3
- "version": "18.14.0",
3
+ "version": "18.14.2",
4
4
  "description": "Native Rust bindings for PDF conversion, audio, WebRTC, grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
5
5
  "type": "module",
6
6
  "homepage": "https://omp.sh",
@@ -114,11 +114,11 @@
114
114
  }
115
115
  },
116
116
  "optionalDependencies": {
117
- "@oh-my-pi/pi-natives-linux-x64": "18.14.0",
118
- "@oh-my-pi/pi-natives-linux-arm64": "18.14.0",
119
- "@oh-my-pi/pi-natives-darwin-x64": "18.14.0",
120
- "@oh-my-pi/pi-natives-darwin-arm64": "18.14.0",
121
- "@oh-my-pi/pi-natives-win32-x64": "18.14.0",
122
- "@oh-my-pi/pi-natives-win32-arm64": "18.14.0"
117
+ "@oh-my-pi/pi-natives-linux-x64": "18.14.2",
118
+ "@oh-my-pi/pi-natives-linux-arm64": "18.14.2",
119
+ "@oh-my-pi/pi-natives-darwin-x64": "18.14.2",
120
+ "@oh-my-pi/pi-natives-darwin-arm64": "18.14.2",
121
+ "@oh-my-pi/pi-natives-win32-x64": "18.14.2",
122
+ "@oh-my-pi/pi-natives-win32-arm64": "18.14.2"
123
123
  }
124
124
  }