clanka 0.3.1 → 0.4.0
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.d.ts.map +1 -1
- package/dist/Acp.js +3 -0
- package/dist/Acp.js.map +1 -1
- package/dist/Acp.test.js +58 -0
- package/dist/Acp.test.js.map +1 -1
- package/dist/Agent.d.ts.map +1 -1
- package/dist/Agent.js +86 -8
- package/dist/Agent.js.map +1 -1
- package/dist/Agent.test.js +671 -0
- package/dist/Agent.test.js.map +1 -1
- package/dist/AgentExecutor.d.ts +5 -0
- package/dist/AgentExecutor.d.ts.map +1 -1
- package/dist/AgentExecutor.js +22 -0
- package/dist/AgentExecutor.js.map +1 -1
- package/dist/AgentOutput.d.ts +49 -4
- package/dist/AgentOutput.d.ts.map +1 -1
- package/dist/AgentOutput.js +45 -0
- package/dist/AgentOutput.js.map +1 -1
- package/dist/AgentSkills.d.ts +56 -0
- package/dist/AgentSkills.d.ts.map +1 -0
- package/dist/AgentSkills.js +126 -0
- package/dist/AgentSkills.js.map +1 -0
- package/dist/AgentSkills.test.d.ts +2 -0
- package/dist/AgentSkills.test.d.ts.map +1 -0
- package/dist/AgentSkills.test.js +356 -0
- package/dist/AgentSkills.test.js.map +1 -0
- package/dist/Codex.js +1 -1
- package/dist/Codex.js.map +1 -1
- package/dist/Compaction.d.ts +342 -0
- package/dist/Compaction.d.ts.map +1 -0
- package/dist/Compaction.js +566 -0
- package/dist/Compaction.js.map +1 -0
- package/dist/Compaction.test.d.ts +2 -0
- package/dist/Compaction.test.d.ts.map +1 -0
- package/dist/Compaction.test.js +576 -0
- package/dist/Compaction.test.js.map +1 -0
- package/dist/CompactionTransport.test.d.ts +2 -0
- package/dist/CompactionTransport.test.d.ts.map +1 -0
- package/dist/CompactionTransport.test.js +123 -0
- package/dist/CompactionTransport.test.js.map +1 -0
- package/dist/Copilot.d.ts.map +1 -1
- package/dist/Copilot.js +7 -2
- package/dist/Copilot.js.map +1 -1
- package/dist/OutputFormatter.d.ts.map +1 -1
- package/dist/OutputFormatter.js +9 -0
- package/dist/OutputFormatter.js.map +1 -1
- package/dist/cli.js +13 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Acp.test.ts +85 -0
- package/src/Acp.ts +2 -0
- package/src/Agent.test.ts +994 -0
- package/src/Agent.ts +127 -6
- package/src/AgentExecutor.ts +27 -0
- package/src/AgentOutput.ts +58 -0
- package/src/AgentSkills.test.ts +652 -0
- package/src/AgentSkills.ts +155 -0
- package/src/Codex.ts +3 -1
- package/src/Compaction.test.ts +824 -0
- package/src/Compaction.ts +788 -0
- package/src/CompactionTransport.test.ts +228 -0
- package/src/Copilot.ts +8 -1
- package/src/OutputFormatter.ts +9 -0
- package/src/cli.ts +26 -5
- package/src/index.ts +6 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context compaction for the shared Agent loop.
|
|
3
|
+
*
|
|
4
|
+
* Two independent mechanisms live here:
|
|
5
|
+
*
|
|
6
|
+
* 1. An always-on cap on `execute` results before they enter the Prompt
|
|
7
|
+
* (`capOutput`). It runs on every surface and is not affected by the
|
|
8
|
+
* compaction kill switch.
|
|
9
|
+
* 2. Auto-compaction of the live Prompt (`compactIfNeeded` before a model
|
|
10
|
+
* call, `compactAfterOverflow` after a context-length error). Both rewrite
|
|
11
|
+
* the Prompt to `system + <compaction-summary> user message + kept tail`.
|
|
12
|
+
*
|
|
13
|
+
* @since 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as Context from "effect/Context";
|
|
16
|
+
import * as Effect from "effect/Effect";
|
|
17
|
+
import * as Layer from "effect/Layer";
|
|
18
|
+
import * as Option from "effect/Option";
|
|
19
|
+
import * as AiError from "effect/unstable/ai/AiError";
|
|
20
|
+
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
21
|
+
import * as Prompt from "effect/unstable/ai/Prompt";
|
|
22
|
+
import type * as AgentOutput from "./AgentOutput.ts";
|
|
23
|
+
/**
|
|
24
|
+
* Runtime configuration for auto-compaction.
|
|
25
|
+
*
|
|
26
|
+
* - `enabled`: kill switch for both compact paths. Does **not** disable the
|
|
27
|
+
* `execute` output cap.
|
|
28
|
+
* - `contextWindow`: assumed model context window in tokens.
|
|
29
|
+
* - `reserveTokens`: headroom kept free below `contextWindow`. Compaction
|
|
30
|
+
* triggers once the last reported `contextTokens` (or the estimate) exceeds
|
|
31
|
+
* `contextWindow - reserveTokens`.
|
|
32
|
+
* - `keepRecentTokens`: size of the recent tail preserved verbatim after a
|
|
33
|
+
* compaction.
|
|
34
|
+
*
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
* @category Configuration
|
|
37
|
+
*/
|
|
38
|
+
export interface CompactionConfigService {
|
|
39
|
+
readonly enabled: boolean;
|
|
40
|
+
readonly contextWindow: number;
|
|
41
|
+
readonly reserveTokens: number;
|
|
42
|
+
readonly keepRecentTokens: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @since 1.0.0
|
|
46
|
+
* @category Configuration
|
|
47
|
+
*/
|
|
48
|
+
export declare const defaultConfig: CompactionConfigService;
|
|
49
|
+
declare const CompactionConfig_base: Context.Reference<CompactionConfigService>;
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category Configuration
|
|
53
|
+
*/
|
|
54
|
+
export declare class CompactionConfig extends CompactionConfig_base {
|
|
55
|
+
static readonly layer: (options: Partial<CompactionConfigService>) => Layer.Layer<never>;
|
|
56
|
+
}
|
|
57
|
+
declare const SummarizerTransform_base: Context.Reference<<A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>>;
|
|
58
|
+
/**
|
|
59
|
+
* Wraps the summarizer model call so a provider can apply request overrides
|
|
60
|
+
* (e.g. Copilot's `max_output_tokens`). Defaults to the identity.
|
|
61
|
+
*
|
|
62
|
+
* @since 1.0.0
|
|
63
|
+
* @category Configuration
|
|
64
|
+
*/
|
|
65
|
+
export declare class SummarizerTransform extends SummarizerTransform_base {
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Hard cap, in characters, applied to every `execute` success string before it
|
|
69
|
+
* is appended to the Prompt. Always on.
|
|
70
|
+
*
|
|
71
|
+
* @since 1.0.0
|
|
72
|
+
* @category Constants
|
|
73
|
+
*/
|
|
74
|
+
export declare const executeOutputCapChars = 32000;
|
|
75
|
+
/**
|
|
76
|
+
* Cap applied to `execute` results that remain in the kept tail when the tail
|
|
77
|
+
* itself still exceeds `keepRecentTokens` after reasoning has been dropped.
|
|
78
|
+
*
|
|
79
|
+
* @since 1.0.0
|
|
80
|
+
* @category Constants
|
|
81
|
+
*/
|
|
82
|
+
export declare const keptToolResultStubChars = 2000;
|
|
83
|
+
/**
|
|
84
|
+
* Maximum output tokens requested by providers that support a summary cap.
|
|
85
|
+
* Copilot uses this limit; Codex rejects max_output_tokens and has no
|
|
86
|
+
* configured summary output-token cap.
|
|
87
|
+
*
|
|
88
|
+
* @since 1.0.0
|
|
89
|
+
* @category Constants
|
|
90
|
+
*/
|
|
91
|
+
export declare const summarizerMaxOutputTokens = 4000;
|
|
92
|
+
/**
|
|
93
|
+
* The synthetic summary user message is wrapped in these tags so a later
|
|
94
|
+
* compaction can locate it without a new Prompt schema.
|
|
95
|
+
*
|
|
96
|
+
* @since 1.0.0
|
|
97
|
+
* @category Constants
|
|
98
|
+
*/
|
|
99
|
+
export declare const summaryOpenTag = "<compaction-summary>";
|
|
100
|
+
/**
|
|
101
|
+
* @since 1.0.0
|
|
102
|
+
* @category Constants
|
|
103
|
+
*/
|
|
104
|
+
export declare const summaryCloseTag = "</compaction-summary>";
|
|
105
|
+
/**
|
|
106
|
+
* System prompt included in the summarizer's Prompt.
|
|
107
|
+
*
|
|
108
|
+
* @since 1.0.0
|
|
109
|
+
* @category Constants
|
|
110
|
+
*/
|
|
111
|
+
export declare const summarizerSystem = "You compact the conversation history of a coding agent so the agent can continue with less context.\nReply with the summary only. No preamble, no commentary, no markdown fences.";
|
|
112
|
+
/**
|
|
113
|
+
* @since 1.0.0
|
|
114
|
+
* @category Cap
|
|
115
|
+
*/
|
|
116
|
+
export interface CapResult {
|
|
117
|
+
/**
|
|
118
|
+
* The (possibly capped) output. When capped this is `head + marker + tail`,
|
|
119
|
+
* where the marker tells the model how many characters were removed and
|
|
120
|
+
* to narrow the read (`readFile` `startLine`/`endLine`, smaller logs).
|
|
121
|
+
*/
|
|
122
|
+
readonly output: string;
|
|
123
|
+
readonly capped: boolean;
|
|
124
|
+
readonly charsBefore: number;
|
|
125
|
+
readonly charsAfter: number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Cap a string to `maxChars` characters, keeping the head and the tail and
|
|
129
|
+
* inserting a marker in between. Inputs at or under the cap are returned
|
|
130
|
+
* unchanged.
|
|
131
|
+
*
|
|
132
|
+
* @since 1.0.0
|
|
133
|
+
* @category Cap
|
|
134
|
+
*/
|
|
135
|
+
export declare const capOutput: (output: string, maxChars?: number) => CapResult;
|
|
136
|
+
/**
|
|
137
|
+
* Cheap token estimate for a Prompt: JSON length / 4. Used when no
|
|
138
|
+
* `contextTokens` usage has been observed yet (first turn, ACP session load)
|
|
139
|
+
* and for sizing the kept tail.
|
|
140
|
+
*
|
|
141
|
+
* @since 1.0.0
|
|
142
|
+
* @category Tokens
|
|
143
|
+
*/
|
|
144
|
+
export declare const estimateTokens: (prompt: Prompt.Prompt) => number;
|
|
145
|
+
/**
|
|
146
|
+
* Token estimate for a single message. Same measure as `estimateTokens`.
|
|
147
|
+
*
|
|
148
|
+
* @since 1.0.0
|
|
149
|
+
* @category Tokens
|
|
150
|
+
*/
|
|
151
|
+
export declare const estimateMessageTokens: (message: Prompt.Message) => number;
|
|
152
|
+
/**
|
|
153
|
+
* Whether the threshold trigger fires for the next model call.
|
|
154
|
+
*
|
|
155
|
+
* `contextTokens` is the `inputTokens.total` from the most recent `finish`
|
|
156
|
+
* part, or `undefined` when no usage has been observed yet, in which case
|
|
157
|
+
* `estimateTokens(prompt)` is used instead.
|
|
158
|
+
*
|
|
159
|
+
* Always `false` when `config.enabled` is `false`.
|
|
160
|
+
*
|
|
161
|
+
* @since 1.0.0
|
|
162
|
+
* @category Tokens
|
|
163
|
+
*/
|
|
164
|
+
export declare const shouldCompact: (options: {
|
|
165
|
+
readonly prompt: Prompt.Prompt;
|
|
166
|
+
readonly contextTokens: number | undefined;
|
|
167
|
+
readonly config: CompactionConfigService;
|
|
168
|
+
}) => boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Whether an `AiError` is a context-length overflow from a known provider
|
|
171
|
+
* (Codex / Copilot), as opposed to any other request or transport failure.
|
|
172
|
+
*
|
|
173
|
+
* Any request, unknown or provider error counts when it carries a 413 status,
|
|
174
|
+
* a `context_length_exceeded` code, or a context-length description. These
|
|
175
|
+
* errors are never retried as-is; the Agent compacts first.
|
|
176
|
+
*
|
|
177
|
+
* @since 1.0.0
|
|
178
|
+
* @category Overflow
|
|
179
|
+
*/
|
|
180
|
+
export declare const isContextLengthError: (error: AiError.AiError) => boolean;
|
|
181
|
+
/**
|
|
182
|
+
* The result of choosing a cut point in a Prompt.
|
|
183
|
+
*
|
|
184
|
+
* - `system`: the system message, passed through unchanged.
|
|
185
|
+
* - `previousSummary`: the text inside an existing `<compaction-summary>`
|
|
186
|
+
* message, if the prompt was compacted before. That message is excluded from
|
|
187
|
+
* `toSummarize`.
|
|
188
|
+
* - `toSummarize`: the messages older than the cut point.
|
|
189
|
+
* - `kept`: the messages at and after the cut point, preserved verbatim
|
|
190
|
+
* (subject to `trimKept`).
|
|
191
|
+
*
|
|
192
|
+
* @since 1.0.0
|
|
193
|
+
* @category Cut points
|
|
194
|
+
*/
|
|
195
|
+
export interface Split {
|
|
196
|
+
readonly system: Option.Option<Prompt.SystemMessage>;
|
|
197
|
+
readonly previousSummary: Option.Option<string>;
|
|
198
|
+
readonly toSummarize: ReadonlyArray<Prompt.Message>;
|
|
199
|
+
readonly kept: ReadonlyArray<Prompt.Message>;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Whether a message is the synthetic `<compaction-summary>` user message
|
|
203
|
+
* produced by `rewrite`. Surfaces that replay history (ACP) skip it.
|
|
204
|
+
*
|
|
205
|
+
* @since 1.0.0
|
|
206
|
+
* @category Cut points
|
|
207
|
+
*/
|
|
208
|
+
export declare const isSummaryMessage: (message: Prompt.Message) => boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Choose the cut point for a compaction.
|
|
211
|
+
*
|
|
212
|
+
* Walks back from the newest message, accumulating `estimateMessageTokens`,
|
|
213
|
+
* and stops at the first message boundary where the accumulated tail would
|
|
214
|
+
* exceed `keepRecentTokens`. The cut is then adjusted so that an `execute`
|
|
215
|
+
* tool-call (assistant message) and its tool-result (tool message) are never
|
|
216
|
+
* separated: if the boundary falls between them the assistant message is kept
|
|
217
|
+
* as well. The kept tail always contains at least the newest complete unit.
|
|
218
|
+
*
|
|
219
|
+
* Returns `None` when there is nothing to summarize, which happens when the
|
|
220
|
+
* kept tail is the whole prompt (ignoring the system message and a previous
|
|
221
|
+
* summary message). Callers treat `None` as a no-op.
|
|
222
|
+
*
|
|
223
|
+
* @since 1.0.0
|
|
224
|
+
* @category Cut points
|
|
225
|
+
*/
|
|
226
|
+
export declare const split: (prompt: Prompt.Prompt, keepRecentTokens: number) => Option.Option<Split>;
|
|
227
|
+
/**
|
|
228
|
+
* Find the text of a previous compaction summary in a Prompt, if present.
|
|
229
|
+
*
|
|
230
|
+
* @since 1.0.0
|
|
231
|
+
* @category Cut points
|
|
232
|
+
*/
|
|
233
|
+
export declare const findPreviousSummary: (prompt: Prompt.Prompt) => Option.Option<string>;
|
|
234
|
+
/**
|
|
235
|
+
* Shrink a kept tail that still exceeds `keepRecentTokens`:
|
|
236
|
+
*
|
|
237
|
+
* 1. Drop `reasoning` parts from assistant messages, oldest first, until the
|
|
238
|
+
* tail fits.
|
|
239
|
+
* 2. If it still does not fit, stub `execute` tool-result strings in place,
|
|
240
|
+
* oldest first, using `capOutput(result, keptToolResultStubChars)`.
|
|
241
|
+
*
|
|
242
|
+
* Message order, message count and tool-call / tool-result ids are never
|
|
243
|
+
* changed, so call/result pairing stays valid. Returns the input unchanged
|
|
244
|
+
* when it already fits.
|
|
245
|
+
*
|
|
246
|
+
* @since 1.0.0
|
|
247
|
+
* @category Cut points
|
|
248
|
+
*/
|
|
249
|
+
export declare const trimKept: (kept: ReadonlyArray<Prompt.Message>, keepRecentTokens: number) => ReadonlyArray<Prompt.Message>;
|
|
250
|
+
/**
|
|
251
|
+
* Build the Prompt sent to the summarizer model call.
|
|
252
|
+
*
|
|
253
|
+
* The conversation is rendered as text using the OpenCode-style summary
|
|
254
|
+
* template. `reasoning` parts are omitted, `execute` tool results are capped
|
|
255
|
+
* to `summarizerToolResultCapChars`, and `previousSummary` is folded in so the
|
|
256
|
+
* new summary supersedes it. No tools, no system prompt from the agent.
|
|
257
|
+
*
|
|
258
|
+
* @since 1.0.0
|
|
259
|
+
* @category Rewrite
|
|
260
|
+
*/
|
|
261
|
+
export declare const summarizerPrompt: (options: {
|
|
262
|
+
readonly previousSummary: Option.Option<string>;
|
|
263
|
+
readonly messages: ReadonlyArray<Prompt.Message>;
|
|
264
|
+
}) => Prompt.Prompt;
|
|
265
|
+
/**
|
|
266
|
+
* Wrap a summary in the `<compaction-summary>` tags used for the synthetic
|
|
267
|
+
* user message.
|
|
268
|
+
*
|
|
269
|
+
* @since 1.0.0
|
|
270
|
+
* @category Rewrite
|
|
271
|
+
*/
|
|
272
|
+
export declare const wrapSummary: (summary: string) => string;
|
|
273
|
+
/**
|
|
274
|
+
* Assemble the compacted Prompt: `[system?, user(wrapSummary(summary)),
|
|
275
|
+
* ...kept]`. The system message is passed through untouched.
|
|
276
|
+
*
|
|
277
|
+
* @since 1.0.0
|
|
278
|
+
* @category Rewrite
|
|
279
|
+
*/
|
|
280
|
+
export declare const rewrite: (options: {
|
|
281
|
+
readonly system: Option.Option<Prompt.SystemMessage>;
|
|
282
|
+
readonly summary: string;
|
|
283
|
+
readonly kept: ReadonlyArray<Prompt.Message>;
|
|
284
|
+
}) => Prompt.Prompt;
|
|
285
|
+
/**
|
|
286
|
+
* @since 1.0.0
|
|
287
|
+
* @category Compaction
|
|
288
|
+
*/
|
|
289
|
+
export type CompactionReason = typeof AgentOutput.CompactionReason.Type;
|
|
290
|
+
/**
|
|
291
|
+
* @since 1.0.0
|
|
292
|
+
* @category Compaction
|
|
293
|
+
*/
|
|
294
|
+
export interface CompactionResult {
|
|
295
|
+
readonly reason: CompactionReason;
|
|
296
|
+
readonly prompt: Prompt.Prompt;
|
|
297
|
+
/**
|
|
298
|
+
* `estimateTokens` of the prompt before and after the rewrite.
|
|
299
|
+
*/
|
|
300
|
+
readonly tokensBefore: number;
|
|
301
|
+
readonly tokensAfter: number;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Run one compaction of `prompt`.
|
|
305
|
+
*
|
|
306
|
+
* Returns `None` without calling the model when compaction is disabled or
|
|
307
|
+
* when `split` finds nothing to summarize. Otherwise `onStart` runs, the
|
|
308
|
+
* summarizer is called with `streamText` (the Codex backend rejects
|
|
309
|
+
* non-streaming requests) through `SummarizerTransform`, and the prompt is
|
|
310
|
+
* rewritten to `system + summary + trimKept(kept)`.
|
|
311
|
+
*
|
|
312
|
+
* Fails with the summarizer's `AiError`. Callers decide whether that is fatal.
|
|
313
|
+
*
|
|
314
|
+
* @since 1.0.0
|
|
315
|
+
* @category Compaction
|
|
316
|
+
*/
|
|
317
|
+
export declare const compact: (options: {
|
|
318
|
+
readonly prompt: Prompt.Prompt;
|
|
319
|
+
readonly reason: CompactionReason;
|
|
320
|
+
/**
|
|
321
|
+
* Runs once a cut point was found, before the summarizer call. Not invoked
|
|
322
|
+
* for no-op compactions.
|
|
323
|
+
*/
|
|
324
|
+
readonly onStart?: ((reason: CompactionReason) => Effect.Effect<void>) | undefined;
|
|
325
|
+
}) => Effect.Effect<Option.Option<CompactionResult>, AiError.AiError, LanguageModel.LanguageModel>;
|
|
326
|
+
/**
|
|
327
|
+
* Compact before the next model call when `shouldCompact` fires.
|
|
328
|
+
*
|
|
329
|
+
* Returns `None` when compaction is disabled, not needed, or a no-op. A
|
|
330
|
+
* failing summarizer is swallowed here: the caller proceeds with the
|
|
331
|
+
* uncompacted prompt and relies on the overflow path.
|
|
332
|
+
*
|
|
333
|
+
* @since 1.0.0
|
|
334
|
+
* @category Compaction
|
|
335
|
+
*/
|
|
336
|
+
export declare const compactIfNeeded: (options: {
|
|
337
|
+
readonly prompt: Prompt.Prompt;
|
|
338
|
+
readonly contextTokens: number | undefined;
|
|
339
|
+
readonly onStart?: ((reason: CompactionReason) => Effect.Effect<void>) | undefined;
|
|
340
|
+
}) => Effect.Effect<Option.Option<CompactionResult>, never, LanguageModel.LanguageModel>;
|
|
341
|
+
export {};
|
|
342
|
+
//# sourceMappingURL=Compaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Compaction.d.ts","sourceRoot":"","sources":["../src/Compaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAA;AACrD,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAA;AACnD,OAAO,KAAK,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAMpD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ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