@cabane/companion 0.6.119 → 0.6.120

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/dist/cli.js CHANGED
@@ -2947,6 +2947,7 @@ var bootId = randomUUID();
2947
2947
  import { randomUUID as randomUUID4 } from "crypto";
2948
2948
 
2949
2949
  // src/api.ts
2950
+ var DEVICE_HEADER = "x-cabane-device";
2950
2951
  var RETRY_BACKOFF_MS = [250, 750];
2951
2952
  var TURN_CONTEXT_BACKOFF_MS = [250, 750, 2e3, 5e3];
2952
2953
  var ACTIVE_RUN_OUTBOX_SEQ = 0;
@@ -2976,6 +2977,7 @@ var CabaneApi = class {
2976
2977
  method,
2977
2978
  headers: {
2978
2979
  Authorization: `Bearer ${this.opts.token}`,
2980
+ ...this.opts.deviceToken ? { [DEVICE_HEADER]: this.opts.deviceToken } : {},
2979
2981
  ...body !== void 0 ? { "content-type": "application/json" } : {},
2980
2982
  accept: "application/json"
2981
2983
  },
@@ -11529,6 +11531,7 @@ var CompanionSupervisor = class {
11529
11531
  const api = new CabaneApi({
11530
11532
  baseUrl: this.config.baseUrl,
11531
11533
  token: credential,
11534
+ ...this.config.deviceToken ? { deviceToken: this.config.deviceToken } : {},
11532
11535
  outbox,
11533
11536
  log: agentLog
11534
11537
  });
package/dist/runtime.js CHANGED
@@ -2281,6 +2281,7 @@ var bootId = randomUUID();
2281
2281
  import { randomUUID as randomUUID4 } from "crypto";
2282
2282
 
2283
2283
  // src/api.ts
2284
+ var DEVICE_HEADER = "x-cabane-device";
2284
2285
  var RETRY_BACKOFF_MS = [250, 750];
2285
2286
  var TURN_CONTEXT_BACKOFF_MS = [250, 750, 2e3, 5e3];
2286
2287
  var ACTIVE_RUN_OUTBOX_SEQ = 0;
@@ -2310,6 +2311,7 @@ var CabaneApi = class {
2310
2311
  method,
2311
2312
  headers: {
2312
2313
  Authorization: `Bearer ${this.opts.token}`,
2314
+ ...this.opts.deviceToken ? { [DEVICE_HEADER]: this.opts.deviceToken } : {},
2313
2315
  ...body !== void 0 ? { "content-type": "application/json" } : {},
2314
2316
  accept: "application/json"
2315
2317
  },
@@ -10952,6 +10954,7 @@ var CompanionSupervisor = class {
10952
10954
  const api = new CabaneApi({
10953
10955
  baseUrl: this.config.baseUrl,
10954
10956
  token: credential,
10957
+ ...this.config.deviceToken ? { deviceToken: this.config.deviceToken } : {},
10955
10958
  outbox,
10956
10959
  log: agentLog
10957
10960
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabane/companion",
3
- "version": "0.6.119",
3
+ "version": "0.6.120",
4
4
  "type": "module",
5
5
  "description": "The Cabane Companion (headless): connect a coding agent on your machine to your Cabane workspace as a responder — drive work against your own codebase, files, and MCP servers without putting any of it in Cabane.",
6
6
  "license": "UNLICENSED",