codex-supervisor-mcp 0.0.0-stage → 0.5.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.
- package/LICENSE +21 -0
- package/README.md +270 -2
- package/package.json +70 -4
- package/skills/codex-supervisor/SKILL.md +114 -0
- package/src/bin-resolver.js +272 -0
- package/src/cleanup.js +128 -0
- package/src/codex-runner.js +625 -0
- package/src/event-parser.js +176 -0
- package/src/goal-store.js +51 -0
- package/src/mcp-server.js +599 -0
- package/src/monitor.jsx +298 -0
- package/src/paths.js +22 -0
- package/src/prompt.js +39 -0
- package/src/setup.js +317 -0
- package/src/status.js +37 -0
- package/src/task-store.js +453 -0
- package/src/truncate.js +135 -0
- package/src/worktree.js +44 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
// Turns a CLI name into something Node can actually spawn.
|
|
2
|
+
//
|
|
3
|
+
// Why this exists: on Windows npm installs a CLI as a `codex.cmd` / `codex.ps1`
|
|
4
|
+
// shim rather than an executable, and since the CVE-2024-27980 hardening in
|
|
5
|
+
// Node 18.20 / 20.12 `spawn` with shell:false refuses to run one (EINVAL), so
|
|
6
|
+
// the worker never starts. `shell: true` would "fix" that at the cost of the
|
|
7
|
+
// kill semantics this project depends on: the shell becomes the child, so
|
|
8
|
+
// cancelling a task kills cmd.exe and leaves the real Codex process running,
|
|
9
|
+
// which wedges the state machine in `running`.
|
|
10
|
+
//
|
|
11
|
+
// So instead of shelling out, resolve a spawnable target: a real .exe, or -
|
|
12
|
+
// for the npm shim case - the package's own entry point, run under node.
|
|
13
|
+
//
|
|
14
|
+
// Platform, env, filesystem probe and node path are all injectable, so the
|
|
15
|
+
// win32 branch is unit-testable from macOS and Linux.
|
|
16
|
+
import { existsSync } from "node:fs";
|
|
17
|
+
import { homedir } from "node:os";
|
|
18
|
+
import path from "node:path";
|
|
19
|
+
|
|
20
|
+
/** Windows extensions Node/libuv can hand straight to CreateProcess. */
|
|
21
|
+
const DIRECT_EXTS = new Set([".exe", ".com"]);
|
|
22
|
+
/** Windows extensions that need an interpreter - the npm-shim case. */
|
|
23
|
+
const SHIM_EXTS = new Set([".cmd", ".bat", ".ps1"]);
|
|
24
|
+
/** Fallback when PATHEXT is unset, matching the Windows default. */
|
|
25
|
+
const DEFAULT_PATHEXT = ".COM;.EXE;.BAT;.CMD";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Well-known global install directories, probed after PATH. A CLI installed with
|
|
29
|
+
* a custom npm prefix or a version manager is usually absent from a
|
|
30
|
+
* non-interactive PATH, and without this it would look "not installed" even
|
|
31
|
+
* though the user runs it every day. The Windows entries are env-derived, so
|
|
32
|
+
* they simply drop out elsewhere.
|
|
33
|
+
*
|
|
34
|
+
* @param {Object} [options]
|
|
35
|
+
* @param {Record<string, string|undefined>} [options.env]
|
|
36
|
+
* @param {string} [options.home]
|
|
37
|
+
* @returns {string[]}
|
|
38
|
+
*/
|
|
39
|
+
export function defaultBinDirs(options = {}) {
|
|
40
|
+
const env = options.env ?? process.env;
|
|
41
|
+
const home = options.home ?? homedir();
|
|
42
|
+
const dirs = [
|
|
43
|
+
path.join(home, ".npm-global", "bin"),
|
|
44
|
+
path.join(home, ".local", "bin"),
|
|
45
|
+
path.join(home, ".bun", "bin"),
|
|
46
|
+
path.join(home, ".volta", "bin"),
|
|
47
|
+
path.join(home, "Library", "pnpm"),
|
|
48
|
+
"/opt/homebrew/bin",
|
|
49
|
+
"/usr/local/bin"
|
|
50
|
+
];
|
|
51
|
+
for (const [variable, ...segments] of [
|
|
52
|
+
["APPDATA", "npm"], // npm global prefix on Windows
|
|
53
|
+
["LOCALAPPDATA", "pnpm"],
|
|
54
|
+
["LOCALAPPDATA", "Volta", "bin"],
|
|
55
|
+
["ProgramFiles", "nodejs"] // nvm-windows and the official installer
|
|
56
|
+
]) {
|
|
57
|
+
const root = env[variable]?.trim();
|
|
58
|
+
if (root) dirs.push(path.join(root, ...segments));
|
|
59
|
+
}
|
|
60
|
+
return dirs;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const isWindows = (platform) => platform === "win32";
|
|
64
|
+
const pathImpl = (platform) => (isWindows(platform) ? path.win32 : path.posix);
|
|
65
|
+
const listSeparator = (platform) => (isWindows(platform) ? ";" : ":");
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @typedef {Object} NpmEntryHint
|
|
69
|
+
* @property {string} pkg npm package name, e.g. "@openai/codex"
|
|
70
|
+
* @property {string} bin entry path inside the package, e.g. "bin/codex.js"
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @typedef {Object} SpawnTarget
|
|
75
|
+
* @property {string} cmd first argument to pass to spawn
|
|
76
|
+
* @property {string[]} prefixArgs args to prepend before the caller's own argv
|
|
77
|
+
* @property {boolean} shim true when the only match needs a shell we refuse to
|
|
78
|
+
* use - the caller should fail with an actionable message instead of spawning
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Locate a CLI on PATH (plus optional extra directories) and return its real
|
|
83
|
+
* path, or null. On win32 the PATHEXT ladder is applied, so a bare `codex`
|
|
84
|
+
* resolves to `codex.cmd`; everywhere else the bare name is joined onto each
|
|
85
|
+
* PATH entry. A name carrying a path separator is probed as-is.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} binary
|
|
88
|
+
* @param {Object} [options]
|
|
89
|
+
* @param {string} [options.platform]
|
|
90
|
+
* @param {Record<string, string|undefined>} [options.env]
|
|
91
|
+
* @param {(p: string) => boolean} [options.exists]
|
|
92
|
+
* @param {string[]} [options.extraDirs] well-known dirs to probe after PATH
|
|
93
|
+
* @returns {string|null}
|
|
94
|
+
*/
|
|
95
|
+
export function findBinaryPath(binary, options = {}) {
|
|
96
|
+
if (!binary) return null;
|
|
97
|
+
const platform = options.platform ?? process.platform;
|
|
98
|
+
const env = options.env ?? process.env;
|
|
99
|
+
const exists = options.exists ?? existsSync;
|
|
100
|
+
const extraDirs = options.extraDirs ?? [];
|
|
101
|
+
const p = pathImpl(platform);
|
|
102
|
+
|
|
103
|
+
if (binary.includes("/") || binary.includes("\\")) return exists(binary) ? binary : null;
|
|
104
|
+
|
|
105
|
+
const fromPath = String(env.PATH ?? env.Path ?? "")
|
|
106
|
+
.split(listSeparator(platform))
|
|
107
|
+
.filter(Boolean);
|
|
108
|
+
const dirs = [...fromPath, ...extraDirs];
|
|
109
|
+
const suffixes = isWindows(platform)
|
|
110
|
+
? String(env.PATHEXT || DEFAULT_PATHEXT)
|
|
111
|
+
.split(";")
|
|
112
|
+
.filter(Boolean)
|
|
113
|
+
.map((ext) => ext.toLowerCase())
|
|
114
|
+
: [""];
|
|
115
|
+
|
|
116
|
+
for (const dir of dirs) {
|
|
117
|
+
for (const suffix of suffixes) {
|
|
118
|
+
const candidate = p.join(dir, binary + suffix);
|
|
119
|
+
if (exists(candidate)) return candidate;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Resolve a command name into a spawnable target.
|
|
127
|
+
*
|
|
128
|
+
* Pass-through cases (behaviour identical to a bare `spawn(name, argv)`):
|
|
129
|
+
* - any name containing a path separator - an explicit path is the caller's
|
|
130
|
+
* business, and the tests rely on this
|
|
131
|
+
* - any non-win32 platform - macOS and Linux behaviour must not change
|
|
132
|
+
* - win32 with no PATH match - preserve the ordinary ENOENT
|
|
133
|
+
*
|
|
134
|
+
* @param {string} name
|
|
135
|
+
* @param {Object} [options]
|
|
136
|
+
* @param {string} [options.platform]
|
|
137
|
+
* @param {Record<string, string|undefined>} [options.env]
|
|
138
|
+
* @param {(p: string) => boolean} [options.exists]
|
|
139
|
+
* @param {string} [options.nodePath]
|
|
140
|
+
* @param {NpmEntryHint} [options.npmEntry] enables the shim bypass
|
|
141
|
+
* @returns {SpawnTarget}
|
|
142
|
+
*/
|
|
143
|
+
export function resolveCommand(name, options = {}) {
|
|
144
|
+
const passthrough = { cmd: name, prefixArgs: [], shim: false };
|
|
145
|
+
if (typeof name !== "string" || !name) return passthrough;
|
|
146
|
+
|
|
147
|
+
const platform = options.platform ?? process.platform;
|
|
148
|
+
if (!isWindows(platform)) return passthrough;
|
|
149
|
+
|
|
150
|
+
const env = options.env ?? process.env;
|
|
151
|
+
const exists = options.exists ?? existsSync;
|
|
152
|
+
const nodePath = options.nodePath ?? process.execPath;
|
|
153
|
+
const bypass = (shimPath) => npmBypass(shimPath, options.npmEntry, exists, nodePath);
|
|
154
|
+
|
|
155
|
+
const dirs = String(env.PATH ?? env.Path ?? "")
|
|
156
|
+
.split(";")
|
|
157
|
+
.filter(Boolean);
|
|
158
|
+
const exts = String(env.PATHEXT || DEFAULT_PATHEXT)
|
|
159
|
+
.split(";")
|
|
160
|
+
.filter(Boolean);
|
|
161
|
+
|
|
162
|
+
// An explicitly named shim - `CODEX_BIN=codex.cmd`, or a full path to one.
|
|
163
|
+
// Handled before the separator pass-through below, because passing it through
|
|
164
|
+
// spawns a shim Node cannot execute and then tells the user to set CODEX_BIN,
|
|
165
|
+
// which is circular advice for someone who just did.
|
|
166
|
+
const namedExt = path.win32.extname(name).toLowerCase();
|
|
167
|
+
if (SHIM_EXTS.has(namedExt)) {
|
|
168
|
+
// A bare shim NAME still needs locating; only a path-bearing one is already
|
|
169
|
+
// located, and a global install's entry point lives beside the shim.
|
|
170
|
+
const located =
|
|
171
|
+
name.includes("/") || name.includes("\\") ? name : (findOnPath(name, dirs, exists) ?? name);
|
|
172
|
+
return bypass(located) ?? { cmd: located, prefixArgs: [], shim: true };
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Any other explicit path (absolute or relative) is already a resolved target.
|
|
176
|
+
if (name.includes("/") || name.includes("\\")) return passthrough;
|
|
177
|
+
|
|
178
|
+
// FIRST MATCH WINS, in PATH order then PATHEXT order - the same precedence
|
|
179
|
+
// libuv and `where` apply. Preferring a real .exe from a LATER directory would
|
|
180
|
+
// silently run a different install than the one the user's own shell picks.
|
|
181
|
+
/** @type {string|null} */
|
|
182
|
+
let firstShim = null;
|
|
183
|
+
for (const dir of dirs) {
|
|
184
|
+
for (const raw of exts) {
|
|
185
|
+
// PATHEXT is conventionally UPPERCASE while npm writes `codex.cmd`.
|
|
186
|
+
// Windows is case-insensitive either way, but the lowercase form matches
|
|
187
|
+
// the file as it actually sits on disk, which keeps error messages honest.
|
|
188
|
+
const ext = raw.toLowerCase();
|
|
189
|
+
const candidate = path.win32.join(dir, name + ext);
|
|
190
|
+
if (!exists(candidate)) continue;
|
|
191
|
+
// A real executable is spawnable as-is.
|
|
192
|
+
if (DIRECT_EXTS.has(ext)) return { cmd: candidate, prefixArgs: [], shim: false };
|
|
193
|
+
if (!SHIM_EXTS.has(ext)) continue;
|
|
194
|
+
const viaNode = bypass(candidate);
|
|
195
|
+
if (viaNode) return viaNode;
|
|
196
|
+
// No entry point behind it - a broken or partial install. Keep scanning:
|
|
197
|
+
// anything usable further down PATH beats failing outright when a working
|
|
198
|
+
// install exists. The first shim is still what gets REPORTED if nothing
|
|
199
|
+
// usable turns up, since that is the one the user believes they run.
|
|
200
|
+
if (firstShim === null) firstShim = candidate;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (firstShim === null) return passthrough;
|
|
205
|
+
return { cmd: firstShim, prefixArgs: [], shim: true };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* One-line explanation for a `shim: true` resolution, so every caller says the
|
|
210
|
+
* same thing.
|
|
211
|
+
* @param {string} name the command that was looked up
|
|
212
|
+
* @param {string} shimPath the shim that was found
|
|
213
|
+
* @param {string} envVar the override the user can set, e.g. "CODEX_BIN"
|
|
214
|
+
* @returns {string}
|
|
215
|
+
*/
|
|
216
|
+
export function shimMessage(name, shimPath, envVar) {
|
|
217
|
+
return (
|
|
218
|
+
`${name} only resolved to a shell shim (${shimPath}), which Node cannot execute directly. ` +
|
|
219
|
+
`Set ${envVar} to the real executable, or reinstall ${name} so a .exe is on PATH.`
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Find an exact filename on PATH. No extension is appended.
|
|
225
|
+
* @param {string} file
|
|
226
|
+
* @param {string[]} dirs
|
|
227
|
+
* @param {(p: string) => boolean} exists
|
|
228
|
+
* @returns {string|null}
|
|
229
|
+
*/
|
|
230
|
+
function findOnPath(file, dirs, exists) {
|
|
231
|
+
for (const dir of dirs) {
|
|
232
|
+
const candidate = path.win32.join(dir, file);
|
|
233
|
+
if (exists(candidate)) return candidate;
|
|
234
|
+
}
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Turn an npm shim into a directly spawnable target, or null when there is no
|
|
240
|
+
* entry point behind it. The shim itself is never executed.
|
|
241
|
+
*
|
|
242
|
+
* Two layouts are probed, because both put a `.cmd` on a Windows machine:
|
|
243
|
+
* - global: <prefix>\codex.cmd -> <prefix>\node_modules\<pkg>\<bin>
|
|
244
|
+
* - local: <root>\node_modules\.bin\codex.cmd -> <root>\node_modules\<pkg>\<bin>
|
|
245
|
+
*
|
|
246
|
+
* A native entry (`bin/claude.exe`) is spawned directly; a JS entry gets node in
|
|
247
|
+
* front of it.
|
|
248
|
+
*
|
|
249
|
+
* @param {string} shimPath
|
|
250
|
+
* @param {NpmEntryHint|undefined} npmEntry
|
|
251
|
+
* @param {(p: string) => boolean} exists
|
|
252
|
+
* @param {string} nodePath
|
|
253
|
+
* @returns {SpawnTarget|null}
|
|
254
|
+
*/
|
|
255
|
+
function npmBypass(shimPath, npmEntry, exists, nodePath) {
|
|
256
|
+
if (!npmEntry?.pkg || !npmEntry?.bin) return null;
|
|
257
|
+
const dir = path.win32.dirname(shimPath);
|
|
258
|
+
const roots = [dir];
|
|
259
|
+
// npm puts a locally installed CLI's shim in node_modules/.bin, one level below the package.
|
|
260
|
+
if (path.win32.basename(dir).toLowerCase() === ".bin") {
|
|
261
|
+
roots.push(path.win32.dirname(path.win32.dirname(dir)));
|
|
262
|
+
}
|
|
263
|
+
for (const root of roots) {
|
|
264
|
+
const entry = path.win32.join(root, "node_modules", npmEntry.pkg, npmEntry.bin);
|
|
265
|
+
if (!exists(entry)) continue;
|
|
266
|
+
if (DIRECT_EXTS.has(path.win32.extname(entry).toLowerCase())) {
|
|
267
|
+
return { cmd: entry, prefixArgs: [], shim: false };
|
|
268
|
+
}
|
|
269
|
+
return { cmd: nodePath, prefixArgs: [entry], shim: false };
|
|
270
|
+
}
|
|
271
|
+
return null;
|
|
272
|
+
}
|
package/src/cleanup.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { rm, stat } from "node:fs/promises";
|
|
3
|
+
import { basename, join } from "node:path";
|
|
4
|
+
import { deleteTasks, readTasks, vacuumStore } from "./task-store.js";
|
|
5
|
+
import { runsDir, worktreesDir } from "./paths.js";
|
|
6
|
+
import { TERMINAL_STATUSES } from "./status.js";
|
|
7
|
+
|
|
8
|
+
function parseArgs(argv) {
|
|
9
|
+
const options = {
|
|
10
|
+
days: 14,
|
|
11
|
+
dryRun: true,
|
|
12
|
+
includeFailed: true,
|
|
13
|
+
vacuum: false
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
17
|
+
const arg = argv[index];
|
|
18
|
+
if (arg === "--days") {
|
|
19
|
+
options.days = Number(argv[index + 1]);
|
|
20
|
+
index += 1;
|
|
21
|
+
} else if (arg === "--apply") {
|
|
22
|
+
options.dryRun = false;
|
|
23
|
+
} else if (arg === "--dry-run") {
|
|
24
|
+
options.dryRun = true;
|
|
25
|
+
} else if (arg === "--keep-failed") {
|
|
26
|
+
options.includeFailed = false;
|
|
27
|
+
} else if (arg === "--vacuum") {
|
|
28
|
+
options.vacuum = true;
|
|
29
|
+
} else if (arg === "--help" || arg === "-h") {
|
|
30
|
+
options.help = true;
|
|
31
|
+
} else {
|
|
32
|
+
throw new Error(`Unknown argument: ${arg}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (!Number.isFinite(options.days) || options.days < 0) {
|
|
37
|
+
throw new Error("--days must be a non-negative number");
|
|
38
|
+
}
|
|
39
|
+
return options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function printHelp() {
|
|
43
|
+
console.log(`Usage: npm run cleanup -- [options]
|
|
44
|
+
|
|
45
|
+
Options:
|
|
46
|
+
--dry-run Show what would be deleted. Default.
|
|
47
|
+
--apply Actually delete matching rows, JSONL logs, and worktrees.
|
|
48
|
+
--days <n> Keep tasks newer than n days. Default: 14.
|
|
49
|
+
--keep-failed Preserve failed/cancelled tasks even when older than --days.
|
|
50
|
+
--vacuum Vacuum SQLite after deleting rows.
|
|
51
|
+
-h, --help Show help.
|
|
52
|
+
`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function isTerminal(task) {
|
|
56
|
+
return TERMINAL_STATUSES.has(task.status);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function isDeleteCandidate(task, cutoffMs, includeFailed) {
|
|
60
|
+
if (!isTerminal(task)) return false;
|
|
61
|
+
if (!includeFailed && ["failed", "cancelled", "lost"].includes(task.status)) return false;
|
|
62
|
+
const completedAt = Date.parse(task.completed_at ?? task.updated_at ?? task.created_at);
|
|
63
|
+
return Number.isFinite(completedAt) && completedAt < cutoffMs;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async function safeDeleteFile(path, dryRun) {
|
|
67
|
+
try {
|
|
68
|
+
await stat(path);
|
|
69
|
+
if (!dryRun) await rm(path, { force: true });
|
|
70
|
+
return true;
|
|
71
|
+
} catch {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function safeDeleteDir(path, dryRun) {
|
|
77
|
+
try {
|
|
78
|
+
await stat(path);
|
|
79
|
+
if (!dryRun) await rm(path, { recursive: true, force: true });
|
|
80
|
+
return true;
|
|
81
|
+
} catch {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const options = parseArgs(process.argv.slice(2));
|
|
87
|
+
if (options.help) {
|
|
88
|
+
printHelp();
|
|
89
|
+
process.exit(0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const cutoffMs = Date.now() - options.days * 24 * 60 * 60 * 1000;
|
|
93
|
+
const tasks = await readTasks();
|
|
94
|
+
const candidates = tasks.filter((task) => isDeleteCandidate(task, cutoffMs, options.includeFailed));
|
|
95
|
+
const taskIds = candidates.map((task) => task.id);
|
|
96
|
+
|
|
97
|
+
const deleted = {
|
|
98
|
+
tasks: taskIds.length,
|
|
99
|
+
jsonl: 0,
|
|
100
|
+
worktrees: 0
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
for (const task of candidates) {
|
|
104
|
+
const logPath = task.run_log ?? join(runsDir, `${task.id}.jsonl`);
|
|
105
|
+
if (await safeDeleteFile(logPath, options.dryRun)) deleted.jsonl += 1;
|
|
106
|
+
if (task.worktree_path && basename(task.worktree_path) === task.id) {
|
|
107
|
+
if (await safeDeleteDir(task.worktree_path, options.dryRun)) deleted.worktrees += 1;
|
|
108
|
+
} else {
|
|
109
|
+
const fallbackWorktree = join(worktreesDir, task.id);
|
|
110
|
+
if (await safeDeleteDir(fallbackWorktree, options.dryRun)) deleted.worktrees += 1;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (!options.dryRun && taskIds.length > 0) {
|
|
115
|
+
await deleteTasks(taskIds);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!options.dryRun && options.vacuum) {
|
|
119
|
+
await vacuumStore();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
console.log(JSON.stringify({
|
|
123
|
+
dry_run: options.dryRun,
|
|
124
|
+
keep_days: options.days,
|
|
125
|
+
cutoff: new Date(cutoffMs).toISOString(),
|
|
126
|
+
candidates: taskIds,
|
|
127
|
+
deleted
|
|
128
|
+
}, null, 2));
|