@klhapp/skillmux 0.4.3 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.4](https://github.com/klhq/skillmux/compare/v0.4.3...v0.4.4) (2026-07-23)
9
+
10
+
11
+ ### Fixed
12
+
13
+ * connect stdio transport before blocking on runtime init ([#54](https://github.com/klhq/skillmux/issues/54)) ([847af1c](https://github.com/klhq/skillmux/commit/847af1c39265937701e432b631710fc0a2aa9ea0))
14
+
8
15
  ## [0.4.3](https://github.com/klhq/skillmux/compare/v0.4.2...v0.4.3) (2026-07-23)
9
16
 
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klhapp/skillmux",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Local read-only MCP server routing natural-language task queries to skills in a SKILL.md vault, with zero-loss delivery",
5
5
  "type": "module",
6
6
  "private": false,
package/src/cli.ts CHANGED
@@ -148,6 +148,10 @@ async function main() {
148
148
  };
149
149
  process.once("SIGTERM", shutdown);
150
150
  process.once("SIGINT", shutdown);
151
+ if (transport === "stdio") {
152
+ process.stdin.on("close", shutdown);
153
+ process.stdin.on("end", shutdown);
154
+ }
151
155
  break;
152
156
  }
153
157
  case "index":
package/src/server.ts CHANGED
@@ -60,9 +60,10 @@ export async function startServer(opts?: {
60
60
  }): Promise<ServerHandle> {
61
61
  const config = opts?.config ?? await loadConfig();
62
62
  configure({ config, clients: opts?.clients ?? createClients(config) });
63
- await initializeRuntime(readinessState);
64
- metricsRegistry.setReadiness(readinessState.get());
65
63
  const stopWatcher = await startVaultWatcher();
64
+ const initPromise = initializeRuntime(readinessState)
65
+ .then(() => metricsRegistry.setReadiness(readinessState.get()))
66
+ .catch((err) => console.error("skillmux runtime init error:", err));
66
67
 
67
68
  const server = new McpServer({ name: "skillmux", version: "0.1.0" });
68
69
 
@@ -403,6 +404,7 @@ export async function startServer(opts?: {
403
404
  },
404
405
  });
405
406
  let stopped = false;
407
+ await initPromise;
406
408
  console.log(`skillmux serving over HTTP on ${hostname}:${bunServer.port}`);
407
409
  return {
408
410
  port: bunServer.port,