kokorobox-native 0.16.4 → 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.
- package/README.md +12 -0
- package/index.d.ts +30 -0
- package/index.js +10 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -71,3 +71,15 @@ inspect or refresh diagnostics.
|
|
|
71
71
|
|
|
72
72
|
Derived from [UruhaLushia/sparkle-native](https://github.com/UruhaLushia/sparkle-native)
|
|
73
73
|
and licensed under GPL-3.0-only.
|
|
74
|
+
### System DNS diagnostics
|
|
75
|
+
|
|
76
|
+
`getSystemDnsDiagnostics()` asynchronously probes the OS resolver for fixed
|
|
77
|
+
public test domains (`www.gstatic.com`, `example.com`) and returns per-domain
|
|
78
|
+
outcomes, the primary interface/service and current DNS IP addresses. It is
|
|
79
|
+
read-only on Windows, macOS and Linux. No input domains, arbitrary commands,
|
|
80
|
+
credentials or SSIDs are accepted or returned. Linux prefers per-link DNS from
|
|
81
|
+
NetworkManager/systemd-resolved and falls back to resolv.conf for inspection.
|
|
82
|
+
|
|
83
|
+
Bootstrap repair is Desktop configuration policy: Desktop copies the observed
|
|
84
|
+
system DNS addresses into `dns.default-nameserver` and restarts the core. Native
|
|
85
|
+
does not expose an OS DNS mutation API for diagnostics.
|
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;
|
|
@@ -33,6 +37,7 @@ export interface NativeCapabilities {
|
|
|
33
37
|
launchAtLogin: boolean;
|
|
34
38
|
networkContext: boolean;
|
|
35
39
|
networkMonitor: boolean;
|
|
40
|
+
systemDnsDiagnostics: boolean;
|
|
36
41
|
serviceLifecycle: boolean;
|
|
37
42
|
managedFilePermissions: boolean;
|
|
38
43
|
macosServiceManagement: boolean;
|
|
@@ -416,3 +421,28 @@ export interface NativeSystemProxySettings {
|
|
|
416
421
|
export declare function getSystemProxyDiagnostics(): Promise<NativeSystemProxyDiagnostics>;
|
|
417
422
|
/** Explicit user action only. Leaves WinHTTP/UWP unchanged; macOS manual restore preserves PAC/discovery. */
|
|
418
423
|
export declare function setSystemProxy(settings: NativeSystemProxySettings): Promise<NativeSystemProxyMutation>;
|
|
424
|
+
export interface DnsResolutionQuery {
|
|
425
|
+
domain: string
|
|
426
|
+
outcome: 'success' | 'failed' | 'unavailable'
|
|
427
|
+
}
|
|
428
|
+
export interface SystemDnsDiagnostics {
|
|
429
|
+
outcome: 'success' | 'failed' | 'unavailable'
|
|
430
|
+
queries: DnsResolutionQuery[]
|
|
431
|
+
interface?: string | null
|
|
432
|
+
service?: string | null
|
|
433
|
+
servers: string[]
|
|
434
|
+
}
|
|
435
|
+
/** Read-only system resolver probes and the current primary network DNS. */
|
|
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
|
@@ -202,3 +202,13 @@ export const deleteServiceIdentity = diagnosticBinding.deleteServiceIdentity;
|
|
|
202
202
|
|
|
203
203
|
export const getSystemProxyDiagnostics = diagnosticBinding.getSystemProxyDiagnostics;
|
|
204
204
|
export const setSystemProxy = diagnosticBinding.setSystemProxy;
|
|
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.
|
|
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.
|
|
54
|
-
"kokorobox-native-win32-arm64-msvc": "0.16.
|
|
55
|
-
"kokorobox-native-darwin-x64": "0.16.
|
|
56
|
-
"kokorobox-native-darwin-arm64": "0.16.
|
|
57
|
-
"kokorobox-native-linux-x64-gnu": "0.16.
|
|
58
|
-
"kokorobox-native-linux-arm64-gnu": "0.16.
|
|
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
|
}
|