agor-live 0.6.2 → 0.6.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.
@@ -230,11 +230,6 @@ async function getDaemonUrl() {
230
230
  const envPort = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : void 0;
231
231
  const port = envPort || config.daemon?.port || defaults.daemon?.port || 3030;
232
232
  const host = config.daemon?.host || defaults.daemon?.host || "localhost";
233
- const codespaceName = process.env.CODESPACE_NAME;
234
- const codespacesDomain = process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN;
235
- if (codespaceName && codespacesDomain) {
236
- return `https://${codespaceName}-${port}.${codespacesDomain}`;
237
- }
238
233
  return `http://${host}:${port}`;
239
234
  }
240
235
  function loadConfigSync() {
@@ -69,10 +69,14 @@ declare function unsetConfigValue(key: string): Promise<void>;
69
69
  /**
70
70
  * Get daemon URL from config
71
71
  *
72
- * Reads daemon host and port from config (with env var overrides).
73
- * Automatically detects GitHub Codespaces environment if DAEMON_URL not explicitly set.
72
+ * Returns internal daemon URL for backend-to-backend communication.
73
+ * Always returns localhost-based URL since all backend components (daemon, CLI, SDKs)
74
+ * run in the same environment.
74
75
  *
75
- * @returns Daemon URL (e.g., "http://localhost:3030" or Codespaces URL)
76
+ * For external access (browser UI), use frontend's getDaemonUrl() which detects
77
+ * the appropriate public URL via window.location.
78
+ *
79
+ * @returns Daemon URL (e.g., "http://localhost:3030")
76
80
  */
77
81
  declare function getDaemonUrl(): Promise<string>;
78
82
  /**
@@ -69,10 +69,14 @@ declare function unsetConfigValue(key: string): Promise<void>;
69
69
  /**
70
70
  * Get daemon URL from config
71
71
  *
72
- * Reads daemon host and port from config (with env var overrides).
73
- * Automatically detects GitHub Codespaces environment if DAEMON_URL not explicitly set.
72
+ * Returns internal daemon URL for backend-to-backend communication.
73
+ * Always returns localhost-based URL since all backend components (daemon, CLI, SDKs)
74
+ * run in the same environment.
74
75
  *
75
- * @returns Daemon URL (e.g., "http://localhost:3030" or Codespaces URL)
76
+ * For external access (browser UI), use frontend's getDaemonUrl() which detects
77
+ * the appropriate public URL via window.location.
78
+ *
79
+ * @returns Daemon URL (e.g., "http://localhost:3030")
76
80
  */
77
81
  declare function getDaemonUrl(): Promise<string>;
78
82
  /**
@@ -156,11 +156,6 @@ async function getDaemonUrl() {
156
156
  const envPort = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : void 0;
157
157
  const port = envPort || config.daemon?.port || defaults.daemon?.port || 3030;
158
158
  const host = config.daemon?.host || defaults.daemon?.host || "localhost";
159
- const codespaceName = process.env.CODESPACE_NAME;
160
- const codespacesDomain = process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN;
161
- if (codespaceName && codespacesDomain) {
162
- return `https://${codespaceName}-${port}.${codespacesDomain}`;
163
- }
164
159
  return `http://${host}:${port}`;
165
160
  }
166
161
  function loadConfigSync() {
@@ -547,11 +547,6 @@ async function getDaemonUrl() {
547
547
  const envPort = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : void 0;
548
548
  const port = envPort || config.daemon?.port || defaults.daemon?.port || 3030;
549
549
  const host = config.daemon?.host || defaults.daemon?.host || "localhost";
550
- const codespaceName = process.env.CODESPACE_NAME;
551
- const codespacesDomain = process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN;
552
- if (codespaceName && codespacesDomain) {
553
- return `https://${codespaceName}-${port}.${codespacesDomain}`;
554
- }
555
550
  return `http://${host}:${port}`;
556
551
  }
557
552
  function loadConfigSync() {
@@ -390,11 +390,6 @@ async function getDaemonUrl() {
390
390
  const envPort = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : void 0;
391
391
  const port = envPort || config.daemon?.port || defaults.daemon?.port || 3030;
392
392
  const host = config.daemon?.host || defaults.daemon?.host || "localhost";
393
- const codespaceName = process.env.CODESPACE_NAME;
394
- const codespacesDomain = process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN;
395
- if (codespaceName && codespacesDomain) {
396
- return `https://${codespaceName}-${port}.${codespacesDomain}`;
397
- }
398
393
  return `http://${host}:${port}`;
399
394
  }
400
395
  function loadConfigSync() {
@@ -873,11 +873,6 @@ async function getDaemonUrl() {
873
873
  const envPort = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : void 0;
874
874
  const port = envPort || config.daemon?.port || defaults.daemon?.port || 3030;
875
875
  const host = config.daemon?.host || defaults.daemon?.host || "localhost";
876
- const codespaceName = process.env.CODESPACE_NAME;
877
- const codespacesDomain = process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN;
878
- if (codespaceName && codespacesDomain) {
879
- return `https://${codespaceName}-${port}.${codespacesDomain}`;
880
- }
881
876
  return `http://${host}:${port}`;
882
877
  }
883
878
  function loadConfigSync() {
@@ -815,11 +815,6 @@ async function getDaemonUrl() {
815
815
  const envPort = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : void 0;
816
816
  const port = envPort || config.daemon?.port || defaults.daemon?.port || 3030;
817
817
  const host = config.daemon?.host || defaults.daemon?.host || "localhost";
818
- const codespaceName = process.env.CODESPACE_NAME;
819
- const codespacesDomain = process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN;
820
- if (codespaceName && codespacesDomain) {
821
- return `https://${codespaceName}-${port}.${codespacesDomain}`;
822
- }
823
818
  return `http://${host}:${port}`;
824
819
  }
825
820
  function loadConfigSync() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agor-live",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Multiplayer canvas for orchestrating AI coding sessions",
5
5
  "type": "module",
6
6
  "bin": {