newmark-agent 0.3.7 → 0.3.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.
@@ -40,6 +40,7 @@ const conversationKernel_1 = require("./core/conversationKernel");
40
40
  const conversationTarget_1 = require("./core/conversationTarget");
41
41
  const wslHostToolBridge_1 = require("./core/wslHostToolBridge");
42
42
  const terminalTakeover_1 = require("./tools/terminalTakeover");
43
+ const runtimeLifecycle_1 = require("./core/runtimeLifecycle");
43
44
  const root = process.env.NEWMARK_WSL_ROOT || '';
44
45
  const distro = process.env.NEWMARK_WSL_DISTRO || 'WSL';
45
46
  if (!root)
@@ -66,6 +67,7 @@ function createWslAgent(actorId) {
66
67
  agentOnly: true,
67
68
  workspaceRegistryMode: 'detached',
68
69
  actorId,
70
+ runtimeLifecycleRole: 'wsl',
69
71
  });
70
72
  configureWslToolHost(agent);
71
73
  return agent;
@@ -144,6 +146,8 @@ async function handle(request) {
144
146
  return { backend: 'wsl', distro, ...runtimeIdentity(), platform: process.platform, root };
145
147
  if (request.method === 'shutdown') {
146
148
  (0, terminalTakeover_1.shutdownTerminalTakeoverSessions)('wsl-host-shutdown');
149
+ if (!host.goal || host.goal.paused)
150
+ (0, runtimeLifecycle_1.markRuntimeLifecycleClean)(root, 'wsl');
147
151
  setTimeout(() => process.exit(0), 10);
148
152
  return true;
149
153
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "newmark-agent",
3
3
  "productName": "Newmark Agent",
4
- "version": "0.3.7",
4
+ "version": "0.3.10",
5
5
  "description": "Newmark Agent — Portable AI coding agent with rich GUI and CLI (TypeScript)",
6
6
  "homepage": "https://github.com/positer/Newmark-Agent",
7
7
  "repository": {
@@ -289,6 +289,6 @@
289
289
  "electron": "^43.1.1"
290
290
  },
291
291
  "overrides": {
292
- "fast-uri": "3.1.4"
292
+ "fast-uri": "3.1.5"
293
293
  }
294
294
  }