orchestrating 0.1.20 → 0.1.22

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 +8 -4
  2. package/package.json +1 -1
package/bin/orch CHANGED
@@ -250,11 +250,17 @@ 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());
256
257
  const effectiveLabel = label || cwdFolder || commandArgs.join(" ");
257
258
 
259
+ const DIM = "\x1b[2m";
260
+ const GREEN = "\x1b[32m";
261
+ const RED = "\x1b[31m";
262
+ const RESET = "\x1b[0m";
263
+
258
264
  // Refresh token on startup if expired or about to expire
259
265
  if (authToken && isTokenExpired()) {
260
266
  const refreshed = await refreshAuthToken();
@@ -300,10 +306,7 @@ function sendToServer(msg) {
300
306
 
301
307
  // --- Terminal colors ---
302
308
  const CYAN = "\x1b[36m";
303
- const DIM = "\x1b[2m";
304
- const GREEN = "\x1b[32m";
305
- const RED = "\x1b[31m";
306
- const RESET = "\x1b[0m";
309
+
307
310
  const BOLD = "\x1b[1m";
308
311
 
309
312
  // --- Permission mode ---
@@ -918,6 +921,7 @@ async function connectWs() {
918
921
  mode: adapter ? adapter.mode : "pty",
919
922
  provider: adapter ? adapter.provider : null,
920
923
  permissionMode: yoloMode ? "yolo" : "normal",
924
+ cliVersion,
921
925
  cols: process.stdout.columns || 80,
922
926
  rows: process.stdout.rows || 24,
923
927
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrating",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Stream terminal sessions to the orchestrat.ing dashboard",
5
5
  "type": "module",
6
6
  "bin": {