@frostbridge/imdl 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/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1508,7 +1508,8 @@ import pc3 from "picocolors";
1508
1508
  import { createServer } from "http";
1509
1509
  import { URL as URL2 } from "url";
1510
1510
  import { randomBytes } from "crypto";
1511
- var DASHBOARD_URL = process.env.IMDL_DASHBOARD_URL || "http://localhost:5173";
1511
+ var DEFAULT_DASHBOARD_URL = "https://imdl-dashboard-1028078600113.us-central1.run.app";
1512
+ var DASHBOARD_URL = process.env.IMDL_DASHBOARD_URL || DEFAULT_DASHBOARD_URL;
1512
1513
  async function loginCommand() {
1513
1514
  console.log("");
1514
1515
  console.log(pc3.bold(pc3.cyan("IMDL Login")));
@@ -1542,6 +1543,7 @@ async function loginCommand() {
1542
1543
  config.authToken = result.token;
1543
1544
  config.teamId = result.teamId;
1544
1545
  if (result.teamName) config.teamName = result.teamName;
1546
+ if (result.developerId) config.developerId = result.developerId;
1545
1547
  saveConfig(config);
1546
1548
  console.log(pc3.green(" \u2713 Authenticated successfully!"));
1547
1549
  console.log("");
@@ -1573,6 +1575,7 @@ function waitForCallback(port, expectedState) {
1573
1575
  const token = url.searchParams.get("token");
1574
1576
  const teamId = url.searchParams.get("teamId");
1575
1577
  const teamName = url.searchParams.get("teamName");
1578
+ const developerId = url.searchParams.get("developerId");
1576
1579
  const returnedState = url.searchParams.get("state");
1577
1580
  const error = url.searchParams.get("error");
1578
1581
  res.setHeader("Access-Control-Allow-Origin", DASHBOARD_URL);
@@ -1598,7 +1601,7 @@ function waitForCallback(port, expectedState) {
1598
1601
  res.end("<html><body><h2>Authenticated!</h2><p>You can close this tab and return to your terminal.</p></body></html>");
1599
1602
  clearTimeout(timeout);
1600
1603
  server.close();
1601
- resolve4({ token, teamId, teamName: teamName || void 0 });
1604
+ resolve4({ token, teamId, teamName: teamName || void 0, developerId: developerId || void 0 });
1602
1605
  });
1603
1606
  server.listen(port);
1604
1607
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "restricted"
5
5
  },
6
- "version": "0.1.2",
6
+ "version": "0.1.3",
7
7
  "description": "IMDL — Intelligent Mediation & Detection Layer. AI agent security CLI.",
8
8
  "files": [
9
9
  "dist"