@dns-data/remote 0.2.24 → 0.2.25

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
@@ -25,6 +25,8 @@ Context continuation requires the AI client to invoke the relevant MCP tools.
25
25
  An Agent cannot recover private chat content the AI provider does not send.
26
26
  The local management page does not have a context-continuation settings page; context continuation remains available through MCP tools.
27
27
 
28
+ v0.2.25 keeps the npm terminal active when a macOS Agent is already running, showing the local session state without starting a duplicate or changing the existing service. First starts continue to show the native live connection log.
29
+
28
30
  v0.2.24 removes the macOS local knowledge-indexing feature and its existing encrypted index records (without deleting ordinary memories), and removes the local context-management page. Automatic MCP context continuation remains available.
29
31
 
30
32
  v0.2.23 adds encrypted cross-AI conversation continuation by provider name and real conversation title.
package/bin/dns-data.js CHANGED
@@ -142,9 +142,37 @@ if(process.platform==='darwin' && (args.length===0 || (args.length===1&&args[0]=
142
142
  activeMacPanel().then(active=>{
143
143
  if(!active){launchNative();return;}
144
144
  const url='http://127.0.0.1:18761/';
145
- console.log('DNS-DATA already running. Local management page: '+url);
146
- // Do not open another browser tab when npm is invoked repeatedly.
147
- // The desktop shortcut remains the explicit Open UI action.
145
+ console.log('DNS-DATA Remote Connection - V2');
146
+ console.log('[OK] DNS-DATA Agent already running');
147
+ console.log(' Local management page: '+url);
148
+ console.log(' This window monitors the existing service.');
149
+ console.log(' Press Ctrl+C to close this view; the existing service remains running.');
150
+ // Keep the invoked terminal occupied instead of silently returning to the
151
+ // shell. The original launcher still owns the Agent and its live logs.
152
+ // Never create a duplicate Agent, kill the existing one, or open a browser.
153
+ let polling=false;
154
+ const monitor=setInterval(async()=>{
155
+ if(polling)return;
156
+ polling=true;
157
+ try{
158
+ if(!await activeMacPanel()){
159
+ console.error('[WARN] Existing DNS-DATA Agent no longer responds. Run npx again to start the service.');
160
+ clearInterval(monitor);
161
+ process.exitCode=1;
162
+ }
163
+ }catch(e){
164
+ console.error('[WARN] Existing DNS-DATA Agent status unavailable.');
165
+ clearInterval(monitor);
166
+ process.exitCode=1;
167
+ }finally{polling=false;}
168
+ },5000);
169
+ for(const sig of ['SIGINT','SIGTERM']){
170
+ process.once(sig,()=>{
171
+ clearInterval(monitor);
172
+ console.log('DNS-DATA monitor closed; existing service was not stopped.');
173
+ process.exit(0);
174
+ });
175
+ }
148
176
  }).catch(()=>launchNative());
149
177
  }else{
150
178
  launchNative();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dns-data/remote",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "DNS-DATA Apple Silicon native MCP launcher with encrypted unified memory and automatic cross-AI context continuation",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,