@opencode-ai/sdk 1.14.18 → 1.14.20

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.
@@ -757,6 +757,7 @@ export type CompactionPart = {
757
757
  type: "compaction";
758
758
  auto: boolean;
759
759
  overflow?: boolean;
760
+ tail_start_id?: string;
760
761
  };
761
762
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
762
763
  export type EventMessagePartUpdated = {
@@ -1381,6 +1382,14 @@ export type Config = {
1381
1382
  * Enable pruning of old tool outputs (default: true)
1382
1383
  */
1383
1384
  prune?: boolean;
1385
+ /**
1386
+ * Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)
1387
+ */
1388
+ tail_turns?: number;
1389
+ /**
1390
+ * Maximum number of tokens from recent turns to preserve verbatim after compaction
1391
+ */
1392
+ preserve_recent_tokens?: number;
1384
1393
  /**
1385
1394
  * Token buffer for compaction. Leaves enough window to avoid overflow during compaction.
1386
1395
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "1.14.18",
4
+ "version": "1.14.20",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {