@cline/core 0.0.80 → 0.0.81-nightly.1787893007
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/cron/specs/cron-reconciler.d.ts +1 -1
- package/dist/cron/store/sqlite-cron-store.d.ts +9 -0
- package/dist/extensions/mcp/client.d.ts +1 -0
- package/dist/extensions/tools/executors/line-endings.d.ts +14 -2
- package/dist/extensions/tools/team/multi-agent.d.ts +7 -0
- package/dist/hub/client/session-client.d.ts +6 -1
- package/dist/hub/client/ui-client.d.ts +6 -1
- package/dist/hub/daemon/entry.js +269 -215
- package/dist/hub/index.js +254 -200
- package/dist/hub/server/command-transport.d.ts +6 -0
- package/dist/hub/server/handlers/context.d.ts +11 -0
- package/dist/hub/server/handlers/session-handlers.d.ts +1 -0
- package/dist/hub/server/hub-server-options.d.ts +3 -0
- package/dist/hub/server/hub-server-transport.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +258 -204
- package/dist/services/providers/local-provider-service.d.ts +1 -1
- package/dist/services/providers/provider-readiness.d.ts +10 -0
- package/dist/services/workspace/agent-schedules-workspace.d.ts +8 -0
- package/dist/services/workspace/index.d.ts +1 -0
- package/dist/session/models/session-manifest.d.ts +1 -1
- package/dist/session/search/index.d.ts +1 -0
- package/dist/session/search/session-history-search.d.ts +51 -0
- package/dist/tasks/agenda-task-tool.d.ts +1 -1
- package/dist/tasks/task-tool.d.ts +3 -3
- package/dist/types/chat-schema.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CronSpecParseResult } from "@cline/shared";
|
|
2
2
|
import { type ResolveCronSpecsDirOptions } from "@cline/shared/storage";
|
|
3
|
-
import type
|
|
3
|
+
import { type CronSpecRecord, type SqliteCronStore, type UpsertSpecResult } from "../store/sqlite-cron-store";
|
|
4
4
|
/**
|
|
5
5
|
* Scan the configured cron specs directory on disk, parse every file, and
|
|
6
6
|
* upsert spec state into the cron DB. This is the startup source of truth:
|
|
@@ -106,6 +106,15 @@ export interface UpsertSpecResult {
|
|
|
106
106
|
export interface SqliteCronStoreOptions {
|
|
107
107
|
dbPath?: string;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* DB-native hub schedules (created via the schedule tools/UI) live only in
|
|
111
|
+
* cron.db under a virtual sourcePath that never exists on disk. File-backed
|
|
112
|
+
* specs can spoof `source: hub-schedule` in frontmatter — even inside a
|
|
113
|
+
* physical `hub/schedules/` directory — but reconciliation always records
|
|
114
|
+
* their source file's mtime, which DB-native rows never have. All three
|
|
115
|
+
* markers are required to identify a DB-native hub schedule.
|
|
116
|
+
*/
|
|
117
|
+
export declare function isHubManagedSpec(spec: Pick<CronSpecRecord, "source" | "sourcePath" | "sourceMtimeMs">): boolean;
|
|
109
118
|
export interface ListSpecsOptions {
|
|
110
119
|
triggerKind?: CronTriggerKind;
|
|
111
120
|
enabled?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FetchLike } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
2
2
|
import type { McpServerClientFactory } from "./types";
|
|
3
3
|
export declare const DEFAULT_MCP_CONNECT_TIMEOUT_MS = 3000;
|
|
4
|
+
export declare const DEFAULT_HTTP_MCP_CONNECT_TIMEOUT_MS = 10000;
|
|
4
5
|
export interface DefaultMcpServerClientFactoryOptions {
|
|
5
6
|
settingsPath?: string;
|
|
6
7
|
clientName?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Line-ending
|
|
3
|
-
*
|
|
2
|
+
* Line-ending helpers shared by the file-writing executors (editor,
|
|
3
|
+
* apply_patch). Internal to the executors.
|
|
4
4
|
*
|
|
5
5
|
* Models emit LF-only text (reads strip "\r", so they never see a file's
|
|
6
6
|
* CRLF endings). Existing files keep their own detected EOL, but a new file
|
|
@@ -9,3 +9,15 @@
|
|
|
9
9
|
* (github.com/cline/cline/issues/13504). No-op on LF platforms.
|
|
10
10
|
*/
|
|
11
11
|
export declare function normalizeNewFileLineEndings(content: string): string;
|
|
12
|
+
export type LineEnding = "\r\n" | "\n";
|
|
13
|
+
/**
|
|
14
|
+
* Returns "\r\n" if "\r\n" appears anywhere in the content, otherwise "\n" —
|
|
15
|
+
* including for content with no line breaks at all. Files are uniformly CRLF
|
|
16
|
+
* or uniformly LF in practice; the mixed case that matters is a CRLF file
|
|
17
|
+
* with LF-only lines inserted by earlier releases of these tools, and any
|
|
18
|
+
* surviving "\r\n" — wherever it sits — should pull such a file back to
|
|
19
|
+
* CRLF, which is why this checks for "\r\n" anywhere rather than looking at
|
|
20
|
+
* the first line break.
|
|
21
|
+
*/
|
|
22
|
+
export declare function detectLineEnding(content: string): LineEnding;
|
|
23
|
+
export declare function normalizeLineEndings(text: string, eol: LineEnding): string;
|
|
@@ -20,6 +20,7 @@ export interface TaskResult {
|
|
|
20
20
|
error?: Error;
|
|
21
21
|
metadata?: Record<string, unknown>;
|
|
22
22
|
}
|
|
23
|
+
type TeamTaskEndStatus = "completed" | "failed" | "cancelled";
|
|
23
24
|
export type TeamEvent = {
|
|
24
25
|
type: TeamMessageType.TaskStart;
|
|
25
26
|
agentId: string;
|
|
@@ -27,6 +28,7 @@ export type TeamEvent = {
|
|
|
27
28
|
} | {
|
|
28
29
|
type: TeamMessageType.TaskEnd;
|
|
29
30
|
agentId: string;
|
|
31
|
+
status?: TeamTaskEndStatus;
|
|
30
32
|
result?: AgentResult;
|
|
31
33
|
error?: Error;
|
|
32
34
|
messages?: AgentResult["messages"];
|
|
@@ -202,6 +204,11 @@ export declare class AgentTeamsRuntime {
|
|
|
202
204
|
getRun(runId: string): TeamRunRecord | undefined;
|
|
203
205
|
awaitRun(runId: string, pollIntervalMs?: number): Promise<TeamRunRecord>;
|
|
204
206
|
awaitAllRuns(pollIntervalMs?: number): Promise<TeamRunRecord[]>;
|
|
207
|
+
/**
|
|
208
|
+
* Cancel work owned by this team runtime without removing teammate or
|
|
209
|
+
* conversation state. Used when the owning lead session is aborted.
|
|
210
|
+
*/
|
|
211
|
+
cancelOutstandingWork(reason?: unknown): void;
|
|
205
212
|
cancelRun(runId: string, reason?: string): TeamRunRecord;
|
|
206
213
|
recoverActiveRuns(reason?: string): TeamRunRecord[];
|
|
207
214
|
markStaleRunsInterrupted(reason?: string): TeamRunRecord[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as LlmsProviders from "@cline/llms";
|
|
2
|
-
import type { AgendaAutomationPolicy, AgendaTaskListInput, AgendaTaskRecord, AgendaTaskRunRecord, ChatRunTurnRequest, ChatStartSessionRequest, ChatStartSessionResponse, ChatTurnResult, HubTaskCreateInput, HubTaskUpdateInput, TeamProgressProjectionEvent } from "@cline/shared";
|
|
2
|
+
import type { AgendaAutomationPolicy, AgendaTaskListInput, AgendaTaskRecord, AgendaTaskRunRecord, ChatRunTurnRequest, ChatStartSessionRequest, ChatStartSessionResponse, ChatTurnResult, HubSessionSearchHit, HubTaskCreateInput, HubTaskUpdateInput, TeamProgressProjectionEvent } from "@cline/shared";
|
|
3
3
|
import type { CheckpointEntry } from "../../hooks/checkpoint-hooks";
|
|
4
4
|
type ScheduleClientRecord = Record<string, unknown> & {
|
|
5
5
|
metadata?: Record<string, unknown>;
|
|
@@ -89,6 +89,11 @@ export declare class HubSessionClient {
|
|
|
89
89
|
listSessions(input?: {
|
|
90
90
|
limit?: number;
|
|
91
91
|
}): Promise<HubSessionRow[]>;
|
|
92
|
+
searchSessions(input: {
|
|
93
|
+
query: string;
|
|
94
|
+
limit?: number;
|
|
95
|
+
workspaceRoot?: string;
|
|
96
|
+
}): Promise<HubSessionSearchHit[]>;
|
|
92
97
|
deleteSession(sessionId: string, deleteCheckpointRefs?: boolean): Promise<boolean>;
|
|
93
98
|
respondToolApproval(input: {
|
|
94
99
|
approvalId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HubClientRecord, HubUINotifyPayload, HubUIShowWindowPayload, SessionRecord } from "@cline/shared";
|
|
1
|
+
import type { HubClientRecord, HubSessionSearchHit, HubUINotifyPayload, HubUIShowWindowPayload, SessionRecord } from "@cline/shared";
|
|
2
2
|
import type { CoreSettingsMutationResult, CoreSettingsToggleInput } from "../../settings";
|
|
3
3
|
export interface HubUIClientOptions {
|
|
4
4
|
address: string;
|
|
@@ -30,6 +30,11 @@ export declare class HubUIClient {
|
|
|
30
30
|
sendShowWindow(payload?: HubUIShowWindowPayload): Promise<void>;
|
|
31
31
|
listClients(): Promise<HubClientRecord[]>;
|
|
32
32
|
listSessions(limit?: number): Promise<SessionRecord[]>;
|
|
33
|
+
searchSessions(input: {
|
|
34
|
+
query: string;
|
|
35
|
+
limit?: number;
|
|
36
|
+
workspaceRoot?: string;
|
|
37
|
+
}): Promise<HubSessionSearchHit[]>;
|
|
33
38
|
toggleSetting(input: CoreSettingsToggleInput): Promise<CoreSettingsMutationResult>;
|
|
34
39
|
/**
|
|
35
40
|
* Subscribe to UI-relevant hub events.
|