replicas-cli 0.3.33 → 0.3.35

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 +12 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22892,6 +22892,7 @@ var CODEX_TURN_EVENT_TYPE = "codex-turn";
22892
22892
  var CODEX_QUOTA_STATUS_EVENT_TYPE = "codex-quota-status";
22893
22893
  var CHAT_INTERRUPTED_EVENT_TYPE = "replicas-interrupted";
22894
22894
  var CHAT_MESSAGE_REJECTED_EVENT_TYPE = "replicas-message-rejected";
22895
+ var CHAT_TURN_LOST_EVENT_TYPE = "replicas-turn-lost";
22895
22896
  var AUTH_FALLBACK_EVENT_TYPE = "auth-fallback";
22896
22897
  function coerceAuthFallbackPayload(payload) {
22897
22898
  const { provider: provider2, reason, exhaustedMethod, exhaustedScope, candidateMethod, candidateScope, status, detail } = payload;
@@ -28088,6 +28089,15 @@ function applyEngineNotices(messages, events) {
28088
28089
  });
28089
28090
  return;
28090
28091
  }
28092
+ if (event.type === CHAT_TURN_LOST_EVENT_TYPE) {
28093
+ notices.push({
28094
+ id: `turn-lost-${event.timestamp}-${index}`,
28095
+ type: "error",
28096
+ message: "The agent stopped because the workspace restarted. Send a message to continue.",
28097
+ timestamp: event.timestamp
28098
+ });
28099
+ return;
28100
+ }
28091
28101
  if (event.type !== AUTH_FALLBACK_EVENT_TYPE) return;
28092
28102
  const payload = coerceAuthFallbackPayload(event.payload);
28093
28103
  if (!payload) return;
@@ -28434,7 +28444,7 @@ var headlessAgentRequestSchema = external_exports.object({
28434
28444
  });
28435
28445
 
28436
28446
  // ../shared/src/cli-version.ts
28437
- var CLI_VERSION = "0.3.33";
28447
+ var CLI_VERSION = "0.3.35";
28438
28448
 
28439
28449
  // ../shared/src/version.ts
28440
28450
  function compareVersions(v1, v2) {
@@ -28900,6 +28910,7 @@ var workspaceChangedEventSchema = external_exports.discriminatedUnion("type", [
28900
28910
  external_exports.object({
28901
28911
  type: external_exports.literal("workspace.changed"),
28902
28912
  workspaceId: external_exports.string(),
28913
+ status: external_exports.enum(WORKSPACE_STATUSES).optional(),
28903
28914
  completion: external_exports.object({
28904
28915
  workspaceName: external_exports.string(),
28905
28916
  completedAt: external_exports.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.33",
3
+ "version": "0.3.35",
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": {