فهرست منبع

chore: generate

opencode-agent[bot] 1 روز پیش
والد
کامیت
29f05cb1ee
2فایلهای تغییر یافته به همراه25 افزوده شده و 0 حذف شده
  1. 9 0
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 16 0
      packages/sdk/openapi.json

+ 9 - 0
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -885,6 +885,7 @@ export type CompactionPart = {
   type: "compaction"
   auto: boolean
   overflow?: boolean
+  tail_start_id?: string
 }
 
 export type Part =
@@ -1642,6 +1643,14 @@ export type Config = {
      * Enable pruning of old tool outputs (default: true)
      */
     prune?: boolean
+    /**
+     * Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)
+     */
+    tail_turns?: number
+    /**
+     * Token budget for retained recent turn spans during compaction
+     */
+    tail_tokens?: number
     /**
      * Token buffer for compaction. Leaves enough window to avoid overflow during compaction.
      */

+ 16 - 0
packages/sdk/openapi.json

@@ -9945,6 +9945,10 @@
           },
           "overflow": {
             "type": "boolean"
+          },
+          "tail_start_id": {
+            "type": "string",
+            "pattern": "^msg.*"
           }
         },
         "required": ["id", "sessionID", "messageID", "type", "auto"]
@@ -11868,6 +11872,18 @@
                 "description": "Enable pruning of old tool outputs (default: true)",
                 "type": "boolean"
               },
+              "tail_turns": {
+                "description": "Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)",
+                "type": "integer",
+                "minimum": 0,
+                "maximum": 9007199254740991
+              },
+              "tail_tokens": {
+                "description": "Token budget for retained recent turn spans during compaction",
+                "type": "integer",
+                "minimum": 0,
+                "maximum": 9007199254740991
+              },
               "reserved": {
                 "description": "Token buffer for compaction. Leaves enough window to avoid overflow during compaction.",
                 "type": "integer",