@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/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.5.3",
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.5.3",
38
- "@teammates/recall": "0.5.3",
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
  },