orchestrating 0.1.2 → 0.1.3

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 +3 -4
  2. package/package.json +1 -1
package/bin/orch CHANGED
@@ -89,8 +89,8 @@ async function handleLogin() {
89
89
  refresh_token: refreshToken || "",
90
90
  expires_at: expiresAt ? Number(expiresAt) : 0,
91
91
  });
92
- res.writeHead(302, { Location: "https://app.orchestrat.ing" });
93
- res.end();
92
+ res.writeHead(200, { "Content-Type": "text/html" });
93
+ res.end('<html><head><meta http-equiv="refresh" content="0;url=https://app.orchestrat.ing"></head><body><p>Redirecting to dashboard...</p></body></html>');
94
94
  console.log("\x1b[32mLogged in successfully.\x1b[0m");
95
95
  } else {
96
96
  res.writeHead(400, { "Content-Type": "text/html" });
@@ -98,8 +98,7 @@ async function handleLogin() {
98
98
  console.error("Authentication failed — no token received.");
99
99
  }
100
100
 
101
- server.close();
102
- resolve();
101
+ setTimeout(() => { server.close(); resolve(); }, 500);
103
102
  } else {
104
103
  res.writeHead(404);
105
104
  res.end();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrating",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Stream terminal sessions to the orchestrat.ing dashboard",
5
5
  "type": "module",
6
6
  "bin": {