@cline/core 0.0.77 → 0.0.78
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/extensions/tools/team/delegated-agent.d.ts +10 -0
- package/dist/hub/client/index.d.ts +20 -0
- package/dist/hub/daemon/entry.js +258 -216
- package/dist/hub/daemon/index.d.ts +21 -0
- package/dist/hub/discovery/instance-lock.d.ts +51 -0
- package/dist/hub/index.d.ts +3 -0
- package/dist/hub/index.js +275 -234
- package/dist/hub/server/command-transport.d.ts +9 -0
- package/dist/hub/server/handlers/approval-handlers.d.ts +8 -1
- package/dist/hub/server/handlers/context.d.ts +13 -0
- package/dist/hub/server/handlers/run-queue-handlers.d.ts +33 -0
- package/dist/hub/server/hub-event-log.d.ts +52 -0
- package/dist/hub/server/hub-run-queue.d.ts +82 -0
- package/dist/hub/server/hub-server-options.d.ts +10 -0
- package/dist/hub/server/hub-server-transport.d.ts +25 -0
- package/dist/hub/server/native-transport.d.ts +9 -0
- package/dist/index.js +277 -236
- package/dist/runtime/host/local-runtime-host.d.ts +1 -0
- package/dist/runtime/orchestration/session-runtime.d.ts +5 -0
- package/package.json +4 -4
|
@@ -13,6 +13,16 @@ export interface DelegatedAgentRuntimeConfig extends DelegatedAgentConnectionCon
|
|
|
13
13
|
logger?: BasicLogger;
|
|
14
14
|
telemetry?: ITelemetryService;
|
|
15
15
|
workspaceMetadata?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Stable end-user identity inherited from the parent session so
|
|
18
|
+
* delegated-agent telemetry (Langfuse `userId`) groups with the user.
|
|
19
|
+
*/
|
|
20
|
+
distinctId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Root core session id inherited from the parent session so
|
|
23
|
+
* delegated-agent telemetry (Langfuse `sessionId`) groups with it.
|
|
24
|
+
*/
|
|
25
|
+
sessionId?: string;
|
|
16
26
|
}
|
|
17
27
|
export interface DelegatedAgentConfigProvider {
|
|
18
28
|
getRuntimeConfig(): DelegatedAgentRuntimeConfig;
|
|
@@ -46,6 +46,14 @@ export declare class NodeHubClient {
|
|
|
46
46
|
private readonly pendingReplies;
|
|
47
47
|
private readonly listeners;
|
|
48
48
|
private readonly subscriptionCounts;
|
|
49
|
+
/**
|
|
50
|
+
* Highest durable event sequence observed per subscription key. Sent as
|
|
51
|
+
* `sinceSequence` when a subscription frame is (re)issued, so a hub with a
|
|
52
|
+
* durable event log replays exactly what this client missed while
|
|
53
|
+
* disconnected. Hubs without a log ignore the cursor (live-only, the
|
|
54
|
+
* legacy behavior).
|
|
55
|
+
*/
|
|
56
|
+
private readonly lastEventSequenceByKey;
|
|
49
57
|
private reconnectTimer;
|
|
50
58
|
private reconnectAttempt;
|
|
51
59
|
private closedByClient;
|
|
@@ -100,6 +108,18 @@ export declare function hasActiveHubSessions(payload: unknown): boolean;
|
|
|
100
108
|
export declare function localHubHasNoActiveSessions(url: string, authToken?: string, options?: Pick<HubClientOptions, "workspaceRoot" | "cwd">): Promise<boolean>;
|
|
101
109
|
export declare function resolveCompatibleLocalHubUrl(options?: LocalHubResolutionOptions): Promise<string | undefined>;
|
|
102
110
|
export declare function ensureCompatibleLocalHubUrl(options?: LocalHubResolutionOptions): Promise<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Ask a hub to stop admitting new mutating work (sessions, runs) while its
|
|
113
|
+
* accepted work finishes. Best-effort: pre-drain hubs answer 404 and the
|
|
114
|
+
* caller proceeds without it.
|
|
115
|
+
*
|
|
116
|
+
* Pass `{ off: true }` to lift a drain (`POST /drain?off`): an aborted
|
|
117
|
+
* upgrade must be able to hand the hub back instead of leaving it refusing
|
|
118
|
+
* work until a restart.
|
|
119
|
+
*/
|
|
120
|
+
export declare function requestHubDrain(url: string, authToken?: string, reason?: string, options?: {
|
|
121
|
+
off?: boolean;
|
|
122
|
+
}): Promise<boolean>;
|
|
103
123
|
export declare function requestHubShutdown(url: string, authToken?: string): Promise<boolean>;
|
|
104
124
|
export declare function stopLocalHubServerGracefully(owner?: HubOwnerContext): Promise<boolean>;
|
|
105
125
|
export declare function restartLocalHubIfIdleAfterStartupTimeout(options: {
|