@auv-js/cli 0.0.22 → 0.0.25
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/README.md +75 -0
- package/binding.d.ts +53 -0
- package/binding.js +60 -55
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/setup.d.ts +22 -0
- package/dist/setup.js +38 -0
- package/dist/setup.js.map +1 -0
- package/package.json +15 -8
package/README.md
CHANGED
|
@@ -19,6 +19,52 @@ import { startAuv } from '@auv-js/sdk/node'
|
|
|
19
19
|
const daemon = await startAuv({ binaryPath: binaryPath() })
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
On macOS, the native binding exposes the same helper setup module as the CLI:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
installMacosHelper,
|
|
27
|
+
macosHelperStatus,
|
|
28
|
+
openMacosHelperAccessibilitySettings,
|
|
29
|
+
openMacosHelperBackgroundItemsSettings,
|
|
30
|
+
uninstallMacosHelper,
|
|
31
|
+
} from '@auv-js/cli'
|
|
32
|
+
|
|
33
|
+
const before = await macosHelperStatus()
|
|
34
|
+
const installed = await installMacosHelper()
|
|
35
|
+
|
|
36
|
+
if (installed.state === 'requires-approval') {
|
|
37
|
+
openMacosHelperBackgroundItemsSettings()
|
|
38
|
+
}
|
|
39
|
+
else if (installed.state === 'running') {
|
|
40
|
+
openMacosHelperAccessibilitySettings()
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Removes only the helper app and its Accessibility decision. Enrollment is
|
|
44
|
+
// retained so a later reinstall does not require credential entry again.
|
|
45
|
+
await uninstallMacosHelper()
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`installMacosHelper()` validates and installs the embedded app under the
|
|
49
|
+
current user's AUV Application Support directory, then registers its embedded
|
|
50
|
+
LaunchAgent through `SMAppService`. It needs neither `sudo` nor an
|
|
51
|
+
administrator password. Development bindings report `helperEmbedded=false`;
|
|
52
|
+
official macOS release bindings carry the same signed and notarized helper app
|
|
53
|
+
as the CLI.
|
|
54
|
+
|
|
55
|
+
The CLI and every package that bundles `@auv-js/cli` are independent frontends
|
|
56
|
+
for one per-user helper. Any helper whose declared protocol range includes this
|
|
57
|
+
binding's protocol is usable, whatever its version. `installMacosHelper()`
|
|
58
|
+
replaces it only when it is older than the embedded helper or does not support
|
|
59
|
+
this protocol, and never downgrades it. If the installed helper dropped this
|
|
60
|
+
binding's protocol, status reports `frontend-outdated`: update this package
|
|
61
|
+
rather than the helper.
|
|
62
|
+
|
|
63
|
+
`uninstallMacosHelper()` waits for ServiceManagement to stop any in-flight
|
|
64
|
+
helper process, resets the helper bundle's Accessibility decision, and removes
|
|
65
|
+
only the installed app. It preserves enrollment and all other AUV Application
|
|
66
|
+
Support content.
|
|
67
|
+
|
|
22
68
|
## Electron packaging
|
|
23
69
|
|
|
24
70
|
Do not execute the binary from inside `app.asar`. During packaging, copy the
|
|
@@ -37,6 +83,35 @@ entrypoint at runtime, keep `*.node` files outside the ASAR with the packager's
|
|
|
37
83
|
native-module/`asarUnpack` support. Keep the SDK independent of packaging policy
|
|
38
84
|
so browser and remote-client consumers do not install a native executable.
|
|
39
85
|
|
|
86
|
+
### Shipping your own macOS helper
|
|
87
|
+
|
|
88
|
+
An application may ship the macOS helper under its own name, icon, bundle
|
|
89
|
+
identifier, and Developer ID team instead of the official `AUV Helper`. Build
|
|
90
|
+
it with `crates/auv-device-helper-macos/package/package.sh` and its
|
|
91
|
+
`AUV_MACOS_HELPER_*` overrides, notarize and staple it, and embed the unpacked
|
|
92
|
+
app in the application bundle without re-signing it (for example
|
|
93
|
+
`YourApp.app/Contents/Library/Helpers/`). Pass that absolute path to both the
|
|
94
|
+
daemon and setup:
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
import path from 'node:path'
|
|
98
|
+
import process from 'node:process'
|
|
99
|
+
|
|
100
|
+
import { installMacosHelper } from '@auv-js/cli'
|
|
101
|
+
import { startAuv } from '@auv-js/sdk/node'
|
|
102
|
+
|
|
103
|
+
const helperApp = path.join(process.resourcesPath, '..', 'Library', 'Helpers', 'Your Computer Use.app')
|
|
104
|
+
|
|
105
|
+
const status = await installMacosHelper({ helperApp })
|
|
106
|
+
const daemon = await startAuv({ binaryPath, platforms: { macos: { helperApp } } })
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
AUV reads the bundle identifier and Team ID from that app's signature, installs
|
|
110
|
+
a copy under `~/Library/Application Support/<bundle identifier>/`, and the
|
|
111
|
+
daemon trusts only that identity. The CLI equivalent is
|
|
112
|
+
`auv setup macos-helper install --helper-app <path>`. See the
|
|
113
|
+
[helper setup reference](../../../docs/ai/references/session-api/2026-10-01-macos-helper-setup.md#shipped-helper-identity).
|
|
114
|
+
|
|
40
115
|
Supported packages currently cover macOS arm64/x64, glibc Linux arm64/x64, and
|
|
41
116
|
Windows x64. Installing with optional dependencies disabled leaves no binary;
|
|
42
117
|
`binaryPath()` reports that case with an actionable error.
|
package/binding.d.ts
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Install and register the signed AUV Helper embedded in this build, or
|
|
5
|
+
* `helperApp` when the embedding application ships its own helper.
|
|
6
|
+
*
|
|
7
|
+
* The work runs off the JavaScript thread because archive verification and
|
|
8
|
+
* ServiceManagement registration perform blocking platform calls.
|
|
9
|
+
*/
|
|
10
|
+
export declare function installMacosHelper(options?: MacosHelperOptions | undefined | null): Promise<MacosHelperStatus>
|
|
11
|
+
|
|
12
|
+
/** Which helper app setup manages. */
|
|
13
|
+
export interface MacosHelperOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Absolute path of the unpacked, notarized helper app shipped by the
|
|
16
|
+
* application embedding AUV. Omit it to manage the official AUV Helper
|
|
17
|
+
* embedded in release builds. Pass the same path to `startAuv({ platforms:
|
|
18
|
+
* { macos: { helperApp } } })` so the daemon trusts that helper.
|
|
19
|
+
*/
|
|
20
|
+
helperApp?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Inspect the AUV Helper installation used for locked macOS sessions.
|
|
25
|
+
*
|
|
26
|
+
* Signature validation and ServiceManagement inspection run off the
|
|
27
|
+
* JavaScript thread because they perform blocking platform calls.
|
|
28
|
+
*/
|
|
29
|
+
export declare function macosHelperStatus(options?: MacosHelperOptions | undefined | null): Promise<MacosHelperStatus>
|
|
30
|
+
|
|
31
|
+
export interface MacosHelperStatus {
|
|
32
|
+
state: string
|
|
33
|
+
detail?: string
|
|
34
|
+
/**
|
|
35
|
+
* Whether this binding can install a helper: one embedded by a release
|
|
36
|
+
* build, or `helperApp`.
|
|
37
|
+
*/
|
|
38
|
+
helperEmbedded: boolean
|
|
39
|
+
}
|
|
40
|
+
|
|
3
41
|
/**
|
|
4
42
|
* Return the version embedded into the native binding.
|
|
5
43
|
*
|
|
@@ -7,3 +45,18 @@
|
|
|
7
45
|
* a partially published release fails before it starts an AUV sidecar.
|
|
8
46
|
*/
|
|
9
47
|
export declare function nativePackageVersion(): string
|
|
48
|
+
|
|
49
|
+
/** Open System Settings at Privacy & Security > Accessibility. */
|
|
50
|
+
export declare function openMacosHelperAccessibilitySettings(): void
|
|
51
|
+
|
|
52
|
+
/** Open System Settings at General > Login Items & Extensions. */
|
|
53
|
+
export declare function openMacosHelperBackgroundItemsSettings(options?: MacosHelperOptions | undefined | null): void
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Unregister the helper, reset its Accessibility decision, and remove its app.
|
|
57
|
+
*
|
|
58
|
+
* Enrollment remains in the current user's login Keychain. The work runs off
|
|
59
|
+
* the JavaScript thread because it waits for ServiceManagement termination and
|
|
60
|
+
* performs filesystem and TCC operations.
|
|
61
|
+
*/
|
|
62
|
+
export declare function uninstallMacosHelper(options?: MacosHelperOptions | undefined | null): Promise<MacosHelperStatus>
|
package/binding.js
CHANGED
|
@@ -81,8 +81,8 @@ function requireNative() {
|
|
|
81
81
|
try {
|
|
82
82
|
const binding = require('@auv-js/cli-android-arm64')
|
|
83
83
|
const bindingPackageVersion = require('@auv-js/cli-android-arm64/package.json').version
|
|
84
|
-
if (bindingPackageVersion !== '0.0.
|
|
85
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
84
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
85
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
86
86
|
}
|
|
87
87
|
return binding
|
|
88
88
|
} catch (e) {
|
|
@@ -97,8 +97,8 @@ function requireNative() {
|
|
|
97
97
|
try {
|
|
98
98
|
const binding = require('@auv-js/cli-android-arm-eabi')
|
|
99
99
|
const bindingPackageVersion = require('@auv-js/cli-android-arm-eabi/package.json').version
|
|
100
|
-
if (bindingPackageVersion !== '0.0.
|
|
101
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
100
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
101
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
102
102
|
}
|
|
103
103
|
return binding
|
|
104
104
|
} catch (e) {
|
|
@@ -118,8 +118,8 @@ function requireNative() {
|
|
|
118
118
|
try {
|
|
119
119
|
const binding = require('@auv-js/cli-win32-x64-gnu')
|
|
120
120
|
const bindingPackageVersion = require('@auv-js/cli-win32-x64-gnu/package.json').version
|
|
121
|
-
if (bindingPackageVersion !== '0.0.
|
|
122
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
121
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
122
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
123
123
|
}
|
|
124
124
|
return binding
|
|
125
125
|
} catch (e) {
|
|
@@ -134,8 +134,8 @@ function requireNative() {
|
|
|
134
134
|
try {
|
|
135
135
|
const binding = require('@auv-js/cli-win32-x64-msvc')
|
|
136
136
|
const bindingPackageVersion = require('@auv-js/cli-win32-x64-msvc/package.json').version
|
|
137
|
-
if (bindingPackageVersion !== '0.0.
|
|
138
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
137
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
138
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
139
139
|
}
|
|
140
140
|
return binding
|
|
141
141
|
} catch (e) {
|
|
@@ -151,8 +151,8 @@ function requireNative() {
|
|
|
151
151
|
try {
|
|
152
152
|
const binding = require('@auv-js/cli-win32-ia32-msvc')
|
|
153
153
|
const bindingPackageVersion = require('@auv-js/cli-win32-ia32-msvc/package.json').version
|
|
154
|
-
if (bindingPackageVersion !== '0.0.
|
|
155
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
154
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
155
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
156
156
|
}
|
|
157
157
|
return binding
|
|
158
158
|
} catch (e) {
|
|
@@ -167,8 +167,8 @@ function requireNative() {
|
|
|
167
167
|
try {
|
|
168
168
|
const binding = require('@auv-js/cli-win32-arm64-msvc')
|
|
169
169
|
const bindingPackageVersion = require('@auv-js/cli-win32-arm64-msvc/package.json').version
|
|
170
|
-
if (bindingPackageVersion !== '0.0.
|
|
171
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
170
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
172
|
}
|
|
173
173
|
return binding
|
|
174
174
|
} catch (e) {
|
|
@@ -186,8 +186,8 @@ function requireNative() {
|
|
|
186
186
|
try {
|
|
187
187
|
const binding = require('@auv-js/cli-darwin-universal')
|
|
188
188
|
const bindingPackageVersion = require('@auv-js/cli-darwin-universal/package.json').version
|
|
189
|
-
if (bindingPackageVersion !== '0.0.
|
|
190
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
189
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
190
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
191
191
|
}
|
|
192
192
|
return binding
|
|
193
193
|
} catch (e) {
|
|
@@ -202,8 +202,8 @@ function requireNative() {
|
|
|
202
202
|
try {
|
|
203
203
|
const binding = require('@auv-js/cli-darwin-x64')
|
|
204
204
|
const bindingPackageVersion = require('@auv-js/cli-darwin-x64/package.json').version
|
|
205
|
-
if (bindingPackageVersion !== '0.0.
|
|
206
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
205
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
206
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
207
207
|
}
|
|
208
208
|
return binding
|
|
209
209
|
} catch (e) {
|
|
@@ -218,8 +218,8 @@ function requireNative() {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = require('@auv-js/cli-darwin-arm64')
|
|
220
220
|
const bindingPackageVersion = require('@auv-js/cli-darwin-arm64/package.json').version
|
|
221
|
-
if (bindingPackageVersion !== '0.0.
|
|
222
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
221
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
222
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
223
223
|
}
|
|
224
224
|
return binding
|
|
225
225
|
} catch (e) {
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@auv-js/cli-freebsd-x64')
|
|
240
240
|
const bindingPackageVersion = require('@auv-js/cli-freebsd-x64/package.json').version
|
|
241
|
-
if (bindingPackageVersion !== '0.0.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
241
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
243
243
|
}
|
|
244
244
|
return binding
|
|
245
245
|
} catch (e) {
|
|
@@ -254,8 +254,8 @@ function requireNative() {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = require('@auv-js/cli-freebsd-arm64')
|
|
256
256
|
const bindingPackageVersion = require('@auv-js/cli-freebsd-arm64/package.json').version
|
|
257
|
-
if (bindingPackageVersion !== '0.0.
|
|
258
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
257
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
258
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
259
259
|
}
|
|
260
260
|
return binding
|
|
261
261
|
} catch (e) {
|
|
@@ -275,8 +275,8 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require('@auv-js/cli-linux-x64-musl')
|
|
277
277
|
const bindingPackageVersion = require('@auv-js/cli-linux-x64-musl/package.json').version
|
|
278
|
-
if (bindingPackageVersion !== '0.0.
|
|
279
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
278
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
279
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
280
280
|
}
|
|
281
281
|
return binding
|
|
282
282
|
} catch (e) {
|
|
@@ -291,8 +291,8 @@ function requireNative() {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = require('@auv-js/cli-linux-x64-gnu')
|
|
293
293
|
const bindingPackageVersion = require('@auv-js/cli-linux-x64-gnu/package.json').version
|
|
294
|
-
if (bindingPackageVersion !== '0.0.
|
|
295
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
294
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
295
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
296
296
|
}
|
|
297
297
|
return binding
|
|
298
298
|
} catch (e) {
|
|
@@ -309,8 +309,8 @@ function requireNative() {
|
|
|
309
309
|
try {
|
|
310
310
|
const binding = require('@auv-js/cli-linux-arm64-musl')
|
|
311
311
|
const bindingPackageVersion = require('@auv-js/cli-linux-arm64-musl/package.json').version
|
|
312
|
-
if (bindingPackageVersion !== '0.0.
|
|
313
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
312
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
313
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
314
314
|
}
|
|
315
315
|
return binding
|
|
316
316
|
} catch (e) {
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@auv-js/cli-linux-arm64-gnu')
|
|
327
327
|
const bindingPackageVersion = require('@auv-js/cli-linux-arm64-gnu/package.json').version
|
|
328
|
-
if (bindingPackageVersion !== '0.0.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
328
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
330
330
|
}
|
|
331
331
|
return binding
|
|
332
332
|
} catch (e) {
|
|
@@ -343,8 +343,8 @@ function requireNative() {
|
|
|
343
343
|
try {
|
|
344
344
|
const binding = require('@auv-js/cli-linux-arm-musleabihf')
|
|
345
345
|
const bindingPackageVersion = require('@auv-js/cli-linux-arm-musleabihf/package.json').version
|
|
346
|
-
if (bindingPackageVersion !== '0.0.
|
|
347
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
346
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
347
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
348
348
|
}
|
|
349
349
|
return binding
|
|
350
350
|
} catch (e) {
|
|
@@ -359,8 +359,8 @@ function requireNative() {
|
|
|
359
359
|
try {
|
|
360
360
|
const binding = require('@auv-js/cli-linux-arm-gnueabihf')
|
|
361
361
|
const bindingPackageVersion = require('@auv-js/cli-linux-arm-gnueabihf/package.json').version
|
|
362
|
-
if (bindingPackageVersion !== '0.0.
|
|
363
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
362
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
363
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
364
364
|
}
|
|
365
365
|
return binding
|
|
366
366
|
} catch (e) {
|
|
@@ -377,8 +377,8 @@ function requireNative() {
|
|
|
377
377
|
try {
|
|
378
378
|
const binding = require('@auv-js/cli-linux-loong64-musl')
|
|
379
379
|
const bindingPackageVersion = require('@auv-js/cli-linux-loong64-musl/package.json').version
|
|
380
|
-
if (bindingPackageVersion !== '0.0.
|
|
381
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
380
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
381
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
382
382
|
}
|
|
383
383
|
return binding
|
|
384
384
|
} catch (e) {
|
|
@@ -393,8 +393,8 @@ function requireNative() {
|
|
|
393
393
|
try {
|
|
394
394
|
const binding = require('@auv-js/cli-linux-loong64-gnu')
|
|
395
395
|
const bindingPackageVersion = require('@auv-js/cli-linux-loong64-gnu/package.json').version
|
|
396
|
-
if (bindingPackageVersion !== '0.0.
|
|
397
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
396
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
397
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
398
398
|
}
|
|
399
399
|
return binding
|
|
400
400
|
} catch (e) {
|
|
@@ -411,8 +411,8 @@ function requireNative() {
|
|
|
411
411
|
try {
|
|
412
412
|
const binding = require('@auv-js/cli-linux-riscv64-musl')
|
|
413
413
|
const bindingPackageVersion = require('@auv-js/cli-linux-riscv64-musl/package.json').version
|
|
414
|
-
if (bindingPackageVersion !== '0.0.
|
|
415
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
414
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
415
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
416
416
|
}
|
|
417
417
|
return binding
|
|
418
418
|
} catch (e) {
|
|
@@ -427,8 +427,8 @@ function requireNative() {
|
|
|
427
427
|
try {
|
|
428
428
|
const binding = require('@auv-js/cli-linux-riscv64-gnu')
|
|
429
429
|
const bindingPackageVersion = require('@auv-js/cli-linux-riscv64-gnu/package.json').version
|
|
430
|
-
if (bindingPackageVersion !== '0.0.
|
|
431
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
430
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
431
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
432
432
|
}
|
|
433
433
|
return binding
|
|
434
434
|
} catch (e) {
|
|
@@ -444,8 +444,8 @@ function requireNative() {
|
|
|
444
444
|
try {
|
|
445
445
|
const binding = require('@auv-js/cli-linux-ppc64-gnu')
|
|
446
446
|
const bindingPackageVersion = require('@auv-js/cli-linux-ppc64-gnu/package.json').version
|
|
447
|
-
if (bindingPackageVersion !== '0.0.
|
|
448
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
447
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
448
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
449
449
|
}
|
|
450
450
|
return binding
|
|
451
451
|
} catch (e) {
|
|
@@ -460,8 +460,8 @@ function requireNative() {
|
|
|
460
460
|
try {
|
|
461
461
|
const binding = require('@auv-js/cli-linux-s390x-gnu')
|
|
462
462
|
const bindingPackageVersion = require('@auv-js/cli-linux-s390x-gnu/package.json').version
|
|
463
|
-
if (bindingPackageVersion !== '0.0.
|
|
464
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
463
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
464
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
465
465
|
}
|
|
466
466
|
return binding
|
|
467
467
|
} catch (e) {
|
|
@@ -480,8 +480,8 @@ function requireNative() {
|
|
|
480
480
|
try {
|
|
481
481
|
const binding = require('@auv-js/cli-openharmony-arm64')
|
|
482
482
|
const bindingPackageVersion = require('@auv-js/cli-openharmony-arm64/package.json').version
|
|
483
|
-
if (bindingPackageVersion !== '0.0.
|
|
484
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
483
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
484
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
485
485
|
}
|
|
486
486
|
return binding
|
|
487
487
|
} catch (e) {
|
|
@@ -496,8 +496,8 @@ function requireNative() {
|
|
|
496
496
|
try {
|
|
497
497
|
const binding = require('@auv-js/cli-openharmony-x64')
|
|
498
498
|
const bindingPackageVersion = require('@auv-js/cli-openharmony-x64/package.json').version
|
|
499
|
-
if (bindingPackageVersion !== '0.0.
|
|
500
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
499
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
500
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
501
501
|
}
|
|
502
502
|
return binding
|
|
503
503
|
} catch (e) {
|
|
@@ -512,8 +512,8 @@ function requireNative() {
|
|
|
512
512
|
try {
|
|
513
513
|
const binding = require('@auv-js/cli-openharmony-arm')
|
|
514
514
|
const bindingPackageVersion = require('@auv-js/cli-openharmony-arm/package.json').version
|
|
515
|
-
if (bindingPackageVersion !== '0.0.
|
|
516
|
-
throw new Error(`Native binding package version mismatch, expected 0.0.
|
|
515
|
+
if (bindingPackageVersion !== '0.0.22' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
516
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
517
517
|
}
|
|
518
518
|
return binding
|
|
519
519
|
} catch (e) {
|
|
@@ -652,8 +652,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
652
652
|
if (!candidateFailed) {
|
|
653
653
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
654
654
|
const bindingPackageVersion = require('@auv-js/cli-wasm32-wasi/package.json').version
|
|
655
|
-
if (bindingPackageVersion !== '0.0.
|
|
656
|
-
throw new Error(`WASI binding package version mismatch, expected 0.0.
|
|
655
|
+
if (bindingPackageVersion !== '0.0.22') {
|
|
656
|
+
throw new Error(`WASI binding package version mismatch, expected 0.0.22 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
wasiBinding = require('@auv-js/cli-wasm32-wasi')
|
|
@@ -703,5 +703,10 @@ if (!nativeBinding) {
|
|
|
703
703
|
throw new Error(`Failed to load native binding`)
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
const { nativePackageVersion } = nativeBinding
|
|
706
|
+
const { installMacosHelper, macosHelperStatus, nativePackageVersion, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper } = nativeBinding
|
|
707
|
+
export { installMacosHelper }
|
|
708
|
+
export { macosHelperStatus }
|
|
707
709
|
export { nativePackageVersion }
|
|
710
|
+
export { openMacosHelperAccessibilitySettings }
|
|
711
|
+
export { openMacosHelperBackgroundItemsSettings }
|
|
712
|
+
export { uninstallMacosHelper }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AuvBinaryError, binaryPath } from "./binary.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { MacosHelperOptions, MacosHelperState, MacosHelperStatus, installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper } from "./setup.js";
|
|
3
|
+
import { nativePackageVersion } from "../binding.js";
|
|
4
|
+
export { AuvBinaryError, type MacosHelperOptions, MacosHelperState, MacosHelperStatus, binaryPath, installMacosHelper, macosHelperStatus, nativePackageVersion, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AuvBinaryError, binaryPath } from "./binary.js";
|
|
2
|
+
import { installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper } from "./setup.js";
|
|
2
3
|
import { readFileSync } from "node:fs";
|
|
3
|
-
import { nativePackageVersion } from "../binding.js";
|
|
4
|
-
export * from "../binding.js";
|
|
4
|
+
import { nativePackageVersion, nativePackageVersion as nativePackageVersion$1 } from "../binding.js";
|
|
5
5
|
//#region src-js/index.ts
|
|
6
6
|
const packageVersion = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
|
|
7
|
-
const bindingVersion = nativePackageVersion();
|
|
7
|
+
const bindingVersion = nativePackageVersion$1();
|
|
8
8
|
if (bindingVersion !== packageVersion) console.warn(`The AUV native binding version (${bindingVersion}) does not match @auv-js/cli (${packageVersion}). This may cause unexpected behavior.`);
|
|
9
9
|
//#endregion
|
|
10
|
-
export { AuvBinaryError, binaryPath };
|
|
10
|
+
export { AuvBinaryError, binaryPath, installMacosHelper, macosHelperStatus, nativePackageVersion, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
|
11
11
|
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src-js/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs'\n\nimport { nativePackageVersion } from '../binding.js'\n\nconst packageVersion = (JSON.parse(\n readFileSync(new URL('../package.json', import.meta.url), 'utf8'),\n) as { version: string }).version\n\nconst bindingVersion = nativePackageVersion()\nif (bindingVersion !== packageVersion) {\n console.warn(`The AUV native binding version (${bindingVersion}) does not match @auv-js/cli (${packageVersion}). This may cause unexpected behavior.`)\n}\n\nexport
|
|
1
|
+
{"version":3,"file":"index.js","names":["nativePackageVersion"],"sources":["../src-js/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs'\n\nimport { nativePackageVersion } from '../binding.js'\n\nconst packageVersion = (JSON.parse(\n readFileSync(new URL('../package.json', import.meta.url), 'utf8'),\n) as { version: string }).version\n\nconst bindingVersion = nativePackageVersion()\nif (bindingVersion !== packageVersion) {\n console.warn(`The AUV native binding version (${bindingVersion}) does not match @auv-js/cli (${packageVersion}). This may cause unexpected behavior.`)\n}\n\nexport { nativePackageVersion } from '../binding.js'\nexport * from './binary.js'\nexport * from './setup.js'\n"],"mappings":";;;;;AAIA,MAAM,iBAAkB,KAAK,MAC3B,aAAa,IAAI,IAAI,mBAAmB,OAAO,KAAK,GAAG,GAAG,MAAM,CAClE,CAAC,CAAyB;AAE1B,MAAM,iBAAiBA,uBAAqB;AAC5C,IAAI,mBAAmB,gBACrB,QAAQ,KAAK,mCAAmC,eAAe,gCAAgC,eAAe,uCAAuC"}
|
package/dist/setup.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MacosHelperOptions, MacosHelperStatus as MacosHelperStatus$1 } from "../binding.js";
|
|
2
|
+
//#region src-js/setup.d.ts
|
|
3
|
+
type MacosHelperState = 'busy' | 'frontend-outdated' | 'installed' | 'invalid' | 'not-installed' | 'requires-approval' | 'running' | 'unsupported' | 'update-required';
|
|
4
|
+
interface MacosHelperStatus extends Omit<MacosHelperStatus$1, 'state'> {
|
|
5
|
+
state: MacosHelperState;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Install and register the signed helper embedded in this build, or
|
|
9
|
+
* `options.helperApp` when the embedding application ships its own helper.
|
|
10
|
+
*/
|
|
11
|
+
declare function installMacosHelper(options?: MacosHelperOptions): Promise<MacosHelperStatus>;
|
|
12
|
+
/** Inspect the installed helper identity and current-user readiness. */
|
|
13
|
+
declare function macosHelperStatus(options?: MacosHelperOptions): Promise<MacosHelperStatus>;
|
|
14
|
+
/** Open System Settings at Privacy & Security > Accessibility. */
|
|
15
|
+
declare function openMacosHelperAccessibilitySettings(): void;
|
|
16
|
+
/** Open System Settings at General > Login Items & Extensions. */
|
|
17
|
+
declare function openMacosHelperBackgroundItemsSettings(options?: MacosHelperOptions): void;
|
|
18
|
+
/** Unregister the helper, reset Accessibility, and remove only its app bundle. */
|
|
19
|
+
declare function uninstallMacosHelper(options?: MacosHelperOptions): Promise<MacosHelperStatus>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { type MacosHelperOptions, MacosHelperState, MacosHelperStatus, installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
|
22
|
+
//# sourceMappingURL=setup.d.ts.map
|
package/dist/setup.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { installMacosHelper as installMacosHelper$1, macosHelperStatus as macosHelperStatus$1, openMacosHelperAccessibilitySettings as openMacosHelperAccessibilitySettings$1, openMacosHelperBackgroundItemsSettings as openMacosHelperBackgroundItemsSettings$1, uninstallMacosHelper as uninstallMacosHelper$1 } from "../binding.js";
|
|
2
|
+
import { isMacOS } from "std-env";
|
|
3
|
+
//#region src-js/setup.ts
|
|
4
|
+
/**
|
|
5
|
+
* Install and register the signed helper embedded in this build, or
|
|
6
|
+
* `options.helperApp` when the embedding application ships its own helper.
|
|
7
|
+
*/
|
|
8
|
+
async function installMacosHelper(options) {
|
|
9
|
+
requireMacOS();
|
|
10
|
+
return installMacosHelper$1(options);
|
|
11
|
+
}
|
|
12
|
+
/** Inspect the installed helper identity and current-user readiness. */
|
|
13
|
+
async function macosHelperStatus(options) {
|
|
14
|
+
requireMacOS();
|
|
15
|
+
return macosHelperStatus$1(options);
|
|
16
|
+
}
|
|
17
|
+
/** Open System Settings at Privacy & Security > Accessibility. */
|
|
18
|
+
function openMacosHelperAccessibilitySettings() {
|
|
19
|
+
requireMacOS();
|
|
20
|
+
openMacosHelperAccessibilitySettings$1();
|
|
21
|
+
}
|
|
22
|
+
/** Open System Settings at General > Login Items & Extensions. */
|
|
23
|
+
function openMacosHelperBackgroundItemsSettings(options) {
|
|
24
|
+
requireMacOS();
|
|
25
|
+
openMacosHelperBackgroundItemsSettings$1(options);
|
|
26
|
+
}
|
|
27
|
+
/** Unregister the helper, reset Accessibility, and remove only its app bundle. */
|
|
28
|
+
async function uninstallMacosHelper(options) {
|
|
29
|
+
requireMacOS();
|
|
30
|
+
return uninstallMacosHelper$1(options);
|
|
31
|
+
}
|
|
32
|
+
function requireMacOS() {
|
|
33
|
+
if (!isMacOS) throw new Error("macOS helper setup is available only on macOS.");
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","names":["installNativeMacosHelper","nativeMacosHelperStatus","uninstallNativeMacosHelper"],"sources":["../src-js/setup.ts"],"sourcesContent":["import type { MacosHelperOptions, MacosHelperStatus as NativeMacosHelperStatus } from '../binding.js'\n\nimport { isMacOS } from 'std-env'\n\nimport {\n installMacosHelper as installNativeMacosHelper,\n macosHelperStatus as nativeMacosHelperStatus,\n openMacosHelperAccessibilitySettings as openNativeMacosHelperAccessibilitySettings,\n openMacosHelperBackgroundItemsSettings as openNativeMacosHelperBackgroundItemsSettings,\n uninstallMacosHelper as uninstallNativeMacosHelper,\n} from '../binding.js'\n\nexport type MacosHelperState\n = | 'busy'\n | 'frontend-outdated'\n | 'installed'\n | 'invalid'\n | 'not-installed'\n | 'requires-approval'\n | 'running'\n | 'unsupported'\n | 'update-required'\n\nexport type { MacosHelperOptions }\n\nexport interface MacosHelperStatus extends Omit<NativeMacosHelperStatus, 'state'> {\n state: MacosHelperState\n}\n\n/**\n * Install and register the signed helper embedded in this build, or\n * `options.helperApp` when the embedding application ships its own helper.\n */\nexport async function installMacosHelper(options?: MacosHelperOptions): Promise<MacosHelperStatus> {\n requireMacOS()\n return installNativeMacosHelper(options) as Promise<MacosHelperStatus>\n}\n\n/** Inspect the installed helper identity and current-user readiness. */\nexport async function macosHelperStatus(options?: MacosHelperOptions): Promise<MacosHelperStatus> {\n requireMacOS()\n return nativeMacosHelperStatus(options) as Promise<MacosHelperStatus>\n}\n\n/** Open System Settings at Privacy & Security > Accessibility. */\nexport function openMacosHelperAccessibilitySettings(): void {\n requireMacOS()\n openNativeMacosHelperAccessibilitySettings()\n}\n\n/** Open System Settings at General > Login Items & Extensions. */\nexport function openMacosHelperBackgroundItemsSettings(options?: MacosHelperOptions): void {\n requireMacOS()\n openNativeMacosHelperBackgroundItemsSettings(options)\n}\n\n/** Unregister the helper, reset Accessibility, and remove only its app bundle. */\nexport async function uninstallMacosHelper(options?: MacosHelperOptions): Promise<MacosHelperStatus> {\n requireMacOS()\n return uninstallNativeMacosHelper(options) as Promise<MacosHelperStatus>\n}\n\nfunction requireMacOS(): void {\n if (!isMacOS) {\n throw new Error('macOS helper setup is available only on macOS.')\n }\n}\n"],"mappings":";;;;;;;AAiCA,eAAsB,mBAAmB,SAA0D;CACjG,aAAa;CACb,OAAOA,qBAAyB,OAAO;AACzC;;AAGA,eAAsB,kBAAkB,SAA0D;CAChG,aAAa;CACb,OAAOC,oBAAwB,OAAO;AACxC;;AAGA,SAAgB,uCAA6C;CAC3D,aAAa;CACb,uCAA2C;AAC7C;;AAGA,SAAgB,uCAAuC,SAAoC;CACzF,aAAa;CACb,yCAA6C,OAAO;AACtD;;AAGA,eAAsB,qBAAqB,SAA0D;CACnG,aAAa;CACb,OAAOC,uBAA2B,OAAO;AAC3C;AAEA,SAAS,eAAqB;CAC5B,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,gDAAgD;AAEpE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auv-js/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.25",
|
|
5
5
|
"description": "NAPI bindings and the platform-matched AUV command-line executable",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"types": "./dist/binary.d.ts",
|
|
26
26
|
"import": "./dist/binary.js"
|
|
27
27
|
},
|
|
28
|
+
"./setup": {
|
|
29
|
+
"types": "./dist/setup.d.ts",
|
|
30
|
+
"import": "./dist/setup.js"
|
|
31
|
+
},
|
|
28
32
|
"./package.json": "./package.json"
|
|
29
33
|
},
|
|
30
34
|
"main": "./dist/index.js",
|
|
@@ -52,12 +56,15 @@
|
|
|
52
56
|
"x86_64-unknown-linux-gnu"
|
|
53
57
|
]
|
|
54
58
|
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"std-env": "4.2.0"
|
|
61
|
+
},
|
|
55
62
|
"optionalDependencies": {
|
|
56
|
-
"@auv-js/cli-darwin-arm64": "0.0.
|
|
57
|
-
"@auv-js/cli-linux-arm64-gnu": "0.0.
|
|
58
|
-
"@auv-js/cli-darwin-x64": "0.0.
|
|
59
|
-
"@auv-js/cli-win32-x64-msvc": "0.0.
|
|
60
|
-
"@auv-js/cli-linux-x64-gnu": "0.0.
|
|
63
|
+
"@auv-js/cli-darwin-arm64": "0.0.25",
|
|
64
|
+
"@auv-js/cli-linux-arm64-gnu": "0.0.25",
|
|
65
|
+
"@auv-js/cli-darwin-x64": "0.0.25",
|
|
66
|
+
"@auv-js/cli-win32-x64-msvc": "0.0.25",
|
|
67
|
+
"@auv-js/cli-linux-x64-gnu": "0.0.25"
|
|
61
68
|
},
|
|
62
69
|
"devDependencies": {
|
|
63
70
|
"@emnapi/core": "^1.11.2",
|
|
@@ -72,8 +79,8 @@
|
|
|
72
79
|
},
|
|
73
80
|
"scripts": {
|
|
74
81
|
"artifacts": "napi artifacts && tsx ./scripts/stage-platform-packages.ts ./artifacts",
|
|
75
|
-
"build": "pnpm run build:js && napi build --platform --release --esm --js binding.js --dts binding.d.ts",
|
|
76
|
-
"build:debug": "pnpm run build:js && napi build --platform --esm --js binding.js --dts binding.d.ts",
|
|
82
|
+
"build": "pnpm run build:js && napi build --platform --release --esm --js binding.js --dts binding.d.ts -- --locked",
|
|
83
|
+
"build:debug": "pnpm run build:js && napi build --platform --esm --js binding.js --dts binding.d.ts -- --locked",
|
|
77
84
|
"build:js": "tsdown",
|
|
78
85
|
"create:npm-dirs": "napi create-npm-dirs",
|
|
79
86
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|