@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.
@@ -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
  }