Merge pull request #8 from anthropic-labs/ashwin/resumefix

feat: add resume endpoint support for remote-agent mode
This commit is contained in:
Ashwin Bhat
2025-08-19 20:01:48 -07:00
parent 1e24c646ef
commit 733e2f5302
3 changed files with 201 additions and 2 deletions

29
src/types/resume.ts Normal file
View File

@@ -0,0 +1,29 @@
/**
* Types for resume endpoint functionality
*/
/**
* Message structure from the resume endpoint
* This matches the structure used in Claude CLI's teleport feature
*/
export type ResumeMessage = {
role: "user" | "assistant" | "system";
content: string | Array<{ type: string; text?: string; [key: string]: any }>;
[key: string]: any;
};
/**
* Response structure from the resume endpoint
*/
export type ResumeResponse = {
log: ResumeMessage[];
branch?: string;
};
/**
* Result after processing resume endpoint
*/
export type ResumeResult = {
messages: ResumeMessage[];
branchName: string;
};