@teammates/cli 0.2.0 → 0.2.2
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/dist/cli.js +5 -4
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,6 @@ import { App, ChatView, Control, concat, esc, Interview, pen, renderMarkdown, St
|
|
|
19
19
|
import chalk from "chalk";
|
|
20
20
|
import ora from "ora";
|
|
21
21
|
import { CliProxyAdapter, PRESETS } from "./adapters/cli-proxy.js";
|
|
22
|
-
import { CopilotAdapter } from "./adapters/copilot.js";
|
|
23
22
|
import { EchoAdapter } from "./adapters/echo.js";
|
|
24
23
|
import { findAtMention, isImagePath, relativeTime, wrapLine, } from "./cli-utils.js";
|
|
25
24
|
import { compactEpisodic } from "./compact.js";
|
|
@@ -87,11 +86,13 @@ async function findTeammatesDir() {
|
|
|
87
86
|
}
|
|
88
87
|
return null;
|
|
89
88
|
}
|
|
90
|
-
function resolveAdapter(name) {
|
|
89
|
+
async function resolveAdapter(name) {
|
|
91
90
|
if (name === "echo")
|
|
92
91
|
return new EchoAdapter();
|
|
93
|
-
// GitHub Copilot SDK adapter
|
|
92
|
+
// GitHub Copilot SDK adapter — lazy-loaded to avoid pulling in
|
|
93
|
+
// @github/copilot-sdk (and vscode-jsonrpc) when not needed.
|
|
94
94
|
if (name === "copilot") {
|
|
95
|
+
const { CopilotAdapter } = await import("./adapters/copilot.js");
|
|
95
96
|
return new CopilotAdapter({
|
|
96
97
|
model: modelOverride,
|
|
97
98
|
});
|
|
@@ -1919,7 +1920,7 @@ Do NOT modify any other teammate's files. Only edit your own SOUL.md and daily l
|
|
|
1919
1920
|
// ─── Lifecycle ────────────────────────────────────────────────────
|
|
1920
1921
|
async start() {
|
|
1921
1922
|
let teammatesDir = await findTeammatesDir();
|
|
1922
|
-
const adapter = resolveAdapter(this.adapterName);
|
|
1923
|
+
const adapter = await resolveAdapter(this.adapterName);
|
|
1923
1924
|
this.adapter = adapter;
|
|
1924
1925
|
// No .teammates/ found — offer onboarding or solo mode
|
|
1925
1926
|
if (!teammatesDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teammates/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Agent-agnostic CLI for teammates. Routes tasks, manages handoffs, and plugs into any coding agent backend.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@github/copilot-sdk": "
|
|
34
|
-
"@teammates/consolonia": "
|
|
33
|
+
"@github/copilot-sdk": "^0.1.32",
|
|
34
|
+
"@teammates/consolonia": "^0.2.0",
|
|
35
35
|
"chalk": "^5.6.2",
|
|
36
36
|
"ora": "^9.3.0"
|
|
37
37
|
},
|