@agentclientprotocol/claude-agent-acp 0.101.1-preview.3 → 0.101.1-preview.4

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/acp-agent.js CHANGED
@@ -7465,9 +7465,10 @@ export class ClaudeAcpAgent {
7465
7465
  // The entity is keyed by the summary message's uuid, which differs from
7466
7466
  // the live id (the `compacting` status uuid) — replay is terminal-first
7467
7467
  // by the RFD, and no client merges a replay into a live entity store.
7468
- // A subagent's own compaction summary is not the root session's, and a
7469
- // summary whose framing is unrecognized stays visible as transcript
7470
- // text rather than vanishing behind a summary-less entity.
7468
+ // A subagent's own compaction summary is not the root session's. A summary
7469
+ // whose framing is unrecognized is still this compaction, without summary
7470
+ // text: isCompactSummary says what it is, and the framing is Claude Code's
7471
+ // to change.
7471
7472
  if (replayCompactionUpdates &&
7472
7473
  isCompactSummaryMessage(message) &&
7473
7474
  parentToolUseId === null &&
@@ -7478,10 +7479,9 @@ export class ClaudeAcpAgent {
7478
7479
  presentation: "compaction_update",
7479
7480
  airClient: this.toolCallCapabilities.air.client,
7480
7481
  });
7481
- if (replayCompaction.recordSummary(assistantMessageText(message.message))) {
7482
- await replayCompaction.finish(message.uuid, "completed");
7483
- return;
7484
- }
7482
+ replayCompaction.recordSummary(assistantMessageText(message.message));
7483
+ await replayCompaction.finish(message.uuid, "completed");
7484
+ return;
7485
7485
  }
7486
7486
  for (const notification of toAcpNotifications(
7487
7487
  // @ts-expect-error - untyped in SDK but we handle all of these
@@ -20,7 +20,7 @@ const ANALYSIS_BLOCKS = [
20
20
  /** The framing Claude Code wraps around the retained summary when it persists
21
21
  * it as the post-compaction user message. */
22
22
  const CONTINUATION_PREAMBLE = /^\s*This session is being continued from a previous conversation/i;
23
- const PERSISTED_PREAMBLE = /^\s*This session is being continued from a previous conversation[^\n]*\n+Summary:[ \t]*\r?\n/;
23
+ const PERSISTED_PREAMBLE = /^\s*This session is being continued from a previous conversation[^\n]*\n(?:[\s\S]*?\n)?Summary:[ \t]*\r?\n/;
24
24
  const PERSISTED_TRAILERS = [
25
25
  /\n+If you need specific details from before compaction[\s\S]*$/,
26
26
  /\n+(?:Please )?[Cc]ontinue the conversation from where it left (?:it )?off[\s\S]*$/,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.101.1-preview.3",
6
+ "version": "0.101.1-preview.4",
7
7
  "description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
8
8
  "main": "dist/lib.js",
9
9
  "types": "dist/lib.d.ts",