@cline/core 0.0.71-nightly.1786157470 → 0.0.72

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,6 @@
1
1
  import type { FetchLike } from "@modelcontextprotocol/sdk/shared/transport.js";
2
2
  import type { McpServerClientFactory } from "./types";
3
- export declare const DEFAULT_MCP_CONNECT_TIMEOUT_MS = 30000;
3
+ export declare const DEFAULT_MCP_CONNECT_TIMEOUT_MS = 3000;
4
4
  export interface DefaultMcpServerClientFactoryOptions {
5
5
  settingsPath?: string;
6
6
  clientName?: string;
@@ -43,6 +43,30 @@ export interface PluginSandboxOptions extends PluginTargeting {
43
43
  */
44
44
  telemetryAvailable?: boolean;
45
45
  }
46
+ /**
47
+ * Pick the bootstrap the sandbox subprocess should run.
48
+ *
49
+ * Sibling compiled candidates always match the running host build, so they
50
+ * win. When the host runs from source (the `.ts` bootstrap exists next to
51
+ * this module), the sandbox must run that SAME source bootstrap: the
52
+ * wrapper/executable fallbacks locate compiled bootstraps from a separately
53
+ * installed CLI package (e.g. a published version in the package-manager
54
+ * cache), and mixing that code with a source host silently breaks plugin
55
+ * loading because its module resolution points at the other installation's
56
+ * layout. Those fallbacks exist only for compiled hosts
57
+ * (`bun build --compile`) where import.meta points inside the binary and no
58
+ * sibling file exists on real disk.
59
+ */
60
+ export declare function selectBootstrapCandidate(options: {
61
+ siblingCandidates: string[];
62
+ sourceBootstrapPath: string;
63
+ installedCandidates: Array<string | undefined>;
64
+ exists?: (path: string) => boolean;
65
+ }): {
66
+ file: string;
67
+ } | {
68
+ sourcePath: string;
69
+ };
46
70
  export declare function loadSandboxedPlugins(options: PluginSandboxOptions): Promise<{
47
71
  extensions: AgentConfig["extensions"];
48
72
  pluginPaths: string[];
@@ -3,3 +3,13 @@
3
3
  * lifecycle handlers are installed.
4
4
  */
5
5
  export declare const hubDaemonReady: Promise<void>;
6
+ /**
7
+ * Abort-family rejections are expected daemon noise, not fatal faults: when a
8
+ * user cancels a turn, in-flight provider streams and fetches can reject on a
9
+ * floating promise after the run has already settled (DOMException
10
+ * "AbortError" from fetch/undici, Node ABORT_ERR, or the runtime's own
11
+ * AgentRuntimeAbortError). Exiting on those kills every resident session in
12
+ * the daemon — the next message from any connected client then lands on
13
+ * `session_not_found` and forces a rebuild from disk.
14
+ */
15
+ export declare function isAbortRejection(reason: unknown): boolean;