@auv-js/cli 0.0.24 → 0.0.27
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 +31 -2
- package/binding.d.ts +21 -5
- package/dist/binary.js +1 -0
- package/dist/binary.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/setup.d.ts +11 -8
- package/dist/setup.js +14 -11
- package/dist/setup.js.map +1 -1
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -83,6 +83,35 @@ entrypoint at runtime, keep `*.node` files outside the ASAR with the packager's
|
|
|
83
83
|
native-module/`asarUnpack` support. Keep the SDK independent of packaging policy
|
|
84
84
|
so browser and remote-client consumers do not install a native executable.
|
|
85
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
|
+
|
|
86
115
|
Supported packages currently cover macOS arm64/x64, glibc Linux arm64/x64, and
|
|
87
|
-
Windows x64. Installing with optional dependencies disabled leaves no
|
|
88
|
-
`binaryPath()` reports that case with an actionable error.
|
|
116
|
+
Windows arm64/x64. Installing with optional dependencies disabled leaves no
|
|
117
|
+
binary; `binaryPath()` reports that case with an actionable error.
|
package/binding.d.ts
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Install and register the signed AUV Helper embedded in this build
|
|
4
|
+
* Install and register the signed AUV Helper embedded in this build, or
|
|
5
|
+
* `helperApp` when the embedding application ships its own helper.
|
|
5
6
|
*
|
|
6
7
|
* The work runs off the JavaScript thread because archive verification and
|
|
7
8
|
* ServiceManagement registration perform blocking platform calls.
|
|
8
9
|
*/
|
|
9
|
-
export declare function installMacosHelper(): Promise<MacosHelperStatus>
|
|
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
|
+
}
|
|
10
22
|
|
|
11
23
|
/**
|
|
12
24
|
* Inspect the AUV Helper installation used for locked macOS sessions.
|
|
@@ -14,11 +26,15 @@ export declare function installMacosHelper(): Promise<MacosHelperStatus>
|
|
|
14
26
|
* Signature validation and ServiceManagement inspection run off the
|
|
15
27
|
* JavaScript thread because they perform blocking platform calls.
|
|
16
28
|
*/
|
|
17
|
-
export declare function macosHelperStatus(): Promise<MacosHelperStatus>
|
|
29
|
+
export declare function macosHelperStatus(options?: MacosHelperOptions | undefined | null): Promise<MacosHelperStatus>
|
|
18
30
|
|
|
19
31
|
export interface MacosHelperStatus {
|
|
20
32
|
state: string
|
|
21
33
|
detail?: string
|
|
34
|
+
/**
|
|
35
|
+
* Whether this binding can install a helper: one embedded by a release
|
|
36
|
+
* build, or `helperApp`.
|
|
37
|
+
*/
|
|
22
38
|
helperEmbedded: boolean
|
|
23
39
|
}
|
|
24
40
|
|
|
@@ -34,7 +50,7 @@ export declare function nativePackageVersion(): string
|
|
|
34
50
|
export declare function openMacosHelperAccessibilitySettings(): void
|
|
35
51
|
|
|
36
52
|
/** Open System Settings at General > Login Items & Extensions. */
|
|
37
|
-
export declare function openMacosHelperBackgroundItemsSettings(): void
|
|
53
|
+
export declare function openMacosHelperBackgroundItemsSettings(options?: MacosHelperOptions | undefined | null): void
|
|
38
54
|
|
|
39
55
|
/**
|
|
40
56
|
* Unregister the helper, reset its Accessibility decision, and remove its app.
|
|
@@ -43,4 +59,4 @@ export declare function openMacosHelperBackgroundItemsSettings(): void
|
|
|
43
59
|
* the JavaScript thread because it waits for ServiceManagement termination and
|
|
44
60
|
* performs filesystem and TCC operations.
|
|
45
61
|
*/
|
|
46
|
-
export declare function uninstallMacosHelper(): Promise<MacosHelperStatus>
|
|
62
|
+
export declare function uninstallMacosHelper(options?: MacosHelperOptions | undefined | null): Promise<MacosHelperStatus>
|
package/dist/binary.js
CHANGED
|
@@ -9,6 +9,7 @@ const PLATFORM_PACKAGES = /* @__PURE__ */ new Map([
|
|
|
9
9
|
["darwin-x64", ["@auv-js/cli-darwin-x64", "bin/auv"]],
|
|
10
10
|
["linux-arm64", ["@auv-js/cli-linux-arm64-gnu", "bin/auv"]],
|
|
11
11
|
["linux-x64", ["@auv-js/cli-linux-x64-gnu", "bin/auv"]],
|
|
12
|
+
["win32-arm64", ["@auv-js/cli-win32-arm64-msvc", "bin/auv.exe"]],
|
|
12
13
|
["win32-x64", ["@auv-js/cli-win32-x64-msvc", "bin/auv.exe"]]
|
|
13
14
|
]);
|
|
14
15
|
var AuvBinaryError = class extends Error {
|
package/dist/binary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.js","names":[],"sources":["../src-js/binary.ts"],"sourcesContent":["import process from 'node:process'\n\nimport { accessSync, constants } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport { dirname, join } from 'node:path'\n\nconst require = createRequire(import.meta.url)\n\nconst PLATFORM_PACKAGES = new Map<string, readonly [string, string]>([\n ['darwin-arm64', ['@auv-js/cli-darwin-arm64', 'bin/auv']],\n ['darwin-x64', ['@auv-js/cli-darwin-x64', 'bin/auv']],\n ['linux-arm64', ['@auv-js/cli-linux-arm64-gnu', 'bin/auv']],\n ['linux-x64', ['@auv-js/cli-linux-x64-gnu', 'bin/auv']],\n ['win32-x64', ['@auv-js/cli-win32-x64-msvc', 'bin/auv.exe']],\n])\n\ninterface DiagnosticReport {\n header?: {\n glibcVersionRuntime?: string\n }\n}\n\nexport class AuvBinaryError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options)\n this.name = 'AuvBinaryError'\n }\n}\n\n/** Return the absolute path of the AUV executable installed for this host. */\nexport function binaryPath(): string {\n const platformKey = `${process.platform}-${process.arch}`\n\n const platformPackage = PLATFORM_PACKAGES.get(platformKey)\n if (!platformPackage) {\n throw new AuvBinaryError(`AUV does not publish an executable for ${process.platform}/${process.arch}.`)\n }\n if (process.platform === 'linux' && isMusl()) {\n throw new AuvBinaryError('AUV currently publishes glibc Linux executables only; musl Linux is not supported.')\n }\n\n const [packageName, executable] = platformPackage\n let manifestPath: string\n\n try {\n manifestPath = require.resolve(`${packageName}/package.json`)\n }\n catch (cause) {\n throw new AuvBinaryError(`The optional package ${packageName} is missing. Reinstall @auv-js/cli without omitting optional dependencies.`, { cause })\n }\n\n const resolvedPath = join(dirname(manifestPath), executable)\n try {\n accessSync(resolvedPath, process.platform === 'win32' ? constants.F_OK : constants.X_OK)\n }\n catch (cause) {\n throw new AuvBinaryError(`The ${packageName} package does not contain an executable AUV binary at ${resolvedPath}.`, { cause })\n }\n\n return resolvedPath\n}\n\nfunction isMusl(): boolean {\n const report = process.report?.getReport?.() as DiagnosticReport | undefined\n return report?.header?.glibcVersionRuntime === undefined\n}\n"],"mappings":";;;;;AAMA,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;AAE7C,MAAM,oCAAoB,IAAI,IAAuC;CACnE,CAAC,gBAAgB,CAAC,4BAA4B,SAAS,CAAC;CACxD,CAAC,cAAc,CAAC,0BAA0B,SAAS,CAAC;CACpD,CAAC,eAAe,CAAC,+BAA+B,SAAS,CAAC;CAC1D,CAAC,aAAa,CAAC,6BAA6B,SAAS,CAAC;CACtD,CAAC,aAAa,CAAC,8BAA8B,aAAa,CAAC;AAC7D,CAAC;AAQD,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAY,SAAiB,SAAwB;EACnD,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO;CACd;AACF;;AAGA,SAAgB,aAAqB;CACnC,MAAM,cAAc,GAAG,QAAQ,SAAS,GAAG,QAAQ;CAEnD,MAAM,kBAAkB,kBAAkB,IAAI,WAAW;CACzD,IAAI,CAAC,iBACH,MAAM,IAAI,eAAe,0CAA0C,QAAQ,SAAS,GAAG,QAAQ,KAAK,EAAE;CAExG,IAAI,QAAQ,aAAa,WAAW,OAAO,GACzC,MAAM,IAAI,eAAe,oFAAoF;CAG/G,MAAM,CAAC,aAAa,cAAc;CAClC,IAAI;CAEJ,IAAI;EACF,eAAe,QAAQ,QAAQ,GAAG,YAAY,cAAc;CAC9D,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,wBAAwB,YAAY,6EAA6E,EAAE,MAAM,CAAC;CACrJ;CAEA,MAAM,eAAe,KAAK,QAAQ,YAAY,GAAG,UAAU;CAC3D,IAAI;EACF,WAAW,cAAc,QAAQ,aAAa,UAAU,UAAU,OAAO,UAAU,IAAI;CACzF,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,OAAO,YAAY,wDAAwD,aAAa,IAAI,EAAE,MAAM,CAAC;CAChI;CAEA,OAAO;AACT;AAEA,SAAS,SAAkB;CAEzB,QADe,QAAQ,QAAQ,YAAY,EAAA,EAC5B,QAAQ,wBAAwB,KAAA;AACjD"}
|
|
1
|
+
{"version":3,"file":"binary.js","names":[],"sources":["../src-js/binary.ts"],"sourcesContent":["import process from 'node:process'\n\nimport { accessSync, constants } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport { dirname, join } from 'node:path'\n\nconst require = createRequire(import.meta.url)\n\nconst PLATFORM_PACKAGES = new Map<string, readonly [string, string]>([\n ['darwin-arm64', ['@auv-js/cli-darwin-arm64', 'bin/auv']],\n ['darwin-x64', ['@auv-js/cli-darwin-x64', 'bin/auv']],\n ['linux-arm64', ['@auv-js/cli-linux-arm64-gnu', 'bin/auv']],\n ['linux-x64', ['@auv-js/cli-linux-x64-gnu', 'bin/auv']],\n ['win32-arm64', ['@auv-js/cli-win32-arm64-msvc', 'bin/auv.exe']],\n ['win32-x64', ['@auv-js/cli-win32-x64-msvc', 'bin/auv.exe']],\n])\n\ninterface DiagnosticReport {\n header?: {\n glibcVersionRuntime?: string\n }\n}\n\nexport class AuvBinaryError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options)\n this.name = 'AuvBinaryError'\n }\n}\n\n/** Return the absolute path of the AUV executable installed for this host. */\nexport function binaryPath(): string {\n const platformKey = `${process.platform}-${process.arch}`\n\n const platformPackage = PLATFORM_PACKAGES.get(platformKey)\n if (!platformPackage) {\n throw new AuvBinaryError(`AUV does not publish an executable for ${process.platform}/${process.arch}.`)\n }\n if (process.platform === 'linux' && isMusl()) {\n throw new AuvBinaryError('AUV currently publishes glibc Linux executables only; musl Linux is not supported.')\n }\n\n const [packageName, executable] = platformPackage\n let manifestPath: string\n\n try {\n manifestPath = require.resolve(`${packageName}/package.json`)\n }\n catch (cause) {\n throw new AuvBinaryError(`The optional package ${packageName} is missing. Reinstall @auv-js/cli without omitting optional dependencies.`, { cause })\n }\n\n const resolvedPath = join(dirname(manifestPath), executable)\n try {\n accessSync(resolvedPath, process.platform === 'win32' ? constants.F_OK : constants.X_OK)\n }\n catch (cause) {\n throw new AuvBinaryError(`The ${packageName} package does not contain an executable AUV binary at ${resolvedPath}.`, { cause })\n }\n\n return resolvedPath\n}\n\nfunction isMusl(): boolean {\n const report = process.report?.getReport?.() as DiagnosticReport | undefined\n return report?.header?.glibcVersionRuntime === undefined\n}\n"],"mappings":";;;;;AAMA,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;AAE7C,MAAM,oCAAoB,IAAI,IAAuC;CACnE,CAAC,gBAAgB,CAAC,4BAA4B,SAAS,CAAC;CACxD,CAAC,cAAc,CAAC,0BAA0B,SAAS,CAAC;CACpD,CAAC,eAAe,CAAC,+BAA+B,SAAS,CAAC;CAC1D,CAAC,aAAa,CAAC,6BAA6B,SAAS,CAAC;CACtD,CAAC,eAAe,CAAC,gCAAgC,aAAa,CAAC;CAC/D,CAAC,aAAa,CAAC,8BAA8B,aAAa,CAAC;AAC7D,CAAC;AAQD,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAY,SAAiB,SAAwB;EACnD,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO;CACd;AACF;;AAGA,SAAgB,aAAqB;CACnC,MAAM,cAAc,GAAG,QAAQ,SAAS,GAAG,QAAQ;CAEnD,MAAM,kBAAkB,kBAAkB,IAAI,WAAW;CACzD,IAAI,CAAC,iBACH,MAAM,IAAI,eAAe,0CAA0C,QAAQ,SAAS,GAAG,QAAQ,KAAK,EAAE;CAExG,IAAI,QAAQ,aAAa,WAAW,OAAO,GACzC,MAAM,IAAI,eAAe,oFAAoF;CAG/G,MAAM,CAAC,aAAa,cAAc;CAClC,IAAI;CAEJ,IAAI;EACF,eAAe,QAAQ,QAAQ,GAAG,YAAY,cAAc;CAC9D,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,wBAAwB,YAAY,6EAA6E,EAAE,MAAM,CAAC;CACrJ;CAEA,MAAM,eAAe,KAAK,QAAQ,YAAY,GAAG,UAAU;CAC3D,IAAI;EACF,WAAW,cAAc,QAAQ,aAAa,UAAU,UAAU,OAAO,UAAU,IAAI;CACzF,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,OAAO,YAAY,wDAAwD,aAAa,IAAI,EAAE,MAAM,CAAC;CAChI;CAEA,OAAO;AACT;AAEA,SAAS,SAAkB;CAEzB,QADe,QAAQ,QAAQ,YAAY,EAAA,EAC5B,QAAQ,wBAAwB,KAAA;AACjD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AuvBinaryError, binaryPath } from "./binary.js";
|
|
2
|
-
import { MacosHelperState, MacosHelperStatus, installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper } from "./setup.js";
|
|
2
|
+
import { MacosHelperOptions, MacosHelperState, MacosHelperStatus, installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper } from "./setup.js";
|
|
3
3
|
import { nativePackageVersion } from "../binding.js";
|
|
4
|
-
export { AuvBinaryError, MacosHelperState, MacosHelperStatus, binaryPath, installMacosHelper, macosHelperStatus, nativePackageVersion, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
|
4
|
+
export { AuvBinaryError, type MacosHelperOptions, MacosHelperState, MacosHelperStatus, binaryPath, installMacosHelper, macosHelperStatus, nativePackageVersion, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
package/dist/setup.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { MacosHelperStatus as MacosHelperStatus$1 } from "../binding.js";
|
|
1
|
+
import { MacosHelperOptions, MacosHelperStatus as MacosHelperStatus$1 } from "../binding.js";
|
|
2
2
|
//#region src-js/setup.d.ts
|
|
3
3
|
type MacosHelperState = 'busy' | 'frontend-outdated' | 'installed' | 'invalid' | 'not-installed' | 'requires-approval' | 'running' | 'unsupported' | 'update-required';
|
|
4
4
|
interface MacosHelperStatus extends Omit<MacosHelperStatus$1, 'state'> {
|
|
5
5
|
state: MacosHelperState;
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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>;
|
|
11
14
|
/** Open System Settings at Privacy & Security > Accessibility. */
|
|
12
15
|
declare function openMacosHelperAccessibilitySettings(): void;
|
|
13
16
|
/** Open System Settings at General > Login Items & Extensions. */
|
|
14
|
-
declare function openMacosHelperBackgroundItemsSettings(): void;
|
|
17
|
+
declare function openMacosHelperBackgroundItemsSettings(options?: MacosHelperOptions): void;
|
|
15
18
|
/** Unregister the helper, reset Accessibility, and remove only its app bundle. */
|
|
16
|
-
declare function uninstallMacosHelper(): Promise<MacosHelperStatus>;
|
|
19
|
+
declare function uninstallMacosHelper(options?: MacosHelperOptions): Promise<MacosHelperStatus>;
|
|
17
20
|
//#endregion
|
|
18
|
-
export { MacosHelperState, MacosHelperStatus, installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
|
21
|
+
export { type MacosHelperOptions, MacosHelperState, MacosHelperStatus, installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
|
19
22
|
//# sourceMappingURL=setup.d.ts.map
|
package/dist/setup.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
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
2
|
import { isMacOS } from "std-env";
|
|
3
3
|
//#region src-js/setup.ts
|
|
4
|
-
/**
|
|
5
|
-
|
|
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) {
|
|
6
9
|
requireMacOS();
|
|
7
|
-
return installMacosHelper$1();
|
|
10
|
+
return installMacosHelper$1(options);
|
|
8
11
|
}
|
|
9
|
-
/** Inspect the installed
|
|
10
|
-
async function macosHelperStatus() {
|
|
12
|
+
/** Inspect the installed helper identity and current-user readiness. */
|
|
13
|
+
async function macosHelperStatus(options) {
|
|
11
14
|
requireMacOS();
|
|
12
|
-
return macosHelperStatus$1();
|
|
15
|
+
return macosHelperStatus$1(options);
|
|
13
16
|
}
|
|
14
17
|
/** Open System Settings at Privacy & Security > Accessibility. */
|
|
15
18
|
function openMacosHelperAccessibilitySettings() {
|
|
@@ -17,17 +20,17 @@ function openMacosHelperAccessibilitySettings() {
|
|
|
17
20
|
openMacosHelperAccessibilitySettings$1();
|
|
18
21
|
}
|
|
19
22
|
/** Open System Settings at General > Login Items & Extensions. */
|
|
20
|
-
function openMacosHelperBackgroundItemsSettings() {
|
|
23
|
+
function openMacosHelperBackgroundItemsSettings(options) {
|
|
21
24
|
requireMacOS();
|
|
22
|
-
openMacosHelperBackgroundItemsSettings$1();
|
|
25
|
+
openMacosHelperBackgroundItemsSettings$1(options);
|
|
23
26
|
}
|
|
24
27
|
/** Unregister the helper, reset Accessibility, and remove only its app bundle. */
|
|
25
|
-
async function uninstallMacosHelper() {
|
|
28
|
+
async function uninstallMacosHelper(options) {
|
|
26
29
|
requireMacOS();
|
|
27
|
-
return uninstallMacosHelper$1();
|
|
30
|
+
return uninstallMacosHelper$1(options);
|
|
28
31
|
}
|
|
29
32
|
function requireMacOS() {
|
|
30
|
-
if (!isMacOS) throw new Error("
|
|
33
|
+
if (!isMacOS) throw new Error("macOS helper setup is available only on macOS.");
|
|
31
34
|
}
|
|
32
35
|
//#endregion
|
|
33
36
|
export { installMacosHelper, macosHelperStatus, openMacosHelperAccessibilitySettings, openMacosHelperBackgroundItemsSettings, uninstallMacosHelper };
|
package/dist/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","names":["installNativeMacosHelper","nativeMacosHelperStatus","uninstallNativeMacosHelper"],"sources":["../src-js/setup.ts"],"sourcesContent":["import type { 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 interface MacosHelperStatus extends Omit<NativeMacosHelperStatus, 'state'> {\n state: MacosHelperState\n}\n\n
|
|
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.27",
|
|
5
5
|
"description": "NAPI bindings and the platform-matched AUV command-line executable",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"rootPublisher": "pnpm",
|
|
51
51
|
"targets": [
|
|
52
52
|
"aarch64-apple-darwin",
|
|
53
|
+
"aarch64-pc-windows-msvc",
|
|
53
54
|
"aarch64-unknown-linux-gnu",
|
|
54
55
|
"x86_64-apple-darwin",
|
|
55
56
|
"x86_64-pc-windows-msvc",
|
|
@@ -60,11 +61,12 @@
|
|
|
60
61
|
"std-env": "4.2.0"
|
|
61
62
|
},
|
|
62
63
|
"optionalDependencies": {
|
|
63
|
-
"@auv-js/cli-darwin-arm64": "0.0.
|
|
64
|
-
"@auv-js/cli-
|
|
65
|
-
"@auv-js/cli-
|
|
66
|
-
"@auv-js/cli-
|
|
67
|
-
"@auv-js/cli-
|
|
64
|
+
"@auv-js/cli-darwin-arm64": "0.0.27",
|
|
65
|
+
"@auv-js/cli-win32-arm64-msvc": "0.0.27",
|
|
66
|
+
"@auv-js/cli-linux-arm64-gnu": "0.0.27",
|
|
67
|
+
"@auv-js/cli-darwin-x64": "0.0.27",
|
|
68
|
+
"@auv-js/cli-win32-x64-msvc": "0.0.27",
|
|
69
|
+
"@auv-js/cli-linux-x64-gnu": "0.0.27"
|
|
68
70
|
},
|
|
69
71
|
"devDependencies": {
|
|
70
72
|
"@emnapi/core": "^1.11.2",
|