@bastani/atomic-natives 0.9.87 → 0.9.88-alpha.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.88-alpha.1] - 2026-11-16
6
+
7
+ ### Added
8
+
9
+ - Added `tryAdvisoryLock(path, waitMs)`: takes the exclusive operating-system advisory lock of a file (`flock` on Unix, `LockFileEx` on Windows), created when missing and never removed, waiting up to `waitMs` while another holder keeps it, and returns an `AdvisoryLock` whose `release()` gives it up, or `null`. The kernel releases it when its holder dies. On Unix, new lock files are readable and writable only by their owner. Added `renameNoReplace(from, to)`, a rename that returns `false` and moves nothing when anything is at `to` ([#5193](https://github.com/bastani-inc/atomic/issues/5193)).
10
+ - Added `CommandResourceOptions.keepBackgroundOnExit`: when `true`, `TaskSupervisor.startCommandTask` leaves backgrounded descendant processes running when the command leader exits on its own, including processes that write to stdout or stderr later; cancellation, owner close, or host exit still terminates the tree while the leader is running. Added `retainRecordOnStart` to keep a command's record and output available until `releaseTaskRecord`, including when many commands finish before the caller can read their results ([#5202](https://github.com/bastani-inc/atomic/issues/5202)).
11
+ - Added `ProcessTreeContainment.release()`: gives the job up without ending the processes still in it, for a caller that ends the tree only when it stops a command.
12
+ - Added `containProcessTree(pid)`: on Windows, puts a running process and every process it starts from then on in a kill-on-close job that allows no breakaway, the containment the task supervisor gives its commands, and returns a `ProcessTreeContainment` whose `terminate()` ends them all, `activeProcesses()` counts those still running and `close()` releases the job, ending any left; `null` on other platforms and for a process that is gone or cannot be assigned.
13
+ - Added `processCreationTime(pid)`: on Windows, the creation time of a running process, as the decimal count of 100-nanosecond intervals since 1601 UTC; `null` for a process that is gone or cannot be queried, and on other platforms ([#5141](https://github.com/bastani-inc/atomic/issues/5141)).
14
+
15
+ ### Fixed
16
+
17
+ - Supervised commands on Windows no longer wait for a polling interval after their input worker finishes; stalled workers still have a bounded cleanup wait ([#5202](https://github.com/bastani-inc/atomic/issues/5202)).
18
+
5
19
  ## [0.9.72] - 2026-11-08
6
20
 
7
21
  ### Added
package/native/index.d.ts CHANGED
@@ -9,10 +9,26 @@
9
9
  */
10
10
  export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1' | undefined
11
11
 
12
+ /**
13
+ * An exclusive advisory lock this process holds on an open file (#5193), released by {@link AdvisoryLock.release},
14
+ * when the object is collected, or by the kernel when this process dies.
15
+ */
16
+ export declare class AdvisoryLock {
17
+ /** Releases the lock and closes its file; releasing it again does nothing. */
18
+ release(): void
19
+ }
20
+
12
21
  export declare class HostSession {}
13
22
 
14
23
  export declare class OwnerLease {}
15
24
 
25
+ export declare class ProcessTreeContainment {
26
+ terminate(): boolean
27
+ activeProcesses(): number
28
+ release(): boolean
29
+ close(): void
30
+ }
31
+
16
32
  export declare class PtySession {
17
33
  constructor()
18
34
  start(options: PtyStartOptions, onChunk?: ((error: Error | null, chunk: string) => void) | undefined | null): Promise<PtyRunResult>
@@ -245,6 +261,8 @@ export interface CommandResourceOptions {
245
261
  * Ignored on Windows, whose Job containment terminates immediately rather than sending TERM.
246
262
  */
247
263
  terminationGraceMs?: number
264
+ keepBackgroundOnExit?: boolean
265
+ retainRecordOnStart?: boolean
248
266
  }
249
267
 
250
268
  /** Execute this program directly, appending command as one final argument. */
@@ -259,6 +277,8 @@ export type CommandTerminal =
259
277
  | { kind: 'pipe' }
260
278
  | { kind: 'pty'; columns: number; rows: number }
261
279
 
280
+ export declare function containProcessTree(pid: number): ProcessTreeContainment | null
281
+
262
282
  /** A context line (before or after a match). */
263
283
  export interface ContextLine {
264
284
  /** 1-indexed line number in the source file. */
@@ -507,6 +527,12 @@ export interface InputReceipt {
507
527
  */
508
528
  export declare function invalidateFsScanCache(path?: string | undefined | null): void
509
529
 
530
+ /**
531
+ * Sends SIGKILL to every running supervised command's whole process tree at once, for a host about to exit without
532
+ * closing its task owners (#5057). Their cleanup still completes as usual. On Windows, Job objects already end them.
533
+ */
534
+ export declare function killSupervisedProcessTrees(): void
535
+
510
536
  /** A single match in the content. */
511
537
  export interface Match {
512
538
  /** 1-indexed line number. */
@@ -641,6 +667,13 @@ export interface OwnerSnapshot {
641
667
  cursor: Cursor
642
668
  }
643
669
 
670
+ /**
671
+ * When running process `pid` was created, as the decimal count of 100-nanosecond intervals since 1601-01-01 UTC (the
672
+ * Windows process creation time), or `null` where that cannot be read: on other platforms, for a process that is gone
673
+ * or has exited, and for one this process may not query.
674
+ */
675
+ export declare function processCreationTime(pid: number): string | null
676
+
644
677
  export interface PromptRoute {
645
678
  sessionId: string
646
679
  promptId: string
@@ -667,6 +700,12 @@ export interface PtyStartOptions {
667
700
  closeStdinAfterCommand?: boolean
668
701
  }
669
702
 
703
+ /**
704
+ * Renames `from` to `to` only while nothing is at `to` (#5193): `false`, with nothing moved, when something is there,
705
+ * so a moved item is put back without ever replacing another. Throws on any other failure.
706
+ */
707
+ export declare function renameNoReplace(from: string, to: string): boolean
708
+
670
709
  export interface ReportReceipt {
671
710
  reportId: string
672
711
  cursor: Cursor
@@ -803,6 +842,13 @@ export type TaskResult =
803
842
  */
804
843
  export type TerminationCause = 'abort' | 'interrupt' | 'fail-fast-skip' | 'parent-shutdown'
805
844
 
845
+ /**
846
+ * Takes the exclusive advisory lock of the file at `path` (#5193): `flock` on Unix, `LockFileEx` on Windows. The
847
+ * file is created when missing and never truncated or removed. Tried at once, then again until `waitMs` has passed;
848
+ * `null` while another holder keeps it. Throws when the file cannot be opened or locked.
849
+ */
850
+ export declare function tryAdvisoryLock(path: string, waitMs: number): AdvisoryLock | null
851
+
806
852
  export type WaitOutcome =
807
853
  | { kind: 'settled'; taskId: string; result: TaskResult }
808
854
  | { kind: 'yielded'; taskId: string; waitId: string; reason: YieldReason }
package/native/index.js CHANGED
@@ -94,8 +94,8 @@ function requireNative() {
94
94
  try {
95
95
  const binding = require('@bastani/atomic-natives-android-arm64')
96
96
  const bindingPackageVersion = require('@bastani/atomic-natives-android-arm64/package.json').version
97
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
98
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
97
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
98
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
99
99
  }
100
100
  return binding
101
101
  } catch (e) {
@@ -110,8 +110,8 @@ function requireNative() {
110
110
  try {
111
111
  const binding = require('@bastani/atomic-natives-android-arm-eabi')
112
112
  const bindingPackageVersion = require('@bastani/atomic-natives-android-arm-eabi/package.json').version
113
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
114
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
113
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
114
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
115
115
  }
116
116
  return binding
117
117
  } catch (e) {
@@ -131,8 +131,8 @@ function requireNative() {
131
131
  try {
132
132
  const binding = require('@bastani/atomic-natives-win32-x64-gnu')
133
133
  const bindingPackageVersion = require('@bastani/atomic-natives-win32-x64-gnu/package.json').version
134
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
135
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
134
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
135
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
136
136
  }
137
137
  return binding
138
138
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('@bastani/atomic-natives-win32-x64-msvc')
149
149
  const bindingPackageVersion = require('@bastani/atomic-natives-win32-x64-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -164,8 +164,8 @@ function requireNative() {
164
164
  try {
165
165
  const binding = require('@bastani/atomic-natives-win32-ia32-msvc')
166
166
  const bindingPackageVersion = require('@bastani/atomic-natives-win32-ia32-msvc/package.json').version
167
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
168
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
167
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
168
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
169
169
  }
170
170
  return binding
171
171
  } catch (e) {
@@ -180,8 +180,8 @@ function requireNative() {
180
180
  try {
181
181
  const binding = require('@bastani/atomic-natives-win32-arm64-msvc')
182
182
  const bindingPackageVersion = require('@bastani/atomic-natives-win32-arm64-msvc/package.json').version
183
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
185
  }
186
186
  return binding
187
187
  } catch (e) {
@@ -199,8 +199,8 @@ function requireNative() {
199
199
  try {
200
200
  const binding = require('@bastani/atomic-natives-darwin-universal')
201
201
  const bindingPackageVersion = require('@bastani/atomic-natives-darwin-universal/package.json').version
202
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
203
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
202
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
203
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
204
204
  }
205
205
  return binding
206
206
  } catch (e) {
@@ -215,8 +215,8 @@ function requireNative() {
215
215
  try {
216
216
  const binding = require('@bastani/atomic-natives-darwin-x64')
217
217
  const bindingPackageVersion = require('@bastani/atomic-natives-darwin-x64/package.json').version
218
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
219
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
218
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
219
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
220
220
  }
221
221
  return binding
222
222
  } catch (e) {
@@ -231,8 +231,8 @@ function requireNative() {
231
231
  try {
232
232
  const binding = require('@bastani/atomic-natives-darwin-arm64')
233
233
  const bindingPackageVersion = require('@bastani/atomic-natives-darwin-arm64/package.json').version
234
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
235
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
234
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
235
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
236
236
  }
237
237
  return binding
238
238
  } catch (e) {
@@ -251,8 +251,8 @@ function requireNative() {
251
251
  try {
252
252
  const binding = require('@bastani/atomic-natives-freebsd-x64')
253
253
  const bindingPackageVersion = require('@bastani/atomic-natives-freebsd-x64/package.json').version
254
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
255
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
254
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
255
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
256
256
  }
257
257
  return binding
258
258
  } catch (e) {
@@ -267,8 +267,8 @@ function requireNative() {
267
267
  try {
268
268
  const binding = require('@bastani/atomic-natives-freebsd-arm64')
269
269
  const bindingPackageVersion = require('@bastani/atomic-natives-freebsd-arm64/package.json').version
270
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
271
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
270
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
271
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
272
  }
273
273
  return binding
274
274
  } catch (e) {
@@ -283,8 +283,8 @@ function requireNative() {
283
283
  try {
284
284
  const binding = require('@bastani/atomic-natives-freebsd-ppc64')
285
285
  const bindingPackageVersion = require('@bastani/atomic-natives-freebsd-ppc64/package.json').version
286
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
286
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
288
  }
289
289
  return binding
290
290
  } catch (e) {
@@ -304,8 +304,8 @@ function requireNative() {
304
304
  try {
305
305
  const binding = require('@bastani/atomic-natives-linux-x64-musl')
306
306
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-x64-musl/package.json').version
307
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
307
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
309
309
  }
310
310
  return binding
311
311
  } catch (e) {
@@ -320,8 +320,8 @@ function requireNative() {
320
320
  try {
321
321
  const binding = require('@bastani/atomic-natives-linux-x64-gnu')
322
322
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-x64-gnu/package.json').version
323
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
323
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
325
325
  }
326
326
  return binding
327
327
  } catch (e) {
@@ -338,8 +338,8 @@ function requireNative() {
338
338
  try {
339
339
  const binding = require('@bastani/atomic-natives-linux-arm64-musl')
340
340
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm64-musl/package.json').version
341
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
341
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
343
343
  }
344
344
  return binding
345
345
  } catch (e) {
@@ -354,8 +354,8 @@ function requireNative() {
354
354
  try {
355
355
  const binding = require('@bastani/atomic-natives-linux-arm64-gnu')
356
356
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm64-gnu/package.json').version
357
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
357
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
359
359
  }
360
360
  return binding
361
361
  } catch (e) {
@@ -372,8 +372,8 @@ function requireNative() {
372
372
  try {
373
373
  const binding = require('@bastani/atomic-natives-linux-arm-musleabihf')
374
374
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm-musleabihf/package.json').version
375
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
375
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
377
377
  }
378
378
  return binding
379
379
  } catch (e) {
@@ -388,8 +388,8 @@ function requireNative() {
388
388
  try {
389
389
  const binding = require('@bastani/atomic-natives-linux-arm-gnueabihf')
390
390
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm-gnueabihf/package.json').version
391
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
391
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
393
393
  }
394
394
  return binding
395
395
  } catch (e) {
@@ -406,8 +406,8 @@ function requireNative() {
406
406
  try {
407
407
  const binding = require('@bastani/atomic-natives-linux-loong64-musl')
408
408
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-loong64-musl/package.json').version
409
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
409
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
411
411
  }
412
412
  return binding
413
413
  } catch (e) {
@@ -422,8 +422,8 @@ function requireNative() {
422
422
  try {
423
423
  const binding = require('@bastani/atomic-natives-linux-loong64-gnu')
424
424
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-loong64-gnu/package.json').version
425
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
425
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
427
427
  }
428
428
  return binding
429
429
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('@bastani/atomic-natives-linux-riscv64-musl')
442
442
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-riscv64-musl/package.json').version
443
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('@bastani/atomic-natives-linux-riscv64-gnu')
458
458
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-riscv64-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -473,8 +473,8 @@ function requireNative() {
473
473
  try {
474
474
  const binding = require('@bastani/atomic-natives-linux-ppc64-gnu')
475
475
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-ppc64-gnu/package.json').version
476
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
477
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
476
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
477
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
478
478
  }
479
479
  return binding
480
480
  } catch (e) {
@@ -489,8 +489,8 @@ function requireNative() {
489
489
  try {
490
490
  const binding = require('@bastani/atomic-natives-linux-s390x-gnu')
491
491
  const bindingPackageVersion = require('@bastani/atomic-natives-linux-s390x-gnu/package.json').version
492
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
493
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
492
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
493
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
494
494
  }
495
495
  return binding
496
496
  } catch (e) {
@@ -509,8 +509,8 @@ function requireNative() {
509
509
  try {
510
510
  const binding = require('@bastani/atomic-natives-openharmony-arm64')
511
511
  const bindingPackageVersion = require('@bastani/atomic-natives-openharmony-arm64/package.json').version
512
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
513
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
512
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
513
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
514
514
  }
515
515
  return binding
516
516
  } catch (e) {
@@ -525,8 +525,8 @@ function requireNative() {
525
525
  try {
526
526
  const binding = require('@bastani/atomic-natives-openharmony-x64')
527
527
  const bindingPackageVersion = require('@bastani/atomic-natives-openharmony-x64/package.json').version
528
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
529
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
528
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
529
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
530
530
  }
531
531
  return binding
532
532
  } catch (e) {
@@ -541,8 +541,8 @@ function requireNative() {
541
541
  try {
542
542
  const binding = require('@bastani/atomic-natives-openharmony-arm')
543
543
  const bindingPackageVersion = require('@bastani/atomic-natives-openharmony-arm/package.json').version
544
- if (bindingPackageVersion !== '0.9.87' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
545
- throw new Error(`Native binding package version mismatch, expected 0.9.87 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
544
+ if (bindingPackageVersion !== '0.9.88-alpha.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
545
+ throw new Error(`Native binding package version mismatch, expected 0.9.88-alpha.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
546
546
  }
547
547
  return binding
548
548
  } catch (e) {
@@ -835,8 +835,10 @@ function __napiStampBindingTarget(exportsObject, target) {
835
835
  // linked import resolves to `undefined`.
836
836
  module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget)
837
837
  module.exports = nativeBinding
838
+ module.exports.AdvisoryLock = nativeBinding.AdvisoryLock
838
839
  module.exports.HostSession = nativeBinding.HostSession
839
840
  module.exports.OwnerLease = nativeBinding.OwnerLease
841
+ module.exports.ProcessTreeContainment = nativeBinding.ProcessTreeContainment
840
842
  module.exports.PtySession = nativeBinding.PtySession
841
843
  module.exports.RunnerLease = nativeBinding.RunnerLease
842
844
  module.exports.StdinLease = nativeBinding.StdinLease
@@ -854,13 +856,18 @@ module.exports.blockRangeAt = nativeBinding.blockRangeAt
854
856
  module.exports.CancelCause = nativeBinding.CancelCause
855
857
  module.exports.CommandOutputSink = nativeBinding.CommandOutputSink
856
858
  module.exports.CommandTaskKind = nativeBinding.CommandTaskKind
859
+ module.exports.containProcessTree = nativeBinding.containProcessTree
857
860
  module.exports.FileType = nativeBinding.FileType
858
861
  module.exports.glob = nativeBinding.glob
859
862
  module.exports.grep = nativeBinding.grep
860
863
  module.exports.GrepOutputMode = nativeBinding.GrepOutputMode
861
864
  module.exports.hasMatch = nativeBinding.hasMatch
862
865
  module.exports.invalidateFsScanCache = nativeBinding.invalidateFsScanCache
866
+ module.exports.killSupervisedProcessTrees = nativeBinding.killSupervisedProcessTrees
863
867
  module.exports.OwnerCloseCause = nativeBinding.OwnerCloseCause
868
+ module.exports.processCreationTime = nativeBinding.processCreationTime
869
+ module.exports.renameNoReplace = nativeBinding.renameNoReplace
864
870
  module.exports.search = nativeBinding.search
865
871
  module.exports.TerminationCause = nativeBinding.TerminationCause
872
+ module.exports.tryAdvisoryLock = nativeBinding.tryAdvisoryLock
866
873
  module.exports.YieldReason = nativeBinding.YieldReason
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic-natives",
3
- "version": "0.9.87",
3
+ "version": "0.9.88-alpha.1",
4
4
  "description": "Native Rust bindings for Atomic via N-API",
5
5
  "homepage": "https://github.com/bastani-inc/atomic",
6
6
  "author": "Bastani",
@@ -59,13 +59,13 @@
59
59
  "access": "public"
60
60
  },
61
61
  "optionalDependencies": {
62
- "@bastani/atomic-natives-win32-x64-msvc": "0.9.87",
63
- "@bastani/atomic-natives-darwin-x64": "0.9.87",
64
- "@bastani/atomic-natives-linux-x64-gnu": "0.9.87",
65
- "@bastani/atomic-natives-linux-arm64-gnu": "0.9.87",
66
- "@bastani/atomic-natives-darwin-arm64": "0.9.87",
67
- "@bastani/atomic-natives-win32-arm64-msvc": "0.9.87",
68
- "@bastani/atomic-natives-linux-x64-musl": "0.9.87",
69
- "@bastani/atomic-natives-linux-arm64-musl": "0.9.87"
62
+ "@bastani/atomic-natives-win32-x64-msvc": "0.9.88-alpha.1",
63
+ "@bastani/atomic-natives-darwin-x64": "0.9.88-alpha.1",
64
+ "@bastani/atomic-natives-linux-x64-gnu": "0.9.88-alpha.1",
65
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.9.88-alpha.1",
66
+ "@bastani/atomic-natives-darwin-arm64": "0.9.88-alpha.1",
67
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.9.88-alpha.1",
68
+ "@bastani/atomic-natives-linux-x64-musl": "0.9.88-alpha.1",
69
+ "@bastani/atomic-natives-linux-arm64-musl": "0.9.88-alpha.1"
70
70
  }
71
71
  }