bisync-cli 0.0.5 → 0.0.6

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/bisync.js CHANGED
@@ -7,7 +7,7 @@ import { readdir, stat } from "fs/promises";
7
7
  import { homedir } from "os";
8
8
  import { join, resolve } from "path";
9
9
  // package.json
10
- var version = "0.0.4";
10
+ var version = "0.0.5";
11
11
 
12
12
  // src/bin.ts
13
13
  var CONFIG_DIR = join(homedir(), ".agent-bisync");
@@ -266,7 +266,8 @@ var uploadLogs = async (siteUrl, token, sessionId, raw) => {
266
266
  method: "POST",
267
267
  headers: {
268
268
  "Content-Type": "application/json",
269
- Authorization: `Bearer ${token}`
269
+ Authorization: `Bearer ${token}`,
270
+ ...process.env.BISYNC_SESSION_ID ? { "X-Bisync-Session-Id": process.env.BISYNC_SESSION_ID } : {}
270
271
  },
271
272
  body: JSON.stringify({
272
273
  session_id: sessionId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bisync-cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "bin": {
5
5
  "bisync": "dist/bisync.js"
6
6
  },
package/src/bin.ts CHANGED
@@ -353,6 +353,9 @@ const uploadLogs = async (siteUrl: string, token: string, sessionId: string, raw
353
353
  headers: {
354
354
  "Content-Type": "application/json",
355
355
  Authorization: `Bearer ${token}`,
356
+ ...(process.env.BISYNC_SESSION_ID
357
+ ? { "X-Bisync-Session-Id": process.env.BISYNC_SESSION_ID }
358
+ : {}),
356
359
  },
357
360
  body: JSON.stringify({
358
361
  session_id: sessionId,