replicas-cli 0.2.463 → 0.2.465

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.mjs +4 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -10081,7 +10081,7 @@ function formatTurnElapsed(ms) {
10081
10081
  }
10082
10082
 
10083
10083
  // ../shared/src/cli-version.ts
10084
- var CLI_VERSION = "0.2.463";
10084
+ var CLI_VERSION = "0.2.465";
10085
10085
 
10086
10086
  // ../shared/src/version.ts
10087
10087
  function compareVersions(v1, v2) {
@@ -29290,7 +29290,7 @@ async function replicaReadCommand(id, options) {
29290
29290
  try {
29291
29291
  const params = new URLSearchParams();
29292
29292
  if (options.limit) params.set("limit", options.limit);
29293
- if (options.offset) params.set("offset", options.offset);
29293
+ if (options.beforeEvent) params.set("beforeEvent", options.beforeEvent);
29294
29294
  const query = params.toString();
29295
29295
  const response = await orgAuthenticatedFetch(
29296
29296
  `/v1/replica/${id}/read${query ? "?" + query : ""}`
@@ -29311,7 +29311,7 @@ Conversation History
29311
29311
  console.log(chalk14.gray(` Total Events: ${response.total}`));
29312
29312
  console.log(chalk14.gray(` Showing: ${response.events.length} events`));
29313
29313
  if (response.has_more) {
29314
- console.log(chalk14.gray(` Has More: yes (use --offset to paginate)`));
29314
+ console.log(chalk14.gray(` Has More: yes (--before-event ${response.eventsStartIndex} for the previous page)`));
29315
29315
  }
29316
29316
  console.log();
29317
29317
  if (response.events.length === 0) {
@@ -34954,7 +34954,7 @@ program.command("delete <id>").description("Delete a replica").option("-f, --for
34954
34954
  process.exit(1);
34955
34955
  }
34956
34956
  });
34957
- program.command("read <id>").description("Read conversation history of a replica").option("-l, --limit <limit>", "Maximum number of events to return").option("-o, --offset <offset>", "Number of events to skip from the end").action(async (id, options) => {
34957
+ program.command("read <id>").description("Read conversation history of a replica").option("-l, --limit <limit>", "Maximum number of events to return, from the end").option("-b, --before-event <index>", "Read the page before this event index (see Has More output)").action(async (id, options) => {
34958
34958
  try {
34959
34959
  await replicaReadCommand(id, options);
34960
34960
  } catch (error51) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.463",
3
+ "version": "0.2.465",
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": {