@teamscala/service-boot 0.23.312 → 0.23.313

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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.312",
9
+ "version": "0.23.313",
10
10
  "sideEffects": false,
11
11
  "files": [
12
12
  "src"
@@ -445,6 +445,9 @@ export const taskSyncRouter = {
445
445
  const session = raw.lane?.session ?? headerSession;
446
446
  // parent_id via header: bindLane has no .input() schema so ORPC does not parse the body (headers are the reliable transport, same as pane/session) — body parent_id was always undefined, which is why adoption silently never happened.
447
447
  const headerWorkItem = ctx.headers?.get("x-lane-work-item") ?? null;
448
+ // cli_kind via header for the same reason (body not parsed) — without it
449
+ // every adopting lane is mis-attributed as claude-code.
450
+ const headerWorkKind = ctx.headers?.get("x-lane-cli-kind") ?? null;
448
451
  if (!session) {
449
452
  const { ORPCError } = await import("@orpc/server");
450
453
  throw new ORPCError("BAD_REQUEST", {
@@ -454,7 +457,7 @@ export const taskSyncRouter = {
454
457
  const lane: LaneIdentity = {
455
458
  pane,
456
459
  session,
457
- cli_kind: raw.lane?.cli_kind ?? "claude-code",
460
+ cli_kind: (raw.lane?.cli_kind ?? headerWorkKind ?? "claude-code") as LaneIdentity["cli_kind"],
458
461
  role: raw.lane?.role ?? "agent",
459
462
  organisation_id: raw.lane?.organisation_id,
460
463
  };