@slock-ai/daemon 0.31.3-alpha.7 → 0.32.0

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.
File without changes
package/dist/index.js CHANGED
@@ -2178,16 +2178,22 @@ function summarizeIncomingMessage(msg) {
2178
2178
  }
2179
2179
  }
2180
2180
  function detectRuntimes() {
2181
- const detected = [];
2181
+ const ids = [];
2182
+ const versions = {};
2182
2183
  const cmd = process.platform === "win32" ? "where" : "which";
2183
2184
  for (const rt of RUNTIMES) {
2184
2185
  try {
2185
2186
  execSync2(`${cmd} ${rt.binary}`, { stdio: "pipe" });
2186
- detected.push(rt.id);
2187
+ ids.push(rt.id);
2188
+ try {
2189
+ const ver = execSync2(`${rt.binary} --version`, { stdio: "pipe", timeout: 5e3 }).toString().trim().split("\n")[0];
2190
+ versions[rt.id] = ver;
2191
+ } catch {
2192
+ }
2187
2193
  } catch {
2188
2194
  }
2189
2195
  }
2190
- return detected;
2196
+ return { ids, versions };
2191
2197
  }
2192
2198
  var args = process.argv.slice(2);
2193
2199
  var serverUrl = "";
@@ -2290,8 +2296,9 @@ connection = new DaemonConnection({
2290
2296
  }
2291
2297
  },
2292
2298
  onConnect: () => {
2293
- const runtimes = detectRuntimes();
2294
- logger.info(`[Daemon] Detected runtimes: ${runtimes.join(", ") || "none"}`);
2299
+ const { ids: runtimes, versions: runtimeVersions } = detectRuntimes();
2300
+ const runtimeInfo = runtimes.map((id) => runtimeVersions[id] ? `${id} (${runtimeVersions[id]})` : id);
2301
+ logger.info(`[Daemon] Detected runtimes: ${runtimeInfo.join(", ") || "none"}`);
2295
2302
  connection.send({
2296
2303
  type: "ready",
2297
2304
  capabilities: ["agent:start", "agent:stop", "agent:deliver", "workspace:files"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.31.3-alpha.7",
3
+ "version": "0.32.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"
@@ -16,28 +16,27 @@
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
19
+ "dependencies": {
20
+ "@modelcontextprotocol/sdk": "^1.29.0",
21
+ "ws": "^8.20.0",
22
+ "zod": "^4.3.6"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^25.5.0",
26
+ "@types/ws": "^8.18.1",
27
+ "tsup": "^8.5.1",
28
+ "typescript": "^5.9.3",
29
+ "@slock-ai/shared": "0.1.0"
30
+ },
19
31
  "scripts": {
20
32
  "dev": "tsx watch src/index.ts",
21
33
  "start": "tsx src/index.ts",
22
34
  "build": "tsup",
23
35
  "test": "node --import tsx --test --test-force-exit 'src/**/*.test.ts'",
24
- "prepublishOnly": "pnpm run build",
25
36
  "typecheck": "tsc --noEmit",
26
37
  "release:patch": "npm version patch --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @slock-ai/daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags",
27
38
  "release:minor": "npm version minor --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @slock-ai/daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags",
28
39
  "release:major": "npm version major --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @slock-ai/daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags",
29
40
  "release:alpha": "npm version prerelease --preid=alpha --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @slock-ai/daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags"
30
- },
31
- "dependencies": {
32
- "@modelcontextprotocol/sdk": "^1.29.0",
33
- "ws": "^8.20.0",
34
- "zod": "^4.3.6"
35
- },
36
- "devDependencies": {
37
- "@slock-ai/shared": "workspace:*",
38
- "@types/node": "^25.5.0",
39
- "@types/ws": "^8.18.1",
40
- "tsup": "^8.5.1",
41
- "typescript": "^5.9.3"
42
41
  }
43
- }
42
+ }