@mearl/native-host
Advanced tools
| import { BackendNodeRefRegistry, type BackendNodeSnapshotRefAllocator, type PageChangeSet, type PageEffectRefEntry } from '@mearl/browser-core'; | ||
| import type { PageSession } from './cdp-session.js'; | ||
| export type PageRefEntry = PageEffectRefEntry; | ||
| export declare function getPageRefRegistry(session: PageSession): BackendNodeRefRegistry<PageRefEntry>; | ||
| export declare function beginPageSnapshotRefs(session: PageSession): BackendNodeSnapshotRefAllocator<PageRefEntry>; | ||
| export declare function resolvePageRef(session: PageSession, ref: string): PageRefEntry | undefined; | ||
| export declare function deletePageRef(session: PageSession, ref: string): void; | ||
| export declare function clearPageRefsForNavigation(session: PageSession): void; | ||
| export declare function enrichCdpPageChangeSetWithRefs(session: PageSession, observation: PageChangeSet): Promise<PageChangeSet>; |
| export declare function isInternalExtensionAction(action: unknown): boolean; | ||
| export declare function createExtensionRequestMessage(id: string, action: string, data: any, trustedInternal?: boolean): { | ||
| id: string; | ||
| action: string; | ||
| data: any; | ||
| trustedInternal?: true; | ||
| }; |
@@ -1,2 +0,2 @@ | ||
| import type { AgentChatImageInput, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| import type { AgentProvider, AgentProviderEvent, AgentProviderListSessionsOptions, AgentProviderListSessionsResult, AgentProviderResumeResult, AgentProviderSessionOptions } from './provider.js'; | ||
@@ -19,2 +19,3 @@ export declare function codexThreadUrl(providerSessionId: string): string; | ||
| private knownThreadIds; | ||
| private sessionModels; | ||
| constructor(log: (...args: any[]) => void, clientVersion: string); | ||
@@ -27,2 +28,3 @@ getDescriptor(): Promise<AgentChatProviderDescriptor>; | ||
| resumeSession(providerSessionId: string, options: AgentProviderSessionOptions): Promise<AgentProviderResumeResult>; | ||
| getSessionModel(providerSessionId: string): AgentChatModelInfo | undefined; | ||
| sendMessage(providerSessionId: string, message: string, images?: AgentChatImageInput[]): Promise<{ | ||
@@ -29,0 +31,0 @@ turnId: string; |
@@ -12,2 +12,4 @@ import type { AgentChatEvent, AgentChatCloseOptions, AgentChatEventsOptions, AgentChatEventsResult, AgentChatInterruptOptions, AgentChatListSessionsOptions, AgentChatListSessionsResult, AgentChatOpenOptions, AgentChatRefreshResult, AgentChatRespondOptions, AgentChatSendOptions, AgentChatSession, AgentChatStartOptions, AgentChatStatus, AgentInstalledSkill, AgentSkillReadResult } from '@mearl/browser-core'; | ||
| private readonly recentEventBytes; | ||
| private readonly compactedEventCounts; | ||
| private readonly truncatedEventSessions; | ||
| private readonly unsubscribe; | ||
@@ -40,2 +42,3 @@ constructor(providers: AgentProvider[], emit: (event: AgentChatEvent) => void); | ||
| private recordEvent; | ||
| private trimReplayBuffer; | ||
| private getProvider; | ||
@@ -42,0 +45,0 @@ private getSession; |
@@ -1,2 +0,2 @@ | ||
| import type { AgentChatEventKind, AgentChatImageInput, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| import type { AgentChatEventKind, AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| export interface AgentProviderEvent { | ||
@@ -44,2 +44,3 @@ providerSessionId?: string; | ||
| resumeSession(providerSessionId: string, options: AgentProviderSessionOptions): Promise<AgentProviderResumeResult>; | ||
| getSessionModel?(providerSessionId: string): AgentChatModelInfo | undefined; | ||
| validateMessageInput?(images: AgentChatImageInput[]): Promise<void>; | ||
@@ -46,0 +47,0 @@ sendMessage(providerSessionId: string, message: string, images?: AgentChatImageInput[]): Promise<{ |
@@ -1,3 +0,5 @@ | ||
| import type { AgentChatImageInput, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| import * as acp from '@agentclientprotocol/sdk'; | ||
| import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| import type { AgentProvider, AgentProviderEvent, AgentProviderListSessionsOptions, AgentProviderListSessionsResult, AgentProviderResumeResult, AgentProviderSessionOptions } from './provider.js'; | ||
| export declare function qoderModelInfo(configOptions: acp.SessionConfigOption[] | null | undefined): AgentChatModelInfo | undefined; | ||
| export declare function parseQoderSkillsList(output: string, cwd: string, home?: string): AgentInstalledSkill[]; | ||
@@ -26,2 +28,3 @@ export declare function qoderInstallCommand(platform?: NodeJS.Platform): string; | ||
| resumeSession(providerSessionId: string, options: AgentProviderSessionOptions): Promise<AgentProviderResumeResult>; | ||
| getSessionModel(providerSessionId: string): AgentChatModelInfo | undefined; | ||
| validateMessageInput(images: AgentChatImageInput[]): Promise<void>; | ||
@@ -28,0 +31,0 @@ sendMessage(providerSessionId: string, message: string, images?: AgentChatImageInput[]): Promise<{ |
@@ -16,2 +16,6 @@ /** | ||
| url: string; | ||
| emulation?: { | ||
| mobile: boolean; | ||
| touch: boolean; | ||
| }; | ||
| } | ||
@@ -18,0 +22,0 @@ export declare class CdpSession { |
@@ -7,4 +7,4 @@ /** | ||
| */ | ||
| import { type PageClickPointerType } from '@mearl/browser-core'; | ||
| import type { PageSession } from './cdp-session.js'; | ||
| import { type CdpTarget } from './discover.js'; | ||
| export declare const TYPE_INTO_ELEMENT_SRC: string; | ||
@@ -51,5 +51,2 @@ export declare const CLICK_ELEMENT_VIA_JS_SRC: string; | ||
| export declare function waitForPageLoad(session: PageSession, timeoutMs: number): Promise<void>; | ||
| export declare function waitForTargetLoad(session: { | ||
| port: number; | ||
| }, targetId: string, timeoutMs: number): Promise<CdpTarget | null>; | ||
| export declare function getPageViewportSize(session: PageSession): Promise<{ | ||
@@ -67,3 +64,3 @@ width: number; | ||
| }>; | ||
| export declare function dispatchCdpClick(session: PageSession, x: number, y: number): Promise<void>; | ||
| export declare function dispatchCdpClick(session: PageSession, x: number, y: number, pointerType: PageClickPointerType): Promise<void>; | ||
| export declare function resolveBackendNodeObjectId(session: PageSession, backendNodeId: number): Promise<string>; |
+3
-3
| { | ||
| "name": "@mearl/native-host", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "Native Messaging Host for Mearl — bridges Chrome Extension and local socket server", | ||
@@ -35,4 +35,4 @@ "type": "module", | ||
| "typescript": "^5.8.3", | ||
| "@mearl/browser-core": "2.0.1", | ||
| "@mearl/daemon-core": "2.0.1" | ||
| "@mearl/browser-core": "2.0.2", | ||
| "@mearl/daemon-core": "2.0.2" | ||
| }, | ||
@@ -39,0 +39,0 @@ "scripts": { |
| export declare function createBrowserDeveloperInstructions(tabId: number): string; |
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1050998
5.71%44
2.33%29748
5.35%