@dns-data/remote 0.2.15 → 0.2.16

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 CHANGED
@@ -56,3 +56,30 @@ cloud relay, new persistent port, Windows binary update, or browser auto-open.
56
56
  AI-provider automatic checkpoint creation remains dependent on that AI
57
57
  client invoking MCP memory tools; a native Agent cannot observe provider
58
58
  conversations the provider never sends.
59
+
60
+ ## 0.2.16 candidate: macOS unified MCP knowledge tools
61
+
62
+ The macOS native Agent restores the six knowledge interfaces already present
63
+ in the established Windows Agent: knowledge_index_path, knowledge_search,
64
+ knowledge_watch_add, knowledge_watch_remove, knowledge_watch_status and
65
+ knowledge_remove_source. Document chunks and index metadata use authenticated
66
+ encrypted memory events and the existing account LAN synchronization. This
67
+ candidate deliberately excludes earlier plaintext SQLite index code and
68
+ does not change the Windows executable.
69
+
70
+ The three new task-checkpoint interfaces remain on macOS. AI platform tool
71
+ discovery also depends on the provider's external MCP connector catalog.
72
+
73
+ ## Unified npm startup - Windows x64 and macOS Apple Silicon/Intel
74
+
75
+ All supported OS/CPU combinations use the identical command:
76
+
77
+ npx -y @dns-data/remote@latest
78
+
79
+ The npm wrapper selects the verified native Agent for Windows x64,
80
+ macOS ARM64 or macOS x64. The existing Windows native Agent and independent
81
+ Windows client are unchanged. Both macOS architectures install into distinct
82
+ stable per-user Agent paths. The package performs no automatic browser launch.
83
+ Unsupported CPU/OS combinations receive an explicit error instead of silently
84
+ loading an incorrect binary. No change to account entitlements or native
85
+ Windows functionality is made by this cross-platform entrypoint.
package/bin/dns-data.js CHANGED
@@ -6,14 +6,14 @@ const crypto=require('crypto');
6
6
  const os=require('os');
7
7
  const {spawn}=require('child_process');
8
8
 
9
- const id=process.platform+'-'+process.arch;
10
- const binaries={'win32-x64':'windows-x64.exe','darwin-arm64':'macos-arm64'};
11
- const expected={
12
- 'windows-x64.exe':'8f54d053ad08bcb7afe906bba6c6fd12ab5b465121f18d351a58b79076ab3cb0',
13
- 'macos-arm64':'96f2dabc8f2aa247b27916f6f0302cdad28a5f28b3e62e0af6cfb541d0941fef'
14
- };
15
- const nativeName=binaries[id];
16
- if(!nativeName){console.error('[ERROR] DNS-DATA supports Windows x64 and macOS arm64.');process.exit(2);}
9
+ const {selectNative}=require('./native-platform');
10
+ const nativeSpec=selectNative(process.platform,process.arch);
11
+ if(!nativeSpec){
12
+ console.error('[ERROR] Unsupported DNS-DATA platform '+process.platform+'-'+process.arch+'. Supported: Windows x64, macOS Apple Silicon and Intel.');
13
+ process.exit(2);
14
+ }
15
+ const nativeName=nativeSpec.file;
16
+ const expected={[nativeName]:nativeSpec.sha256};
17
17
  const binary=path.resolve(__dirname,'..','native',nativeName);
18
18
  try{
19
19
  const hash=crypto.createHash('sha256').update(fs.readFileSync(binary)).digest('hex');
@@ -29,7 +29,7 @@ let runtimeBinary=binary;
29
29
  if(process.platform==='darwin'){
30
30
  const stableDir=path.join(os.homedir(),'Library','Application Support',
31
31
  'DNS-DATA','Remote-Agent');
32
- const stableBinary=path.join(stableDir,'dns-data-agent-macos-arm64');
32
+ const stableBinary=path.join(stableDir,'dns-data-agent-'+nativeName);
33
33
  const digest=(p)=>crypto.createHash('sha256').update(fs.readFileSync(p)).digest('hex');
34
34
  try {
35
35
  fs.mkdirSync(stableDir,{recursive:true,mode:0o700});
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+ // One universal NPM command, with an exact per-platform verified Agent.
3
+ const nativeByPlatform=Object.freeze({
4
+ 'win32-x64':Object.freeze({file:'windows-x64.exe',sha256:'8f54d053ad08bcb7afe906bba6c6fd12ab5b465121f18d351a58b79076ab3cb0'}),
5
+ 'darwin-arm64':Object.freeze({file:'macos-arm64',sha256:'a623772545c8644e8222b38889dd84858ae22c1bfa1c3ea548cfc2280b023328'}),
6
+ 'darwin-x64':Object.freeze({file:'macos-x64',sha256:'10df6c9fb57edb11b82cef00218feaf2a7a9a68d1a5ac2a51caee747aeacb89b'})
7
+ });
8
+ function selectNative(platform,arch){
9
+ return nativeByPlatform[platform+'-'+arch]||null;
10
+ }
11
+ module.exports={selectNative,nativeByPlatform};
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dns-data/remote",
3
- "version": "0.2.15",
4
- "description": "DNS-DATA native Windows and macOS launcher with automatic npm desktop shortcuts and LAN Direct v3",
3
+ "version": "0.2.16",
4
+ "description": "DNS-DATA unified npm launcher for Windows x64 and macOS Apple Silicon/Intel with automatic native Agent selection",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "bin": {
@@ -16,9 +16,11 @@
16
16
  ],
17
17
  "files": [
18
18
  "bin/dns-data.js",
19
+ "bin/native-platform.js",
19
20
  "bin/desktop-shortcut.js",
20
21
  "native/windows-x64.exe",
21
22
  "native/macos-arm64",
23
+ "native/macos-x64",
22
24
  "README.md",
23
25
  "DISCLOSURE"
24
26
  ],