replicas-cli 0.2.683 → 0.2.684

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 +7 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -27358,7 +27358,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27358
27358
  });
27359
27359
 
27360
27360
  // ../shared/src/cli-version.ts
27361
- var CLI_VERSION = "0.2.683";
27361
+ var CLI_VERSION = "0.2.684";
27362
27362
 
27363
27363
  // ../shared/src/version.ts
27364
27364
  function compareVersions(v1, v2) {
@@ -30538,7 +30538,9 @@ async function automationCreateCommand(name, options) {
30538
30538
  { agentProvider: void 0, model: void 0 }
30539
30539
  );
30540
30540
  try {
30541
- const envResponse = await orgAuthenticatedFetch("/v1/environments");
30541
+ const envResponse = await orgAuthenticatedFetch(
30542
+ `/v1/environments?scope=${options.personal ? "all" : "org"}`
30543
+ );
30542
30544
  const selectableEnvs = envResponse.environments;
30543
30545
  if (selectableEnvs.length === 0) {
30544
30546
  console.log(import_chalk18.default.red("No environments found. Please create an environment first."));
@@ -30861,7 +30863,9 @@ async function automationEditCommand(id, options) {
30861
30863
  }
30862
30864
  }
30863
30865
  if (options.environment) {
30864
- const envResp = await orgAuthenticatedFetch("/v1/environments");
30866
+ const envResp = await orgAuthenticatedFetch(
30867
+ `/v1/environments?scope=${existing.automation.user_id ? "all" : "org"}`
30868
+ );
30865
30869
  body.environment_id = resolveSelectableEnvironmentId(options.environment, envResp.environments);
30866
30870
  }
30867
30871
  if (lifecyclePolicy) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.683",
3
+ "version": "0.2.684",
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": {