@velum-labs/routekit-daemon 1.3.0 → 1.3.2
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.
|
|
4
|
+
"version": "1.3.2",
|
|
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.
|
|
48
|
-
"@velum-labs/routekit-config": "1.3.
|
|
49
|
-
"@velum-labs/routekit-control": "1.3.
|
|
50
|
-
"@velum-labs/routekit-eval-contracts": "1.3.
|
|
51
|
-
"@velum-labs/routekit-eval-store": "1.3.
|
|
52
|
-
"@velum-labs/routekit-gateway": "1.3.
|
|
53
|
-
"@velum-labs/routekit-registry": "1.3.
|
|
54
|
-
"@velum-labs/routekit-runtime": "1.3.
|
|
55
|
-
"@velum-labs/routekit-telemetry-core": "1.3.
|
|
47
|
+
"@velum-labs/routekit-accounts": "1.3.2",
|
|
48
|
+
"@velum-labs/routekit-config": "1.3.2",
|
|
49
|
+
"@velum-labs/routekit-control": "1.3.2",
|
|
50
|
+
"@velum-labs/routekit-eval-contracts": "1.3.2",
|
|
51
|
+
"@velum-labs/routekit-eval-store": "1.3.2",
|
|
52
|
+
"@velum-labs/routekit-gateway": "1.3.2",
|
|
53
|
+
"@velum-labs/routekit-registry": "1.3.2",
|
|
54
|
+
"@velum-labs/routekit-runtime": "1.3.2",
|
|
55
|
+
"@velum-labs/routekit-telemetry-core": "1.3.2"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -b",
|