@livx.cc/agentx 0.96.13 → 0.96.15

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.
@@ -13,6 +13,18 @@
13
13
  // Build: swiftc -O -o mic-aec mic-aec.swift -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __info_plist -Xlinker Info.plist && codesign -fs - mic-aec
14
14
  import AVFoundation
15
15
 
16
+ // `--check-mic`: report TCC mic-authorization status WITHOUT prompting, then exit. Used by /doctor for a
17
+ // proactive readiness probe. Exit code: 0 authorized · 1 denied/restricted · 2 not-yet-determined.
18
+ if CommandLine.arguments.contains("--check-mic") {
19
+ switch AVCaptureDevice.authorizationStatus(for: .audio) {
20
+ case .authorized: print("authorized"); exit(0)
21
+ case .denied: print("denied"); exit(1)
22
+ case .restricted: print("restricted"); exit(1)
23
+ case .notDetermined: print("notDetermined"); exit(2)
24
+ @unknown default: print("unknown"); exit(2)
25
+ }
26
+ }
27
+
16
28
  // VPIO checks mic TCC explicitly (plain HAL capture may work while VPIO silently mutes) — request it
17
29
  let sem = DispatchSemaphore(value: 0)
18
30
  var granted = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livx.cc/agentx",
3
- "version": "0.96.13",
3
+ "version": "0.96.15",
4
4
  "description": "Edge-native AI agent runtime — drives a virtual filesystem via any LLM (ai.libx.js). Same bytes run in node, browser, or edge.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",