replicas-cli 0.3.92 → 0.3.93

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 +6 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -26523,6 +26523,8 @@ function messagesForCodexTurn(turn) {
26523
26523
  const message2 = messageForItem(item);
26524
26524
  return [...message2 ? [message2] : [], ...skillMessagesForItem(item)];
26525
26525
  });
26526
+ const last = messages.at(-1);
26527
+ if (last?.type === "agent" && normalizeCodexAspTranscriptStatus(turn.status) !== "in_progress") messages[messages.length - 1] = { ...last, endsTurn: true };
26526
26528
  if (turn.error) {
26527
26529
  messages.push({
26528
26530
  id: `error-${turn.id}`,
@@ -27853,7 +27855,7 @@ function parseClaudeEvents(events, parentToolUseId) {
27853
27855
  if (existing.reasoning !== void 0) messages[existing.reasoning] = reasoningMessage;
27854
27856
  else existing.reasoning = messages.push(reasoningMessage) - 1;
27855
27857
  }
27856
- if (payload.text) {
27858
+ if (payload.text && !completedStreamIds.has(payload.streamId)) {
27857
27859
  const agentMessage = {
27858
27860
  id: `agent-${payload.streamId}-0`,
27859
27861
  type: "agent",
@@ -28062,6 +28064,8 @@ function parseClaudeEvents(events, parentToolUseId) {
28062
28064
  }
28063
28065
  if (event.type === "claude-result") {
28064
28066
  const payload = coerceClaudeResultPayload(event.payload);
28067
+ const last = messages.at(-1);
28068
+ if (last?.type === "agent") messages[messages.length - 1] = { ...last, endsTurn: true };
28065
28069
  if (isClaudeResultError(payload)) {
28066
28070
  const genuineErrors = stripAgentDiagnosticErrors(payload.errors ?? []);
28067
28071
  messages.push({
@@ -28664,7 +28668,7 @@ var headlessAgentRequestSchema = external_exports.object({
28664
28668
  });
28665
28669
 
28666
28670
  // ../shared/src/cli-version.ts
28667
- var CLI_VERSION = "0.3.92";
28671
+ var CLI_VERSION = "0.3.93";
28668
28672
 
28669
28673
  // ../shared/src/version.ts
28670
28674
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.92",
3
+ "version": "0.3.93",
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": {