@mearl/native-host 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,2 @@
1
- export interface AgentSpawnCommand {
2
- command: string;
3
- args: string[];
4
- }
5
- export declare function agentSpawnCommand(executable: string, args: string[], platform?: NodeJS.Platform, commandInterpreter?: string | undefined): AgentSpawnCommand;
6
- export declare function createAgentChildEnv(sourceEnv?: NodeJS.ProcessEnv, nodeExecutable?: string): NodeJS.ProcessEnv;
1
+ export { prependNodePath as createAgentChildEnv, resolveSpawnCommand as agentSpawnCommand, } from '@mearl/setup/process';
2
+ export type { SpawnCommand as AgentSpawnCommand } from '@mearl/setup/process';
@@ -1,15 +1,12 @@
1
1
  import type { AgentSkillCheckUpdatesResult, AgentSkillCheckUpdatesOptions, AgentSkillCliStatus, AgentSkillInstallOptions, AgentSkillMutationOptions, AgentSkillMutationResult, AgentSkillScope, AgentSkillUpdate } from '@mearl/browser-core';
2
- interface SkillCliOutput {
3
- stdout: string;
4
- stderr: string;
5
- }
6
- export type SkillCliRunner = (executable: string, args: string[], cwd?: string) => Promise<SkillCliOutput>;
2
+ import { resolveAliSkillsExecutable, type AliSkillsCliRunner } from '@mearl/setup/ali-skills';
3
+ export type SkillCliRunner = AliSkillsCliRunner;
4
+ export { resolveAliSkillsExecutable };
5
+ export declare const runSkillCli: SkillCliRunner;
7
6
  export interface AgentSkillManagerOptions {
8
7
  resolveExecutable?: () => string | null;
9
8
  run?: SkillCliRunner;
10
9
  }
11
- export declare function resolveAliSkillsExecutable(): string | null;
12
- export declare const runSkillCli: SkillCliRunner;
13
10
  export declare function parseSkillUpdates(stdout: string, scope: AgentSkillScope): AgentSkillUpdate[];
14
11
  export declare class AgentSkillManager {
15
12
  private readonly executableResolver;
@@ -22,4 +19,3 @@ export declare class AgentSkillManager {
22
19
  uninstall(data: AgentSkillMutationOptions): Promise<AgentSkillMutationResult>;
23
20
  private mutationContext;
24
21
  }
25
- export {};
@@ -32,13 +32,14 @@ export interface CdpViewportMetrics {
32
32
  export declare function nodeFetch(urlStr: string, options?: {
33
33
  method?: string;
34
34
  headers?: Record<string, string>;
35
- body?: string;
35
+ body?: string | Uint8Array;
36
36
  timeoutMs?: number;
37
37
  }): Promise<{
38
38
  status: number;
39
39
  statusText: string;
40
40
  headers: Record<string, string>;
41
41
  body: string;
42
+ bodyBuffer: Buffer;
42
43
  }>;
43
44
  export declare function getCookiesForUrl(session: PageSession, targetUrl: string): Promise<Map<string, string>>;
44
45
  export declare function decodeTracknick(raw: string): string;
@@ -1,7 +1,9 @@
1
1
  import { type PageActNavigationObserver } from '@mearl/browser-core';
2
- import type { PageSession } from './cdp-session.js';
3
- export declare function startCdpNavigationObserver(session: PageSession, urlBefore: string, options?: {
2
+ import type { CdpSession, PageSession } from './cdp-session.js';
3
+ export declare function startCdpNavigationObserver(cdpSession: CdpSession, pageSession: PageSession, urlBefore: string, options?: {
4
4
  trackNetwork?: boolean;
5
5
  networkIdleMs?: number;
6
6
  contentReadyAfterMs?: number;
7
+ trackOpenedTabs?: boolean;
8
+ sourceTabId?: number;
7
9
  }): Promise<PageActNavigationObserver>;
@@ -0,0 +1,2 @@
1
+ import { type SendRequestParams } from '@mearl/browser-core';
2
+ export declare function executeNodeSendRequest(data: SendRequestParams, cookieMap?: Map<string, string>): Promise<any>;
@@ -0,0 +1,7 @@
1
+ import { type RunActionsParams, type SendRequestParams } from '@mearl/browser-core';
2
+ type SendExtensionTransferAction = (action: string, data: any, timeoutMs: number) => Promise<any>;
3
+ export declare function hasSendRequestFiles(data: unknown): boolean;
4
+ export declare function hasRunActionsSendRequestFiles(data: unknown): boolean;
5
+ export declare function sendRequestWithTransferredFiles(data: SendRequestParams, send: SendExtensionTransferAction): Promise<any>;
6
+ export declare function sendRunActionsWithTransferredFiles(data: RunActionsParams, send: SendExtensionTransferAction, resolveTimeoutMs: (data: RunActionsParams) => number): Promise<any>;
7
+ export {};