mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-27 08:41:18 +00:00
* feat(browser): add copilot security contracts * fix(gateway): expose verified client identity to handlers * feat(browser): add secure per-tab copilot panel Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * refactor(browser): separate copilot gateway hint custody * fix(browser): preserve legacy pairing parse shape * fix(browser): harden copilot lifecycle custody Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * fix(browser): enforce copilot lifecycle boundaries Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * style(browser): format copilot sources Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * fix(browser): preserve copilot consent revocation Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * refactor(browser): split copilot custody owners Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * test(browser): normalize websocket array buffers Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * chore(protocol): regenerate Swift gateway models Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * refactor(browser): model copilot runtime entrypoints Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * fix(browser): honor extension build boundaries Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * test(gateway): assert targeted chat delivery Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * test(gateway): cover targeted delivery calls Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * fix(browser): declare copilot build dependencies Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * fix(ci): clear browser copilot gate failures Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * test(ci): cover copilot lint exclusion Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * fix(browser): gate copilot on relay custody Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> * test(browser): bound copilot relay frames Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com> --------- Co-authored-by: Cameron Beeley <cameron.beeley@gmail.com>
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
export const GATEWAY_CLIENT_CAPS: Record<string, string>;
|
|
export const GATEWAY_CLIENT_IDS: Record<string, string>;
|
|
export const GATEWAY_CLIENT_MODES: Record<string, string>;
|
|
export const MIN_CLIENT_PROTOCOL_VERSION: number;
|
|
export const PROTOCOL_VERSION: number;
|
|
|
|
export const ed25519Utils: {
|
|
randomSecretKey(): Uint8Array;
|
|
};
|
|
export function getPublicKeyAsync(secretKey: Uint8Array): Promise<Uint8Array>;
|
|
export function signAsync(message: Uint8Array, secretKey: Uint8Array): Promise<Uint8Array>;
|
|
|
|
export class GatewayProtocolRequestError extends Error {
|
|
constructor(error: Record<string, unknown>);
|
|
}
|
|
|
|
export class GatewayProtocolClient {
|
|
constructor(options: Record<string, unknown>);
|
|
start(): void;
|
|
stop(): void;
|
|
request(method: string, params: unknown, options?: unknown): Promise<unknown>;
|
|
}
|
|
|
|
export class GatewayBrowserDeviceAuthLifecycle {
|
|
constructor(options: Record<string, unknown>);
|
|
buildPlan(options: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
acceptHello(hello: unknown, plan: unknown): Promise<void>;
|
|
clearStoredToken(plan: unknown): Promise<void>;
|
|
}
|