mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 09:46:16 +00:00
mac: bundle web chat assets
This commit is contained in:
35
apps/macos/Sources/Clawdis/Resources/WebChat/components/sandbox/ArtifactsRuntimeProvider.d.ts
vendored
Normal file
35
apps/macos/Sources/Clawdis/Resources/WebChat/components/sandbox/ArtifactsRuntimeProvider.d.ts
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { SandboxRuntimeProvider } from "./SandboxRuntimeProvider.js";
|
||||
interface ArtifactsPanelLike {
|
||||
artifacts: Map<string, {
|
||||
content: string;
|
||||
}>;
|
||||
tool: {
|
||||
execute(toolCallId: string, args: {
|
||||
command: string;
|
||||
filename: string;
|
||||
content?: string;
|
||||
}): Promise<any>;
|
||||
};
|
||||
}
|
||||
interface AgentLike {
|
||||
appendMessage(message: any): void;
|
||||
}
|
||||
/**
|
||||
* Artifacts Runtime Provider
|
||||
*
|
||||
* Provides programmatic access to session artifacts from sandboxed code.
|
||||
* Allows code to create, read, update, and delete artifacts dynamically.
|
||||
* Supports both online (extension) and offline (downloaded HTML) modes.
|
||||
*/
|
||||
export declare class ArtifactsRuntimeProvider implements SandboxRuntimeProvider {
|
||||
private artifactsPanel;
|
||||
private agent?;
|
||||
private readWrite;
|
||||
constructor(artifactsPanel: ArtifactsPanelLike, agent?: AgentLike | undefined, readWrite?: boolean);
|
||||
getData(): Record<string, any>;
|
||||
getRuntime(): (sandboxId: string) => void;
|
||||
handleMessage(message: any, respond: (response: any) => void): Promise<void>;
|
||||
getDescription(): string;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=ArtifactsRuntimeProvider.d.ts.map
|
||||
Reference in New Issue
Block a user