Initialize remote IDE scaffold
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
export declare const gitZoneOpenCodePath = "/services/git-zone/opencode";
|
||||
export declare const GitZoneOpenCodeServer: unique symbol;
|
||||
export interface IGitZoneOpenCodeConnectionInfo {
|
||||
baseUrl: string;
|
||||
port: number;
|
||||
workspacePath: string;
|
||||
autoStart: boolean;
|
||||
}
|
||||
export interface IGitZoneOpenCodeEvent {
|
||||
type: string;
|
||||
id?: string;
|
||||
retry?: number;
|
||||
data?: unknown;
|
||||
raw: string;
|
||||
}
|
||||
export interface IGitZoneOpenCodeClient {
|
||||
onOpenCodeEvent(event: IGitZoneOpenCodeEvent): void;
|
||||
}
|
||||
export interface IGitZoneOpenCodePromptBody {
|
||||
messageID?: string;
|
||||
model?: {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
agent?: string;
|
||||
noReply?: boolean;
|
||||
system?: string;
|
||||
tools?: Record<string, boolean>;
|
||||
parts: Array<{
|
||||
type: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
}
|
||||
export interface IGitZoneOpenCodeServer {
|
||||
setClient(client: IGitZoneOpenCodeClient | undefined): void;
|
||||
getConnectionInfo(): Promise<IGitZoneOpenCodeConnectionInfo>;
|
||||
health(): Promise<unknown>;
|
||||
providers(): Promise<unknown>;
|
||||
agents(): Promise<unknown>;
|
||||
sessions(): Promise<unknown>;
|
||||
createSession(title?: string): Promise<unknown>;
|
||||
messages(sessionId: string, limit?: number): Promise<unknown>;
|
||||
prompt(sessionId: string, body: IGitZoneOpenCodePromptBody): Promise<unknown>;
|
||||
promptAsync(sessionId: string, body: IGitZoneOpenCodePromptBody): Promise<void>;
|
||||
command(sessionId: string, command: string, commandArguments?: string): Promise<unknown>;
|
||||
abort(sessionId: string): Promise<unknown>;
|
||||
diff(sessionId: string, messageId?: string): Promise<unknown>;
|
||||
todo(sessionId: string): Promise<unknown>;
|
||||
respondToPermission(sessionId: string, permissionId: string, response: string, remember?: boolean): Promise<unknown>;
|
||||
}
|
||||
//# sourceMappingURL=gitzone-opencode-protocol.d.ts.map
|
||||
Reference in New Issue
Block a user