@auv-js/cli 0.0.28 → 0.0.29

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/bin/auv.js CHANGED
@@ -5,6 +5,7 @@ import process from 'node:process'
5
5
  import { spawnSync } from 'node:child_process'
6
6
  import { constants } from 'node:os'
7
7
 
8
+ // eslint-disable-next-line no-restricted-syntax -- this bin script runs as plain Node ESM, which needs the file extension.
8
9
  import { binaryPath } from '../dist/binary.js'
9
10
 
10
11
  try {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","names":["nativePackageVersion"],"sources":["../src-js/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs'\n\n// eslint-disable-next-line no-restricted-syntax -- the napi binding is a runtime file that tsdown never bundles by this exact specifier.\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\n// eslint-disable-next-line no-restricted-syntax -- the napi binding is a runtime file that tsdown never bundles by this exact specifier.\nexport { nativePackageVersion } from '../binding.js'\nexport * from './binary'\nexport * from './setup'\n"],"mappings":";;;;;AAKA,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.js.map CHANGED
@@ -1 +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"}
1
+ {"version":3,"file":"setup.js","names":["installNativeMacosHelper","nativeMacosHelperStatus","uninstallNativeMacosHelper"],"sources":["../src-js/setup.ts"],"sourcesContent":["// eslint-disable-next-line no-restricted-syntax -- the napi binding is a runtime file that tsdown never bundles by this exact specifier.\nimport type { MacosHelperOptions, MacosHelperStatus as NativeMacosHelperStatus } from '../binding.js'\n\nimport { isMacOS } from 'std-env'\n\n// eslint-disable-next-line no-restricted-syntax -- the napi binding is a runtime file that tsdown never bundles by this exact specifier.\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":";;;;;;;AAmCA,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.28",
4
+ "version": "0.0.29",
5
5
  "description": "NAPI bindings and the platform-matched AUV command-line executable",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -61,12 +61,12 @@
61
61
  "std-env": "4.2.0"
62
62
  },
63
63
  "optionalDependencies": {
64
- "@auv-js/cli-darwin-arm64": "0.0.28",
65
- "@auv-js/cli-win32-arm64-msvc": "0.0.28",
66
- "@auv-js/cli-linux-arm64-gnu": "0.0.28",
67
- "@auv-js/cli-darwin-x64": "0.0.28",
68
- "@auv-js/cli-win32-x64-msvc": "0.0.28",
69
- "@auv-js/cli-linux-x64-gnu": "0.0.28"
64
+ "@auv-js/cli-darwin-arm64": "0.0.29",
65
+ "@auv-js/cli-win32-arm64-msvc": "0.0.29",
66
+ "@auv-js/cli-linux-arm64-gnu": "0.0.29",
67
+ "@auv-js/cli-darwin-x64": "0.0.29",
68
+ "@auv-js/cli-win32-x64-msvc": "0.0.29",
69
+ "@auv-js/cli-linux-x64-gnu": "0.0.29"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@emnapi/core": "^1.11.2",