replicas-cli 0.2.62 → 0.2.64

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.
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  setIdeCommand,
16
16
  setOrganizationId,
17
17
  writeConfig
18
- } from "./chunk-LZT7TDHV.mjs";
18
+ } from "./chunk-KMUQ7PQQ.mjs";
19
19
 
20
20
  // src/index.ts
21
21
  import "dotenv/config";
@@ -1390,7 +1390,7 @@ async function replicaListCommand(options) {
1390
1390
  return;
1391
1391
  }
1392
1392
  console.log(chalk14.green(`
1393
- Replicas (Page ${response.page} of ${response.totalPages}, Total: ${response.total}):
1393
+ Replicas (Page ${response.page} of ${response.total_pages}, Total: ${response.total}):
1394
1394
  `));
1395
1395
  for (const replica of response.replicas) {
1396
1396
  console.log(chalk14.white(` ${replica.name}`));
@@ -1470,7 +1470,7 @@ async function replicaCreateCommand(name, options) {
1470
1470
  }
1471
1471
  let replicaName = name;
1472
1472
  let message = options.message;
1473
- let selectedRepositories = options.repositories?.split(",").map((repository) => repository.trim()).filter((repository) => repository.length > 0);
1473
+ let selectedRepositoryIds = options.repositories?.split(",").map((repository) => repository.trim()).filter((repository) => repository.length > 0);
1474
1474
  let codingAgent = options.agent;
1475
1475
  if (replicaName && /\s/.test(replicaName)) {
1476
1476
  console.log(chalk14.red("Replica name cannot contain spaces."));
@@ -1493,14 +1493,14 @@ async function replicaCreateCommand(name, options) {
1493
1493
  }
1494
1494
  replicaName = response2.name;
1495
1495
  }
1496
- if (!selectedRepositories || selectedRepositories.length === 0) {
1496
+ if (!selectedRepositoryIds || selectedRepositoryIds.length === 0) {
1497
1497
  const response2 = await prompts3({
1498
1498
  type: "multiselect",
1499
1499
  name: "repositories",
1500
1500
  message: "Select repositories:",
1501
1501
  choices: repositories.map((repo) => ({
1502
1502
  title: repo.name,
1503
- value: repo.name,
1503
+ value: repo.id,
1504
1504
  description: repo.url
1505
1505
  })),
1506
1506
  min: 1
@@ -1509,7 +1509,7 @@ async function replicaCreateCommand(name, options) {
1509
1509
  console.log(chalk14.yellow("\nCancelled."));
1510
1510
  return;
1511
1511
  }
1512
- selectedRepositories = response2.repositories;
1512
+ selectedRepositoryIds = response2.repositories;
1513
1513
  }
1514
1514
  if (!message) {
1515
1515
  const response2 = await prompts3({
@@ -1548,7 +1548,7 @@ async function replicaCreateCommand(name, options) {
1548
1548
  const body = {
1549
1549
  name: replicaName,
1550
1550
  message,
1551
- repositories: selectedRepositories,
1551
+ repository_ids: selectedRepositoryIds,
1552
1552
  coding_agent: codingAgent
1553
1553
  };
1554
1554
  console.log(chalk14.gray("\nCreating replica..."));
@@ -1676,7 +1676,7 @@ Conversation History
1676
1676
  }
1677
1677
  console.log(chalk14.gray(` Total Events: ${response.total}`));
1678
1678
  console.log(chalk14.gray(` Showing: ${response.events.length} events`));
1679
- if (response.hasMore) {
1679
+ if (response.has_more) {
1680
1680
  console.log(chalk14.gray(` Has More: yes (use --offset to paginate)`));
1681
1681
  }
1682
1682
  console.log();
@@ -2509,12 +2509,12 @@ async function interactiveCommand() {
2509
2509
  );
2510
2510
  }
2511
2511
  console.log(chalk18.gray("Starting interactive mode..."));
2512
- const { launchInteractive } = await import("./interactive-SY66GQDB.mjs");
2512
+ const { launchInteractive } = await import("./interactive-VX7KYWGV.mjs");
2513
2513
  await launchInteractive();
2514
2514
  }
2515
2515
 
2516
2516
  // src/index.ts
2517
- var CLI_VERSION = "0.2.62";
2517
+ var CLI_VERSION = "0.2.64";
2518
2518
  var program = new Command();
2519
2519
  program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
2520
2520
  program.command("login").description("Authenticate with your Replicas account").action(async () => {
@@ -11,7 +11,7 @@ import {
11
11
  isAgentBackendEvent,
12
12
  parseAgentEvents,
13
13
  parseUserMessage
14
- } from "./chunk-LZT7TDHV.mjs";
14
+ } from "./chunk-KMUQ7PQQ.mjs";
15
15
 
16
16
  // src/interactive/index.tsx
17
17
  import { createCliRenderer } from "@opentui/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.62",
3
+ "version": "0.2.64",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {
File without changes