@useconvoy/cli 0.123.6 → 0.142.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 (249) hide show
  1. package/README.md +41 -23
  2. package/dist/bin/convoy.js +8 -0
  3. package/dist/bin/convoy.js.map +1 -1
  4. package/dist/marketplace/convoy/skills/convoy/SKILL.md +1 -1
  5. package/dist/src/agent/app/thread-processor.js +4 -1
  6. package/dist/src/agent/app/thread-processor.js.map +1 -1
  7. package/dist/src/agent/app/worktree-op-processor.js +13 -1
  8. package/dist/src/agent/app/worktree-op-processor.js.map +1 -1
  9. package/dist/src/agent/runtimes/agent-instructions.d.ts +2 -2
  10. package/dist/src/agent/runtimes/agent-instructions.js +5 -3
  11. package/dist/src/agent/runtimes/agent-instructions.js.map +1 -1
  12. package/dist/src/agent/runtimes/claudeCode/models.d.ts +1 -1
  13. package/dist/src/agent/runtimes/claudeCode/models.js +1 -0
  14. package/dist/src/agent/runtimes/claudeCode/models.js.map +1 -1
  15. package/dist/src/agent/runtimes/claudeCode/runner.d.ts +0 -4
  16. package/dist/src/agent/runtimes/claudeCode/runner.js +16 -18
  17. package/dist/src/agent/runtimes/claudeCode/runner.js.map +1 -1
  18. package/dist/src/agent/runtimes/codex/app-server-runner.d.ts +2 -0
  19. package/dist/src/agent/runtimes/codex/app-server-runner.js +143 -16
  20. package/dist/src/agent/runtimes/codex/app-server-runner.js.map +1 -1
  21. package/dist/src/agent/runtimes/codex/commands.d.ts +6 -2
  22. package/dist/src/agent/runtimes/codex/commands.js +11 -2
  23. package/dist/src/agent/runtimes/codex/commands.js.map +1 -1
  24. package/dist/src/agent/runtimes/codex/goals/index.d.ts +25 -0
  25. package/dist/src/agent/runtimes/codex/goals/index.js +137 -0
  26. package/dist/src/agent/runtimes/codex/goals/index.js.map +1 -0
  27. package/dist/src/agent/runtimes/codex/goals/parsers.d.ts +9 -0
  28. package/dist/src/agent/runtimes/codex/goals/parsers.js +47 -0
  29. package/dist/src/agent/runtimes/codex/goals/parsers.js.map +1 -0
  30. package/dist/src/agent/runtimes/codex/goals/validators.d.ts +28 -0
  31. package/dist/src/agent/runtimes/codex/goals/validators.js.map +1 -0
  32. package/dist/src/agent/runtimes/codex/lifecycle.d.ts +7 -0
  33. package/dist/src/agent/runtimes/codex/lifecycle.js +27 -0
  34. package/dist/src/agent/runtimes/codex/lifecycle.js.map +1 -1
  35. package/dist/src/agent/runtimes/contracts.d.ts +12 -1
  36. package/dist/src/agent/runtimes/cursor/models.js +1 -0
  37. package/dist/src/agent/runtimes/cursor/models.js.map +1 -1
  38. package/dist/src/agent/runtimes/message-format.js +8 -0
  39. package/dist/src/agent/runtimes/message-format.js.map +1 -1
  40. package/dist/src/agent/sdk/adapters/executable-resolution.d.ts +1 -0
  41. package/dist/src/agent/sdk/adapters/executable-resolution.js +1 -1
  42. package/dist/src/agent/sdk/adapters/executable-resolution.js.map +1 -1
  43. package/dist/src/cli.js +0 -2
  44. package/dist/src/cli.js.map +1 -1
  45. package/dist/src/commands/connect/prompts.d.ts +2 -0
  46. package/dist/src/commands/connect/prompts.js +6 -0
  47. package/dist/src/commands/connect/prompts.js.map +1 -0
  48. package/dist/src/commands/connect/workflow.d.ts +2 -0
  49. package/dist/src/commands/connect/workflow.js +63 -9
  50. package/dist/src/commands/connect/workflow.js.map +1 -1
  51. package/dist/src/commands/devcontainer/command.js +9 -1
  52. package/dist/src/commands/devcontainer/command.js.map +1 -1
  53. package/dist/src/commands/devcontainer/install.d.ts +9 -0
  54. package/dist/src/commands/devcontainer/install.js +38 -0
  55. package/dist/src/commands/devcontainer/install.js.map +1 -1
  56. package/dist/src/commands/environment/command.js +19 -9
  57. package/dist/src/commands/environment/command.js.map +1 -1
  58. package/dist/src/commands/environment/formatters.d.ts +11 -0
  59. package/dist/src/commands/environment/formatters.js +28 -0
  60. package/dist/src/commands/environment/formatters.js.map +1 -0
  61. package/dist/src/commands/environment/index.d.ts +0 -5
  62. package/dist/src/commands/environment/index.js +0 -7
  63. package/dist/src/commands/environment/index.js.map +1 -1
  64. package/dist/src/commands/environment/paths.d.ts +20 -1
  65. package/dist/src/commands/environment/paths.js +132 -3
  66. package/dist/src/commands/environment/paths.js.map +1 -1
  67. package/dist/src/commands/environment/projects.js +1 -1
  68. package/dist/src/commands/environment/projects.js.map +1 -1
  69. package/dist/src/commands/environment/resolution.d.ts +45 -1
  70. package/dist/src/commands/environment/resolution.js +138 -0
  71. package/dist/src/commands/environment/resolution.js.map +1 -1
  72. package/dist/src/commands/environment/validators.d.ts +71 -2
  73. package/dist/src/commands/environment/validators.js +20 -3
  74. package/dist/src/commands/environment/validators.js.map +1 -1
  75. package/dist/src/commands/environment/workflow.d.ts +19 -1
  76. package/dist/src/commands/environment/workflow.js +114 -16
  77. package/dist/src/commands/environment/workflow.js.map +1 -1
  78. package/dist/src/commands/init/prompts.js +3 -0
  79. package/dist/src/commands/init/prompts.js.map +1 -1
  80. package/dist/src/commands/keys/command.js +3 -2
  81. package/dist/src/commands/keys/command.js.map +1 -1
  82. package/dist/src/commands/keys/workflow.d.ts +1 -0
  83. package/dist/src/commands/keys/workflow.js +11 -6
  84. package/dist/src/commands/keys/workflow.js.map +1 -1
  85. package/dist/src/commands/project/command.js +9 -15
  86. package/dist/src/commands/project/command.js.map +1 -1
  87. package/dist/src/commands/project/formatters.d.ts +11 -2
  88. package/dist/src/commands/project/formatters.js +47 -15
  89. package/dist/src/commands/project/formatters.js.map +1 -1
  90. package/dist/src/commands/project/launcher.d.ts +23 -3
  91. package/dist/src/commands/project/launcher.js +152 -8
  92. package/dist/src/commands/project/launcher.js.map +1 -1
  93. package/dist/src/commands/project/validators.d.ts +46 -1
  94. package/dist/src/commands/project/validators.js +33 -2
  95. package/dist/src/commands/project/validators.js.map +1 -1
  96. package/dist/src/commands/project/worker.js +19 -17
  97. package/dist/src/commands/project/worker.js.map +1 -1
  98. package/dist/src/commands/project/workflow.d.ts +11 -26
  99. package/dist/src/commands/project/workflow.js +154 -50
  100. package/dist/src/commands/project/workflow.js.map +1 -1
  101. package/dist/src/commands/remote/command.js +17 -2
  102. package/dist/src/commands/remote/command.js.map +1 -1
  103. package/dist/src/commands/remote/ssh.d.ts +4 -1
  104. package/dist/src/commands/remote/ssh.js +5 -2
  105. package/dist/src/commands/remote/ssh.js.map +1 -1
  106. package/dist/src/commands/service/command.d.ts +1 -0
  107. package/dist/src/commands/service/command.js +59 -14
  108. package/dist/src/commands/service/command.js.map +1 -1
  109. package/dist/src/commands/service/formatters.d.ts +2 -0
  110. package/dist/src/commands/service/formatters.js +17 -0
  111. package/dist/src/commands/service/formatters.js.map +1 -1
  112. package/dist/src/commands/service/paths.d.ts +16 -0
  113. package/dist/src/commands/service/paths.js +178 -1
  114. package/dist/src/commands/service/paths.js.map +1 -1
  115. package/dist/src/commands/service/resolution.d.ts +2 -0
  116. package/dist/src/commands/service/resolution.js +40 -2
  117. package/dist/src/commands/service/resolution.js.map +1 -1
  118. package/dist/src/commands/service/server.js +1 -1
  119. package/dist/src/commands/service/server.js.map +1 -1
  120. package/dist/src/commands/service/service-entrypoint.js +38 -11
  121. package/dist/src/commands/service/service-entrypoint.js.map +1 -1
  122. package/dist/src/commands/service/validators.d.ts +21 -2
  123. package/dist/src/commands/service/validators.js +7 -5
  124. package/dist/src/commands/service/validators.js.map +1 -1
  125. package/dist/src/commands/service/workflow.js +10 -8
  126. package/dist/src/commands/service/workflow.js.map +1 -1
  127. package/dist/src/commands/setup/prompts.js +7 -4
  128. package/dist/src/commands/setup/prompts.js.map +1 -1
  129. package/dist/src/commands/setup/resolution.js +1 -1
  130. package/dist/src/commands/setup/resolution.js.map +1 -1
  131. package/dist/src/commands/tasks/artifacts/create.js +12 -4
  132. package/dist/src/commands/tasks/artifacts/create.js.map +1 -1
  133. package/dist/src/commands/tasks/artifacts/list.js +12 -4
  134. package/dist/src/commands/tasks/artifacts/list.js.map +1 -1
  135. package/dist/src/commands/tasks/artifacts/move.js +14 -13
  136. package/dist/src/commands/tasks/artifacts/move.js.map +1 -1
  137. package/dist/src/commands/tasks/get.js +6 -4
  138. package/dist/src/commands/tasks/get.js.map +1 -1
  139. package/dist/src/commands/tasks/update.js +42 -14
  140. package/dist/src/commands/tasks/update.js.map +1 -1
  141. package/dist/src/commands/threads/attach-pr.d.ts +2 -0
  142. package/dist/src/commands/threads/attach-pr.js +21 -0
  143. package/dist/src/commands/threads/attach-pr.js.map +1 -0
  144. package/dist/src/commands/threads/attach.d.ts +1 -1
  145. package/dist/src/commands/threads/attach.js +48 -5
  146. package/dist/src/commands/threads/attach.js.map +1 -1
  147. package/dist/src/commands/threads/checks.d.ts +3 -0
  148. package/dist/src/commands/threads/checks.js +47 -0
  149. package/dist/src/commands/threads/checks.js.map +1 -0
  150. package/dist/src/commands/threads/index.js +5 -1
  151. package/dist/src/commands/threads/index.js.map +1 -1
  152. package/dist/src/commands/tui/actions/app.js +10 -6
  153. package/dist/src/commands/tui/actions/app.js.map +1 -1
  154. package/dist/src/commands/tui/actions/workflow.js +13 -7
  155. package/dist/src/commands/tui/actions/workflow.js.map +1 -1
  156. package/dist/src/commands/tui/app.js +50 -29
  157. package/dist/src/commands/tui/app.js.map +1 -1
  158. package/dist/src/commands/tui/credentials/app.js +8 -6
  159. package/dist/src/commands/tui/credentials/app.js.map +1 -1
  160. package/dist/src/commands/tui/credentials/formatters.d.ts +1 -1
  161. package/dist/src/commands/tui/credentials/formatters.js +2 -2
  162. package/dist/src/commands/tui/credentials/formatters.js.map +1 -1
  163. package/dist/src/commands/tui/dialog/app.d.ts +4 -0
  164. package/dist/src/commands/tui/dialog/app.js +8 -1
  165. package/dist/src/commands/tui/dialog/app.js.map +1 -1
  166. package/dist/src/commands/tui/dialog/index.d.ts +1 -1
  167. package/dist/src/commands/tui/dialog/index.js +1 -1
  168. package/dist/src/commands/tui/dialog/index.js.map +1 -1
  169. package/dist/src/commands/tui/environments/app.js +18 -11
  170. package/dist/src/commands/tui/environments/app.js.map +1 -1
  171. package/dist/src/commands/tui/formatters.d.ts +7 -2
  172. package/dist/src/commands/tui/formatters.js +22 -6
  173. package/dist/src/commands/tui/formatters.js.map +1 -1
  174. package/dist/src/commands/tui/onboarding/app.js +60 -2
  175. package/dist/src/commands/tui/onboarding/app.js.map +1 -1
  176. package/dist/src/commands/tui/onboarding/runtime-access.js +1 -1
  177. package/dist/src/commands/tui/onboarding/runtime-access.js.map +1 -1
  178. package/dist/src/commands/tui/render.js +11 -2
  179. package/dist/src/commands/tui/render.js.map +1 -1
  180. package/dist/src/commands/tui/resolution.d.ts +10 -1
  181. package/dist/src/commands/tui/resolution.js +32 -14
  182. package/dist/src/commands/tui/resolution.js.map +1 -1
  183. package/dist/src/commands/tui/runtimes/app.d.ts +11 -0
  184. package/dist/src/commands/tui/runtimes/app.js +170 -0
  185. package/dist/src/commands/tui/runtimes/app.js.map +1 -0
  186. package/dist/src/commands/tui/runtimes/formatters.d.ts +10 -0
  187. package/dist/src/commands/tui/runtimes/formatters.js +16 -0
  188. package/dist/src/commands/tui/runtimes/formatters.js.map +1 -0
  189. package/dist/src/commands/tui/runtimes/index.d.ts +1 -0
  190. package/dist/src/commands/tui/runtimes/index.js +2 -0
  191. package/dist/src/commands/tui/runtimes/index.js.map +1 -0
  192. package/dist/src/commands/tui/validators.d.ts +2 -0
  193. package/dist/src/commands/tui/workflow.d.ts +11 -0
  194. package/dist/src/commands/tui/workflow.js +38 -7
  195. package/dist/src/commands/tui/workflow.js.map +1 -1
  196. package/dist/src/commands/update/prompts.js +1 -0
  197. package/dist/src/commands/update/prompts.js.map +1 -1
  198. package/dist/src/convex/_generated/ai/ai-files.state.json +3 -4
  199. package/dist/src/convex/_generated/api.d.ts +58 -0
  200. package/dist/src/convex/_generated/server.d.ts +25 -0
  201. package/dist/src/convex/_generated/server.js +8 -0
  202. package/dist/src/lib/config/credentials/resolution.d.ts +28 -2
  203. package/dist/src/lib/config/credentials/resolution.js +43 -24
  204. package/dist/src/lib/config/credentials/resolution.js.map +1 -1
  205. package/dist/src/lib/config/credentials/store.js +1 -1
  206. package/dist/src/lib/config/credentials/store.js.map +1 -1
  207. package/dist/src/lib/config/profile.js +32 -5
  208. package/dist/src/lib/config/profile.js.map +1 -1
  209. package/dist/src/lib/config/toml.js +2 -2
  210. package/dist/src/lib/config/toml.js.map +1 -1
  211. package/dist/src/lib/config/types.d.ts +4 -0
  212. package/dist/src/lib/config/types.js +4 -0
  213. package/dist/src/lib/config/types.js.map +1 -1
  214. package/dist/src/lib/connect-events.d.ts +1 -0
  215. package/dist/src/lib/git/index.d.ts +1 -1
  216. package/dist/src/lib/git/index.js +1 -1
  217. package/dist/src/lib/git/index.js.map +1 -1
  218. package/dist/src/lib/git/working-tree.d.ts +5 -0
  219. package/dist/src/lib/git/working-tree.js +18 -0
  220. package/dist/src/lib/git/working-tree.js.map +1 -1
  221. package/dist/src/lib/id.js +6 -1
  222. package/dist/src/lib/id.js.map +1 -1
  223. package/dist/src/lib/version.d.ts +3 -1
  224. package/dist/src/lib/version.js +17 -9
  225. package/dist/src/lib/version.js.map +1 -1
  226. package/dist/templates/devcontainer/Dockerfile +25 -18
  227. package/dist/templates/devcontainer/README.md +102 -20
  228. package/dist/templates/devcontainer/devcontainer.json +12 -6
  229. package/dist/templates/devcontainer/init-firewall.sh +13 -0
  230. package/dist/templates/project-isolation/Dockerfile +12 -5
  231. package/dist/templates/project-isolation/README.md +30 -15
  232. package/dist/templates/project-isolation/devcontainer.json +1 -1
  233. package/dist/templates/project-isolation/environment.py +52 -26
  234. package/dist/templates/project-isolation/environment.test.py +107 -21
  235. package/dist/templates/project-isolation/install.py +9 -5
  236. package/dist/templates/project-isolation/install.test.py +13 -0
  237. package/package.json +3 -4
  238. package/dist/src/commands/browser/command.d.ts +0 -2
  239. package/dist/src/commands/browser/command.js +0 -42
  240. package/dist/src/commands/browser/command.js.map +0 -1
  241. package/dist/src/commands/browser/smoke.d.ts +0 -10
  242. package/dist/src/commands/browser/smoke.js +0 -67
  243. package/dist/src/commands/browser/smoke.js.map +0 -1
  244. package/dist/src/commands/browser/validators.d.ts +0 -18
  245. package/dist/src/commands/browser/validators.js.map +0 -1
  246. package/dist/src/commands/browser/workflow.d.ts +0 -4
  247. package/dist/src/commands/browser/workflow.js +0 -92
  248. package/dist/src/commands/browser/workflow.js.map +0 -1
  249. /package/dist/src/{commands/browser → agent/runtimes/codex/goals}/validators.js +0 -0
@@ -1,92 +0,0 @@
1
- import * as fs from "node:fs/promises";
2
- import { existsSync } from "node:fs";
3
- import * as path from "node:path";
4
- import * as os from "node:os";
5
- import { randomUUID } from "node:crypto";
6
- import { pathToFileURL } from "node:url";
7
- import { isProjectEnvironment } from "../project/launcher.js";
8
- function requireExecutionIdentity() {
9
- if (isProjectEnvironment()) {
10
- throw new Error("Enter convoy project shell <profile> or run the browser from the connected project agent. Browser execution as the control account is disabled.");
11
- }
12
- }
13
- export async function prepareBrowserPaths(session = randomUUID(), home = os.homedir()) {
14
- if (!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,79}$/.test(session)) {
15
- throw new Error("Browser session must be 1–80 letters, digits, underscores or hyphens, starting with a letter or digit.");
16
- }
17
- const parent = path.join(home, ".local", "share", "convoy");
18
- for (const directory of [home, path.join(home, ".local"), path.join(home, ".local", "share"), parent]) {
19
- await fs.mkdir(directory, { mode: 0o700 }).catch((error) => {
20
- if (error.code !== "EEXIST")
21
- throw error;
22
- });
23
- const stat = await fs.lstat(directory);
24
- if (!stat.isDirectory() || stat.isSymbolicLink() ||
25
- (process.getuid && stat.uid !== process.getuid()) || (stat.mode & 0o022) !== 0) {
26
- throw new Error(`Browser state ancestor must be caller-owned, not writable by others, and not a symlink: ${directory}`);
27
- }
28
- }
29
- const base = path.join(parent, "browser");
30
- const root = path.join(base, session);
31
- const paths = {
32
- root, profile: path.join(root, "profile"), cache: path.join(root, "cache"),
33
- downloads: path.join(root, "downloads"), artifacts: path.join(root, "artifacts"),
34
- };
35
- for (const directory of [base, ...Object.values(paths)]) {
36
- await fs.mkdir(directory, { mode: 0o700 }).catch((error) => {
37
- if (error.code !== "EEXIST")
38
- throw error;
39
- });
40
- const stat = await fs.lstat(directory);
41
- if (!stat.isDirectory() || stat.isSymbolicLink() ||
42
- (process.getuid && stat.uid !== process.getuid()) || (stat.mode & 0o777) !== 0o700) {
43
- throw new Error(`Browser state directory must be caller-owned, mode 0700, and not a symlink: ${directory}`);
44
- }
45
- }
46
- return paths;
47
- }
48
- export async function withBrowser(options, action) {
49
- requireExecutionIdentity();
50
- const paths = await prepareBrowserPaths(options.session);
51
- if (!process.env.PLAYWRIGHT_BROWSERS_PATH && existsSync("/usr/local/share/convoy-browsers")) {
52
- process.env.PLAYWRIGHT_BROWSERS_PATH = "/usr/local/share/convoy-browsers";
53
- }
54
- // Load after choosing the binary cache; Playwright reads it at module load.
55
- const { chromium } = await import("playwright");
56
- const sandbox = options.browserSandbox !== false;
57
- console.error(`Browser state: ${paths.root}. Chromium sandbox: ${sandbox ? "on" : "off (explicit)"}.`);
58
- let context;
59
- try {
60
- context = await chromium.launchPersistentContext(paths.profile, {
61
- headless: !options.headed, chromiumSandbox: sandbox,
62
- downloadsPath: paths.downloads, acceptDownloads: true,
63
- args: [`--disk-cache-dir=${paths.cache}`],
64
- });
65
- }
66
- catch (error) {
67
- const library = String(error instanceof Error ? error.message : error).match(/error while loading shared libraries: ([^:\s]+)/)?.[1];
68
- if (library)
69
- throw new Error(`Chromium is missing OS library ${library}. Rebuild the container or environment image; it predates browser support or a Playwright upgrade.`, { cause: error });
70
- if (sandbox && String(error instanceof Error ? error.message : error).includes("No usable sandbox")) {
71
- throw new Error("This container blocks Chromium's sandbox (no user namespaces). In a dedicated container or isolated project, rerun with --no-browser-sandbox.", { cause: error });
72
- }
73
- throw new Error("Browser launch failed. Check browser installation, OS libraries, namespace/display support and whether this session is already open. See the browser automation setup docs.", { cause: error });
74
- }
75
- try {
76
- context.setDefaultTimeout(15_000);
77
- context.setDefaultNavigationTimeout(20_000);
78
- const page = context.pages()[0] ?? await context.newPage();
79
- return await action({ page, context, paths });
80
- }
81
- finally {
82
- await context.close();
83
- }
84
- }
85
- export async function runBrowserScript(file, options) {
86
- requireExecutionIdentity();
87
- const script = await import(pathToFileURL(path.resolve(file)).href);
88
- if (typeof script.default !== "function")
89
- throw new Error("Browser script must export a default async function.");
90
- await withBrowser(options, script.default);
91
- }
92
- //# sourceMappingURL=workflow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/commands/browser/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,SAAS,wBAAwB;IAC/B,IAAI,oBAAoB,EAAE,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,iJAAiJ,CAAC,CAAC;IACrK,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,UAAkB,UAAU,EAAE,EAAE,IAAI,GAAG,EAAE,CAAC,OAAO,EAAE;IAC3F,IAAI,CAAC,kCAAkC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,wGAAwG,CAAC,CAAC;IAC5H,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC5D,KAAK,MAAM,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,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