summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'packages/plugin')
-rw-r--r--packages/plugin/src/index.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 49d995c6f..d53c23a89 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -304,6 +304,24 @@ export interface Hooks {
input: { sessionID: string },
output: { context: string[]; prompt?: string },
) => Promise<void>
+ /**
+ * Called after compaction succeeds and before a synthetic user
+ * auto-continue message is added.
+ *
+ * - `enabled`: Defaults to `true`. Set to `false` to skip the synthetic
+ * user "continue" turn.
+ */
+ "experimental.compaction.autocontinue"?: (
+ input: {
+ sessionID: string
+ agent: string
+ model: Model
+ provider: ProviderContext
+ message: UserMessage
+ overflow: boolean
+ },
+ output: { enabled: boolean },
+ ) => Promise<void>
"experimental.text.complete"?: (
input: { sessionID: string; messageID: string; partID: string },
output: { text: string },