@h-rig/cli 0.0.6-alpha.9 → 0.0.6-alpha.91

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 (116) hide show
  1. package/README.md +18 -19
  2. package/dist/bin/build-rig-binaries.d.ts +2 -0
  3. package/dist/bin/build-rig-binaries.js +22 -10
  4. package/dist/bin/rig.d.ts +72 -0
  5. package/dist/bin/rig.js +15637 -7344
  6. package/dist/config/rig-default-config.yml +5 -0
  7. package/dist/src/app/drone-ui.d.ts +34 -0
  8. package/dist/src/app/drone-ui.js +278 -0
  9. package/dist/src/commands/_async-ui.d.ts +10 -0
  10. package/dist/src/commands/_async-ui.js +121 -0
  11. package/dist/src/commands/_cli-format.d.ts +56 -0
  12. package/dist/src/commands/_cli-format.js +319 -0
  13. package/dist/src/commands/_connection-state.d.ts +54 -0
  14. package/dist/src/commands/_connection-state.js +75 -11
  15. package/dist/src/commands/_doctor-checks.d.ts +46 -0
  16. package/dist/src/commands/_doctor-checks.js +100 -267
  17. package/dist/src/commands/_help-catalog.d.ts +51 -0
  18. package/dist/src/commands/_help-catalog.js +502 -0
  19. package/dist/src/commands/_inprocess-services.d.ts +33 -0
  20. package/dist/src/commands/_inprocess-services.js +102 -0
  21. package/dist/src/commands/_json-output.d.ts +11 -0
  22. package/dist/src/commands/_json-output.js +60 -0
  23. package/dist/src/commands/_lazy-reconcile.d.ts +34 -0
  24. package/dist/src/commands/_lazy-reconcile.js +102 -0
  25. package/dist/src/commands/_parsers.d.ts +15 -0
  26. package/dist/src/commands/_parsers.js +18 -11
  27. package/dist/src/commands/_paths.d.ts +11 -0
  28. package/dist/src/commands/_paths.js +1 -1
  29. package/dist/src/commands/_pi-frontend.d.ts +35 -0
  30. package/dist/src/commands/_pi-frontend.js +64 -0
  31. package/dist/src/commands/_pi-install.d.ts +42 -0
  32. package/dist/src/commands/_pi-install.js +19 -36
  33. package/dist/src/commands/_policy.d.ts +8 -0
  34. package/dist/src/commands/_policy.js +67 -19
  35. package/dist/src/commands/_probes.d.ts +1 -0
  36. package/dist/src/commands/_run-bridge.d.ts +114 -0
  37. package/dist/src/commands/_run-bridge.js +387 -0
  38. package/dist/src/commands/_run-diagnostics.d.ts +9 -0
  39. package/dist/src/commands/_run-diagnostics.js +51 -0
  40. package/dist/src/commands/_run-driver-helpers.d.ts +26 -0
  41. package/dist/src/commands/_run-driver-helpers.js +79 -230
  42. package/dist/src/commands/_run-projection.d.ts +50 -0
  43. package/dist/src/commands/_run-projection.js +349 -0
  44. package/dist/src/commands/_run-subcommands.d.ts +3 -0
  45. package/dist/src/commands/_run-subcommands.js +31 -0
  46. package/dist/src/commands/_spinner.d.ts +25 -0
  47. package/dist/src/commands/_spinner.js +65 -0
  48. package/dist/src/commands/agent.d.ts +3 -0
  49. package/dist/src/commands/agent.js +8575 -236
  50. package/dist/src/commands/dist.d.ts +28 -0
  51. package/dist/src/commands/dist.js +44 -29
  52. package/dist/src/commands/doctor.d.ts +3 -0
  53. package/dist/src/commands/doctor.js +219 -268
  54. package/dist/src/commands/github.d.ts +3 -0
  55. package/dist/src/commands/github.js +236 -188
  56. package/dist/src/commands/inbox.d.ts +28 -0
  57. package/dist/src/commands/inbox.js +530 -111
  58. package/dist/src/commands/init.d.ts +64 -0
  59. package/dist/src/commands/init.js +912 -705
  60. package/dist/src/commands/inspect.d.ts +20 -0
  61. package/dist/src/commands/inspect.js +709 -119
  62. package/dist/src/commands/pi.d.ts +3 -0
  63. package/dist/src/commands/pi.js +177 -0
  64. package/dist/src/commands/plugin.d.ts +16 -0
  65. package/dist/src/commands/plugin.js +576 -29
  66. package/dist/src/commands/profile-and-review.d.ts +4 -0
  67. package/dist/src/commands/profile-and-review.js +112 -67
  68. package/dist/src/commands/queue.d.ts +3 -0
  69. package/dist/src/commands/queue.js +20 -20
  70. package/dist/src/commands/remote.d.ts +3 -0
  71. package/dist/src/commands/remote.js +880 -50
  72. package/dist/src/commands/repo-git-harness.d.ts +5 -0
  73. package/dist/src/commands/repo-git-harness.js +78 -28
  74. package/dist/src/commands/run.d.ts +21 -0
  75. package/dist/src/commands/run.js +17701 -661
  76. package/dist/src/commands/server.d.ts +3 -0
  77. package/dist/src/commands/server.js +166 -303
  78. package/dist/src/commands/setup.d.ts +16 -0
  79. package/dist/src/commands/setup.js +244 -299
  80. package/dist/src/commands/stats.d.ts +15 -0
  81. package/dist/src/commands/stats.js +979 -0
  82. package/dist/src/commands/task-run-driver.d.ts +94 -0
  83. package/dist/src/commands/task-run-driver.js +116 -1961
  84. package/dist/src/commands/task.d.ts +35 -0
  85. package/dist/src/commands/task.js +676 -1201
  86. package/dist/src/commands/test.d.ts +3 -0
  87. package/dist/src/commands/test.js +15 -8
  88. package/dist/src/commands/triage.d.ts +11 -0
  89. package/dist/src/commands/triage.js +227 -0
  90. package/dist/src/commands/workspace.d.ts +3 -0
  91. package/dist/src/commands/workspace.js +18 -11
  92. package/dist/src/commands.d.ts +13 -0
  93. package/dist/src/commands.js +16792 -8055
  94. package/dist/src/index.d.ts +4 -0
  95. package/dist/src/index.js +16862 -8450
  96. package/dist/src/launcher.d.ts +61 -0
  97. package/dist/src/launcher.js +81 -13
  98. package/dist/src/operator-cli.d.ts +2 -0
  99. package/dist/src/operator-cli.js +17837 -0
  100. package/dist/src/operator-entry.d.ts +1 -0
  101. package/dist/src/operator-entry.js +3 -0
  102. package/dist/src/runner.d.ts +47 -0
  103. package/dist/src/runner.js +16 -22
  104. package/dist/src/withMutedConsole.d.ts +2 -0
  105. package/package.json +21 -8
  106. package/dist/src/commands/_authority-runs.js +0 -111
  107. package/dist/src/commands/_operator-view.js +0 -340
  108. package/dist/src/commands/_preflight.js +0 -478
  109. package/dist/src/commands/_server-client.js +0 -382
  110. package/dist/src/commands/_snapshot-upload.js +0 -331
  111. package/dist/src/commands/_task-picker.js +0 -48
  112. package/dist/src/commands/browser.js +0 -890
  113. package/dist/src/commands/connect.js +0 -180
  114. package/dist/src/commands/inspector.js +0 -256
  115. package/dist/src/commands/task-report-bug.js +0 -1083
  116. package/dist/src/report-bug.js +0 -260
@@ -1,382 +0,0 @@
1
- // @bun
2
- // packages/cli/src/commands/_server-client.ts
3
- import { spawnSync } from "child_process";
4
- import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
5
- import { resolve as resolve2 } from "path";
6
-
7
- // packages/cli/src/runner.ts
8
- import { EventBus } from "@rig/runtime/control-plane/runtime/events";
9
- import { CliError } from "@rig/runtime/control-plane/errors";
10
- import { evaluate, loadPolicy, resolveAction } from "@rig/runtime/control-plane/runtime/guard";
11
- import { PluginManager } from "@rig/runtime/control-plane/runtime/plugins";
12
- import { loadRuntimeContextFromEnv } from "@rig/runtime/control-plane/runtime/context";
13
- import { buildBinary } from "@rig/runtime/control-plane/runtime/isolation";
14
- import { CliError as CliError2 } from "@rig/runtime/control-plane/errors";
15
-
16
- // packages/cli/src/commands/_server-client.ts
17
- import { ensureLocalRigServerConnection } from "@rig/runtime/local-server";
18
-
19
- // packages/cli/src/commands/_connection-state.ts
20
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
21
- import { homedir } from "os";
22
- import { dirname, resolve } from "path";
23
- function resolveGlobalConnectionsPath(env = process.env) {
24
- const explicit = env.RIG_CONNECTIONS_FILE?.trim();
25
- if (explicit)
26
- return resolve(explicit);
27
- const stateDir = env.RIG_GLOBAL_STATE_DIR?.trim();
28
- if (stateDir)
29
- return resolve(stateDir, "connections.json");
30
- return resolve(homedir(), ".rig", "connections.json");
31
- }
32
- function resolveRepoConnectionPath(projectRoot) {
33
- return resolve(projectRoot, ".rig", "state", "connection.json");
34
- }
35
- function readJsonFile(path) {
36
- if (!existsSync(path))
37
- return null;
38
- try {
39
- return JSON.parse(readFileSync(path, "utf8"));
40
- } catch (error) {
41
- throw new CliError2(`Invalid Rig connection state at ${path}: ${error instanceof Error ? error.message : String(error)}`, 1);
42
- }
43
- }
44
- function normalizeConnection(value) {
45
- if (!value || typeof value !== "object" || Array.isArray(value))
46
- return null;
47
- const record = value;
48
- if (record.kind === "local")
49
- return { kind: "local", mode: "auto" };
50
- if (record.kind === "remote" && typeof record.baseUrl === "string" && record.baseUrl.trim()) {
51
- const baseUrl = record.baseUrl.trim().replace(/\/+$/, "");
52
- return { kind: "remote", baseUrl };
53
- }
54
- return null;
55
- }
56
- function readGlobalConnections(options = {}) {
57
- const path = resolveGlobalConnectionsPath(options.env ?? process.env);
58
- const payload = readJsonFile(path);
59
- if (!payload || typeof payload !== "object" || Array.isArray(payload)) {
60
- return { connections: {} };
61
- }
62
- const rawConnections = payload.connections;
63
- const connections = {};
64
- if (rawConnections && typeof rawConnections === "object" && !Array.isArray(rawConnections)) {
65
- for (const [alias, raw] of Object.entries(rawConnections)) {
66
- const connection = normalizeConnection(raw);
67
- if (connection)
68
- connections[alias] = connection;
69
- }
70
- }
71
- return { connections };
72
- }
73
- function readRepoConnection(projectRoot) {
74
- const payload = readJsonFile(resolveRepoConnectionPath(projectRoot));
75
- if (!payload || typeof payload !== "object" || Array.isArray(payload))
76
- return null;
77
- const record = payload;
78
- const selected = typeof record.selected === "string" ? record.selected.trim() : "";
79
- if (!selected)
80
- return null;
81
- return {
82
- selected,
83
- project: typeof record.project === "string" ? record.project : undefined,
84
- linkedAt: typeof record.linkedAt === "string" ? record.linkedAt : undefined
85
- };
86
- }
87
- function resolveSelectedConnection(projectRoot, options = {}) {
88
- const repo = readRepoConnection(projectRoot);
89
- if (!repo)
90
- return null;
91
- if (repo.selected === "local")
92
- return { alias: "local", connection: { kind: "local", mode: "auto" } };
93
- const global = readGlobalConnections(options);
94
- const connection = global.connections[repo.selected];
95
- if (!connection) {
96
- throw new CliError2(`Selected Rig connection "${repo.selected}" was not found. Run \`rig connect list\` or \`rig connect use local\`.`, 1);
97
- }
98
- return { alias: repo.selected, connection };
99
- }
100
-
101
- // packages/cli/src/commands/_server-client.ts
102
- var cachedGitHubBearerToken;
103
- function cleanToken(value) {
104
- const trimmed = value?.trim();
105
- return trimmed ? trimmed : null;
106
- }
107
- function setGitHubBearerTokenForCurrentProcess(token) {
108
- cachedGitHubBearerToken = cleanToken(token ?? undefined);
109
- }
110
- function readPrivateRemoteSessionToken(projectRoot) {
111
- const path = resolve2(projectRoot, ".rig", "state", "github-auth.json");
112
- if (!existsSync2(path))
113
- return null;
114
- try {
115
- const parsed = JSON.parse(readFileSync2(path, "utf8"));
116
- return cleanToken(typeof parsed.apiSessionToken === "string" ? parsed.apiSessionToken : typeof parsed.sessionToken === "string" ? parsed.sessionToken : undefined);
117
- } catch {
118
- return null;
119
- }
120
- }
121
- function readGitHubBearerTokenForRemote(projectRoot) {
122
- if (cachedGitHubBearerToken !== undefined)
123
- return cachedGitHubBearerToken;
124
- const privateSession = readPrivateRemoteSessionToken(projectRoot);
125
- if (privateSession) {
126
- cachedGitHubBearerToken = privateSession;
127
- return cachedGitHubBearerToken;
128
- }
129
- const envToken = cleanToken(process.env.RIG_GITHUB_TOKEN) ?? cleanToken(process.env.GITHUB_TOKEN) ?? cleanToken(process.env.GH_TOKEN);
130
- if (envToken) {
131
- cachedGitHubBearerToken = envToken;
132
- return cachedGitHubBearerToken;
133
- }
134
- const result = spawnSync("gh", ["auth", "token"], {
135
- encoding: "utf8",
136
- timeout: 5000,
137
- stdio: ["ignore", "pipe", "ignore"]
138
- });
139
- cachedGitHubBearerToken = result.status === 0 ? cleanToken(result.stdout) : null;
140
- return cachedGitHubBearerToken;
141
- }
142
- async function ensureServerForCli(projectRoot) {
143
- try {
144
- const selected = resolveSelectedConnection(projectRoot);
145
- if (selected?.connection.kind === "remote") {
146
- return {
147
- baseUrl: selected.connection.baseUrl,
148
- authToken: readGitHubBearerTokenForRemote(projectRoot),
149
- connectionKind: "remote"
150
- };
151
- }
152
- const connection = await ensureLocalRigServerConnection(projectRoot);
153
- return {
154
- baseUrl: connection.baseUrl,
155
- authToken: connection.authToken,
156
- connectionKind: "local"
157
- };
158
- } catch (error) {
159
- if (error instanceof Error) {
160
- throw new CliError2(error.message, 1);
161
- }
162
- throw error;
163
- }
164
- }
165
- function appendTaskFilterParams(url, filters) {
166
- if (filters.assignee)
167
- url.searchParams.set("assignee", filters.assignee);
168
- if (filters.state)
169
- url.searchParams.set("state", filters.state);
170
- if (filters.status)
171
- url.searchParams.set("status", filters.status);
172
- if (filters.limit !== undefined)
173
- url.searchParams.set("limit", String(filters.limit));
174
- }
175
- function mergeHeaders(headers, authToken) {
176
- const merged = new Headers(headers);
177
- if (authToken) {
178
- merged.set("authorization", `Bearer ${authToken}`);
179
- }
180
- return merged;
181
- }
182
- function diagnosticMessage(payload) {
183
- if (!payload || typeof payload !== "object" || Array.isArray(payload))
184
- return null;
185
- const record = payload;
186
- const diagnostics = Array.isArray(record.diagnostics) ? record.diagnostics : [];
187
- const messages = diagnostics.flatMap((entry) => {
188
- if (!entry || typeof entry !== "object" || Array.isArray(entry))
189
- return [];
190
- const diagnostic = entry;
191
- const kind = typeof diagnostic.kind === "string" ? diagnostic.kind : "task-source";
192
- const message = typeof diagnostic.message === "string" ? diagnostic.message : null;
193
- return message ? [`${kind}: ${message}`] : [];
194
- });
195
- return messages.length > 0 ? messages.join("; ") : null;
196
- }
197
- async function requestServerJson(context, pathname, init = {}) {
198
- const server = await ensureServerForCli(context.projectRoot);
199
- const response = await fetch(`${server.baseUrl}${pathname}`, {
200
- ...init,
201
- headers: mergeHeaders(init.headers, server.authToken)
202
- });
203
- const text = await response.text();
204
- const payload = text.trim().length > 0 ? (() => {
205
- try {
206
- return JSON.parse(text);
207
- } catch {
208
- return null;
209
- }
210
- })() : null;
211
- if (!response.ok) {
212
- const diagnostics = diagnosticMessage(payload);
213
- const detail = diagnostics ?? (text || response.statusText);
214
- throw new CliError2(`Rig server request failed (${response.status}): ${detail}`, 1);
215
- }
216
- return payload;
217
- }
218
- async function listWorkspaceTasksViaServer(context, filters = {}) {
219
- const url = new URL("http://rig.local/api/workspace/tasks");
220
- appendTaskFilterParams(url, filters);
221
- const payload = await requestServerJson(context, `${url.pathname}${url.search}`);
222
- if (!Array.isArray(payload)) {
223
- throw new CliError2("Rig server returned an invalid task list payload.", 1);
224
- }
225
- return payload.flatMap((entry) => entry && typeof entry === "object" && !Array.isArray(entry) ? [entry] : []);
226
- }
227
- async function getWorkspaceTaskViaServer(context, taskId) {
228
- const payload = await requestServerJson(context, `/api/workspace/tasks/${encodeURIComponent(taskId)}`);
229
- if (!payload || typeof payload !== "object" || Array.isArray(payload))
230
- return null;
231
- const task = payload.task;
232
- return task && typeof task === "object" && !Array.isArray(task) ? task : null;
233
- }
234
- async function selectNextWorkspaceTaskViaServer(context, filters = {}) {
235
- const url = new URL("http://rig.local/api/workspace/tasks/next");
236
- appendTaskFilterParams(url, filters);
237
- const payload = await requestServerJson(context, `${url.pathname}${url.search}`);
238
- if (!payload || typeof payload !== "object" || Array.isArray(payload)) {
239
- throw new CliError2("Rig server returned an invalid next-task payload.", 1);
240
- }
241
- const record = payload;
242
- const rawTask = record.task;
243
- const task = rawTask && typeof rawTask === "object" && !Array.isArray(rawTask) ? rawTask : null;
244
- const count = typeof record.count === "number" && Number.isFinite(record.count) ? record.count : task ? 1 : 0;
245
- return { task, count };
246
- }
247
- async function getGitHubAuthStatusViaServer(context) {
248
- const payload = await requestServerJson(context, "/api/github/auth/status");
249
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : {};
250
- }
251
- async function postGitHubTokenViaServer(context, token, options = {}) {
252
- const payload = await requestServerJson(context, "/api/github/auth/token", {
253
- method: "POST",
254
- headers: { "content-type": "application/json" },
255
- body: JSON.stringify({ token, selectedRepo: options.selectedRepo, projectRoot: options.projectRoot })
256
- });
257
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : {};
258
- }
259
- async function prepareRemoteCheckoutViaServer(context, input) {
260
- const payload = await requestServerJson(context, `/api/projects/${encodeURIComponent(input.repoSlug)}/prepare-checkout`, {
261
- method: "POST",
262
- headers: { "content-type": "application/json" },
263
- body: JSON.stringify({ checkout: input.checkout, repoUrl: input.repoUrl, baseDir: input.baseDir })
264
- });
265
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : {};
266
- }
267
- async function registerProjectViaServer(context, input) {
268
- const payload = await requestServerJson(context, "/api/projects", {
269
- method: "POST",
270
- headers: { "content-type": "application/json" },
271
- body: JSON.stringify(input)
272
- });
273
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : {};
274
- }
275
- function sleep(ms) {
276
- return new Promise((resolve3) => setTimeout(resolve3, ms));
277
- }
278
- async function switchServerProjectRootViaServer(context, projectRoot, options = {}) {
279
- const switched = await requestServerJson(context, "/api/server/project-root", {
280
- method: "POST",
281
- headers: { "content-type": "application/json" },
282
- body: JSON.stringify({ projectRoot })
283
- });
284
- const timeoutMs = options.timeoutMs ?? 30000;
285
- const pollMs = options.pollMs ?? 1000;
286
- const deadline = Date.now() + timeoutMs;
287
- let lastError;
288
- while (Date.now() < deadline) {
289
- try {
290
- const status = await requestServerJson(context, "/api/server/status");
291
- if (status && typeof status === "object" && !Array.isArray(status)) {
292
- const record = status;
293
- if (record.projectRoot === projectRoot) {
294
- return { ok: true, switched, status: record };
295
- }
296
- lastError = `server projectRoot=${String(record.projectRoot ?? "unknown")}`;
297
- }
298
- } catch (error) {
299
- lastError = error;
300
- }
301
- await sleep(pollMs);
302
- }
303
- throw new CliError2(`Rig server did not switch to ${projectRoot} before timeout (${lastError instanceof Error ? lastError.message : String(lastError ?? "no status")}).`, 1);
304
- }
305
- async function getRunDetailsViaServer(context, runId) {
306
- const payload = await requestServerJson(context, `/api/runs/${encodeURIComponent(runId)}`);
307
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : {};
308
- }
309
- async function getRunLogsViaServer(context, runId, options = {}) {
310
- const url = new URL(`http://rig.local/api/runs/${encodeURIComponent(runId)}/logs`);
311
- if (options.limit !== undefined)
312
- url.searchParams.set("limit", String(options.limit));
313
- if (options.cursor)
314
- url.searchParams.set("cursor", options.cursor);
315
- const payload = await requestServerJson(context, `${url.pathname}${url.search}`);
316
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : { entries: [] };
317
- }
318
- async function stopRunViaServer(context, runId) {
319
- const payload = await requestServerJson(context, "/api/runs/stop", {
320
- method: "POST",
321
- headers: { "content-type": "application/json" },
322
- body: JSON.stringify({ runId })
323
- });
324
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : { ok: true, runId };
325
- }
326
- async function steerRunViaServer(context, runId, message) {
327
- const payload = await requestServerJson(context, `/api/runs/${encodeURIComponent(runId)}/steer`, {
328
- method: "POST",
329
- headers: { "content-type": "application/json" },
330
- body: JSON.stringify({ message })
331
- });
332
- return payload && typeof payload === "object" && !Array.isArray(payload) ? payload : { ok: true };
333
- }
334
- async function submitTaskRunViaServer(context, input) {
335
- const isTaskRun = Boolean(input.taskId);
336
- const endpoint = isTaskRun ? "/api/runs/task" : "/api/runs/adhoc";
337
- const payload = await requestServerJson(context, endpoint, {
338
- method: "POST",
339
- headers: {
340
- "content-type": "application/json"
341
- },
342
- body: JSON.stringify({
343
- runId: input.runId,
344
- taskId: input.taskId,
345
- title: input.title,
346
- runtimeAdapter: input.runtimeAdapter,
347
- model: input.model,
348
- runtimeMode: input.runtimeMode,
349
- interactionMode: input.interactionMode,
350
- initialPrompt: input.initialPrompt,
351
- baselineMode: input.baselineMode,
352
- prMode: input.prMode,
353
- executionTarget: "local"
354
- })
355
- });
356
- if (!payload || typeof payload !== "object" || Array.isArray(payload)) {
357
- throw new CliError2("Rig server returned an invalid run submission payload.", 1);
358
- }
359
- const runId = payload.runId;
360
- if (typeof runId !== "string" || runId.trim().length === 0) {
361
- throw new CliError2("Rig server returned no runId for the submitted run.", 1);
362
- }
363
- return { runId };
364
- }
365
- export {
366
- switchServerProjectRootViaServer,
367
- submitTaskRunViaServer,
368
- stopRunViaServer,
369
- steerRunViaServer,
370
- setGitHubBearerTokenForCurrentProcess,
371
- selectNextWorkspaceTaskViaServer,
372
- requestServerJson,
373
- registerProjectViaServer,
374
- prepareRemoteCheckoutViaServer,
375
- postGitHubTokenViaServer,
376
- listWorkspaceTasksViaServer,
377
- getWorkspaceTaskViaServer,
378
- getRunLogsViaServer,
379
- getRunDetailsViaServer,
380
- getGitHubAuthStatusViaServer,
381
- ensureServerForCli
382
- };