kokorobox-native 0.16.5 → 0.16.6

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 +16 -0
  2. package/index.js +9 -0
  3. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -24,6 +24,10 @@ export interface UwpLoopbackApp {
24
24
  }
25
25
 
26
26
  export interface NativeCapabilities {
27
+ serviceProcessStatus: boolean;
28
+ coreProfileValidation: boolean;
29
+ macosRoutingReconcile: boolean;
30
+ coreProcessControl: boolean;
27
31
  applicationInspection: boolean;
28
32
  executableDiscovery: boolean;
29
33
  windowsApplicationScan: boolean;
@@ -430,3 +434,15 @@ export interface SystemDnsDiagnostics {
430
434
  }
431
435
  /** Read-only system resolver probes and the current primary network DNS. */
432
436
  export declare function getSystemDnsDiagnostics(): Promise<SystemDnsDiagnostics>
437
+
438
+ export interface CoreProcessIdentity { pid: number; executable: string; started: string; }
439
+ export function inspectCoreProcess(pid: number, executable: string): Promise<CoreProcessIdentity | null>;
440
+ export function stopCoreProcess(identity: CoreProcessIdentity): Promise<boolean>;
441
+
442
+ export function reconcileMacosApplicationRouting(configuration: MacosApplicationRoutingConfiguration): Promise<MacosApplicationRoutingStatus & { proxyAvailable: boolean }>;
443
+
444
+ export interface CoreValidationOptions { executable: string; configPath: string; workDir: string; safePaths: string[]; }
445
+ export interface CoreValidationResult { outcome: 'valid' | 'invalid' | 'timeout' | 'output-limit'; output: string; }
446
+ export function validateCoreProfile(options: CoreValidationOptions): Promise<CoreValidationResult>;
447
+
448
+ export function getServiceProcessStatus(executable: string): Promise<'running' | 'stopped' | 'paused' | 'not-installed' | 'unknown'>;
package/index.js CHANGED
@@ -203,3 +203,12 @@ export const deleteServiceIdentity = diagnosticBinding.deleteServiceIdentity;
203
203
  export const getSystemProxyDiagnostics = diagnosticBinding.getSystemProxyDiagnostics;
204
204
  export const setSystemProxy = diagnosticBinding.setSystemProxy;
205
205
  export const getSystemDnsDiagnostics = diagnosticBinding.getSystemDnsDiagnostics;
206
+
207
+ export const inspectCoreProcess = diagnosticBinding.inspectCoreProcess;
208
+ export const stopCoreProcess = diagnosticBinding.stopCoreProcess;
209
+
210
+ export const reconcileMacosApplicationRouting = diagnosticBinding.reconcileMacosApplicationRouting;
211
+
212
+ export const validateCoreProfile = diagnosticBinding.validateCoreProfile;
213
+
214
+ export const getServiceProcessStatus = diagnosticBinding.getServiceProcessStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokorobox-native",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "KokoroBox native bridge",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -50,11 +50,11 @@
50
50
  "access": "public"
51
51
  },
52
52
  "optionalDependencies": {
53
- "kokorobox-native-win32-x64-msvc": "0.16.5",
54
- "kokorobox-native-win32-arm64-msvc": "0.16.5",
55
- "kokorobox-native-darwin-x64": "0.16.5",
56
- "kokorobox-native-darwin-arm64": "0.16.5",
57
- "kokorobox-native-linux-x64-gnu": "0.16.5",
58
- "kokorobox-native-linux-arm64-gnu": "0.16.5"
53
+ "kokorobox-native-win32-x64-msvc": "0.16.6",
54
+ "kokorobox-native-win32-arm64-msvc": "0.16.6",
55
+ "kokorobox-native-darwin-x64": "0.16.6",
56
+ "kokorobox-native-darwin-arm64": "0.16.6",
57
+ "kokorobox-native-linux-x64-gnu": "0.16.6",
58
+ "kokorobox-native-linux-arm64-gnu": "0.16.6"
59
59
  }
60
60
  }