kokorobox-native 0.16.4 → 0.16.5
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 +14 -0
- package/index.js +1 -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
|
@@ -33,6 +33,7 @@ export interface NativeCapabilities {
|
|
|
33
33
|
launchAtLogin: boolean;
|
|
34
34
|
networkContext: boolean;
|
|
35
35
|
networkMonitor: boolean;
|
|
36
|
+
systemDnsDiagnostics: boolean;
|
|
36
37
|
serviceLifecycle: boolean;
|
|
37
38
|
managedFilePermissions: boolean;
|
|
38
39
|
macosServiceManagement: boolean;
|
|
@@ -416,3 +417,16 @@ export interface NativeSystemProxySettings {
|
|
|
416
417
|
export declare function getSystemProxyDiagnostics(): Promise<NativeSystemProxyDiagnostics>;
|
|
417
418
|
/** Explicit user action only. Leaves WinHTTP/UWP unchanged; macOS manual restore preserves PAC/discovery. */
|
|
418
419
|
export declare function setSystemProxy(settings: NativeSystemProxySettings): Promise<NativeSystemProxyMutation>;
|
|
420
|
+
export interface DnsResolutionQuery {
|
|
421
|
+
domain: string
|
|
422
|
+
outcome: 'success' | 'failed' | 'unavailable'
|
|
423
|
+
}
|
|
424
|
+
export interface SystemDnsDiagnostics {
|
|
425
|
+
outcome: 'success' | 'failed' | 'unavailable'
|
|
426
|
+
queries: DnsResolutionQuery[]
|
|
427
|
+
interface?: string | null
|
|
428
|
+
service?: string | null
|
|
429
|
+
servers: string[]
|
|
430
|
+
}
|
|
431
|
+
/** Read-only system resolver probes and the current primary network DNS. */
|
|
432
|
+
export declare function getSystemDnsDiagnostics(): Promise<SystemDnsDiagnostics>
|
package/index.js
CHANGED
|
@@ -202,3 +202,4 @@ 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kokorobox-native",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
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.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"
|
|
59
59
|
}
|
|
60
60
|
}
|