orchestrating 0.1.20 → 0.1.21

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/bin/orch +2 -0
  2. package/package.json +1 -1
package/bin/orch CHANGED
@@ -250,6 +250,7 @@ const command = commandArgs[0];
250
250
  const spawnArgs = commandArgs.slice(1);
251
251
  let sessionId;
252
252
  const hostname = os.hostname().replace(/\.(lan|local|home|internal)$/i, "");
253
+ const cliVersion = JSON.parse(readFileSync(path.join(__dirname, "..", "package.json"), "utf-8")).version;
253
254
  const serverUrl = process.env.ORC_URL || process.env.CAST_URL || "wss://api.orchestrat.ing/ws";
254
255
  let authToken = getAuthToken();
255
256
  const cwdFolder = path.basename(process.cwd());
@@ -918,6 +919,7 @@ async function connectWs() {
918
919
  mode: adapter ? adapter.mode : "pty",
919
920
  provider: adapter ? adapter.provider : null,
920
921
  permissionMode: yoloMode ? "yolo" : "normal",
922
+ cliVersion,
921
923
  cols: process.stdout.columns || 80,
922
924
  rows: process.stdout.rows || 24,
923
925
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrating",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Stream terminal sessions to the orchestrat.ing dashboard",
5
5
  "type": "module",
6
6
  "bin": {