@cline/core 0.0.93 → 0.0.94
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.
- package/dist/cloud/api.d.ts +3 -0
- package/dist/cloud/controller.d.ts +3 -0
- package/dist/cloud/index.js +17 -17
- package/dist/extensions/plugin/plugin-config-loader.d.ts +9 -10
- package/dist/extensions/plugin/plugin-contributions.d.ts +3 -3
- package/dist/extensions/plugin/plugin-registry.d.ts +26 -57
- package/dist/extensions/plugin/plugin-sandbox.d.ts +8 -5
- package/dist/extensions/plugin-sandbox-bootstrap.js +3 -3
- package/dist/extensions/tools/definitions.d.ts +1 -1
- package/dist/extensions/tools/types.d.ts +3 -2
- package/dist/hub/daemon/entry.d.ts +0 -8
- package/dist/hub/daemon/entry.js +225 -226
- package/dist/hub/daemon/index.d.ts +24 -0
- package/dist/hub/discovery/index.d.ts +8 -1
- package/dist/hub/index.js +212 -212
- package/dist/hub/runtime-host/hub-runtime-host.d.ts +3 -0
- package/dist/index.js +229 -229
- package/dist/remote/remote-environments.d.ts +1 -0
- package/dist/services/telemetry/index.js +1 -1
- package/package.json +8 -12
- package/dist/remote/remote-helper-entry.d.ts +0 -1
- package/dist/remote/remote-helper-entry.js +0 -5
- package/dist/remote/remote-helper.d.ts +0 -29
- package/dist/remote/remote-helper.js +0 -4
|
@@ -4,11 +4,22 @@ export interface DetachedHubOptions extends HubEndpointOverrides {
|
|
|
4
4
|
allowPortFallback?: boolean;
|
|
5
5
|
/** Disable account-wide connector supervision for session-only Hubs. Defaults to true. */
|
|
6
6
|
manageConnectors?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Runs only when a new daemon is about to be spawned (never when a running
|
|
9
|
+
* Hub is reused), e.g. to prepare the environment the daemon inherits.
|
|
10
|
+
*/
|
|
11
|
+
beforeSpawn?: () => Promise<void>;
|
|
7
12
|
}
|
|
8
13
|
export declare const __test__: {
|
|
9
14
|
/** Retire attempts are module state keyed by URL; clear between cases. */
|
|
10
15
|
resetRetireAttempts(): void;
|
|
11
16
|
resolveDaemonEntryArgs: typeof resolveDaemonEntryArgs;
|
|
17
|
+
resolveLaunchCommand: (workspaceRoot: string, endpoint?: DetachedHubOptions) => {
|
|
18
|
+
launcher: string;
|
|
19
|
+
args: string[];
|
|
20
|
+
cwd: string;
|
|
21
|
+
env: NodeJS.ProcessEnv;
|
|
22
|
+
};
|
|
12
23
|
};
|
|
13
24
|
/**
|
|
14
25
|
* Reads the discovery record the npm postinstall set aside (see
|
|
@@ -51,6 +62,19 @@ export declare function hubHasLiveSessions(record: Pick<HubServerProbeRecord, "u
|
|
|
51
62
|
* entrypoint and switches personality on the marker flag.
|
|
52
63
|
*/
|
|
53
64
|
declare function resolveDaemonEntryArgs(daemonEntryPath: string, isBunRuntime: boolean): string[];
|
|
65
|
+
/**
|
|
66
|
+
* An executable that hosts the detached Hub daemon in place of the current
|
|
67
|
+
* process. Clients that are not themselves a Hub-capable binary (for example
|
|
68
|
+
* the desktop backend, a script running on the bundled CLI's runtime) point
|
|
69
|
+
* this at the Cline CLI so every Hub they start is a CLI-managed Hub.
|
|
70
|
+
*/
|
|
71
|
+
export interface HubDaemonLauncher {
|
|
72
|
+
command: string;
|
|
73
|
+
/** Arguments before the daemon's `--cwd`/endpoint arguments. Defaults to the daemon marker flag. */
|
|
74
|
+
args?: string[];
|
|
75
|
+
}
|
|
76
|
+
/** Route detached Hub spawns through `launcher`; pass `undefined` to restore the default. */
|
|
77
|
+
export declare function setHubDaemonLauncher(launcher?: HubDaemonLauncher): void;
|
|
54
78
|
export declare function spawnDetachedHubServer(workspaceRoot: string, endpoint?: DetachedHubOptions): void;
|
|
55
79
|
export declare function spawnDetachedHubServerWithRetry(workspaceRoot: string, endpoint?: DetachedHubOptions): Promise<void>;
|
|
56
80
|
export declare function prewarmDetachedHubServer(workspaceRoot: string, endpoint?: DetachedHubOptions): void;
|
|
@@ -114,7 +114,14 @@ export declare function isManagedHubReusable(record: HubProtocolMetadata & HubBu
|
|
|
114
114
|
}): boolean;
|
|
115
115
|
export declare function resolveHubOwnerContext(ownerBasis?: string): HubOwnerContext;
|
|
116
116
|
export declare function createInMemoryHubOwnerContext(label?: string): HubOwnerContext;
|
|
117
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Reads a usable discovery record. Startup and connection discovery ignore
|
|
119
|
+
* unreadable/invalid records so endpoint probing and recovery can continue.
|
|
120
|
+
* Shutdown must use onError: "throw": only a missing record proves absence.
|
|
121
|
+
*/
|
|
122
|
+
export declare function readHubDiscovery(discoveryPath: string, options?: {
|
|
123
|
+
onError?: "ignore" | "throw";
|
|
124
|
+
}): Promise<HubServerDiscoveryRecord | undefined>;
|
|
118
125
|
export declare function writeHubDiscovery(discoveryPath: string, record: HubServerDiscoveryRecord): Promise<void>;
|
|
119
126
|
export declare function clearHubDiscovery(discoveryPath: string): Promise<void>;
|
|
120
127
|
export declare function clearHubDiscoveryIfOwned(discoveryPath: string, hubId: string): Promise<boolean>;
|