replicas-cli 0.3.177 → 0.3.178

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.cjs +15 -11
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -30859,12 +30859,22 @@ var init_dotenv = __esm({
30859
30859
  }
30860
30860
  });
30861
30861
 
30862
+ // ../shared/src/engine/environment.ts
30863
+ var ENGINE_PORT;
30864
+ var init_environment2 = __esm({
30865
+ "../shared/src/engine/environment.ts"() {
30866
+ "use strict";
30867
+ ENGINE_PORT = 3737;
30868
+ }
30869
+ });
30870
+
30862
30871
  // ../shared/src/git.ts
30863
30872
  var init_git = __esm({
30864
30873
  "../shared/src/git.ts"() {
30865
30874
  "use strict";
30866
30875
  init_url();
30867
30876
  init_runtime_env();
30877
+ init_environment2();
30868
30878
  }
30869
30879
  });
30870
30880
 
@@ -31078,7 +31088,7 @@ var CLI_VERSION;
31078
31088
  var init_cli_version = __esm({
31079
31089
  "../shared/src/cli-version.ts"() {
31080
31090
  "use strict";
31081
- CLI_VERSION = "0.3.177";
31091
+ CLI_VERSION = "0.3.178";
31082
31092
  }
31083
31093
  });
31084
31094
 
@@ -31117,13 +31127,6 @@ var init_chat_tabs = __esm({
31117
31127
  }
31118
31128
  });
31119
31129
 
31120
- // ../shared/src/engine/environment.ts
31121
- var init_environment2 = __esm({
31122
- "../shared/src/engine/environment.ts"() {
31123
- "use strict";
31124
- }
31125
- });
31126
-
31127
31130
  // ../shared/src/engine/webhook.ts
31128
31131
  var init_webhook = __esm({
31129
31132
  "../shared/src/engine/webhook.ts"() {
@@ -37465,7 +37468,7 @@ async function engineFetch(path10, options) {
37465
37468
  "Content-Type": "application/json",
37466
37469
  ...options?.headers || {}
37467
37470
  };
37468
- const response = await fetch(`http://localhost:${ENGINE_PORT}${path10}`, {
37471
+ const response = await fetch(`http://localhost:${ENGINE_PORT2}${path10}`, {
37469
37472
  ...options,
37470
37473
  headers,
37471
37474
  body: options?.body !== void 0 ? JSON.stringify(options.body) : void 0
@@ -37476,13 +37479,14 @@ async function engineFetch(path10, options) {
37476
37479
  }
37477
37480
  return response.json();
37478
37481
  }
37479
- var ENGINE_PORT, AgentRequestError;
37482
+ var ENGINE_PORT2, AgentRequestError;
37480
37483
  var init_agent_api = __esm({
37481
37484
  "src/lib/agent-api.ts"() {
37482
37485
  "use strict";
37486
+ init_src();
37483
37487
  init_config();
37484
37488
  init_monolith_url();
37485
- ENGINE_PORT = process.env.REPLICAS_ENGINE_PORT || "3737";
37489
+ ENGINE_PORT2 = process.env.REPLICAS_ENGINE_PORT || String(ENGINE_PORT);
37486
37490
  AgentRequestError = class extends Error {
37487
37491
  constructor(message2, status) {
37488
37492
  super(message2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.177",
3
+ "version": "0.3.178",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {