@cline/core 0.0.77 → 0.0.79-nightly.1787712192
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/executors/line-endings.d.ts +11 -0
- 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 +271 -217
- 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 +259 -206
- 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 +57 -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 +259 -206
- package/dist/runtime/host/local-runtime-host.d.ts +32 -4
- package/dist/runtime/orchestration/session-runtime.d.ts +5 -0
- package/dist/tasks/agenda-task-manager.d.ts +7 -0
- package/dist/tasks/task-tool.d.ts +11 -2
- package/dist/types/session.d.ts +10 -3
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Line-ending normalization for files created from scratch, shared by the
|
|
3
|
+
* file-writing executors (editor, apply_patch). Internal to the executors.
|
|
4
|
+
*
|
|
5
|
+
* Models emit LF-only text (reads strip "\r", so they never see a file's
|
|
6
|
+
* CRLF endings). Existing files keep their own detected EOL, but a new file
|
|
7
|
+
* has no EOL to preserve: use CRLF on Windows unless the content already
|
|
8
|
+
* contains a "\r" and thereby chose its own endings
|
|
9
|
+
* (github.com/cline/cline/issues/13504). No-op on LF platforms.
|
|
10
|
+
*/
|
|
11
|
+
export declare function normalizeNewFileLineEndings(content: string): string;
|
|
@@ -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: {
|