mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-24 07:24:12 +08:00
Merge pull request #8 from anthropic-labs/ashwin/resumefix
feat: add resume endpoint support for remote-agent mode
This commit is contained in:
29
src/types/resume.ts
Normal file
29
src/types/resume.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user