nstantpage-agent 0.5.9 → 0.5.10

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/dist/cli.js CHANGED
@@ -25,7 +25,7 @@ const program = new Command();
25
25
  program
26
26
  .name('nstantpage')
27
27
  .description('Local development agent for nstantpage.com — run projects on your machine, preview in the cloud')
28
- .version('0.5.8');
28
+ .version('0.5.9');
29
29
  program
30
30
  .command('login')
31
31
  .description('Authenticate with nstantpage.com')
@@ -24,7 +24,7 @@ import { getConfig, getProjectConfig, setProjectConfig, clearProjectConfig, getD
24
24
  import { TunnelClient } from '../tunnel.js';
25
25
  import { LocalServer } from '../localServer.js';
26
26
  import { PackageInstaller } from '../packageInstaller.js';
27
- const VERSION = '0.5.8';
27
+ const VERSION = '0.5.9';
28
28
  /**
29
29
  * Resolve the backend API base URL.
30
30
  * - If --backend is passed, use it
@@ -592,7 +592,7 @@ export class LocalServer {
592
592
  connected: true,
593
593
  projectId: this.options.projectId,
594
594
  agent: {
595
- version: '0.5.8',
595
+ version: '0.5.9',
596
596
  hostname: os.hostname(),
597
597
  platform: `${os.platform()} ${os.arch()}`,
598
598
  },
package/dist/tunnel.js CHANGED
@@ -63,7 +63,7 @@ export class TunnelClient {
63
63
  // Send enhanced agent info with capabilities and deviceId
64
64
  this.send({
65
65
  type: 'agent-info',
66
- version: '0.5.8',
66
+ version: '0.5.9',
67
67
  hostname: os.hostname(),
68
68
  platform: `${os.platform()} ${os.arch()}`,
69
69
  deviceId: getDeviceId(),
@@ -163,11 +163,12 @@ export class TunnelClient {
163
163
  handleWsOpen(wsId, sessionId, _projectId) {
164
164
  const session = getTerminalSession(sessionId);
165
165
  if (!session) {
166
- // Session not found — send error and close
166
+ // Session not found — send a 'closed' event (not 'error') so
167
+ // the frontend stops reconnecting instead of showing a red banner.
167
168
  this.send({
168
169
  type: 'ws-data',
169
170
  wsId,
170
- data: JSON.stringify({ type: 'error', message: `Session ${sessionId} not found` }),
171
+ data: JSON.stringify({ type: 'closed', message: `Session ${sessionId} no longer exists`, sessionNotFound: true }),
171
172
  });
172
173
  this.send({ type: 'ws-close', wsId });
173
174
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nstantpage-agent",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Local development agent for nstantpage.com — run your projects locally, preview in the cloud. Replaces cloud containers for faster builds.",
5
5
  "type": "module",
6
6
  "bin": {