mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 15:04:13 +08:00
29 lines
617 B
TypeScript
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;
|
|
}; |