@namzu/cli 12.1.0 → 13.0.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.
Files changed (199) hide show
  1. package/README.md +25 -1
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/cli.js +119 -60
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/acp.d.ts +24 -8
  6. package/dist/commands/acp.d.ts.map +1 -1
  7. package/dist/commands/acp.js +221 -80
  8. package/dist/commands/acp.js.map +1 -1
  9. package/dist/commands/drain.d.ts.map +1 -1
  10. package/dist/commands/drain.js +45 -9
  11. package/dist/commands/drain.js.map +1 -1
  12. package/dist/commands/prior-messages.d.ts +11 -0
  13. package/dist/commands/prior-messages.d.ts.map +1 -0
  14. package/dist/commands/prior-messages.js +280 -0
  15. package/dist/commands/prior-messages.js.map +1 -0
  16. package/dist/commands/resume.d.ts.map +1 -1
  17. package/dist/commands/resume.js +21 -19
  18. package/dist/commands/resume.js.map +1 -1
  19. package/dist/commands/run-stream.d.ts +5 -3
  20. package/dist/commands/run-stream.d.ts.map +1 -1
  21. package/dist/commands/run-stream.js +66 -62
  22. package/dist/commands/run-stream.js.map +1 -1
  23. package/dist/commands/run.d.ts.map +1 -1
  24. package/dist/commands/run.js +50 -37
  25. package/dist/commands/run.js.map +1 -1
  26. package/dist/config/debug.d.ts +55 -0
  27. package/dist/config/debug.d.ts.map +1 -0
  28. package/dist/config/debug.js +126 -0
  29. package/dist/config/debug.js.map +1 -0
  30. package/dist/config/load.d.ts +88 -4
  31. package/dist/config/load.d.ts.map +1 -1
  32. package/dist/config/load.js +386 -56
  33. package/dist/config/load.js.map +1 -1
  34. package/dist/config/schema.d.ts +87 -5
  35. package/dist/config/schema.d.ts.map +1 -1
  36. package/dist/config/schema.js +5 -5
  37. package/dist/config/schema.js.map +1 -1
  38. package/dist/config/trusted-project-context.d.ts +11 -0
  39. package/dist/config/trusted-project-context.d.ts.map +1 -0
  40. package/dist/config/trusted-project-context.js +28 -0
  41. package/dist/config/trusted-project-context.js.map +1 -0
  42. package/dist/context/project-path.d.ts +3 -0
  43. package/dist/context/project-path.d.ts.map +1 -0
  44. package/dist/context/project-path.js +16 -0
  45. package/dist/context/project-path.js.map +1 -0
  46. package/dist/context/project-tracker.d.ts +30 -0
  47. package/dist/context/project-tracker.d.ts.map +1 -0
  48. package/dist/context/project-tracker.js +217 -0
  49. package/dist/context/project-tracker.js.map +1 -0
  50. package/dist/context/sandbox.d.ts +29 -9
  51. package/dist/context/sandbox.d.ts.map +1 -1
  52. package/dist/context/sandbox.js +8 -0
  53. package/dist/context/sandbox.js.map +1 -1
  54. package/dist/exit-codes.d.ts +5 -4
  55. package/dist/exit-codes.d.ts.map +1 -1
  56. package/dist/exit-codes.js +5 -4
  57. package/dist/exit-codes.js.map +1 -1
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +2 -2
  61. package/dist/index.js.map +1 -1
  62. package/dist/integrations/clipboard/text.d.ts +43 -0
  63. package/dist/integrations/clipboard/text.d.ts.map +1 -0
  64. package/dist/integrations/clipboard/text.js +43 -0
  65. package/dist/integrations/clipboard/text.js.map +1 -0
  66. package/dist/integrations/mcp/servers.d.ts +9 -0
  67. package/dist/integrations/mcp/servers.d.ts.map +1 -1
  68. package/dist/integrations/mcp/servers.js +11 -4
  69. package/dist/integrations/mcp/servers.js.map +1 -1
  70. package/dist/integrations/notifications/terminal.d.ts +32 -0
  71. package/dist/integrations/notifications/terminal.d.ts.map +1 -0
  72. package/dist/integrations/notifications/terminal.js +46 -0
  73. package/dist/integrations/notifications/terminal.js.map +1 -0
  74. package/dist/integrations/plugins/runtime.d.ts +17 -0
  75. package/dist/integrations/plugins/runtime.d.ts.map +1 -0
  76. package/dist/integrations/plugins/runtime.js +100 -0
  77. package/dist/integrations/plugins/runtime.js.map +1 -0
  78. package/dist/integrations/providers/credential-store.d.ts +17 -0
  79. package/dist/integrations/providers/credential-store.d.ts.map +1 -1
  80. package/dist/integrations/providers/credential-store.js +114 -2
  81. package/dist/integrations/providers/credential-store.js.map +1 -1
  82. package/dist/integrations/providers/index.d.ts +2 -2
  83. package/dist/integrations/providers/index.d.ts.map +1 -1
  84. package/dist/integrations/providers/index.js +2 -2
  85. package/dist/integrations/providers/index.js.map +1 -1
  86. package/dist/integrations/providers/keychain.d.ts +0 -13
  87. package/dist/integrations/providers/keychain.d.ts.map +1 -1
  88. package/dist/integrations/providers/keychain.js +0 -76
  89. package/dist/integrations/providers/keychain.js.map +1 -1
  90. package/dist/integrations/providers/oauth.d.ts +45 -16
  91. package/dist/integrations/providers/oauth.d.ts.map +1 -1
  92. package/dist/integrations/providers/oauth.js +170 -43
  93. package/dist/integrations/providers/oauth.js.map +1 -1
  94. package/dist/integrations/providers/subscription-login.d.ts +2 -0
  95. package/dist/integrations/providers/subscription-login.d.ts.map +1 -1
  96. package/dist/integrations/providers/subscription-login.js +117 -14
  97. package/dist/integrations/providers/subscription-login.js.map +1 -1
  98. package/dist/integrations/sessions/store.d.ts +111 -1
  99. package/dist/integrations/sessions/store.d.ts.map +1 -1
  100. package/dist/integrations/sessions/store.js +400 -7
  101. package/dist/integrations/sessions/store.js.map +1 -1
  102. package/dist/integrations/sessions/transcript-export.d.ts +25 -0
  103. package/dist/integrations/sessions/transcript-export.d.ts.map +1 -0
  104. package/dist/integrations/sessions/transcript-export.js +441 -0
  105. package/dist/integrations/sessions/transcript-export.js.map +1 -0
  106. package/dist/integrations/sessions/turn-evidence.d.ts +138 -0
  107. package/dist/integrations/sessions/turn-evidence.d.ts.map +1 -0
  108. package/dist/integrations/sessions/turn-evidence.js +506 -0
  109. package/dist/integrations/sessions/turn-evidence.js.map +1 -0
  110. package/dist/integrations/subagents/runtime.d.ts +7 -12
  111. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  112. package/dist/integrations/subagents/runtime.js +19 -10
  113. package/dist/integrations/subagents/runtime.js.map +1 -1
  114. package/dist/integrations/trust/store.d.ts.map +1 -1
  115. package/dist/integrations/trust/store.js +27 -13
  116. package/dist/integrations/trust/store.js.map +1 -1
  117. package/dist/permissions/canonical-project.d.ts +9 -0
  118. package/dist/permissions/canonical-project.d.ts.map +1 -0
  119. package/dist/permissions/canonical-project.js +13 -0
  120. package/dist/permissions/canonical-project.js.map +1 -0
  121. package/dist/permissions/checks.d.ts +65 -0
  122. package/dist/permissions/checks.d.ts.map +1 -0
  123. package/dist/permissions/checks.js +122 -0
  124. package/dist/permissions/checks.js.map +1 -0
  125. package/dist/permissions/headless-trust.d.ts +9 -5
  126. package/dist/permissions/headless-trust.d.ts.map +1 -1
  127. package/dist/permissions/headless-trust.js +18 -4
  128. package/dist/permissions/headless-trust.js.map +1 -1
  129. package/dist/permissions/rules.d.ts +16 -7
  130. package/dist/permissions/rules.d.ts.map +1 -1
  131. package/dist/permissions/rules.js +78 -13
  132. package/dist/permissions/rules.js.map +1 -1
  133. package/dist/tui/App.d.ts +5 -2
  134. package/dist/tui/App.d.ts.map +1 -1
  135. package/dist/tui/App.js +1555 -143
  136. package/dist/tui/App.js.map +1 -1
  137. package/dist/tui/Composer.d.ts +14 -3
  138. package/dist/tui/Composer.d.ts.map +1 -1
  139. package/dist/tui/Composer.js +53 -15
  140. package/dist/tui/Composer.js.map +1 -1
  141. package/dist/tui/EditPromptPicker.d.ts +8 -0
  142. package/dist/tui/EditPromptPicker.d.ts.map +1 -0
  143. package/dist/tui/EditPromptPicker.js +18 -0
  144. package/dist/tui/EditPromptPicker.js.map +1 -0
  145. package/dist/tui/LiveActivity.d.ts.map +1 -1
  146. package/dist/tui/LiveActivity.js +2 -1
  147. package/dist/tui/LiveActivity.js.map +1 -1
  148. package/dist/tui/Markdown.d.ts.map +1 -1
  149. package/dist/tui/Markdown.js +2 -1
  150. package/dist/tui/Markdown.js.map +1 -1
  151. package/dist/tui/PermissionOverlay.d.ts.map +1 -1
  152. package/dist/tui/PermissionOverlay.js +7 -1
  153. package/dist/tui/PermissionOverlay.js.map +1 -1
  154. package/dist/tui/Picker.d.ts +4 -4
  155. package/dist/tui/Picker.d.ts.map +1 -1
  156. package/dist/tui/Picker.js +86 -7
  157. package/dist/tui/Picker.js.map +1 -1
  158. package/dist/tui/ResumePicker.d.ts.map +1 -1
  159. package/dist/tui/ResumePicker.js +1 -1
  160. package/dist/tui/ResumePicker.js.map +1 -1
  161. package/dist/tui/Transcript.d.ts +4 -2
  162. package/dist/tui/Transcript.d.ts.map +1 -1
  163. package/dist/tui/Transcript.js +31 -5
  164. package/dist/tui/Transcript.js.map +1 -1
  165. package/dist/tui/agent.d.ts +123 -19
  166. package/dist/tui/agent.d.ts.map +1 -1
  167. package/dist/tui/agent.js +665 -143
  168. package/dist/tui/agent.js.map +1 -1
  169. package/dist/tui/compact-transcript.d.ts +24 -0
  170. package/dist/tui/compact-transcript.d.ts.map +1 -0
  171. package/dist/tui/compact-transcript.js +46 -0
  172. package/dist/tui/compact-transcript.js.map +1 -0
  173. package/dist/tui/conversation-history.d.ts +33 -0
  174. package/dist/tui/conversation-history.d.ts.map +1 -0
  175. package/dist/tui/conversation-history.js +42 -0
  176. package/dist/tui/conversation-history.js.map +1 -0
  177. package/dist/tui/edit-prompts.d.ts +23 -0
  178. package/dist/tui/edit-prompts.d.ts.map +1 -0
  179. package/dist/tui/edit-prompts.js +35 -0
  180. package/dist/tui/edit-prompts.js.map +1 -0
  181. package/dist/tui/live-window.d.ts +3 -1
  182. package/dist/tui/live-window.d.ts.map +1 -1
  183. package/dist/tui/live-window.js +20 -8
  184. package/dist/tui/live-window.js.map +1 -1
  185. package/dist/tui/slashCommands.d.ts +178 -9
  186. package/dist/tui/slashCommands.d.ts.map +1 -1
  187. package/dist/tui/slashCommands.js +339 -15
  188. package/dist/tui/slashCommands.js.map +1 -1
  189. package/dist/tui/terminal-display.d.ts +12 -0
  190. package/dist/tui/terminal-display.d.ts.map +1 -0
  191. package/dist/tui/terminal-display.js +65 -0
  192. package/dist/tui/terminal-display.js.map +1 -0
  193. package/dist/tui/types.d.ts +14 -2
  194. package/dist/tui/types.d.ts.map +1 -1
  195. package/dist/tui/workspace-diff.d.ts +40 -0
  196. package/dist/tui/workspace-diff.d.ts.map +1 -0
  197. package/dist/tui/workspace-diff.js +101 -0
  198. package/dist/tui/workspace-diff.js.map +1 -0
  199. package/package.json +7 -7
@@ -7,7 +7,7 @@
7
7
  * added here and not handled there falls out of the switch into the send path
8
8
  * and dispatches the operator's `/command` to the model as prose.
9
9
  *
10
- * `/cost`, `/permissions` and `/agents` are RENDERERS. Every number and rule
10
+ * `/cost`, argumentless `/permissions` and `/agents` are RENDERERS. Every number and rule
11
11
  * they print was already computed — the kernel emits usage on its own event,
12
12
  * the permission rules were compiled before the session opened, and the
13
13
  * delegate roster is decided when the subagent runtime is built. None of them
@@ -22,7 +22,10 @@
22
22
  * resolves it. Giving this module the transcript to search would put the answer
23
23
  * to "does block 4 exist" in two places at once.
24
24
  */
25
- import { type AuthorizationRule, type CostInfo, type HostCommandOutcome, type SerializableHostCommand } from '@namzu/sdk';
25
+ import { type AuthorizationRule, type CostInfo, type HostCommandOutcome, type ReasoningEffort, type SerializableHostCommand } from '@namzu/sdk';
26
+ import { type ConfigDebugSnapshot } from '../config/debug.js';
27
+ import type { SandboxSummary } from '../context/sandbox.js';
28
+ import { type PermissionMode } from '../permissions/mode.js';
26
29
  import { type UserCommand } from '../user-commands/store.js';
27
30
  export type SlashAction = {
28
31
  kind: 'message';
@@ -30,10 +33,27 @@ export type SlashAction = {
30
33
  content: string;
31
34
  } | {
32
35
  kind: 'exit';
33
- } | {
34
- kind: 'clear';
36
+ }
37
+ /** Empty only the rendered terminal transcript; model context is unchanged. */
38
+ | {
39
+ kind: 'clear-screen';
40
+ }
41
+ /** Start a fresh conversation, optionally clearing the rendered transcript too. */
42
+ | {
43
+ kind: 'new-conversation';
44
+ clearScreen: boolean;
35
45
  } | {
36
46
  kind: 'repick';
47
+ }
48
+ /** Select how the next TUI turn resolves otherwise-undecided tool calls. */
49
+ | {
50
+ kind: 'permission-mode';
51
+ mode: PermissionMode;
52
+ }
53
+ /** Select model-specific reasoning effort for future main-query turns. */
54
+ | {
55
+ kind: 'reasoning-effort';
56
+ effort: ReasoningEffort | null;
37
57
  } | {
38
58
  kind: 'remember';
39
59
  text: string;
@@ -47,6 +67,72 @@ export type SlashAction = {
47
67
  } | {
48
68
  kind: 'resume';
49
69
  }
70
+ /**
71
+ * Name this conversation, show its name, or take the name away.
72
+ *
73
+ * Its own kind rather than a message, because the write touches the
74
+ * session store and this union is pure. An empty `title` means "show me";
75
+ * an explicit clear is the literal word, so a person cannot erase a name
76
+ * by pressing enter on a half-typed command.
77
+ */
78
+ | {
79
+ kind: 'title';
80
+ title: string;
81
+ clear: boolean;
82
+ }
83
+ /**
84
+ * Continue in a copy, leaving this conversation where it is.
85
+ *
86
+ * Async like its neighbours: the copy reads the persisted transcript and
87
+ * writes it into a new session before anything on screen changes.
88
+ */
89
+ | {
90
+ kind: 'fork';
91
+ }
92
+ /**
93
+ * Shrink the conversation now, rather than when a threshold decides.
94
+ *
95
+ * Its own kind, and asynchronous where this union is not, for the reason
96
+ * `host-command` gives one line down: the work is a model call, and making
97
+ * the action itself async would push that through every command. The
98
+ * command decides; `App` performs and reports.
99
+ */
100
+ | {
101
+ kind: 'compact';
102
+ }
103
+ /** Ask the terminal to copy the latest available assistant output. */
104
+ | {
105
+ kind: 'copy';
106
+ }
107
+ /** Toggle or explicitly select copy-friendly plain transcript rendering. */
108
+ | {
109
+ kind: 'raw';
110
+ enabled: boolean | 'toggle';
111
+ }
112
+ /** Write a verified, no-clobber Markdown projection of this conversation. */
113
+ | {
114
+ kind: 'export';
115
+ path?: string;
116
+ }
117
+ /**
118
+ * Show what is uncommitted in the working tree.
119
+ *
120
+ * Async for the same reason `compact` is: it shells out to git, and this
121
+ * union is synchronous by design.
122
+ */
123
+ | {
124
+ kind: 'diff';
125
+ }
126
+ /**
127
+ * Read the working tree and report on it as a turn.
128
+ *
129
+ * Async like its neighbours — the file list comes from git — and it ends in
130
+ * a PROMPT rather than a message, so the answer arrives the way every other
131
+ * answer does and lands in the transcript that gets saved.
132
+ */
133
+ | {
134
+ kind: 'review';
135
+ }
50
136
  /**
51
137
  * A command the KERNEL registered, to be dispatched and rendered.
52
138
  *
@@ -128,8 +214,40 @@ export interface SlashContext {
128
214
  * never-prompted that `/tools` did not list at all.
129
215
  */
130
216
  readonly availableTools: () => readonly string[];
217
+ /**
218
+ * Where writes may land, for the one command that shows it beside the
219
+ * approval settings.
220
+ *
221
+ * `null` before a session exists. These two facts were reachable only from
222
+ * two different places at two different times — the sandbox as a boot
223
+ * notice that scrolls away, the approvals from `/permissions` — and an
224
+ * operator who read one had no reason to think the other mattered.
225
+ */
226
+ readonly sandbox: SandboxSummary | null;
227
+ /**
228
+ * Tool servers, as they stood when this session connected.
229
+ *
230
+ * `null` before a session exists. Reported at connect time as transcript
231
+ * rows that scroll away, and nowhere else — so an operator ten minutes into
232
+ * a session had no way to ask which servers answered and which did not.
233
+ */
234
+ readonly mcp: {
235
+ readonly connected: readonly {
236
+ readonly name: string;
237
+ readonly tools: readonly string[];
238
+ }[];
239
+ readonly failed: readonly {
240
+ readonly name: string;
241
+ readonly reason: string;
242
+ }[];
243
+ } | null;
131
244
  readonly providerSummary: string | null;
132
245
  readonly modelSummary: string | null;
246
+ /** Live, model/chain-specific reasoning-effort control. */
247
+ readonly reasoningEffort: {
248
+ readonly current: () => ReasoningEffort | undefined;
249
+ readonly levels: readonly ReasoningEffort[] | undefined;
250
+ };
133
251
  /**
134
252
  * CUMULATIVE run spend, or `null` before the first turn reports any.
135
253
  *
@@ -144,15 +262,18 @@ export interface SlashContext {
144
262
  } | null;
145
263
  /** What decides a tool call right now — flags, config, and session state. */
146
264
  readonly permissions: {
147
- /** `--yolo` / `--dangerously-skip-permissions`. */
148
- readonly skipPermissions: boolean;
265
+ /** Live mode and why it currently has that value, read at render time. */
266
+ readonly currentMode: () => {
267
+ readonly mode: PermissionMode;
268
+ readonly source: 'default' | 'launch-bypass' | 'session';
269
+ };
149
270
  readonly rules: readonly AuthorizationRule[];
150
271
  /**
151
272
  * Whether "approve all" is in force, read at render time.
152
273
  *
153
- * A function because this is the one field here that CHANGES while
154
- * namzu runs. The other two come from flags and a config file and are
155
- * fixed for the process; this one flips on a keystroke mid-turn. Since
274
+ * A function because this field changes while namzu runs. The selected
275
+ * mode above also moves, but only at an idle command boundary; this one
276
+ * flips on a keystroke mid-turn. Since
156
277
  * this context object is assembled during a render and read later from
157
278
  * a callback that captured it, a boolean would report whatever was true
158
279
  * when the object was built — which is precisely the staleness that let
@@ -189,6 +310,8 @@ export interface SlashContext {
189
310
  * already answers to. Empty is the normal case.
190
311
  */
191
312
  readonly userCommands: readonly UserCommand[];
313
+ /** Values-free launch snapshot behind `/debug-config`; null for an embed that omitted it. */
314
+ readonly configDebug: ConfigDebugSnapshot | null;
192
315
  /**
193
316
  * Everything this session answers to, for `/help` to list.
194
317
  *
@@ -328,7 +451,53 @@ export declare function initPrompt(instructionFiles: readonly string[]): string;
328
451
  */
329
452
  export declare function renderCost(usage: SlashContext['usage']): string;
330
453
  /** What decides a tool call, in the order it actually decides it. */
454
+ /**
455
+ * One page holding both halves of what a run may do.
456
+ *
457
+ * They are separate mechanisms and they answer separate questions — where a
458
+ * write may land, and whether anyone is asked first — and neither implies the
459
+ * other. An operator who turns approvals off has not widened the sandbox, and
460
+ * one who confines the filesystem has not stopped the prompts. Read apart, each
461
+ * looks like the whole answer; the failure is believing you configured
462
+ * something you did not.
463
+ *
464
+ * So they are printed adjacently and each is labelled with the question it
465
+ * answers, rather than with its mechanism's name.
466
+ */
467
+ /**
468
+ * Which tool servers answered, and what they brought.
469
+ *
470
+ * A failure is listed as prominently as a success and never omitted. The
471
+ * transcript said so once at connect time and scrolled it away, and a server
472
+ * that failed silently is indistinguishable from one nobody configured — which
473
+ * is the state an operator is in when a tool they expect is simply not there.
474
+ */
475
+ /**
476
+ * The turn `/review` sends.
477
+ *
478
+ * Two failures shape it, and they pull in opposite directions.
479
+ *
480
+ * A review that INVENTS problems is worse than no review, because someone acts
481
+ * on it — the same reasoning `initPrompt` uses about invented conventions. So
482
+ * the instruction asks for findings tied to a specific line and for silence
483
+ * over speculation.
484
+ *
485
+ * A review that only reassures is worse than useless, because it buys
486
+ * confidence nobody earned. So it also refuses the summary-of-the-diff answer:
487
+ * restating what changed is not review, and it is the shape a model falls into
488
+ * when it has nothing to say.
489
+ *
490
+ * The FILE LIST goes in, not the patch. The agent has tools and a shell; handing
491
+ * it a truncated 24 kB patch would spend the context that reading the
492
+ * interesting parts properly requires, and a review of a truncated diff is a
493
+ * review of whatever fitted.
494
+ */
495
+ export declare function reviewPrompt(stat: string, untracked: readonly string[]): string;
496
+ export declare function renderMcp(mcp: SlashContext['mcp']): string;
497
+ export declare function renderStatus(ctx: SlashContext): string;
331
498
  export declare function renderPermissions(permissions: SlashContext['permissions']): string;
499
+ /** Render the exact session control without inventing a global effort menu. */
500
+ export declare function renderReasoningEffort(ctx: SlashContext): string;
332
501
  /** The delegate roster, and an honest answer when there is none. */
333
502
  /**
334
503
  * The roster, drawn.
@@ -1 +1 @@
1
- {"version":3,"file":"slashCommands.d.ts","sourceRoot":"","sources":["../../src/tui/slashCommands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAE5B,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,2BAA2B,CAAA;AAG3E,MAAM,MAAM,WAAW,GACpB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,QAAQ,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