@velum-labs/routekit-daemon 0.12.0 → 0.13.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { createRouteKitControlHandler, ROUTEKIT_CONTROL_CAPABILITY } from "@velu
14
14
  import { startSwitchingGatewayProxy } from "@velum-labs/routekit-gateway";
15
15
  import { PROVIDERS, accountKindForCliproxyAuthType, resolveAccountConnector } from "@velum-labs/routekit-registry";
16
16
  import { startRouter } from "@velum-labs/routekit-router";
17
- import { acquireLifecycleLock, CONTROL_PROTOCOL_VERSION, ControlClient, ControlError, createPortlessSession, createServiceRecordStore, createTokenStore, extendCleanupGrace, generateControlToken, nextServiceGeneration, processIdentity, registerCleanup, SERVICE_HOME_MODE, startControlServer, supervisorFromEnv, writeFileAtomic } from "@velum-labs/routekit-runtime";
17
+ import { acquireLifecycleLock, CONTROL_PROTOCOL_VERSION, ControlClient, ControlError, createPortlessSession, createServiceRecordStore, createTokenStore, encodeJoinCredential, extendCleanupGrace, generateControlToken, nextServiceGeneration, processIdentity, registerCleanup, SERVICE_HOME_MODE, startControlServer, supervisorFromEnv, writeFileAtomic } from "@velum-labs/routekit-runtime";
18
18
  import { createConsentManager } from "@velum-labs/routekit-telemetry-core";
19
19
  import { parse as parseYaml, stringify as stringifyYaml } from "yaml";
20
20
  import { createCliproxySidecar } from "./cliproxy-sidecar.js";
@@ -1259,7 +1259,15 @@ export async function startRouteKitDaemon(options) {
1259
1259
  label: issued.label,
1260
1260
  plane: issued.plane,
1261
1261
  role: issued.role,
1262
- token: issued.token
1262
+ token: issued.token,
1263
+ ...(issued.plane === "control"
1264
+ ? {
1265
+ joinToken: encodeJoinCredential({
1266
+ publicRecordPath: daemonPublicRecordPath(home),
1267
+ token: issued.token
1268
+ })
1269
+ }
1270
+ : {})
1263
1271
  };
1264
1272
  }
1265
1273
  catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@velum-labs/routekit-daemon",
3
3
  "private": false,
4
- "version": "0.12.0",
4
+ "version": "0.13.0",
5
5
  "description": "Singleton RouteKit control daemon and stable model gateway.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,14 +34,14 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "yaml": "2.9.0",
37
- "@velum-labs/routekit-accounts": "0.12.0",
38
- "@velum-labs/routekit-control": "0.12.0",
39
- "@velum-labs/routekit-config": "0.12.0",
40
- "@velum-labs/routekit-registry": "0.12.0",
41
- "@velum-labs/routekit-gateway": "0.12.0",
42
- "@velum-labs/routekit-router": "0.12.0",
43
- "@velum-labs/routekit-runtime": "0.12.0",
44
- "@velum-labs/routekit-telemetry-core": "0.12.0"
37
+ "@velum-labs/routekit-control": "0.13.0",
38
+ "@velum-labs/routekit-gateway": "0.13.0",
39
+ "@velum-labs/routekit-registry": "0.13.0",
40
+ "@velum-labs/routekit-router": "0.13.0",
41
+ "@velum-labs/routekit-config": "0.13.0",
42
+ "@velum-labs/routekit-accounts": "0.13.0",
43
+ "@velum-labs/routekit-telemetry-core": "0.13.0",
44
+ "@velum-labs/routekit-runtime": "0.13.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsc -b",