kokorobox-native 0.13.0 → 0.15.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/index.d.ts +15 -3
  2. package/index.js +2 -0
  3. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -1,8 +1,15 @@
1
1
  export interface UwpLoopbackApp {
2
- sid: string;
3
- packageName: string;
2
+ /** Opaque identifier used only when changing this app's loopback exemption. */
3
+ id: string;
4
+ packageFamilyName: string;
5
+ packageFullName?: string;
4
6
  displayName: string;
7
+ description?: string;
5
8
  enabled: boolean;
9
+ category: "user" | "microsoft" | "system";
10
+ packageType?: "main" | "framework" | "resource" | "optional";
11
+ framework: boolean;
12
+ resourcePackage: boolean;
6
13
  }
7
14
 
8
15
  export interface NativeCapabilities {
@@ -23,6 +30,7 @@ export interface NativeCapabilities {
23
30
  windowsUwpLoopback: boolean;
24
31
  coreFilePrivileges: boolean;
25
32
  serviceIdentity: boolean;
33
+ linuxTerminalProxy: boolean;
26
34
  }
27
35
 
28
36
  export interface ExecutableSearchOptions {
@@ -182,6 +190,10 @@ export function fileToStr(
182
190
  ): RuleStringResult;
183
191
  export function getAppName(path: string): string;
184
192
  export function getNativeCapabilities(): NativeCapabilities;
193
+ /** Write KokoroBox's Linux user-session proxy file and update systemd --user over D-Bus. */
194
+ export function setTerminalProxyEnvironment(host: string, port: number, bypass: string[]): Promise<boolean>;
195
+ /** Remove only KokoroBox's Linux user-session proxy file and clear its session variables. */
196
+ export function clearTerminalProxyEnvironment(): Promise<boolean | null>;
185
197
  /** Resolve the executable shipped beside the current platform binding. */
186
198
  export function getTrafficPresenterPath(): string;
187
199
  export function findExecutables(options: ExecutableSearchOptions): Promise<ExecutableCandidate[]>;
@@ -290,4 +302,4 @@ export function ensureKokoroBoxCoreFirewall(
290
302
  applicationPath: string,
291
303
  ): void;
292
304
  export function listUwpLoopbackApps(): UwpLoopbackApp[];
293
- export function setUwpLoopbackExemption(sid: string, enabled: boolean): void;
305
+ export function setUwpLoopbackExemption(id: string, enabled: boolean): void;
package/index.js CHANGED
@@ -100,6 +100,8 @@ export const fileToDataUrl = nativeBinding.fileToDataUrl;
100
100
  export const fileToStr = nativeBinding.fileToStr;
101
101
  export const getAppName = nativeBinding.getAppName;
102
102
  export const getNativeCapabilities = nativeBinding.getNativeCapabilities;
103
+ export const setTerminalProxyEnvironment = nativeBinding.setTerminalProxyEnvironment;
104
+ export const clearTerminalProxyEnvironment = nativeBinding.clearTerminalProxyEnvironment;
103
105
  export const findExecutables = nativeBinding.findExecutables;
104
106
  export const getLaunchAtLogin = nativeBinding.getLaunchAtLogin;
105
107
  export const setLaunchAtLogin = nativeBinding.setLaunchAtLogin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokorobox-native",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "KokoroBox native bridge",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -48,11 +48,11 @@
48
48
  "access": "public"
49
49
  },
50
50
  "optionalDependencies": {
51
- "kokorobox-native-win32-x64-msvc": "0.13.0",
52
- "kokorobox-native-win32-arm64-msvc": "0.13.0",
53
- "kokorobox-native-darwin-x64": "0.13.0",
54
- "kokorobox-native-darwin-arm64": "0.13.0",
55
- "kokorobox-native-linux-x64-gnu": "0.13.0",
56
- "kokorobox-native-linux-arm64-gnu": "0.13.0"
51
+ "kokorobox-native-win32-x64-msvc": "0.15.0",
52
+ "kokorobox-native-win32-arm64-msvc": "0.15.0",
53
+ "kokorobox-native-darwin-x64": "0.15.0",
54
+ "kokorobox-native-darwin-arm64": "0.15.0",
55
+ "kokorobox-native-linux-x64-gnu": "0.15.0",
56
+ "kokorobox-native-linux-arm64-gnu": "0.15.0"
57
57
  }
58
58
  }