@mearl/native-host
Advanced tools
| import { type CommandRunner } from '@mearl/setup/process'; | ||
| export declare const NATIVE_HOST_UPDATE_TIMEOUT_MS: number; | ||
| export type NativeHostUpdateError = 'lock-timeout' | 'network' | 'package-unavailable' | 'setup-failed' | 'timeout' | 'verification-failed' | 'unknown'; | ||
| export interface NativeHostUpdateCommand { | ||
| args: string[]; | ||
| } | ||
| type UpdateLockRunner = <T>(targetVersion: string, operation: () => Promise<T>) => Promise<T>; | ||
| export interface RunNativeHostUpdateOptions { | ||
| areTargetsInstalled?: (targetReleaseLine: string, environment: NodeJS.ProcessEnv) => Promise<boolean>; | ||
| environment?: NodeJS.ProcessEnv; | ||
| nodePath?: string; | ||
| packageBinDirectory?: string | null; | ||
| packageManagerCommand?: string | null; | ||
| packageRunner?: string; | ||
| platform?: NodeJS.Platform; | ||
| runner?: CommandRunner; | ||
| timeoutMs?: number; | ||
| updateLockPath?: string; | ||
| withUpdateLock?: UpdateLockRunner; | ||
| } | ||
| export interface NativeHostUpdateCoordinatorOptions { | ||
| hostVersion: string; | ||
| log: (...args: unknown[]) => void; | ||
| requestRestart: () => void | Promise<void>; | ||
| runUpdate: (targetVersion: string) => Promise<void>; | ||
| } | ||
| export declare class NativeHostUpdateFailure extends Error { | ||
| readonly updateError: NativeHostUpdateError; | ||
| constructor(updateError: NativeHostUpdateError, message: string); | ||
| } | ||
| export declare function nativeHostUpdateCommand(targetVersion: string): NativeHostUpdateCommand; | ||
| export declare function runNativeHostUpdate(targetVersion: string, options?: RunNativeHostUpdateOptions): Promise<void>; | ||
| export declare class NativeHostUpdateCoordinator { | ||
| #private; | ||
| private readonly options; | ||
| constructor(options: NativeHostUpdateCoordinatorOptions); | ||
| evaluate(extensionVersion: unknown, checkForUpdates: unknown): void; | ||
| } | ||
| export {}; |
+4
-4
| { | ||
| "name": "@mearl/native-host", | ||
| "version": "2.3.0", | ||
| "version": "2.4.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/daemon-core": "2.3.0", | ||
| "@mearl/browser-core": "2.3.0", | ||
| "@mearl/setup": "2.3.0" | ||
| "@mearl/browser-core": "2.4.0", | ||
| "@mearl/daemon-core": "2.4.0", | ||
| "@mearl/setup": "2.4.0" | ||
| }, | ||
@@ -40,0 +40,0 @@ "scripts": { |
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.
1154987
1.88%52
1.96%32355
1.59%9
-10%