Files
claude-code-action/src/types/resume.ts
Ashwin Bhat 733e2f5302 Merge pull request #8 from anthropic-labs/ashwin/resumefix
feat: add resume endpoint support for remote-agent mode
2025-08-21 20:20:39 -07:00

29 lines
617 B
TypeScript

/**
* 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;
};