@velum-labs/routekit-daemon 1.3.1 → 1.4.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.
@@ -130,6 +130,7 @@ const acquireRunningDaemon = Effect.fn("Daemon.acquireRunning")(function* (optio
130
130
  const verifyWorkloadJwt = workloadJwt === undefined ? undefined : createWorkloadJwtVerifier(workloadJwt);
131
131
  const proxy = yield* startSwitchingGatewayProxyEffect({
132
132
  target: router.url,
133
+ packageVersion: options.packageVersion,
133
134
  host: options.host ?? "127.0.0.1",
134
135
  port: options.port ?? 8080,
135
136
  authToken: tokens.dataAuth.token,
@@ -177,6 +177,13 @@ test("singleton daemon exposes authenticated control and a stable reloadable dat
177
177
  assert.equal(statSync(join(stateHome, "services", "daemon.json")).mode & 0o777, 0o600);
178
178
  assert.ok(record.authTokenFile !== undefined);
179
179
  const dataToken = readFileSync(record.authTokenFile, "utf8").trim();
180
+ const health = await fetch(`${daemon.dataUrl}/health`);
181
+ assert.equal(health.status, 200);
182
+ assert.deepEqual(await health.json(), {
183
+ status: "ok",
184
+ version: "1.2.3",
185
+ pid: process.pid
186
+ });
180
187
  assert.equal((await fetch(`${daemon.dataUrl}/v1/models`)).status, 401);
181
188
  await assert.rejects(runRouteKitEffect(new ControlClient({ url: record.url, token: "wrong" }).health()));
182
189
  const client = new RouteKitControlClient({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@velum-labs/routekit-daemon",
3
3
  "private": false,
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
5
5
  "description": "Singleton RouteKit control daemon and stable model gateway.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -44,15 +44,15 @@
44
44
  "effect": "4.0.0-rc.108",
45
45
  "posthog-node": "5.46.1",
46
46
  "yaml": "2.9.0",
47
- "@velum-labs/routekit-accounts": "1.3.1",
48
- "@velum-labs/routekit-config": "1.3.1",
49
- "@velum-labs/routekit-control": "1.3.1",
50
- "@velum-labs/routekit-eval-contracts": "1.3.1",
51
- "@velum-labs/routekit-eval-store": "1.3.1",
52
- "@velum-labs/routekit-gateway": "1.3.1",
53
- "@velum-labs/routekit-registry": "1.3.1",
54
- "@velum-labs/routekit-runtime": "1.3.1",
55
- "@velum-labs/routekit-telemetry-core": "1.3.1"
47
+ "@velum-labs/routekit-accounts": "1.4.0",
48
+ "@velum-labs/routekit-config": "1.4.0",
49
+ "@velum-labs/routekit-control": "1.4.0",
50
+ "@velum-labs/routekit-eval-contracts": "1.4.0",
51
+ "@velum-labs/routekit-eval-store": "1.4.0",
52
+ "@velum-labs/routekit-gateway": "1.4.0",
53
+ "@velum-labs/routekit-registry": "1.4.0",
54
+ "@velum-labs/routekit-runtime": "1.4.0",
55
+ "@velum-labs/routekit-telemetry-core": "1.4.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsc -b",