kokorobox-native 0.5.5 → 0.6.0

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.
Files changed (3) hide show
  1. package/README.md +8 -4
  2. package/index.d.ts +3 -1
  3. package/package.json +7 -7
package/README.md CHANGED
@@ -54,10 +54,14 @@ behavior, metadata for those outputs, and rules that were skipped. Its optional
54
54
  the formats listed in the TypeScript declaration.
55
55
 
56
56
  Launch-at-login requires a stable filesystem-safe `identifier`, a display name,
57
- and an absolute executable path. It returns the selected backend: Windows Task
58
- Scheduler, macOS Login Items, or Linux XDG Autostart. Network context is
59
- best-effort, so optional fields such as the default interface and SSID may be
60
- absent.
57
+ and an absolute executable path. It returns the selected backend: the Windows
58
+ current-user Run key, macOS `SMAppService.mainApp`, or Linux XDG Autostart. On
59
+ macOS, `requiresApproval` reports when the entry is registered but still needs
60
+ approval in System Settings. Network context is best-effort, so optional fields
61
+ such as the default interface and SSID may be absent. macOS obtains this state
62
+ directly from SystemConfiguration without parsing command output.
63
+ Windows obtains the preferred interface and DNS servers from IP Helper and the
64
+ SSID from Native Wi-Fi, without spawning PowerShell.
61
65
 
62
66
  Core-file privilege APIs are supported on macOS and Linux. They accept only
63
67
  canonical, existing executables named `mihomo` or `mihomo-alpha`; callers cannot
package/index.d.ts CHANGED
@@ -24,7 +24,9 @@ export interface LaunchAtLoginOptions {
24
24
 
25
25
  export interface LaunchAtLoginStatus {
26
26
  enabled: boolean;
27
- backend: "windows-task-scheduler" | "macos-login-item" | "linux-xdg-autostart";
27
+ /** The entry is registered but macOS requires approval in System Settings. */
28
+ requiresApproval: boolean;
29
+ backend: "windows-current-user-run" | "macos-sm-app-service" | "linux-xdg-autostart";
28
30
  }
29
31
 
30
32
  /** Best-effort active-network state. Unavailable fields are omitted instead of guessed. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokorobox-native",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
4
  "description": "KokoroBox native bridge",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -47,11 +47,11 @@
47
47
  "access": "public"
48
48
  },
49
49
  "optionalDependencies": {
50
- "kokorobox-native-win32-x64-msvc": "0.5.5",
51
- "kokorobox-native-win32-arm64-msvc": "0.5.5",
52
- "kokorobox-native-darwin-x64": "0.5.5",
53
- "kokorobox-native-darwin-arm64": "0.5.5",
54
- "kokorobox-native-linux-x64-gnu": "0.5.5",
55
- "kokorobox-native-linux-arm64-gnu": "0.5.5"
50
+ "kokorobox-native-win32-x64-msvc": "0.6.0",
51
+ "kokorobox-native-win32-arm64-msvc": "0.6.0",
52
+ "kokorobox-native-darwin-x64": "0.6.0",
53
+ "kokorobox-native-darwin-arm64": "0.6.0",
54
+ "kokorobox-native-linux-x64-gnu": "0.6.0",
55
+ "kokorobox-native-linux-arm64-gnu": "0.6.0"
56
56
  }
57
57
  }