@teammates/cli 0.5.3 → 0.6.1
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/adapter.d.ts +7 -1
- package/dist/adapter.js +29 -4
- package/dist/adapter.test.js +10 -13
- package/dist/adapters/cli-proxy.d.ts +3 -0
- package/dist/adapters/cli-proxy.js +133 -108
- package/dist/cli-utils.d.ts +6 -0
- package/dist/cli-utils.js +17 -0
- package/dist/cli-utils.test.js +50 -1
- package/dist/cli.js +626 -20
- package/dist/compact.d.ts +29 -0
- package/dist/compact.js +131 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/log-parser.d.ts +53 -0
- package/dist/log-parser.js +228 -0
- package/dist/log-parser.test.d.ts +1 -0
- package/dist/log-parser.test.js +113 -0
- package/dist/orchestrator.d.ts +2 -0
- package/dist/orchestrator.js +4 -0
- package/dist/registry.js +4 -4
- package/dist/types.d.ts +30 -0
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -123,6 +123,15 @@ export type QueueEntry = {
|
|
|
123
123
|
teammate: string;
|
|
124
124
|
task: string;
|
|
125
125
|
system?: boolean;
|
|
126
|
+
migration?: boolean;
|
|
127
|
+
/** Frozen conversation snapshot taken at queue time (used by @everyone). */
|
|
128
|
+
contextSnapshot?: {
|
|
129
|
+
history: {
|
|
130
|
+
role: string;
|
|
131
|
+
text: string;
|
|
132
|
+
}[];
|
|
133
|
+
summary: string;
|
|
134
|
+
};
|
|
126
135
|
} | {
|
|
127
136
|
type: "compact";
|
|
128
137
|
teammate: string;
|
|
@@ -139,11 +148,32 @@ export type QueueEntry = {
|
|
|
139
148
|
type: "debug";
|
|
140
149
|
teammate: string;
|
|
141
150
|
task: string;
|
|
151
|
+
} | {
|
|
152
|
+
type: "script";
|
|
153
|
+
teammate: string;
|
|
154
|
+
task: string;
|
|
142
155
|
} | {
|
|
143
156
|
type: "summarize";
|
|
144
157
|
teammate: string;
|
|
145
158
|
task: string;
|
|
146
159
|
};
|
|
160
|
+
/** State captured when an agent is interrupted mid-task. */
|
|
161
|
+
export interface InterruptState {
|
|
162
|
+
/** The teammate that was interrupted */
|
|
163
|
+
teammate: string;
|
|
164
|
+
/** The original task prompt (user-facing, not the full wrapped prompt) */
|
|
165
|
+
originalTask: string;
|
|
166
|
+
/** The full prompt sent to the agent (identity + memory + task) */
|
|
167
|
+
originalFullPrompt: string;
|
|
168
|
+
/** Condensed conversation log from the interrupted session */
|
|
169
|
+
conversationLog: string;
|
|
170
|
+
/** How long the agent ran before interruption (ms) */
|
|
171
|
+
elapsedMs: number;
|
|
172
|
+
/** Number of tool calls made before interruption */
|
|
173
|
+
toolCallCount: number;
|
|
174
|
+
/** Files written/modified before interruption */
|
|
175
|
+
filesChanged: string[];
|
|
176
|
+
}
|
|
147
177
|
/** A registered slash command. */
|
|
148
178
|
export interface SlashCommand {
|
|
149
179
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teammates/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
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",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@github/copilot-sdk": "^0.1.32",
|
|
37
|
-
"@teammates/consolonia": "0.
|
|
38
|
-
"@teammates/recall": "0.
|
|
37
|
+
"@teammates/consolonia": "0.6.0",
|
|
38
|
+
"@teammates/recall": "0.6.0",
|
|
39
39
|
"chalk": "^5.6.2",
|
|
40
40
|
"ora": "^9.3.0"
|
|
41
41
|
},
|