zelio-cli 0.0.0-stage → 0.1.0-beta.10

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 (223) hide show
  1. package/README.md +71 -2
  2. package/dist/attachments.js +121 -0
  3. package/dist/attachments.js.map +1 -0
  4. package/dist/cli-main.js +521 -0
  5. package/dist/cli-main.js.map +1 -0
  6. package/dist/cli.js +22 -0
  7. package/dist/cli.js.map +1 -0
  8. package/dist/cloud/account.js +109 -0
  9. package/dist/cloud/account.js.map +1 -0
  10. package/dist/cloud/board.js +311 -0
  11. package/dist/cloud/board.js.map +1 -0
  12. package/dist/cloud/command.js +265 -0
  13. package/dist/cloud/command.js.map +1 -0
  14. package/dist/cloud/config.js +132 -0
  15. package/dist/cloud/config.js.map +1 -0
  16. package/dist/cloud/credentials.js +134 -0
  17. package/dist/cloud/credentials.js.map +1 -0
  18. package/dist/cloud/login.js +166 -0
  19. package/dist/cloud/login.js.map +1 -0
  20. package/dist/cloud/pair.js +110 -0
  21. package/dist/cloud/pair.js.map +1 -0
  22. package/dist/cloud/pkce.js +16 -0
  23. package/dist/cloud/pkce.js.map +1 -0
  24. package/dist/cloud/push-nudge.js +65 -0
  25. package/dist/cloud/push-nudge.js.map +1 -0
  26. package/dist/cloud/relay.js +134 -0
  27. package/dist/cloud/relay.js.map +1 -0
  28. package/dist/cloud/token.js +66 -0
  29. package/dist/cloud/token.js.map +1 -0
  30. package/dist/cloud/tunnel.js +474 -0
  31. package/dist/cloud/tunnel.js.map +1 -0
  32. package/dist/db/db.js +1838 -0
  33. package/dist/db/db.js.map +1 -0
  34. package/dist/db/lifecycle.js +146 -0
  35. package/dist/db/lifecycle.js.map +1 -0
  36. package/dist/limits.js +35 -0
  37. package/dist/limits.js.map +1 -0
  38. package/dist/metrics.js +30 -0
  39. package/dist/metrics.js.map +1 -0
  40. package/dist/orchestrator/area-notes.js +87 -0
  41. package/dist/orchestrator/area-notes.js.map +1 -0
  42. package/dist/orchestrator/claude-session.js +208 -0
  43. package/dist/orchestrator/claude-session.js.map +1 -0
  44. package/dist/orchestrator/codex-session.js +327 -0
  45. package/dist/orchestrator/codex-session.js.map +1 -0
  46. package/dist/orchestrator/contract.js +189 -0
  47. package/dist/orchestrator/contract.js.map +1 -0
  48. package/dist/orchestrator/explore.js +176 -0
  49. package/dist/orchestrator/explore.js.map +1 -0
  50. package/dist/orchestrator/new-task-prompt.js +51 -0
  51. package/dist/orchestrator/new-task-prompt.js.map +1 -0
  52. package/dist/orchestrator/pi-session.js +234 -0
  53. package/dist/orchestrator/pi-session.js.map +1 -0
  54. package/dist/orchestrator/prompt.js +110 -0
  55. package/dist/orchestrator/prompt.js.map +1 -0
  56. package/dist/orchestrator/research.js +193 -0
  57. package/dist/orchestrator/research.js.map +1 -0
  58. package/dist/orchestrator/retrieval.js +333 -0
  59. package/dist/orchestrator/retrieval.js.map +1 -0
  60. package/dist/orchestrator/runtime.js +1217 -0
  61. package/dist/orchestrator/runtime.js.map +1 -0
  62. package/dist/orchestrator/session.js +2 -0
  63. package/dist/orchestrator/session.js.map +1 -0
  64. package/dist/orchestrator/types.js +2 -0
  65. package/dist/orchestrator/types.js.map +1 -0
  66. package/dist/orchestrator/web.js +276 -0
  67. package/dist/orchestrator/web.js.map +1 -0
  68. package/dist/repo/code-map.js +152 -0
  69. package/dist/repo/code-map.js.map +1 -0
  70. package/dist/repo/index.js +188 -0
  71. package/dist/repo/index.js.map +1 -0
  72. package/dist/repo/instructions.js +58 -0
  73. package/dist/repo/instructions.js.map +1 -0
  74. package/dist/repo/linked-boards.js +149 -0
  75. package/dist/repo/linked-boards.js.map +1 -0
  76. package/dist/repo/project-repos.js +78 -0
  77. package/dist/repo/project-repos.js.map +1 -0
  78. package/dist/run/actions.js +257 -0
  79. package/dist/run/actions.js.map +1 -0
  80. package/dist/run/auto-review.js +116 -0
  81. package/dist/run/auto-review.js.map +1 -0
  82. package/dist/run/bash-guard.js +183 -0
  83. package/dist/run/bash-guard.js.map +1 -0
  84. package/dist/run/claude-runtime.js +284 -0
  85. package/dist/run/claude-runtime.js.map +1 -0
  86. package/dist/run/claude-stream.js +306 -0
  87. package/dist/run/claude-stream.js.map +1 -0
  88. package/dist/run/codex-client.js +213 -0
  89. package/dist/run/codex-client.js.map +1 -0
  90. package/dist/run/codex-planner-config.js +26 -0
  91. package/dist/run/codex-planner-config.js.map +1 -0
  92. package/dist/run/codex-runtime.js +469 -0
  93. package/dist/run/codex-runtime.js.map +1 -0
  94. package/dist/run/consult.js +109 -0
  95. package/dist/run/consult.js.map +1 -0
  96. package/dist/run/context.js +87 -0
  97. package/dist/run/context.js.map +1 -0
  98. package/dist/run/developer-sandbox.js +67 -0
  99. package/dist/run/developer-sandbox.js.map +1 -0
  100. package/dist/run/diff.js +238 -0
  101. package/dist/run/diff.js.map +1 -0
  102. package/dist/run/evidence.js +48 -0
  103. package/dist/run/evidence.js.map +1 -0
  104. package/dist/run/finish.js +430 -0
  105. package/dist/run/finish.js.map +1 -0
  106. package/dist/run/handoff.js +51 -0
  107. package/dist/run/handoff.js.map +1 -0
  108. package/dist/run/harness-runtime.js +31 -0
  109. package/dist/run/harness-runtime.js.map +1 -0
  110. package/dist/run/harnesses.js +293 -0
  111. package/dist/run/harnesses.js.map +1 -0
  112. package/dist/run/issue.js +79 -0
  113. package/dist/run/issue.js.map +1 -0
  114. package/dist/run/keep-awake.js +58 -0
  115. package/dist/run/keep-awake.js.map +1 -0
  116. package/dist/run/lead.js +183 -0
  117. package/dist/run/lead.js.map +1 -0
  118. package/dist/run/manager.js +2737 -0
  119. package/dist/run/manager.js.map +1 -0
  120. package/dist/run/mentions.js +35 -0
  121. package/dist/run/mentions.js.map +1 -0
  122. package/dist/run/merge-watch.js +425 -0
  123. package/dist/run/merge-watch.js.map +1 -0
  124. package/dist/run/models.js +88 -0
  125. package/dist/run/models.js.map +1 -0
  126. package/dist/run/phases.js +23 -0
  127. package/dist/run/phases.js.map +1 -0
  128. package/dist/run/pi-packages.js +72 -0
  129. package/dist/run/pi-packages.js.map +1 -0
  130. package/dist/run/pi-rpc.js +464 -0
  131. package/dist/run/pi-rpc.js.map +1 -0
  132. package/dist/run/piped-check.js +56 -0
  133. package/dist/run/piped-check.js.map +1 -0
  134. package/dist/run/pr-checks.js +67 -0
  135. package/dist/run/pr-checks.js.map +1 -0
  136. package/dist/run/pr-merge.js +121 -0
  137. package/dist/run/pr-merge.js.map +1 -0
  138. package/dist/run/profiles.js +43 -0
  139. package/dist/run/profiles.js.map +1 -0
  140. package/dist/run/prompt.js +405 -0
  141. package/dist/run/prompt.js.map +1 -0
  142. package/dist/run/pull-request.js +23 -0
  143. package/dist/run/pull-request.js.map +1 -0
  144. package/dist/run/red-check.js +130 -0
  145. package/dist/run/red-check.js.map +1 -0
  146. package/dist/run/result-tool.js +93 -0
  147. package/dist/run/result-tool.js.map +1 -0
  148. package/dist/run/result.js +113 -0
  149. package/dist/run/result.js.map +1 -0
  150. package/dist/run/retro.js +346 -0
  151. package/dist/run/retro.js.map +1 -0
  152. package/dist/run/settings.js +28 -0
  153. package/dist/run/settings.js.map +1 -0
  154. package/dist/run/skills.js +146 -0
  155. package/dist/run/skills.js.map +1 -0
  156. package/dist/run/tests-first.js +146 -0
  157. package/dist/run/tests-first.js.map +1 -0
  158. package/dist/run/thinking.js +41 -0
  159. package/dist/run/thinking.js.map +1 -0
  160. package/dist/run/types.js +2 -0
  161. package/dist/run/types.js.map +1 -0
  162. package/dist/run/watchdog.js +266 -0
  163. package/dist/run/watchdog.js.map +1 -0
  164. package/dist/run/workflow.js +277 -0
  165. package/dist/run/workflow.js.map +1 -0
  166. package/dist/run/worktree.js +354 -0
  167. package/dist/run/worktree.js.map +1 -0
  168. package/dist/server/app.js +3286 -0
  169. package/dist/server/app.js.map +1 -0
  170. package/dist/server/auth.js +93 -0
  171. package/dist/server/auth.js.map +1 -0
  172. package/dist/server/demo.js +96 -0
  173. package/dist/server/demo.js.map +1 -0
  174. package/dist/server/idempotency.js +104 -0
  175. package/dist/server/idempotency.js.map +1 -0
  176. package/dist/server/port.js +36 -0
  177. package/dist/server/port.js.map +1 -0
  178. package/dist/server/principal.js +93 -0
  179. package/dist/server/principal.js.map +1 -0
  180. package/dist/server/provider-auth.js +206 -0
  181. package/dist/server/provider-auth.js.map +1 -0
  182. package/dist/server/repo-picker.js +18 -0
  183. package/dist/server/repo-picker.js.map +1 -0
  184. package/dist/server/terminal.js +285 -0
  185. package/dist/server/terminal.js.map +1 -0
  186. package/dist/setup/components.js +98 -0
  187. package/dist/setup/components.js.map +1 -0
  188. package/dist/setup/config.js +71 -0
  189. package/dist/setup/config.js.map +1 -0
  190. package/dist/setup/ink-ui.js +189 -0
  191. package/dist/setup/ink-ui.js.map +1 -0
  192. package/dist/setup/onboarding.js +157 -0
  193. package/dist/setup/onboarding.js.map +1 -0
  194. package/dist/setup/run.js +69 -0
  195. package/dist/setup/run.js.map +1 -0
  196. package/dist/skills.js +151 -0
  197. package/dist/skills.js.map +1 -0
  198. package/dist/ticket-cli.js +157 -0
  199. package/dist/ticket-cli.js.map +1 -0
  200. package/dist/version.js +13 -0
  201. package/dist/version.js.map +1 -0
  202. package/dist/voice/index.js +69 -0
  203. package/dist/voice/index.js.map +1 -0
  204. package/dist/voice/moonshine.js +247 -0
  205. package/dist/voice/moonshine.js.map +1 -0
  206. package/dist/voice/wav.js +54 -0
  207. package/dist/voice/wav.js.map +1 -0
  208. package/dist/voice/whisper.js +491 -0
  209. package/dist/voice/whisper.js.map +1 -0
  210. package/dist/web/assets/index-TN5sUF2z.css +1 -0
  211. package/dist/web/assets/index-vB3Cucuc.js +258 -0
  212. package/dist/web/icons/apple-touch-icon.png +0 -0
  213. package/dist/web/icons/icon-192.png +0 -0
  214. package/dist/web/icons/icon-512.png +0 -0
  215. package/dist/web/icons/maskable-512.png +0 -0
  216. package/dist/web/index.html +21 -0
  217. package/dist/web/manifest.webmanifest +30 -0
  218. package/dist/web/sw.js +185 -0
  219. package/media/board.png +0 -0
  220. package/media/mobile.png +0 -0
  221. package/media/new-task.png +0 -0
  222. package/media/review.png +0 -0
  223. package/package.json +105 -4
package/README.md CHANGED
@@ -1,3 +1,72 @@
1
- # Temporary Holding Version
1
+ # Zelio
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Agents don't belong in chat windows.**
4
+
5
+ Zelio puts your coding agents on a kanban board: what each one is doing, what's stuck, and what's ready for review, at a glance.
6
+
7
+ ![Zelio board: To Do, In Progress, Blocked, Review and Complete columns, each card owned by an agent](https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/board.png)
8
+
9
+ ## The problem
10
+
11
+ Chat works for one agent on one task. Start a second and a third, and it falls apart:
12
+
13
+ - **You lose track.** An hour later, scrollback can't tell you what finished, what stalled, or what quietly did something else.
14
+ - **You become the scheduler.** Nothing says which agent is on which task. You hold it all in your head.
15
+ - **Review turns into reading.** You approve work by skimming a wall of text and hoping the diff matches what you meant.
16
+
17
+ ## The fix: a board
18
+
19
+ Zelio gives each piece of work a card. An agent owns the card, moves it as it works, and hands you a diff to review. One look at the board tells you where everything stands.
20
+
21
+ ```bash
22
+ npx zelio-cli
23
+ ```
24
+
25
+ Run it inside your repo. A board opens in the browser. Your code, keys and models stay on your machine.
26
+
27
+ ## How it works
28
+
29
+ 1. **Describe it.** Type a sentence, or dictate it. The planner reads your repo, asks only what it can't decide, and writes the ticket: goal, scope, acceptance checks.
30
+ 2. **Start it.** The agent gets its own git worktree, so parallel tickets never step on each other. Press **Auto** to skip the clicks and start as soon as the ticket is ready.
31
+ 3. **Watch it.** The agent reports typed updates (`decision`, `blocker`, `done`), not chat. If it gets stuck, the card moves to **Blocked** and says what it needs from you.
32
+ 4. **Review it.** The card lands in **Review** with the diff and the check results. Merge it, or send it back with a comment. Nothing reaches `main` without you.
33
+
34
+ ![New task: one sentence in, the planner writes the ticket](https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/new-task.png)
35
+
36
+ ![A ticket in Review with the agent's report and a merge button](https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/review.png)
37
+
38
+ ## What you get
39
+
40
+ - **Your agent, your model.** Works with [Claude Code](https://docs.claude.com/en/docs/claude-code), [Codex](https://github.com/openai/codex) and [pi](https://github.com/earendil-works/pi). Choose the harness and model per ticket.
41
+ - **Proof, not promises.** Agents finish by reporting the commands they ran, and Zelio checks that evidence against the worktree before the card reaches Review.
42
+ - **Review on the card.** Mention `@reviewer` for a second opinion or `@developer` to send work back. Merge from the board.
43
+ - **A safe ceiling.** 2 to 6 agents at once (your choice), because nobody can review ten diffs in parallel.
44
+ - **Take over any time.** Hand a ticket to your own terminal and resume the agent's session there.
45
+ - **On your phone.** `npx zelio-cli pair` shows a QR code. Get a push when an agent is blocked or done.
46
+ - **Several repos, one board.** Add projects and file tickets on any of them.
47
+ - **Local dictation.** Talk instead of typing. The speech model runs on your machine.
48
+
49
+ <img src="https://cdn.jsdelivr.net/npm/zelio-cli@latest/media/mobile.png" alt="Zelio on a phone" width="300">
50
+
51
+ ## Get started
52
+
53
+ You need Node.js 22+, git, and one agent CLI signed in (`claude auth login`, `codex login`, or pi).
54
+
55
+ ```bash
56
+ cd your-repo
57
+ npx zelio-cli
58
+ ```
59
+
60
+ The first run signs you in to Zelio and walks you through picking the harness and models. Change them later with `npx zelio-cli setup`. Run `npx zelio-cli --help` for every option.
61
+
62
+ > **Heads up:** agents run with your user's permissions and are not sandboxed by default. An experimental, opt-in macOS sandbox exists, with real limits. Review what you merge.
63
+
64
+ ## What Zelio is not
65
+
66
+ - Not a swarm. Agents don't talk to each other. Coordination happens on tickets.
67
+ - Not a chat app, an editor, or a git host.
68
+ - Not hosted. Agents run on your machine.
69
+
70
+ ---
71
+
72
+ **Beta.** Published on npm as [`zelio-cli`](https://www.npmjs.com/package/zelio-cli). Closed source, all rights reserved.
@@ -0,0 +1,121 @@
1
+ import { randomUUID } from "node:crypto";
2
+ import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
3
+ import { join, resolve } from "node:path";
4
+ import { MAX_ATTACHMENTS, MAX_IMAGE_BYTES } from "./limits.js";
5
+ /**
6
+ * Screenshots live in the board's own state directory, beside the database and
7
+ * the worktrees. They are gitignored because `.zelio/` is, and they are not rows
8
+ * because a binary blob in SQLite is a backup problem. The path stored on a
9
+ * ticket is relative to the repo, so the board can be moved without rewriting
10
+ * every record; the prompt resolves it against the root at run time.
11
+ */
12
+ export const ATTACHMENT_DIR = ".zelio/attachments";
13
+ /** An attachment the client named is not on disk, or was never ours. */
14
+ export class AttachmentError extends Error {
15
+ constructor(message) {
16
+ super(message);
17
+ this.name = "AttachmentError";
18
+ }
19
+ }
20
+ const EXTENSIONS = {
21
+ "image/png": "png",
22
+ "image/jpeg": "jpg",
23
+ "image/webp": "webp",
24
+ "image/gif": "gif",
25
+ };
26
+ const MIMES = {
27
+ png: "image/png",
28
+ jpg: "image/jpeg",
29
+ webp: "image/webp",
30
+ gif: "image/gif",
31
+ };
32
+ /** The name the upload route writes: a fresh id and the extension the bytes are. */
33
+ const NAME = /^\.zelio\/attachments\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.(png|jpg|webp|gif)$/;
34
+ /** A typed content-type is a claim; the bytes are the answer. */
35
+ export function sniffImage(bytes) {
36
+ const at = (...values) => bytes.length >= values.length && values.every((value, index) => bytes[index] === value);
37
+ const text = (offset, value) => bytes.length >= offset + value.length &&
38
+ [...value].every((char, index) => bytes[offset + index] === char.charCodeAt(0));
39
+ if (at(0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a))
40
+ return "image/png";
41
+ if (at(0xff, 0xd8, 0xff))
42
+ return "image/jpeg";
43
+ if (text(0, "GIF87a") || text(0, "GIF89a"))
44
+ return "image/gif";
45
+ if (text(0, "RIFF") && text(8, "WEBP"))
46
+ return "image/webp";
47
+ return null;
48
+ }
49
+ /** An `image/*` value this module can store, or null for everything else. */
50
+ export function imageMime(value) {
51
+ if (typeof value !== "string")
52
+ return null;
53
+ const type = value.split(";")[0].trim().toLowerCase();
54
+ return Object.values(MIMES).includes(type) ? type : null;
55
+ }
56
+ export function isAttachmentPath(value) {
57
+ return typeof value === "string" && NAME.test(value);
58
+ }
59
+ /**
60
+ * A list of attachment paths from the client, or null when any entry is not one
61
+ * of ours. Dropping a bad path silently would leave the person believing their
62
+ * screenshot is attached when it is not, which is worse than the error.
63
+ */
64
+ export function attachmentPaths(value) {
65
+ if (!Array.isArray(value))
66
+ return [];
67
+ const paths = [];
68
+ for (const raw of value) {
69
+ if (!isAttachmentPath(raw))
70
+ return null;
71
+ // The same screenshot named twice is still one picture; a strict refusal
72
+ // would turn a harmless double-send into a failed turn.
73
+ if (!paths.includes(raw))
74
+ paths.push(raw);
75
+ }
76
+ return paths.length > MAX_ATTACHMENTS ? null : paths;
77
+ }
78
+ /** Writes the bytes under a fresh name. The caller has already sniffed them. */
79
+ export async function saveAttachment(root, bytes, mimeType) {
80
+ if (bytes.byteLength === 0 || bytes.byteLength > MAX_IMAGE_BYTES) {
81
+ throw new RangeError("that image is not a size the board can store");
82
+ }
83
+ const path = `${ATTACHMENT_DIR}/${randomUUID()}.${EXTENSIONS[mimeType]}`;
84
+ const dir = join(root, ATTACHMENT_DIR);
85
+ await mkdir(dir, { recursive: true });
86
+ await writeFile(join(root, path), bytes);
87
+ return { path, mimeType, bytes: bytes.byteLength };
88
+ }
89
+ /** Absolute paths, for the prompt a process reads from its own worktree. */
90
+ export function absoluteAttachments(root, paths) {
91
+ return paths.filter(isAttachmentPath).map((path) => resolve(root, path));
92
+ }
93
+ /**
94
+ * Drops screenshots a person decided not to use. A file that is already gone is
95
+ * not an error: the only outcome anyone cares about is that it is not there.
96
+ */
97
+ export async function deleteAttachments(root, paths) {
98
+ await Promise.all(paths.filter(isAttachmentPath).map((path) => rm(join(root, path), { force: true })));
99
+ }
100
+ /**
101
+ * The images themselves, as pi's prompt record wants them. A file that vanished
102
+ * is an error rather than a silently text-only turn: the person attached a
103
+ * picture, and a planner that never saw it must not pretend otherwise.
104
+ */
105
+ export async function readAttachmentImages(root, paths) {
106
+ // Parallel reads keep the order: the array's index is the attachment's.
107
+ return Promise.all(paths.map(async (path) => {
108
+ if (!isAttachmentPath(path)) {
109
+ throw new AttachmentError("that attachment path is not the board's");
110
+ }
111
+ const ext = path.split(".").pop() ?? "";
112
+ const mimeType = MIMES[ext];
113
+ if (!mimeType)
114
+ throw new AttachmentError("that attachment path is not the board's");
115
+ const bytes = await readFile(join(root, path)).catch(() => null);
116
+ if (!bytes)
117
+ throw new AttachmentError(`the screenshot ${path} is gone`);
118
+ return { type: "image", data: bytes.toString("base64"), mimeType };
119
+ }));
120
+ }
121
+ //# sourceMappingURL=attachments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments.js","sourceRoot":"","sources":["../src/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAInD,wEAAwE;AACxE,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED,MAAM,UAAU,GAA8B;IAC5C,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,KAAK;IACnB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,KAAK,GAA8B;IACvC,GAAG,EAAE,WAAW;IAChB,GAA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