@dns-data/remote 0.2.29 → 0.2.31

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
@@ -77,3 +77,31 @@ access to unconnected or existing private Codex App Server connections.
77
77
  Use npx @dns-data/remote --desktop-help for setup hints.
78
78
  This package has no Windows npm support, cloud conversation storage, or
79
79
  additional network ports.
80
+
81
+ ## Version 0.2.30 — Native ChatGPT desktop capture
82
+
83
+ The bundled Swift Accessibility helper now uses AXUIElement instead of the
84
+ macOS System Events static-text traversal, which does not enumerate all of
85
+ Electron's accessible message text. It extracts visible role-labelled user
86
+ and ChatGPT messages from the local desktop app. User-permitted Accessibility
87
+ is required. It does not use screen OCR, capture login credentials, read
88
+ private browser storage, or claim access to unloaded historical messages.
89
+
90
+ Source conversation and message IDs are derived from currently visible
91
+ content, not guaranteed to equal official ChatGPT IDs. If a chat is renamed,
92
+ the fallback source may create a separate conversation key; history remains
93
+ marked incomplete. Accurate original IDs and full history remain a separate
94
+ adapter validation requirement.
95
+
96
+ ## Version 0.2.31 — Continuous capture and checkpoint freshness
97
+
98
+ macOS-only bug fixes: fingerprint all exposed desktop message IDs, contents and
99
+ completion states (rather than the first visible message); keep the checkpoint
100
+ source digest idempotent; report truly new message counts; and retain recent
101
+ task progress in long automatic checkpoints while preserving the original
102
+ encrypted message records. Includes regression coverage against a live ChatGPT
103
+ desktop Accessibility tree and an isolated encrypted memory store.
104
+
105
+ This package does not enable Windows npm or modify the Windows EXE.
106
+ Visible Accessibility messages are still partial history. Native event hooks,
107
+ when available, remain preferable to UI extraction.
package/bin/dns-data.js CHANGED
@@ -15,10 +15,19 @@ if(!nativeSpec){
15
15
  const nativeName=nativeSpec.file;
16
16
  const expected={[nativeName]:nativeSpec.sha256};
17
17
  const binary=path.resolve(__dirname,'..','native',nativeName);
18
+ const helper=path.resolve(__dirname,'..','native','ax-chat-capture-arm64');
19
+ const expectedHelper=nativeSpec.axHelperSha256;
20
+
18
21
  try{
19
22
  const hash=crypto.createHash('sha256').update(fs.readFileSync(binary)).digest('hex');
20
23
  if(hash.toLowerCase()!==expected[nativeName].toLowerCase()) throw Error('native binary integrity mismatch');
21
- if(process.platform==='darwin') fs.chmodSync(binary,0o755);
24
+ if(!expectedHelper || !/^[a-f0-9]{64}$/.test(expectedHelper)) throw Error('AX helper manifest missing');
25
+ const axHash=crypto.createHash('sha256').update(fs.readFileSync(helper)).digest('hex');
26
+ if(axHash!==expectedHelper) throw Error('AX helper binary integrity mismatch');
27
+ if(process.platform==='darwin'){
28
+ fs.chmodSync(binary,0o755);
29
+ fs.chmodSync(helper,0o755);
30
+ }
22
31
  }catch(e){console.error('[ERROR] DNS-DATA integrity: '+e.message);process.exit(3);}
23
32
 
24
33
  const args=process.argv.slice(2);
@@ -91,6 +100,28 @@ if(process.platform==='darwin' && !diagnosticOnly){
91
100
  fs.chmodSync(stableBinary,0o700);
92
101
  if(digest(stableBinary)!==expected[nativeName])
93
102
  throw Error('installed native hash mismatch');
103
+ // The Swift AX helper is bundled and hash-checked like the Agent.
104
+ // It never opens a TCP port and executes only within the signed-in
105
+ // Agent's local account session.
106
+ const stableHelper=path.join(stableDir,'ax-chat-capture-arm64');
107
+ let helperCurrent=false;
108
+ try{
109
+ const fi=fs.lstatSync(stableHelper);
110
+ if(!fi.isFile() || fi.isSymbolicLink()) throw Error('unsafe AX helper path');
111
+ helperCurrent=digest(stableHelper)===expectedHelper;
112
+ }catch(e){if(e.code!=='ENOENT')throw e;}
113
+ if(!helperCurrent){
114
+ const temp=path.join(stableDir,'.dnsdata-ax-'+process.pid+'-'+
115
+ crypto.randomBytes(8).toString('hex')+'.tmp');
116
+ try{
117
+ fs.copyFileSync(helper,temp,fs.constants.COPYFILE_EXCL);
118
+ fs.chmodSync(temp,0o700);
119
+ if(digest(temp)!==expectedHelper)throw Error('AX helper staged hash mismatch');
120
+ fs.renameSync(temp,stableHelper);
121
+ }finally{if(fs.existsSync(temp))fs.unlinkSync(temp);}
122
+ }
123
+ fs.chmodSync(stableHelper,0o700);
124
+ if(digest(stableHelper)!==expectedHelper)throw Error('AX helper install hash mismatch');
94
125
  runtimeBinary=stableBinary;
95
126
  }catch(e){
96
127
  console.error('[ERROR] DNS-DATA macOS agent installation: '+e.message);
@@ -1,9 +1,9 @@
1
- 'use strict';
2
- // npm is supported only on Apple Silicon Macs. Windows installs its .exe client.
3
- const nativeByPlatform=Object.freeze({
4
- 'darwin-arm64':Object.freeze({file:'macos-arm64',sha256:'e7e9069e8212e66c1860bf0487c2e1554da16bd8d788802ca69abd16a4cb9726'}),
5
- });
6
- function selectNative(platform,arch){
7
- return nativeByPlatform[platform+'-'+arch]||null;
8
- }
9
- module.exports={selectNative,nativeByPlatform};
1
+ 'use strict';
2
+ // npm is supported only on Apple Silicon Macs. Windows installs its .exe client.
3
+ const nativeByPlatform=Object.freeze({
4
+ 'darwin-arm64':Object.freeze({file:'macos-arm64',sha256:'718e6e3b6f1db1416da5cb4cb1c09ede221f64558e02d7f8d9a0120322a24ae0',axHelperSha256:'68d7b855eb8f46d4006d4e30ca8a26bf465eec1d4292f43762276823066f946d'}),
5
+ });
6
+ function selectNative(platform,arch){
7
+ return nativeByPlatform[platform+'-'+arch]||null;
8
+ }
9
+ module.exports={selectNative,nativeByPlatform};
Binary file
Binary file
package/package.json CHANGED
@@ -1,39 +1,40 @@
1
1
  {
2
- "name": "@dns-data/remote",
3
- "version": "0.2.29",
4
- "description": "DNS-DATA macOS Apple Silicon MCP launcher: automatic browser and desktop AI incremental memory and checkpoint continuation",
5
- "license": "UNLICENSED",
6
- "private": false,
7
- "bin": {
8
- "dns-data": "bin/dns-data.js"
9
- },
10
- "engines": {
11
- "node": "\u003e=18"
12
- },
13
- "os": [
14
- "darwin"
15
- ],
16
- "files": [
17
- "bin/dns-data.js",
18
- "bin/native-platform.js",
19
- "bin/desktop-shortcut.js",
20
- "native/macos-arm64",
21
- "README.md",
22
- "DISCLOSURE",
23
- "integrations/desktop_hook.py",
24
- "integrations/codex_event_adapter.py",
25
- "integrations/setup_claude_code.py"
26
- ],
27
- "keywords": [
28
- "dns-data",
29
- "mcp",
30
- "remote",
31
- "native-launcher"
32
- ],
33
- "contentPolicy": {
34
- "class": "dual-use"
35
- },
36
- "cpu": [
37
- "arm64"
38
- ]
39
- }
2
+ "name": "@dns-data/remote",
3
+ "version": "0.2.31",
4
+ "description": "macOS Apple Silicon AI memory bridge with native ChatGPT desktop accessibility capture, automatic checkpointing and browser/Hooks adapters",
5
+ "license": "UNLICENSED",
6
+ "private": false,
7
+ "bin": {
8
+ "dns-data": "bin/dns-data.js"
9
+ },
10
+ "engines": {
11
+ "node": ">=18"
12
+ },
13
+ "os": [
14
+ "darwin"
15
+ ],
16
+ "files": [
17
+ "bin/dns-data.js",
18
+ "bin/native-platform.js",
19
+ "bin/desktop-shortcut.js",
20
+ "native/macos-arm64",
21
+ "README.md",
22
+ "DISCLOSURE",
23
+ "integrations/desktop_hook.py",
24
+ "integrations/codex_event_adapter.py",
25
+ "integrations/setup_claude_code.py",
26
+ "native/ax-chat-capture-arm64"
27
+ ],
28
+ "keywords": [
29
+ "dns-data",
30
+ "mcp",
31
+ "remote",
32
+ "native-launcher"
33
+ ],
34
+ "contentPolicy": {
35
+ "class": "dual-use"
36
+ },
37
+ "cpu": [
38
+ "arm64"
39
+ ]
40
+ }