opencode-windows-scheduler 1.4.0 → 1.5.1

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 (95) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/LICENSE +21 -21
  3. package/README.md +26 -4
  4. package/ROADMAP-STRATEGY.md +43 -24
  5. package/ROADMAP.md +549 -31
  6. package/dist/core/dry-run.d.ts +41 -0
  7. package/dist/core/dry-run.d.ts.map +1 -1
  8. package/dist/core/dry-run.js +165 -16
  9. package/dist/core/file-watcher.d.ts.map +1 -1
  10. package/dist/core/file-watcher.js +53 -10
  11. package/dist/core/git-trigger.d.ts +80 -0
  12. package/dist/core/git-trigger.d.ts.map +1 -0
  13. package/dist/core/git-trigger.js +294 -0
  14. package/dist/core/glob.d.ts +38 -0
  15. package/dist/core/glob.d.ts.map +1 -0
  16. package/dist/core/glob.js +233 -0
  17. package/dist/core/matrix.d.ts.map +1 -1
  18. package/dist/core/matrix.js +48 -22
  19. package/dist/core/ps-wrapper.d.ts.map +1 -1
  20. package/dist/core/ps-wrapper.js +7 -0
  21. package/dist/core/schedule-gate.js +55 -30
  22. package/dist/core/schedule-v2.d.ts +29 -1
  23. package/dist/core/schedule-v2.d.ts.map +1 -1
  24. package/dist/core/schedule-v2.js +107 -17
  25. package/dist/core/scheduler/types.d.ts +7 -1
  26. package/dist/core/scheduler/types.d.ts.map +1 -1
  27. package/dist/core/scheduler/windows.d.ts +6 -2
  28. package/dist/core/scheduler/windows.d.ts.map +1 -1
  29. package/dist/core/scheduler/windows.js +25 -10
  30. package/dist/core/telegram.d.ts.map +1 -1
  31. package/dist/core/telegram.js +13 -10
  32. package/dist/core/wrappers/bash.d.ts.map +1 -1
  33. package/dist/core/wrappers/bash.js +4 -0
  34. package/dist/db/git-state-repo.d.ts +16 -0
  35. package/dist/db/git-state-repo.d.ts.map +1 -0
  36. package/dist/db/git-state-repo.js +38 -0
  37. package/dist/db/schema.d.ts +1 -1
  38. package/dist/db/schema.d.ts.map +1 -1
  39. package/dist/db/schema.js +8 -0
  40. package/dist/i18n.d.ts +52 -0
  41. package/dist/i18n.d.ts.map +1 -0
  42. package/dist/i18n.js +292 -0
  43. package/dist/index.d.ts +50 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1020 -197
  46. package/dist/notifications.d.ts.map +1 -1
  47. package/dist/notifications.js +74 -40
  48. package/dist/rpc.d.ts +238 -2
  49. package/dist/rpc.d.ts.map +1 -1
  50. package/dist/rpc.js +79 -2
  51. package/dist/server.d.ts.map +1 -1
  52. package/dist/server.js +89 -48
  53. package/dist/settings.d.ts +3 -0
  54. package/dist/settings.d.ts.map +1 -1
  55. package/dist/settings.js +20 -8
  56. package/dist/task-transfer.d.ts +43 -3
  57. package/dist/task-transfer.d.ts.map +1 -1
  58. package/dist/task-transfer.js +94 -6
  59. package/dist/templates.d.ts +1 -1
  60. package/dist/templates.d.ts.map +1 -1
  61. package/dist/types.d.ts +11 -0
  62. package/dist/types.d.ts.map +1 -1
  63. package/dist/types.js +32 -0
  64. package/docs/ARCHITECTURE.md +37 -1
  65. package/docs/FEATURES.md +70 -0
  66. package/docs/README.ru.md +19 -3
  67. package/gui-experimental.cjs +9 -4
  68. package/locales/en.json +695 -0
  69. package/locales/ru.json +695 -0
  70. package/package.json +9 -3
  71. package/scripts/test-locale.mjs +44 -0
  72. package/src/core/dry-run.ts +244 -19
  73. package/src/core/file-watcher.ts +65 -10
  74. package/src/core/git-trigger.ts +373 -0
  75. package/src/core/glob.ts +226 -0
  76. package/src/core/matrix.ts +52 -26
  77. package/src/core/ps-wrapper.ts +7 -0
  78. package/src/core/schedule-gate.ts +67 -33
  79. package/src/core/schedule-v2.ts +152 -17
  80. package/src/core/scheduler/types.ts +7 -1
  81. package/src/core/scheduler/windows.ts +25 -10
  82. package/src/core/telegram.ts +16 -10
  83. package/src/core/wrappers/bash.ts +4 -0
  84. package/src/db/git-state-repo.ts +62 -0
  85. package/src/db/schema.ts +8 -0
  86. package/src/gui.tsx +772 -456
  87. package/src/i18n.ts +339 -0
  88. package/src/index.ts +1274 -212
  89. package/src/notifications.ts +83 -42
  90. package/src/rpc.ts +79 -2
  91. package/src/server.ts +89 -48
  92. package/src/settings.ts +38 -10
  93. package/src/task-transfer.ts +148 -5
  94. package/src/templates.ts +1 -1
  95. package/src/types.ts +37 -0
package/dist/i18n.js ADDED
@@ -0,0 +1,292 @@
1
+ /**
2
+ * i18n-фундамент (Спринт 28).
3
+ *
4
+ * Каталоги строк живут в `<корень пакета>/locales/<locale>.json` — плоские
5
+ * ключи вида `"server.notFound"`. Загрузчик читает их синхронно при первом
6
+ * обращении и кэширует: файлы маленькие, а горячий путь — `t()` в рендере.
7
+ *
8
+ * Поддерживается ICU-подмножество без зависимостей:
9
+ * - `{name}` — подстановка параметра;
10
+ * - `{count, plural, one {…} few {…} many {…} other {…}}` — плюрализация
11
+ * через встроенный `Intl.PluralRules`; `#` внутри ветки — число.
12
+ *
13
+ * Русский — локаль по умолчанию (`DEFAULT_LOCALE`). Если ключа нет в текущей
14
+ * локали, берётся русский вариант; если нет и там — возвращается сам ключ,
15
+ * чтобы пропажа была видна, а не превращалась в пустую строку.
16
+ *
17
+ * Локаль процесса меняется через `setLocale()` — без перезапуска плагина.
18
+ */
19
+ import fs from "node:fs";
20
+ import path from "node:path";
21
+ import { fileURLToPath } from "node:url";
22
+ /** Порядок важен для UI: первым идёт локаль по умолчанию. */
23
+ export const SUPPORTED_LOCALES = ["ru", "en"];
24
+ /** Русский остаётся локалью по умолчанию (см. ROADMAP, спринт 28). */
25
+ export const DEFAULT_LOCALE = "ru";
26
+ /** Каталог модуля: `src/` при запуске из исходников, `dist/` из сборки. */
27
+ const MODULE_DIR = path.dirname(fileURLToPath(import.meta.url));
28
+ /** Каталоги, где может лежать `locales/` (оба варианта дают корень пакета). */
29
+ function candidateCatalogDirs() {
30
+ return [
31
+ path.resolve(MODULE_DIR, "../locales"),
32
+ path.resolve(MODULE_DIR, "locales"),
33
+ ];
34
+ }
35
+ const catalogs = new Map();
36
+ const pluralRules = new Map();
37
+ /**
38
+ * Локаль запуска: `OPENCODE_SCHEDULER_LOCALE=en` позволяет прогнать набор
39
+ * тестов на английском без правки настроек. Не задана — русский.
40
+ */
41
+ const INITIAL_LOCALE = normalizeLocale(process.env.OPENCODE_SCHEDULER_LOCALE);
42
+ let currentLocale = INITIAL_LOCALE;
43
+ /** true, если значение — поддерживаемая локаль. */
44
+ export function isLocale(value) {
45
+ return (typeof value === "string" &&
46
+ SUPPORTED_LOCALES.includes(value));
47
+ }
48
+ /** Приводит произвольное значение к поддерживаемой локали. */
49
+ export function normalizeLocale(value, fallback = DEFAULT_LOCALE) {
50
+ return isLocale(value) ? value : fallback;
51
+ }
52
+ /** Текущая локаль процесса. */
53
+ export function getLocale() {
54
+ return currentLocale;
55
+ }
56
+ /**
57
+ * Переключает локаль процесса. Возвращает фактическую локаль (невалидное
58
+ * значение откатывается к локали по умолчанию).
59
+ */
60
+ export function setLocale(locale) {
61
+ currentLocale = normalizeLocale(locale, DEFAULT_LOCALE);
62
+ return currentLocale;
63
+ }
64
+ /** Путь к файлу каталога или null, если файла нет. */
65
+ export function catalogPath(locale) {
66
+ for (const dir of candidateCatalogDirs()) {
67
+ const file = path.join(dir, `${locale}.json`);
68
+ try {
69
+ if (fs.statSync(file).isFile())
70
+ return file;
71
+ }
72
+ catch {
73
+ // Нет файла — пробуем следующий каталог.
74
+ }
75
+ }
76
+ return null;
77
+ }
78
+ /** Читает каталог с диска (с кэшем). Битый файл — пустой каталог. */
79
+ function readCatalog(locale) {
80
+ const cached = catalogs.get(locale);
81
+ if (cached)
82
+ return cached;
83
+ const file = catalogPath(locale);
84
+ const parsed = {};
85
+ if (file) {
86
+ try {
87
+ const raw = JSON.parse(fs.readFileSync(file, "utf8"));
88
+ if (raw && typeof raw === "object" && !Array.isArray(raw)) {
89
+ for (const [key, value] of Object.entries(raw)) {
90
+ if (typeof value === "string" && value.length > 0)
91
+ parsed[key] = value;
92
+ }
93
+ }
94
+ }
95
+ catch (err) {
96
+ console.error(`[i18n] Не удалось прочитать ${file}: ${err instanceof Error ? err.message : String(err)}`);
97
+ }
98
+ }
99
+ catalogs.set(locale, parsed);
100
+ return parsed;
101
+ }
102
+ /**
103
+ * Регистрирует каталог, встроенный в GUI-бандл.
104
+ *
105
+ * В webview OpenCode нет доступа к файлам пакета: `document.currentScript`
106
+ * указывает на ресурс приложения, поэтому `catalogPath()` не находит
107
+ * `locales/*.json` и `t()` возвращает сырые ключи. GUI импортирует JSON на
108
+ * этапе сборки и кладёт его сюда — файлы на диске больше не нужны.
109
+ */
110
+ export function registerCatalog(locale, messages) {
111
+ const parsed = {};
112
+ for (const [key, value] of Object.entries(messages)) {
113
+ if (typeof value === "string" && value.length > 0)
114
+ parsed[key] = value;
115
+ }
116
+ catalogs.set(locale, parsed);
117
+ }
118
+ /** Список ключей каталога (отсортированный). */
119
+ export function catalogKeys(locale = currentLocale) {
120
+ return Object.keys(readCatalog(locale)).sort();
121
+ }
122
+ /** true, если ключ есть в каталоге указанной локали. */
123
+ export function hasKey(key, locale = currentLocale) {
124
+ return Object.prototype.hasOwnProperty.call(readCatalog(locale), key);
125
+ }
126
+ /** Значение ключа в конкретной локали без fallback; undefined — ключа нет. */
127
+ export function messageIn(locale, key) {
128
+ return readCatalog(locale)[key];
129
+ }
130
+ /**
131
+ * Ключи, которых не хватает относительно русской локали.
132
+ * Пустой массив — каталог полный.
133
+ */
134
+ export function missingKeys(locale) {
135
+ const base = new Set(catalogKeys(DEFAULT_LOCALE));
136
+ return catalogKeys(locale).filter((key) => !base.has(key));
137
+ }
138
+ /** Ключи, которые есть в русской локали, но отсутствуют в указанной. */
139
+ export function absentKeys(locale) {
140
+ const target = new Set(catalogKeys(locale));
141
+ return catalogKeys(DEFAULT_LOCALE).filter((key) => !target.has(key));
142
+ }
143
+ /** Сбрасывает кэш каталогов и локаль к локали запуска (для тестов). */
144
+ export function resetI18n() {
145
+ catalogs.clear();
146
+ pluralRules.clear();
147
+ currentLocale = INITIAL_LOCALE;
148
+ }
149
+ /** Категория плюрализации для числа (`one`/`few`/`many`/`other`). */
150
+ function pluralCategory(count, locale) {
151
+ let rules = pluralRules.get(locale);
152
+ if (!rules) {
153
+ rules = new Intl.PluralRules(locale);
154
+ pluralRules.set(locale, rules);
155
+ }
156
+ return rules.select(count);
157
+ }
158
+ /** Форматирует число для подстановки `#` в плюральной ветке. */
159
+ function formatCount(count, locale) {
160
+ try {
161
+ return new Intl.NumberFormat(locale).format(count);
162
+ }
163
+ catch {
164
+ return String(count);
165
+ }
166
+ }
167
+ /** Индекс парной `}` для `{` на позиции `openIndex`; -1 — не закрыта. */
168
+ function findClosingBrace(text, openIndex) {
169
+ let depth = 0;
170
+ for (let i = openIndex; i < text.length; i++) {
171
+ const ch = text[i];
172
+ if (ch === "{")
173
+ depth++;
174
+ else if (ch === "}") {
175
+ depth--;
176
+ if (depth === 0)
177
+ return i;
178
+ }
179
+ }
180
+ return -1;
181
+ }
182
+ /** Индекс первой запятой верхнего уровня (вне фигурных скобок); -1 — нет. */
183
+ function topLevelCommaIndex(body) {
184
+ let depth = 0;
185
+ for (let i = 0; i < body.length; i++) {
186
+ const ch = body[i];
187
+ if (ch === "{")
188
+ depth++;
189
+ else if (ch === "}")
190
+ depth--;
191
+ else if (ch === "," && depth === 0)
192
+ return i;
193
+ }
194
+ return -1;
195
+ }
196
+ /**
197
+ * Разбирает ветки plural: `one {…} few {…} many {…} other {…}`.
198
+ * Ветки разделены пробелами/запятыми, содержимое — в фигурных скобках.
199
+ */
200
+ function parsePluralBranches(text) {
201
+ const branches = {};
202
+ let i = 0;
203
+ while (i < text.length) {
204
+ while (i < text.length && /[\s,]/.test(text[i]))
205
+ i++;
206
+ const keyStart = i;
207
+ while (i < text.length && text[i] !== "{")
208
+ i++;
209
+ if (i >= text.length)
210
+ break;
211
+ const key = text.slice(keyStart, i).trim();
212
+ const end = findClosingBrace(text, i);
213
+ if (end === -1)
214
+ break;
215
+ if (key)
216
+ branches[key] = text.slice(i + 1, end);
217
+ i = end + 1;
218
+ }
219
+ return branches;
220
+ }
221
+ /**
222
+ * Разворачивает шаблон: `{name}` и `{count, plural, …}`.
223
+ * `count` передаётся только внутри плюральной ветки — там `#` становится числом.
224
+ */
225
+ function renderTemplate(template, locale, params, count) {
226
+ let out = "";
227
+ let i = 0;
228
+ while (i < template.length) {
229
+ const ch = template[i];
230
+ if (ch === "#" && count !== undefined) {
231
+ out += formatCount(count, locale);
232
+ i++;
233
+ continue;
234
+ }
235
+ if (ch !== "{") {
236
+ out += ch;
237
+ i++;
238
+ continue;
239
+ }
240
+ const end = findClosingBrace(template, i);
241
+ if (end === -1) {
242
+ out += template.slice(i);
243
+ break;
244
+ }
245
+ out += renderExpression(template.slice(i + 1, end), locale, params);
246
+ i = end + 1;
247
+ }
248
+ return out;
249
+ }
250
+ /** Разворачивает одно выражение `{…}` (параметр или plural). */
251
+ function renderExpression(body, locale, params) {
252
+ const comma = topLevelCommaIndex(body);
253
+ const name = (comma === -1 ? body : body.slice(0, comma)).trim();
254
+ const value = params[name];
255
+ if (comma === -1) {
256
+ // Нет параметра — оставляем плейсхолдер, чтобы пропажа была видна.
257
+ return value === undefined || value === null ? `{${body}}` : String(value);
258
+ }
259
+ const rest = body.slice(comma + 1).trim();
260
+ const typeMatch = /^([a-zA-Z]+)/.exec(rest);
261
+ const type = typeMatch ? typeMatch[1] : "";
262
+ if (type === "plural") {
263
+ const numeric = Number(value);
264
+ const count = Number.isFinite(numeric) ? numeric : 0;
265
+ const branches = parsePluralBranches(rest.slice(type.length));
266
+ const category = pluralCategory(count, locale);
267
+ const chosen = branches[category] ?? branches.other ?? "";
268
+ return renderTemplate(chosen, locale, params, count);
269
+ }
270
+ // Неизвестный тип аргумента — подставляем значение как есть.
271
+ return value === undefined || value === null ? `{${body}}` : String(value);
272
+ }
273
+ /**
274
+ * Переводит ключ. Отсутствующий ключ → русский вариант → сам ключ.
275
+ * Если сработал fallback, плюрализация тоже считается по русским правилам.
276
+ */
277
+ export function t(key, params) {
278
+ const locale = currentLocale;
279
+ let template = readCatalog(locale)[key];
280
+ let renderLocale = locale;
281
+ if (template === undefined && locale !== DEFAULT_LOCALE) {
282
+ template = readCatalog(DEFAULT_LOCALE)[key];
283
+ renderLocale = DEFAULT_LOCALE;
284
+ }
285
+ if (template === undefined)
286
+ return key;
287
+ return renderTemplate(template, renderLocale, params ?? {});
288
+ }
289
+ /** Все локали, у которых каталог реально найден на диске. */
290
+ export function availableLocales() {
291
+ return SUPPORTED_LOCALES.filter((locale) => catalogPath(locale) !== null);
292
+ }
package/dist/index.d.ts CHANGED
@@ -63,6 +63,7 @@ export declare const scheduleTaskSchema: z.ZodObject<{
63
63
  triggerType: z.ZodOptional<z.ZodEnum<{
64
64
  file: "file";
65
65
  cron: "cron";
66
+ git: "git";
66
67
  "mcp-event": "mcp-event";
67
68
  once: "once";
68
69
  }>>;
@@ -72,10 +73,23 @@ export declare const scheduleTaskSchema: z.ZodObject<{
72
73
  filter: z.ZodOptional<z.ZodString>;
73
74
  }, z.core.$strip>>;
74
75
  watchPath: z.ZodOptional<z.ZodString>;
76
+ watchGlobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ watchIgnore: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ gitBranch: z.ZodOptional<z.ZodString>;
79
+ gitPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
+ gitIgnore: z.ZodOptional<z.ZodArray<z.ZodString>>;
81
+ gitPollSeconds: z.ZodOptional<z.ZodNumber>;
82
+ activeDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
83
+ windowPolicy: z.ZodOptional<z.ZodEnum<{
84
+ skip: "skip";
85
+ run: "run";
86
+ postpone: "postpone";
87
+ }>>;
75
88
  workingDirectory: z.ZodOptional<z.ZodString>;
76
89
  workspaceId: z.ZodOptional<z.ZodString>;
77
90
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
91
  deniedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
+ runWhenLoggedOff: z.ZodOptional<z.ZodBoolean>;
79
93
  matrix: z.ZodOptional<z.ZodObject<{
80
94
  workspaceIds: z.ZodArray<z.ZodString>;
81
95
  strategy: z.ZodOptional<z.ZodEnum<{
@@ -115,6 +129,19 @@ export declare const updateTaskSchema: z.ZodObject<{
115
129
  timezone: z.ZodOptional<z.ZodString>;
116
130
  notBefore: z.ZodOptional<z.ZodString>;
117
131
  notAfter: z.ZodOptional<z.ZodString>;
132
+ activeDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
133
+ windowPolicy: z.ZodOptional<z.ZodEnum<{
134
+ skip: "skip";
135
+ run: "run";
136
+ postpone: "postpone";
137
+ }>>;
138
+ runWhenLoggedOff: z.ZodOptional<z.ZodBoolean>;
139
+ watchGlobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
+ watchIgnore: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ gitBranch: z.ZodOptional<z.ZodString>;
142
+ gitPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ gitIgnore: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ gitPollSeconds: z.ZodOptional<z.ZodNumber>;
118
145
  prompt: z.ZodOptional<z.ZodString>;
119
146
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
120
147
  model: z.ZodOptional<z.ZodString>;
@@ -130,6 +157,7 @@ export declare const updateTaskSchema: z.ZodObject<{
130
157
  triggerType: z.ZodOptional<z.ZodEnum<{
131
158
  file: "file";
132
159
  cron: "cron";
160
+ git: "git";
133
161
  "mcp-event": "mcp-event";
134
162
  once: "once";
135
163
  }>>;
@@ -204,6 +232,10 @@ export declare const manageSettingsSchema: z.ZodObject<{
204
232
  get: "get";
205
233
  }>;
206
234
  maxConcurrent: z.ZodOptional<z.ZodNumber>;
235
+ locale: z.ZodOptional<z.ZodEnum<{
236
+ ru: "ru";
237
+ en: "en";
238
+ }>>;
207
239
  winterMode: z.ZodOptional<z.ZodBoolean>;
208
240
  notifications: z.ZodOptional<z.ZodAny>;
209
241
  history: z.ZodOptional<z.ZodObject<{
@@ -315,4 +347,22 @@ export declare const getAuditLogSchema: z.ZodObject<{
315
347
  }, z.core.$strip>;
316
348
  declare const _default: Plugin.Plugin;
317
349
  export default _default;
350
+ /**
351
+ * Общая логика создания задачи: используется и schedule_task (инструмент),
352
+ * и create_task (RPC-метод для GUI).
353
+ */
354
+ /**
355
+ * Спринт 27: дополнительные параметры триггеров (дни недели, политика окна,
356
+ * glob-фильтры файловых триггеров и git-триггеры).
357
+ */
358
+ export interface TriggerExtras {
359
+ activeDays?: number[];
360
+ windowPolicy?: "skip" | "postpone" | "run";
361
+ watchGlobs?: string[];
362
+ watchIgnore?: string[];
363
+ gitBranch?: string;
364
+ gitPaths?: string[];
365
+ gitIgnore?: string[];
366
+ gitPollSeconds?: number;
367
+ }
318
368
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6JxB,6DAA6D;AAC7D,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;iBAwCvB,CAAC;AAEH,yCAAyC;AACzC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmM7B,CAAC;AAYH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4I3B,CAAC;AAsEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;iBA0B9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