@mearl/native-host
Advanced tools
| import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| import type { AgentProvider, AgentProviderEvent, AgentProviderListSessionsOptions, AgentProviderListSessionsResult, AgentProviderResumeResult, AgentProviderSessionOptions } from './provider.js'; | ||
| interface CodexExecutableCandidateOptions { | ||
| env?: NodeJS.ProcessEnv; | ||
| homedir?: () => string; | ||
| platform?: NodeJS.Platform; | ||
| processExecPath?: string; | ||
| readdirSync?: typeof import('node:fs').readdirSync; | ||
| } | ||
| export declare function codexExecutableCandidatePaths(options?: CodexExecutableCandidateOptions): string[]; | ||
| export declare function codexThreadUrl(providerSessionId: string): string; | ||
@@ -52,1 +60,2 @@ export declare function externalOpenCommand(url: string, platform?: NodeJS.Platform): { | ||
| } | ||
| export {}; |
@@ -0,1 +1,2 @@ | ||
| import fs from 'node:fs'; | ||
| export type AgentExecutableResolution = { | ||
@@ -22,2 +23,13 @@ executable: string; | ||
| } | ||
| interface AgentExecutableCandidateOptions { | ||
| executableNames: string[]; | ||
| configuredPath?: string; | ||
| env?: NodeJS.ProcessEnv; | ||
| extraUserCandidates?: string[]; | ||
| home: string; | ||
| platform?: NodeJS.Platform; | ||
| processExecPath?: string; | ||
| readdirSync?: typeof fs.readdirSync; | ||
| } | ||
| export declare function agentExecutableCandidatePaths({ executableNames, configuredPath, env, extraUserCandidates, home, platform, processExecPath, readdirSync, }: AgentExecutableCandidateOptions): string[]; | ||
| export declare class AgentExecutableResolver { | ||
@@ -24,0 +36,0 @@ private readonly options; |
@@ -1,2 +0,2 @@ | ||
| export { prependNodePath as createAgentChildEnv, resolveSpawnCommand as agentSpawnCommand, } from '@mearl/setup/process'; | ||
| export { prependNodePath as createAgentChildEnv, resolveSpawnCommand as agentSpawnCommand, versionManagerExecutableCandidates, } from '@mearl/setup/process'; | ||
| export type { SpawnCommand as AgentSpawnCommand } from '@mearl/setup/process'; |
@@ -0,1 +1,2 @@ | ||
| import fs from 'node:fs'; | ||
| import * as acp from '@agentclientprotocol/sdk'; | ||
@@ -7,2 +8,10 @@ import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor, AgentInstalledSkill } from '@mearl/browser-core'; | ||
| export declare function qoderInstallCommand(platform?: NodeJS.Platform): string; | ||
| interface QoderExecutableCandidateOptions { | ||
| env?: NodeJS.ProcessEnv; | ||
| homedir?: () => string; | ||
| platform?: NodeJS.Platform; | ||
| processExecPath?: string; | ||
| readdirSync?: typeof fs.readdirSync; | ||
| } | ||
| export declare function qoderExecutableCandidatePaths(options?: QoderExecutableCandidateOptions): string[]; | ||
| export declare class QoderAgentProvider implements AgentProvider { | ||
@@ -57,1 +66,2 @@ private readonly log; | ||
| } | ||
| export {}; |
@@ -7,4 +7,5 @@ /** | ||
| import type { MtopRequest, RumEvent, ConsoleLog, RequestBufferAccounting } from '@mearl/browser-core'; | ||
| import { type CaptureSequenceState } from '@mearl/browser-core'; | ||
| import type { CdpClient, CdpChildSession } from './client.js'; | ||
| interface PartialRequest { | ||
| interface PartialRequest extends MtopRequest { | ||
| id: number; | ||
@@ -36,3 +37,3 @@ requestId: string; | ||
| proxyData: any; | ||
| startTs: number; | ||
| startTs?: number; | ||
| } | ||
@@ -46,5 +47,9 @@ export interface CdpBuffers { | ||
| requestBufferAccounting: RequestBufferAccounting; | ||
| capture: CaptureSequenceState & { | ||
| droppedRequestsThroughSequence: number; | ||
| droppedLogsThroughSequence: number; | ||
| }; | ||
| } | ||
| export declare function createBuffers(): CdpBuffers; | ||
| export declare function setupBufferListeners(client: CdpClient | CdpChildSession, buffers: CdpBuffers): void; | ||
| export declare function createBuffers(tabId?: number): CdpBuffers; | ||
| export declare function setupBufferListeners(client: CdpClient | CdpChildSession, buffers: CdpBuffers): Promise<void>; | ||
| export {}; |
@@ -12,2 +12,3 @@ /** | ||
| export interface PageSession { | ||
| tabId: number; | ||
| client: CdpClient | CdpChildSession; | ||
@@ -14,0 +15,0 @@ buffers: CdpBuffers; |
@@ -13,8 +13,7 @@ /** | ||
| /** | ||
| * Runs a page interaction action with built-in observation: executes the raw | ||
| * handler inside `runPageAct` and reports resulting page changes / navigation | ||
| * in the same round trip. Callers opt out with `observe: false`, which | ||
| * dispatches the raw handler directly. `run_actions` steps never go through | ||
| * this wrapper — they use dispatchCdpAction and stay lightweight. | ||
| * Runs a page interaction action with built-in observation and diagnostic | ||
| * deltas. `observe: false` disables DOM/navigation observation; | ||
| * `diagnostics: false` also disables the atomic console/network result. | ||
| * `run_actions` stays lightweight and never enters this wrapper. | ||
| */ | ||
| export declare function cdpObservedPageAction(session: CdpSession, action: PageActAction, data: any, controlSource?: ControlSource): Promise<any>; |
| /** | ||
| * CDP request/log/event buffer query handlers. | ||
| */ | ||
| import type { GetEventsParams, GetLogsParams, GetRequestsParams } from '@mearl/browser-core'; | ||
| import type { CaptureCheckpointParams, GetEventsParams, GetLogsParams, GetRequestsParams, PageDiagnosticsOptions } from '@mearl/browser-core'; | ||
| import type { PageSession } from './cdp-session.js'; | ||
| export declare function cdpGetRequests(session: PageSession, data: GetRequestsParams): Promise<any>; | ||
| export declare function cdpGetLogs(session: PageSession, data: GetLogsParams): Promise<any>; | ||
| export declare function cdpCaptureCheckpoint(session: PageSession, _data: CaptureCheckpointParams): Promise<any>; | ||
| export declare function collectCdpPageDiagnostics(session: PageSession, after: string, diagnostics: PageDiagnosticsOptions): Promise<Record<string, any>>; | ||
| export declare function cdpGetEvents(session: PageSession, data: GetEventsParams): Promise<any>; |
+4
-4
| { | ||
| "name": "@mearl/native-host", | ||
| "version": "2.2.2", | ||
| "version": "2.3.0", | ||
| "description": "Native Messaging Host for Mearl — bridges Chrome Extension and local socket server", | ||
@@ -35,5 +35,5 @@ "type": "module", | ||
| "typescript": "^5.8.3", | ||
| "@mearl/browser-core": "2.2.2", | ||
| "@mearl/daemon-core": "2.2.2", | ||
| "@mearl/setup": "2.2.2" | ||
| "@mearl/daemon-core": "2.3.0", | ||
| "@mearl/browser-core": "2.3.0", | ||
| "@mearl/setup": "2.3.0" | ||
| }, | ||
@@ -40,0 +40,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
1133656
1.54%31848
1.32%10
25%