@prestyj/cli 5.34.0 → 5.35.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 (136) hide show
  1. package/README.md +2 -2
  2. package/assets/motion/skills/source-ingest/SKILL.md +1 -1
  3. package/dist/app-sidecar/nolan-context.js +1 -1
  4. package/dist/app-sidecar/nolan-context.js.map +1 -1
  5. package/dist/cli.js +3 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/core/agent-session/mcp-tools.d.ts +3 -1
  8. package/dist/core/agent-session/mcp-tools.js +3 -2
  9. package/dist/core/agent-session/mcp-tools.js.map +1 -1
  10. package/dist/core/agent-session.d.ts +1 -0
  11. package/dist/core/agent-session.js +9 -3
  12. package/dist/core/agent-session.js.map +1 -1
  13. package/dist/core/agents.d.ts +2 -2
  14. package/dist/core/autopilot-cycle.js +1 -1
  15. package/dist/core/autopilot-cycle.js.map +1 -1
  16. package/dist/core/autopilot-gate.js +3 -3
  17. package/dist/core/autopilot-gate.js.map +1 -1
  18. package/dist/core/mcp/client.d.ts +10 -0
  19. package/dist/core/mcp/client.js +2 -0
  20. package/dist/core/mcp/client.js.map +1 -1
  21. package/dist/core/mcp/deferred-catalog.d.ts +7 -1
  22. package/dist/core/mcp/deferred-catalog.js +6 -2
  23. package/dist/core/mcp/deferred-catalog.js.map +1 -1
  24. package/dist/core/mcp/index.d.ts +1 -1
  25. package/dist/core/mcp/index.js.map +1 -1
  26. package/dist/core/nolan-context.d.ts +1 -1
  27. package/dist/core/nolan-prompt.d.ts +1 -1
  28. package/dist/core/nolan-prompt.js +8 -7
  29. package/dist/core/nolan-prompt.js.map +1 -1
  30. package/dist/core/prompt-commands.js +17 -11
  31. package/dist/core/prompt-commands.js.map +1 -1
  32. package/dist/core/session-history.d.ts +2 -1
  33. package/dist/core/session-history.js +5 -1
  34. package/dist/core/session-history.js.map +1 -1
  35. package/dist/core/trophies/catalog-more.js +2 -2
  36. package/dist/core/trophies/catalog-more.js.map +1 -1
  37. package/dist/core/trophies/engine.js +1 -1
  38. package/dist/core/trophies/engine.js.map +1 -1
  39. package/dist/modes/acp-mode.js +1 -1
  40. package/dist/modes/acp-mode.js.map +1 -1
  41. package/dist/motion-agent/motion-agent.d.ts +1 -1
  42. package/dist/motion-agent/motion-agent.js +1 -1
  43. package/dist/motion-agent/motion-agent.js.map +1 -1
  44. package/dist/system-prompt.js +3 -2
  45. package/dist/system-prompt.js.map +1 -1
  46. package/dist/tools/ask-user.js +3 -3
  47. package/dist/tools/ask-user.js.map +1 -1
  48. package/dist/tools/browser-api.d.ts +27 -0
  49. package/dist/tools/browser-api.js +449 -0
  50. package/dist/tools/browser-api.js.map +1 -0
  51. package/dist/tools/browser-sandbox.d.ts +16 -0
  52. package/dist/tools/browser-sandbox.js +158 -0
  53. package/dist/tools/browser-sandbox.js.map +1 -0
  54. package/dist/tools/browser-session.d.ts +69 -0
  55. package/dist/tools/browser-session.js +220 -0
  56. package/dist/tools/browser-session.js.map +1 -0
  57. package/dist/tools/browser-snapshot.d.ts +19 -0
  58. package/dist/tools/browser-snapshot.js +109 -0
  59. package/dist/tools/browser-snapshot.js.map +1 -0
  60. package/dist/tools/browser.d.ts +11 -0
  61. package/dist/tools/browser.js +106 -0
  62. package/dist/tools/browser.js.map +1 -0
  63. package/dist/tools/goals.d.ts +3 -3
  64. package/dist/tools/html-extract.d.ts +1 -1
  65. package/dist/tools/html-extract.js +1 -1
  66. package/dist/tools/index.d.ts +4 -1
  67. package/dist/tools/index.js +6 -3
  68. package/dist/tools/index.js.map +1 -1
  69. package/dist/tools/prompt-hints.js +3 -2
  70. package/dist/tools/prompt-hints.js.map +1 -1
  71. package/dist/tools/subagent-shared.d.ts +3 -4
  72. package/dist/tools/subagent-shared.js +8 -9
  73. package/dist/tools/subagent-shared.js.map +1 -1
  74. package/dist/tools/tool-tiers.d.ts +1 -1
  75. package/dist/tools/tool-tiers.js +2 -2
  76. package/dist/tools/tool-tiers.js.map +1 -1
  77. package/dist/ui/App.d.ts +2 -1
  78. package/dist/ui/components/ActivityIndicator.d.ts +1 -1
  79. package/dist/ui/components/AnimationContext.d.ts +1 -1
  80. package/dist/ui/components/AssistantMessage.d.ts +1 -1
  81. package/dist/ui/components/BackgroundTasksBar.d.ts +2 -1
  82. package/dist/ui/components/Banner.d.ts +2 -1
  83. package/dist/ui/components/ChatFooterPane.d.ts +2 -1
  84. package/dist/ui/components/ChatInputStack.d.ts +1 -1
  85. package/dist/ui/components/ChatLayout.d.ts +4 -4
  86. package/dist/ui/components/ChatLivePane.d.ts +1 -1
  87. package/dist/ui/components/ChatScreen.d.ts +1 -1
  88. package/dist/ui/components/ChatStatusRow.d.ts +1 -1
  89. package/dist/ui/components/CompactionNotice.d.ts +3 -2
  90. package/dist/ui/components/DiffFrame.d.ts +1 -1
  91. package/dist/ui/components/DiffView.d.ts +2 -1
  92. package/dist/ui/components/Footer.d.ts +2 -1
  93. package/dist/ui/components/FooterStatusRow.d.ts +2 -1
  94. package/dist/ui/components/FullScreenOverlayRouter.d.ts +2 -1
  95. package/dist/ui/components/GoalOverlay.d.ts +2 -1
  96. package/dist/ui/components/GoalStatusBar.d.ts +2 -1
  97. package/dist/ui/components/IdealHookMessage.d.ts +1 -1
  98. package/dist/ui/components/InputArea.d.ts +1 -1
  99. package/dist/ui/components/LiveToolPanel.d.ts +2 -1
  100. package/dist/ui/components/Markdown.d.ts +2 -2
  101. package/dist/ui/components/ModelSelector.d.ts +2 -1
  102. package/dist/ui/components/Overlay.d.ts +1 -1
  103. package/dist/ui/components/PixelOverlay.d.ts +2 -1
  104. package/dist/ui/components/PlanModeLogo.d.ts +2 -1
  105. package/dist/ui/components/PlanOverlay.d.ts +3 -2
  106. package/dist/ui/components/QueueIndicator.d.ts +2 -1
  107. package/dist/ui/components/RewindOverlay.d.ts +2 -1
  108. package/dist/ui/components/SelectList.d.ts +2 -1
  109. package/dist/ui/components/ServerToolExecution.d.ts +2 -1
  110. package/dist/ui/components/SessionSelector.d.ts +2 -1
  111. package/dist/ui/components/SessionSummary.d.ts +2 -1
  112. package/dist/ui/components/SettingsSelector.d.ts +2 -1
  113. package/dist/ui/components/SkillsOverlay.d.ts +2 -1
  114. package/dist/ui/components/SlashCommandMenu.d.ts +2 -1
  115. package/dist/ui/components/SlashStyledSelectList.d.ts +2 -1
  116. package/dist/ui/components/Spinner.d.ts +2 -1
  117. package/dist/ui/components/StreamingArea.d.ts +1 -1
  118. package/dist/ui/components/SubAgentPanel.d.ts +2 -1
  119. package/dist/ui/components/TaskOverlay.d.ts +2 -1
  120. package/dist/ui/components/TaskPickerMenu.d.ts +2 -1
  121. package/dist/ui/components/ThemeSelector.d.ts +2 -1
  122. package/dist/ui/components/ThinkingBlock.d.ts +1 -1
  123. package/dist/ui/components/ToolExecution.d.ts +2 -1
  124. package/dist/ui/components/ToolGroupExecution.d.ts +2 -1
  125. package/dist/ui/components/TranscriptViewport.d.ts +1 -1
  126. package/dist/ui/components/UserMessage.d.ts +2 -1
  127. package/dist/ui/tool-line-summary.js +1 -0
  128. package/dist/ui/tool-line-summary.js.map +1 -1
  129. package/dist/ui/transcript/MiscRows.d.ts +8 -7
  130. package/dist/ui/transcript/StatusRow.d.ts +1 -1
  131. package/dist/ui/transcript/ToolRows.d.ts +7 -6
  132. package/dist/ui/transcript/TranscriptItemFrame.d.ts +1 -1
  133. package/package.json +8 -4
  134. package/dist/tools/screenshot.d.ts +0 -24
  135. package/dist/tools/screenshot.js +0 -161
  136. package/dist/tools/screenshot.js.map +0 -1
@@ -1,22 +1,23 @@
1
+ import React from "react";
1
2
  import type { DurationItem, ErrorItem, GoalProgressItem, QueuedItem, StepDoneItem, StylePackItem, UpdateNoticeItem } from "../app-items.js";
2
3
  export declare function StylePackRow({ item }: {
3
4
  item: StylePackItem;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
5
6
  export declare function ErrorRow({ item }: {
6
7
  item: ErrorItem;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): React.JSX.Element;
8
9
  export declare function UpdateNoticeRow({ item }: {
9
10
  item: UpdateNoticeItem;
10
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
11
12
  export declare function StepDoneRow({ item }: {
12
13
  item: StepDoneItem;
13
- }): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
14
15
  export declare function GoalProgressRow({ item }: {
15
16
  item: GoalProgressItem;
16
- }): import("react/jsx-runtime").JSX.Element;
17
+ }): React.JSX.Element;
17
18
  export declare function QueuedRow({ item }: {
18
19
  item: QueuedItem;
19
- }): import("react/jsx-runtime").JSX.Element;
20
+ }): React.JSX.Element;
20
21
  export declare function DurationRow({ item }: {
21
22
  item: DurationItem;
22
- }): import("react/jsx-runtime").JSX.Element;
23
+ }): React.JSX.Element;
@@ -9,5 +9,5 @@ interface StatusRowProps {
9
9
  muted?: boolean;
10
10
  presentation?: StatusPresentation;
11
11
  }
12
- export declare function StatusRow({ id, glyph, children, glyphColor, bold, muted, presentation, }: StatusRowProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function StatusRow({ id, glyph, children, glyphColor, bold, muted, presentation, }: StatusRowProps): React.JSX.Element;
13
13
  export {};
@@ -1,19 +1,20 @@
1
+ import React from "react";
1
2
  import type { ServerToolDoneItem, ServerToolStartItem, SubAgentGroupItem, ToolDoneItem, ToolGroupItem, ToolStartItem } from "../app-items.js";
2
3
  export declare function ToolStartRow({ item }: {
3
4
  item: ToolStartItem;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
5
6
  export declare function ToolDoneRow({ item }: {
6
7
  item: ToolDoneItem;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): React.JSX.Element;
8
9
  export declare function ToolGroupRow({ item }: {
9
10
  item: ToolGroupItem;
10
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
11
12
  export declare function ServerToolStartRow({ item }: {
12
13
  item: ServerToolStartItem;
13
- }): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
14
15
  export declare function ServerToolDoneRow({ item }: {
15
16
  item: ServerToolDoneItem;
16
- }): import("react/jsx-runtime").JSX.Element;
17
+ }): React.JSX.Element;
17
18
  export declare function SubAgentGroupRow({ item }: {
18
19
  item: SubAgentGroupItem;
19
- }): import("react/jsx-runtime").JSX.Element;
20
+ }): React.JSX.Element;
@@ -3,5 +3,5 @@ interface TranscriptItemFrameProps {
3
3
  children: React.ReactNode;
4
4
  marginTop: number;
5
5
  }
6
- export declare function TranscriptItemFrame({ children, marginTop }: TranscriptItemFrameProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function TranscriptItemFrame({ children, marginTop }: TranscriptItemFrameProps): React.JSX.Element;
7
7
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prestyj/cli",
3
- "version": "5.34.0",
3
+ "version": "5.35.0",
4
4
  "type": "module",
5
5
  "description": "The engine and CLI behind the EZ Coder desktop app: a lean coding agent for Claude, ChatGPT, Grok, Kimi, 12 providers and local models.",
6
6
  "author": "Nolan Grout",
@@ -91,6 +91,10 @@
91
91
  "import": "./dist/ui/login.js",
92
92
  "types": "./dist/ui/login.d.ts"
93
93
  },
94
+ "./mcp": {
95
+ "import": "./dist/core/mcp/index.js",
96
+ "types": "./dist/core/mcp/index.d.ts"
97
+ },
94
98
  "./models": {
95
99
  "import": "./dist/core/model-registry.js",
96
100
  "types": "./dist/core/model-registry.d.ts"
@@ -135,10 +139,10 @@
135
139
  "typescript-language-server": "^5.3.0",
136
140
  "wrap-ansi": "^10.0.0",
137
141
  "zod": "^4.5.4",
138
- "@prestyj/agent": "5.34.0",
139
- "@prestyj/ai": "5.34.0",
142
+ "@prestyj/agent": "5.35.0",
143
+ "@prestyj/ai": "5.35.0",
140
144
  "@prestyj/pixel": "4.3.101",
141
- "@prestyj/core": "5.34.0"
145
+ "@prestyj/core": "5.35.0"
142
146
  },
143
147
  "optionalDependencies": {
144
148
  "@huggingface/transformers": "4.2.0",
@@ -1,24 +0,0 @@
1
- import { z } from "zod";
2
- import type { AgentTool } from "@prestyj/agent";
3
- declare const ScreenshotParams: z.ZodObject<{
4
- url: z.ZodString;
5
- out_path: z.ZodOptional<z.ZodString>;
6
- wait_for: z.ZodOptional<z.ZodString>;
7
- viewport: z.ZodOptional<z.ZodObject<{
8
- width: z.ZodNumber;
9
- height: z.ZodNumber;
10
- }, z.core.$strip>>;
11
- full_page: z.ZodOptional<z.ZodBoolean>;
12
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
- type: z.ZodEnum<{
14
- type: "type";
15
- click: "click";
16
- wait: "wait";
17
- }>;
18
- selector: z.ZodOptional<z.ZodString>;
19
- text: z.ZodOptional<z.ZodString>;
20
- ms: z.ZodOptional<z.ZodNumber>;
21
- }, z.core.$strip>>>;
22
- }, z.core.$strip>;
23
- export declare function createScreenshotTool(cwd: string): AgentTool<typeof ScreenshotParams>;
24
- export {};
@@ -1,161 +0,0 @@
1
- import path from "node:path";
2
- import { mkdir, writeFile } from "node:fs/promises";
3
- import { z } from "zod";
4
- import { resolvePath } from "./path-utils.js";
5
- import { downscaleForPreview, shrinkToFit } from "../utils/image.js";
6
- /**
7
- * Hint shown when Playwright (or its browser binary) is not installed. The tool
8
- * is always registered so the model knows it exists; if the engine is missing
9
- * it returns this string instead of crashing the turn.
10
- */
11
- const INSTALL_HINT = "Browser engine not installed. Add the optional dependency and download Chromium:\n" +
12
- " pnpm add -w playwright && npx playwright install chromium\n" +
13
- "Then retry the screenshot.";
14
- const ActionInput = z.object({
15
- type: z.enum(["click", "type", "wait"]).describe("Action"),
16
- selector: z.string().optional().describe("CSS selector for click/type actions"),
17
- text: z.string().optional().describe("Text to type for the type action"),
18
- ms: z.number().int().min(0).optional().describe("Milliseconds to wait for the wait action"),
19
- });
20
- const ScreenshotParams = z.object({
21
- url: z.string().describe("URL to open, e.g. http://localhost:3000"),
22
- out_path: z
23
- .string()
24
- .optional()
25
- .describe("Output PNG path (defaults to .ezcoder/screenshots/<timestamp>.png)"),
26
- wait_for: z.string().optional().describe("CSS selector to wait for before capturing"),
27
- viewport: z
28
- .object({ width: z.number().int().min(1), height: z.number().int().min(1) })
29
- .optional()
30
- .describe("Viewport size in pixels (default 1280×800)"),
31
- full_page: z.boolean().optional().describe("Capture the full scrollable page (default false)"),
32
- actions: z.array(ActionInput).optional().describe("Interactions run before capture"),
33
- });
34
- let cachedChromium = null;
35
- /**
36
- * Lazily resolve Playwright's chromium launcher. Mirrors `loadSharp()` in
37
- * utils/image.ts: a dynamic import gated behind a function so the optional
38
- * dependency never lands in bundlers that don't need it. Throws if the module
39
- * is absent so the caller can degrade to the install hint.
40
- */
41
- async function loadChromium() {
42
- if (cachedChromium)
43
- return cachedChromium;
44
- // Non-literal specifier so tsc does not statically resolve the optional
45
- // dependency (it may be absent). The import still works at runtime when
46
- // playwright is installed.
47
- const moduleName = "playwright";
48
- const mod = (await import(moduleName));
49
- if (!mod.chromium)
50
- throw new Error("playwright.chromium unavailable");
51
- cachedChromium = mod.chromium;
52
- return cachedChromium;
53
- }
54
- function isModuleNotFound(err) {
55
- const code = err?.code;
56
- return code === "ERR_MODULE_NOT_FOUND" || code === "MODULE_NOT_FOUND";
57
- }
58
- /**
59
- * Detect the launch-time failure where the playwright package IS installed but
60
- * the Chromium binary is not (the common case, since `npx playwright install`
61
- * is a separate manual step from the npm install). Playwright throws
62
- * "…Executable doesn't exist at <path>…" here.
63
- */
64
- function isBrowserBinaryMissing(err) {
65
- const message = err instanceof Error ? err.message : String(err);
66
- return /executable doesn't exist|playwright install/i.test(message);
67
- }
68
- function defaultOutPath(cwd) {
69
- const stamp = new Date().toISOString().replace(/[:.]/g, "-");
70
- return path.join(cwd, ".ezcoder", "screenshots", `${stamp}.png`);
71
- }
72
- async function runActions(page, actions) {
73
- for (const action of actions ?? []) {
74
- if (action.type === "click" && action.selector) {
75
- await page.click(action.selector);
76
- }
77
- else if (action.type === "type" && action.selector) {
78
- await page.fill(action.selector, action.text ?? "");
79
- }
80
- else if (action.type === "wait") {
81
- if (action.selector)
82
- await page.waitForSelector(action.selector);
83
- else
84
- await page.waitForTimeout(action.ms ?? 500);
85
- }
86
- }
87
- }
88
- export function createScreenshotTool(cwd) {
89
- return {
90
- name: "screenshot",
91
- description: "Capture a PNG of a URL or dev server in headless Chromium to verify rendered output " +
92
- "(optional selector wait, click/type/wait actions, viewport, full page); returns the image. " +
93
- "Needs the optional 'playwright' dependency and 'npx playwright install chromium'.",
94
- parameters: ScreenshotParams,
95
- executionMode: "sequential",
96
- async execute(args, context) {
97
- if (context.signal.aborted)
98
- return "Screenshot aborted before launch.";
99
- let chromium;
100
- try {
101
- chromium = await loadChromium();
102
- }
103
- catch (err) {
104
- if (isModuleNotFound(err))
105
- return INSTALL_HINT;
106
- const reason = err instanceof Error ? err.message : String(err);
107
- return `${INSTALL_HINT}\n(load error: ${reason})`;
108
- }
109
- const viewport = args.viewport ?? { width: 1280, height: 800 };
110
- const outPath = args.out_path ? resolvePath(cwd, args.out_path) : defaultOutPath(cwd);
111
- let browser = null;
112
- try {
113
- browser = await chromium.launch({ headless: true });
114
- // Kill the browser if the turn is interrupted.
115
- const onAbort = () => void browser?.close().catch(() => { });
116
- context.signal.addEventListener("abort", onAbort, { once: true });
117
- const page = await browser.newPage();
118
- await page.setViewportSize(viewport);
119
- await page.goto(args.url, { waitUntil: "networkidle" });
120
- if (args.wait_for)
121
- await page.waitForSelector(args.wait_for);
122
- await runActions(page, args.actions);
123
- const raw = await page.screenshot({ fullPage: args.full_page ?? false });
124
- context.signal.removeEventListener("abort", onAbort);
125
- await mkdir(path.dirname(outPath), { recursive: true });
126
- await writeFile(outPath, raw);
127
- // Shrink for the model (provider image limits) and a smaller copy for
128
- // the inline terminal preview.
129
- const { buffer, mediaType } = await shrinkToFit(raw, "image/png");
130
- const previewBuffer = await downscaleForPreview(buffer);
131
- return {
132
- content: [
133
- {
134
- type: "text",
135
- text: `Captured ${args.url} → ${outPath} [${mediaType}] (${viewport.width}×${viewport.height})`,
136
- },
137
- { type: "image", mediaType, data: buffer.toString("base64") },
138
- ],
139
- details: {
140
- outPath,
141
- imagePreviews: [{ base64: previewBuffer.toString("base64"), mediaType, path: outPath }],
142
- },
143
- };
144
- }
145
- catch (err) {
146
- if (context.signal.aborted)
147
- return "Screenshot aborted.";
148
- // Package present but Chromium not downloaded — surface the actionable
149
- // install command rather than a raw stack-trace message.
150
- if (isBrowserBinaryMissing(err))
151
- return INSTALL_HINT;
152
- const reason = err instanceof Error ? err.message : String(err);
153
- return `Screenshot failed for ${args.url}: ${reason}`;
154
- }
155
- finally {
156
- await browser?.close().catch(() => { });
157
- }
158
- },
159
- };
160
- }
161
- //# sourceMappingURL=screenshot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../src/tools/screenshot.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErE;;;;GAIG;AACH,MAAM,YAAY,GAChB,oFAAoF;IACpF,+DAA+D;IAC/D,4BAA4B,CAAC;AAE/B,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAC1D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC/E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,Q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