@love-moon/conductor-cli 0.2.38 → 0.2.40
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/bin/conductor-config.js +16 -0
- package/bin/conductor-fire.js +532 -155
- package/bin/conductor-serve-ai.js +145 -0
- package/bin/conductor.js +5 -1
- package/package.json +6 -6
- package/src/ai-manager-handlers.js +51 -47
- package/src/daemon.js +346 -125
- package/src/fire/resume.js +498 -107
- package/src/handoff-log-mask.js +64 -0
- package/src/runtime-backends.js +111 -18
- package/src/serve-ai/adapter.js +383 -0
- package/src/serve-ai/config.js +133 -0
- package/src/serve-ai/errors.js +28 -0
- package/src/serve-ai/image-handler.js +92 -0
- package/src/serve-ai/index.js +529 -0
package/bin/conductor-config.js
CHANGED
|
@@ -37,6 +37,11 @@ const DEFAULT_CLIs = {
|
|
|
37
37
|
execArgs: "",
|
|
38
38
|
description: "OpenCode CLI (Conductor runs opencode serve with permission=allow)"
|
|
39
39
|
},
|
|
40
|
+
copilot: {
|
|
41
|
+
command: "copilot",
|
|
42
|
+
execArgs: "",
|
|
43
|
+
description: "GitHub Copilot (built in via SDK)"
|
|
44
|
+
},
|
|
40
45
|
};
|
|
41
46
|
|
|
42
47
|
const backendUrl =
|
|
@@ -63,6 +68,13 @@ function colorize(text, color) {
|
|
|
63
68
|
return `${COLORS[color] || ""}${text}${COLORS.reset}`;
|
|
64
69
|
}
|
|
65
70
|
|
|
71
|
+
function isBuiltInCopilotAvailable() {
|
|
72
|
+
return Boolean(
|
|
73
|
+
packageJson?.dependencies?.["@github/copilot-sdk"] ||
|
|
74
|
+
packageJson?.optionalDependencies?.["@github/copilot-sdk"],
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
66
78
|
function buildConfigEntryLines(cli, info, { commented = false } = {}) {
|
|
67
79
|
const fullCommand = info.execArgs
|
|
68
80
|
? `${info.command} ${info.execArgs}`
|
|
@@ -278,6 +290,10 @@ function detectInstalledCLIs() {
|
|
|
278
290
|
if (!RUNTIME_SUPPORTED_BACKENDS.includes(key)) {
|
|
279
291
|
continue;
|
|
280
292
|
}
|
|
293
|
+
if (key === "copilot" && isBuiltInCopilotAvailable()) {
|
|
294
|
+
detected.push(key);
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
281
297
|
if (isCommandAvailable(info.command)) {
|
|
282
298
|
detected.push(key);
|
|
283
299
|
}
|