@cline/core 0.0.75 → 0.0.76
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/service/schedule-command-service.d.ts +6 -1
- package/dist/cron/service/schedule-service.d.ts +1 -0
- package/dist/cron/service/schedule-tool.d.ts +81 -0
- package/dist/cron/store/sqlite-cron-store.d.ts +1 -0
- package/dist/extensions/config/index.d.ts +1 -1
- package/dist/extensions/config/runtime-commands.d.ts +12 -1
- package/dist/extensions/config/user-instruction-service.d.ts +2 -2
- package/dist/extensions/tools/executors/bash.d.ts +32 -0
- package/dist/extensions/tools/executors/index.d.ts +1 -0
- package/dist/extensions/tools/executors/run-command-execution-controller.d.ts +16 -0
- package/dist/extensions/tools/index.d.ts +2 -2
- package/dist/extensions/tools/runtime.d.ts +9 -0
- package/dist/hooks/subprocess.d.ts +6 -0
- package/dist/hub/client/index.d.ts +4 -1
- package/dist/hub/client/session-client.d.ts +14 -1
- package/dist/hub/daemon/entry.js +368 -202
- package/dist/hub/index.d.ts +2 -0
- package/dist/hub/index.js +363 -197
- package/dist/hub/runtime-host/hub-runtime-host.d.ts +1 -0
- package/dist/hub/server/browser-websocket.d.ts +5 -2
- package/dist/hub/server/command-transport.d.ts +9 -2
- package/dist/hub/server/handlers/context.d.ts +7 -3
- package/dist/hub/server/handlers/run-handlers.d.ts +1 -0
- package/dist/hub/server/handlers/session-handlers.d.ts +4 -0
- package/dist/hub/server/hub-server-options.d.ts +7 -2
- package/dist/hub/server/hub-server-transport.d.ts +8 -1
- package/dist/hub/server/native-transport.d.ts +3 -3
- package/dist/hub/server/task-command-service.d.ts +11 -0
- package/dist/index.d.ts +10 -8
- package/dist/index.js +361 -195
- package/dist/runtime/config/agent-runtime-config-builder.d.ts +5 -0
- package/dist/runtime/host/local-runtime-host.d.ts +2 -0
- package/dist/runtime/host/runtime-host.d.ts +3 -0
- package/dist/runtime/orchestration/runtime-event-adapter.d.ts +2 -0
- package/dist/runtime/orchestration/session-runtime.d.ts +2 -1
- package/dist/runtime/process-start-token.d.ts +23 -0
- package/dist/services/global-settings.d.ts +3 -3
- package/dist/services/llms/cline-recommended-models.d.ts +33 -0
- package/dist/services/llms/provider-defaults.d.ts +8 -0
- package/dist/services/providers/local-provider-registry.d.ts +85 -4
- package/dist/services/providers/local-provider-service.d.ts +27 -1
- package/dist/services/storage/provider-settings-manager.d.ts +3 -1
- package/dist/services/telemetry/index.js +1 -1
- package/dist/tasks/agenda-task-api.d.ts +20 -0
- package/dist/tasks/agenda-task-manager.d.ts +102 -0
- package/dist/tasks/agenda-task-tool.d.ts +94 -0
- package/dist/tasks/index.d.ts +9 -0
- package/dist/tasks/specs/task-spec-file-store.d.ts +38 -0
- package/dist/tasks/specs/task-spec-parser.d.ts +65 -0
- package/dist/tasks/store/sqlite-task-store.d.ts +73 -0
- package/dist/tasks/store/task-schema.d.ts +2 -0
- package/dist/tasks/task-location.d.ts +14 -0
- package/dist/tasks/task-tool.d.ts +134 -0
- package/dist/types/provider-settings.d.ts +10 -0
- package/package.json +4 -4
|
@@ -47,6 +47,7 @@ export declare class HubRuntimeHost implements RuntimeHost {
|
|
|
47
47
|
private requestPendingPromptDelete;
|
|
48
48
|
getAccumulatedUsage(sessionId: string): Promise<SessionUsageSummary | undefined>;
|
|
49
49
|
abort(sessionId: string, reason?: unknown): Promise<void>;
|
|
50
|
+
proceedWhileRunning(sessionId: string, toolCallId?: string): Promise<number>;
|
|
50
51
|
stopSession(sessionId: string): Promise<void>;
|
|
51
52
|
dispose(): Promise<void>;
|
|
52
53
|
getSession(sessionId: string): Promise<SessionRecord | undefined>;
|
|
@@ -14,6 +14,9 @@ export interface BrowserHubSocketLike {
|
|
|
14
14
|
export declare class BrowserWebSocketHubAdapter {
|
|
15
15
|
private readonly transport;
|
|
16
16
|
private readonly telemetry?;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
private readonly workspaceRoot?;
|
|
18
|
+
constructor(transport: HubCommandTransport, telemetry?: ITelemetryService | undefined, workspaceRoot?: string | undefined);
|
|
19
|
+
attach(socket: BrowserHubSocketLike, options?: {
|
|
20
|
+
allowRegisteredWorkspace?: boolean;
|
|
21
|
+
}): () => void;
|
|
19
22
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import type { HubCommandEnvelope, HubEventEnvelope, HubReplyEnvelope } from "@cline/shared";
|
|
1
|
+
import type { HubClientRegistration, HubCommandEnvelope, HubEventEnvelope, HubReplyEnvelope } from "@cline/shared";
|
|
2
|
+
/** Authority captured once by an authenticated transport connection. */
|
|
3
|
+
export interface HubConnectionAuthority {
|
|
4
|
+
clientId: string;
|
|
5
|
+
workspaceContext?: HubClientRegistration["workspaceContext"];
|
|
6
|
+
}
|
|
2
7
|
export interface HubCommandTransport {
|
|
3
|
-
command(envelope: HubCommandEnvelope
|
|
8
|
+
command(envelope: HubCommandEnvelope,
|
|
9
|
+
/** `null` means the remote connection has not registered yet. */
|
|
10
|
+
authority?: HubConnectionAuthority | null): Promise<HubReplyEnvelope>;
|
|
4
11
|
subscribe(clientId: string, listener: (event: HubEventEnvelope) => void, options?: {
|
|
5
12
|
sessionId?: string;
|
|
6
13
|
}): Promise<() => void> | (() => void);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HubClientRecord, HubCommandEnvelope, HubEventEnvelope, HubReplyEnvelope, SessionRecord as HubSessionRecord, ITelemetryService, JsonValue, SessionParticipant } from "@cline/shared";
|
|
2
|
-
import type { PendingPromptsRuntimeService, RuntimeHost, SessionConnectionRuntimeService, SessionUsageRuntimeService } from "../../../runtime/host/runtime-host";
|
|
1
|
+
import type { AgentExtension, AgentTool, HubClientRecord, HubCommandEnvelope, HubEventEnvelope, HubReplyEnvelope, SessionRecord as HubSessionRecord, ITelemetryService, JsonValue, SessionParticipant } from "@cline/shared";
|
|
2
|
+
import type { CommandExecutionRuntimeService, PendingPromptsRuntimeService, RuntimeHost, SessionConnectionRuntimeService, SessionUsageRuntimeService } from "../../../runtime/host/runtime-host";
|
|
3
3
|
import { type CoreSessionSnapshot } from "../../../session/session-snapshot";
|
|
4
4
|
import { type HubSessionState } from "../hub-session-records";
|
|
5
5
|
export type PendingApproval = {
|
|
@@ -41,7 +41,11 @@ export interface HubTransportContext {
|
|
|
41
41
|
*/
|
|
42
42
|
readonly activeRpcTurnCountBySession: Map<string, number>;
|
|
43
43
|
readonly telemetry?: ITelemetryService;
|
|
44
|
-
|
|
44
|
+
/** Hub-owned tools injected into every local session runtime. */
|
|
45
|
+
readonly sessionTools?: readonly AgentTool[];
|
|
46
|
+
/** Hub-owned extensions injected into every local session runtime. */
|
|
47
|
+
readonly sessionExtensions?: readonly AgentExtension[];
|
|
48
|
+
readonly sessionHost: RuntimeHost & Partial<CommandExecutionRuntimeService & PendingPromptsRuntimeService & SessionUsageRuntimeService & SessionConnectionRuntimeService>;
|
|
45
49
|
publish(event: HubEventEnvelope): void;
|
|
46
50
|
buildEvent(event: HubEventEnvelope["event"], payload?: Record<string, unknown>, sessionId?: string): HubEventEnvelope;
|
|
47
51
|
requestCapability(sessionId: string, capabilityName: string, payload: Record<string, unknown>, targetClientId: string, onProgress?: (payload: Record<string, unknown>) => void): Promise<Record<string, unknown> | undefined>;
|
|
@@ -2,4 +2,5 @@ import type { HubCommandEnvelope, HubReplyEnvelope } from "@cline/shared";
|
|
|
2
2
|
import { type HubTransportContext } from "./context";
|
|
3
3
|
export declare function handleSessionInput(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
4
4
|
export declare function handleRunAbort(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
5
|
+
export declare function handleRunProceedWhileRunning(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
5
6
|
export declare function handleSessionHook(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { HubCommandEnvelope, HubReplyEnvelope, ToolApprovalRequest } from "@cline/shared";
|
|
2
2
|
import type { SessionConnectionUpdate } from "../../../runtime/host/runtime-host";
|
|
3
3
|
import { type HubTransportContext } from "./context";
|
|
4
|
+
export declare function selectSessionTools<T extends {
|
|
5
|
+
name: string;
|
|
6
|
+
}>(tools: readonly T[], mode: string): T[];
|
|
4
7
|
export declare function readSessionConnectionUpdate(value: unknown): SessionConnectionUpdate;
|
|
8
|
+
export declare function resolveSessionAutoApproveTools(toolPolicies: unknown, runtimeOptions: Record<string, unknown>): boolean;
|
|
5
9
|
export declare function handleSessionCreate(ctx: HubTransportContext, envelope: HubCommandEnvelope, requestToolApproval: (request: ToolApprovalRequest) => Promise<{
|
|
6
10
|
approved: boolean;
|
|
7
11
|
reason?: string;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { BasicLogger, ITelemetryService } from "@cline/shared";
|
|
2
2
|
import type { CronServiceOptions } from "../../cron/service/cron-service";
|
|
3
3
|
import type { HubScheduleRuntimeHandlers, HubScheduleServiceOptions } from "../../cron/service/schedule-service";
|
|
4
|
-
import type { PendingPromptsRuntimeService, RuntimeHost } from "../../runtime/host/runtime-host";
|
|
4
|
+
import type { CommandExecutionRuntimeService, PendingPromptsRuntimeService, RuntimeHost } from "../../runtime/host/runtime-host";
|
|
5
5
|
import type { CoreSettingsService } from "../../settings";
|
|
6
|
+
import type { AgendaTaskManagerOptions } from "../../tasks";
|
|
6
7
|
import type { HubOwnerContext } from "../discovery";
|
|
7
8
|
export interface HubWebSocketServerOptions {
|
|
9
|
+
/** Workspace authority assigned by the Hub to authenticated clients. */
|
|
10
|
+
workspaceRoot?: string;
|
|
8
11
|
host?: string;
|
|
9
12
|
port?: number;
|
|
10
13
|
pathname?: string;
|
|
11
14
|
owner?: HubOwnerContext;
|
|
12
|
-
sessionHost?: RuntimeHost & Partial<PendingPromptsRuntimeService>;
|
|
15
|
+
sessionHost?: RuntimeHost & Partial<PendingPromptsRuntimeService & CommandExecutionRuntimeService>;
|
|
13
16
|
settingsService?: CoreSettingsService;
|
|
17
|
+
/** File/DB/watcher overrides for the Hub-owned agenda task manager. */
|
|
18
|
+
taskOptions?: Omit<AgendaTaskManagerOptions, "runtime" | "publish">;
|
|
14
19
|
runtimeHandlers: HubScheduleRuntimeHandlers;
|
|
15
20
|
scheduleOptions?: Omit<HubScheduleServiceOptions, "runtimeHandlers">;
|
|
16
21
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HubCommandEnvelope, HubEventEnvelope, HubReplyEnvelope } from "@cline/shared";
|
|
2
2
|
import { CronService } from "../../cron/service/cron-service";
|
|
3
|
+
import type { HubConnectionAuthority } from "./command-transport";
|
|
3
4
|
import type { HubWebSocketServerOptions } from "./hub-server-options";
|
|
4
5
|
import type { NativeHubTransport } from "./native-transport";
|
|
5
6
|
/** @internal Exported for unit testing fetch/runtime wiring. */
|
|
@@ -14,17 +15,23 @@ export declare class HubServerTransport implements NativeHubTransport {
|
|
|
14
15
|
private readonly activeRpcTurnCountBySession;
|
|
15
16
|
private readonly schedules;
|
|
16
17
|
private readonly scheduleCommands;
|
|
18
|
+
private readonly tasks;
|
|
19
|
+
private readonly taskCommands;
|
|
20
|
+
private readonly sessionTools;
|
|
21
|
+
private readonly sessionExtensions;
|
|
17
22
|
private readonly settings;
|
|
18
23
|
private readonly cronService?;
|
|
19
24
|
private readonly sessionHost;
|
|
20
25
|
private readonly hubId;
|
|
21
26
|
private readonly ctx;
|
|
22
27
|
constructor(options: HubWebSocketServerOptions);
|
|
28
|
+
private startAgendaTaskSession;
|
|
29
|
+
private runAgendaTaskSession;
|
|
23
30
|
getCronService(): CronService | undefined;
|
|
24
31
|
getHubId(): string;
|
|
25
32
|
start(): Promise<void>;
|
|
26
33
|
stop(): Promise<void>;
|
|
27
|
-
handleCommand(envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
34
|
+
handleCommand(envelope: HubCommandEnvelope, authority?: HubConnectionAuthority | null): Promise<HubReplyEnvelope>;
|
|
28
35
|
private dispatchCommand;
|
|
29
36
|
private captureFailedReply;
|
|
30
37
|
private commandTelemetryContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HubCommandEnvelope, HubEventEnvelope, HubReplyEnvelope } from "@cline/shared";
|
|
2
|
-
import type { HubCommandTransport } from "./command-transport";
|
|
2
|
+
import type { HubCommandTransport, HubConnectionAuthority } from "./command-transport";
|
|
3
3
|
export interface NativeHubTransport {
|
|
4
|
-
handleCommand(envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
4
|
+
handleCommand(envelope: HubCommandEnvelope, authority?: HubConnectionAuthority | null): Promise<HubReplyEnvelope>;
|
|
5
5
|
subscribe(clientId: string, listener: (event: HubEventEnvelope) => void, options?: {
|
|
6
6
|
sessionId?: string;
|
|
7
7
|
}): () => void;
|
|
@@ -9,7 +9,7 @@ export interface NativeHubTransport {
|
|
|
9
9
|
export declare class NativeHubTransportAdapter implements HubCommandTransport {
|
|
10
10
|
private readonly transport;
|
|
11
11
|
constructor(transport: NativeHubTransport);
|
|
12
|
-
command(envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
12
|
+
command(envelope: HubCommandEnvelope, authority?: HubConnectionAuthority | null): Promise<HubReplyEnvelope>;
|
|
13
13
|
subscribe(clientId: string, listener: (event: HubEventEnvelope) => void, options?: {
|
|
14
14
|
sessionId?: string;
|
|
15
15
|
}): () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HubCommandEnvelope, HubCommandName, HubReplyEnvelope } from "@cline/shared";
|
|
2
|
+
import type { AgendaTaskManagerApi } from "../../tasks/agenda-task-api";
|
|
3
|
+
import type { HubConnectionAuthority } from "./command-transport";
|
|
4
|
+
export declare function isAgendaTaskCommand(command: HubCommandName): boolean;
|
|
5
|
+
export declare class HubAgendaTaskCommandService {
|
|
6
|
+
private readonly tasks;
|
|
7
|
+
constructor(tasks: AgendaTaskManagerApi);
|
|
8
|
+
handleCommand(envelope: HubCommandEnvelope, authority?: HubConnectionAuthority): Promise<HubReplyEnvelope>;
|
|
9
|
+
private resolveWorkspace;
|
|
10
|
+
private requireScopedTask;
|
|
11
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { ClineCore } from "./ClineCore";
|
|
|
22
22
|
export type { ClineAutomationEventIngressResult, ClineAutomationEventLog, ClineAutomationEventSuppression, ClineAutomationListEventsOptions, ClineAutomationListRunsOptions, ClineAutomationListSpecsOptions, ClineAutomationRun, ClineAutomationRunStatus, ClineAutomationSpec, ClineCoreAutomationApi, ClineCoreAutomationOptions, ClineCoreListHistoryOptions, ClineCoreOptions, ClineCoreSettingsApi, ClineCoreStartInput, CompareCheckpointInput, CompareCheckpointResult, HubOptions, RemoteOptions, RestoreInput, RestoreOptions, RestoreResult, } from "./cline-core/types";
|
|
23
23
|
export type { LoadAgentPluginFromPathOptions, PluginInitializationFailure, PluginInitializationWarning, PluginLoadDiagnostics, ResolveAgentPluginPathsOptions, } from "./extensions";
|
|
24
24
|
export { discoverPluginModulePaths, getPluginDisplayName, loadAgentPluginFromPath, loadAgentPluginsFromPaths, loadAgentPluginsFromPathsWithDiagnostics, resolveAgentPluginPaths, resolveAndLoadAgentPlugins, resolvePluginConfigSearchPaths, resolvePluginSkillDirectoriesFromPaths, } from "./extensions";
|
|
25
|
-
export type { AvailableRuntimeCommand, CreateInstructionWatcherOptions, CreateRulesConfigDefinitionOptions, CreateSkillsConfigDefinitionOptions, CreateUserInstructionConfigServiceOptions, CreateWorkflowsConfigDefinitionOptions, ParseMarkdownFrontmatterResult, RuleConfig, SkillConfig, UnifiedConfigDefinition, UnifiedConfigFileCandidate, UnifiedConfigFileContext, UnifiedConfigRecord, UnifiedConfigWatcherEvent, UnifiedConfigWatcherOptions, UserInstructionConfig, UserInstructionConfigRecord, UserInstructionConfigService, UserInstructionConfigType, WorkflowConfig, } from "./extensions/config";
|
|
25
|
+
export type { AvailableRuntimeCommand, CreateInstructionWatcherOptions, CreateRulesConfigDefinitionOptions, CreateSkillsConfigDefinitionOptions, CreateUserInstructionConfigServiceOptions, CreateWorkflowsConfigDefinitionOptions, ParseMarkdownFrontmatterResult, ResolveRuntimeSlashCommandOptions, RuleConfig, SkillConfig, UnifiedConfigDefinition, UnifiedConfigFileCandidate, UnifiedConfigFileContext, UnifiedConfigRecord, UnifiedConfigWatcherEvent, UnifiedConfigWatcherOptions, UserInstructionConfig, UserInstructionConfigRecord, UserInstructionConfigService, UserInstructionConfigType, WorkflowConfig, } from "./extensions/config";
|
|
26
26
|
export { createRulesConfigDefinition, createSkillsConfigDefinition, createUserInstructionConfigService, createWorkflowsConfigDefinition, parseRuleConfigFromMarkdown, parseSkillConfigFromMarkdown, parseWorkflowConfigFromMarkdown, RULES_CONFIG_DIRECTORY_NAME, resolveRulesConfigSearchPaths, resolveSkillsConfigSearchPaths, resolveWorkflowsConfigSearchPaths, SKILLS_CONFIG_DIRECTORY_NAME, UnifiedConfigFileWatcher, WORKFLOWS_CONFIG_DIRECTORY_NAME, } from "./extensions/config";
|
|
27
27
|
export { type AuthorizeMcpServerOAuthOptions, type AuthorizeMcpServerOAuthResult, augmentMcpTimeoutError, authorizeMcpServerOAuth, type CreateDisabledMcpToolPoliciesOptions, type CreateDisabledMcpToolPolicyOptions, type CreateMcpToolsOptions, createDefaultMcpServerClientFactory, createDisabledMcpToolPolicies, createDisabledMcpToolPolicy, createMcpTools, DEFAULT_MCP_CONNECT_TIMEOUT_MS, type DefaultMcpServerClientFactoryOptions, getMcpServerOAuthState, getMcpServerOAuthStatus, hasMcpSettingsFile, InMemoryMcpManager, type LoadMcpSettingsOptions, listMcpServerOAuthStatuses, loadMcpSettingsFile, type McpConnectionStatus, type McpManager, type McpManagerOptions, McpOAuthClientChangedError, type McpServerClient, type McpServerClientFactory, type McpServerOAuthClientConfig, type McpServerOAuthState, type McpServerOAuthStatus, type McpServerRegistration, type McpServerSnapshot, type McpServerTransportConfig, type McpSettingsFile, type McpSettingsLockOptions, McpSettingsLockTimeoutError, type McpSettingsMutator, McpSettingsMutatorPurityError, McpSettingsUpdateSkippedError, type McpSseTransportConfig, type McpStdioTransportConfig, type McpStreamableHttpTransportConfig, type McpToolCallRequest, type McpToolCallResult, type McpToolDescriptor, type McpToolNameTransform, type McpToolProvider, type ProbeMcpServerConnectionOptions, type ProbeMcpServerConnectionResult, parseMcpServerRegistration, probeMcpServerConnection, type RegisterMcpServersFromSettingsOptions, registerMcpServersFromSettingsFile, resolveDefaultMcpSettingsPath, resolveMcpServerRegistration, resolveMcpServerRegistrations, type SetMcpServerDisabledOptions, setMcpServerDisabled, type UpdateMcpServerOAuthStateOptions, updateMcpServerOAuthState, updateMcpServerOAuthStateAsync, updateMcpSettingsFile, updateMcpSettingsFileSync, } from "./extensions/mcp";
|
|
28
28
|
export { type AgentTask, AgentTeam, AgentTeamsRuntime, type AgentTeamsRuntimeOptions, type BootstrapAgentTeamsOptions, type BootstrapAgentTeamsResult, bootstrapAgentTeams, buildConfiguredAgentToolDescriptors, buildConfiguredAgentToolName, buildDelegatedAgentConfig, buildTeamProgressSummary, type ConfiguredAgentConfig, type ConfiguredAgentInput, type ConfiguredAgentLoadResult, type ConfiguredAgentReadError, type ConfiguredAgentToolConfig, type ConfiguredAgentToolDescriptor, type CreateAgentTeamsToolsOptions, createAgentTeamsTools, createConfiguredAgentTools, createDelegatedAgent, createDelegatedAgentConfigProvider, createSpawnAgentTool, type DelegatedAgentConfigProvider, type DelegatedAgentConnectionConfig, type DelegatedAgentKind, type DelegatedAgentRuntimeConfig, loadConfiguredAgentConfigs, parseConfiguredAgentConfig, reviveTeamStateDates, type SpawnTeammateOptions, type SubAgentEndContext, type SubAgentStartContext, type TaskResult, type TeamEvent, type TeamMemberConfig, type TeamTeammateRuntimeConfig, toTeamProgressLifecycleEvent, } from "./extensions/tools/team";
|
|
@@ -41,11 +41,12 @@ export { listSessionHistoryFromBackend } from "./runtime/host/history";
|
|
|
41
41
|
export type { SessionBackend } from "./runtime/host/host";
|
|
42
42
|
export { createRuntimeHost, createRuntimeHost as createSessionHost, resolveSessionBackend, } from "./runtime/host/host";
|
|
43
43
|
export { LocalRuntimeHost } from "./runtime/host/local-runtime-host";
|
|
44
|
-
export type { PendingPromptMutationResult, PendingPromptsDeleteInput, PendingPromptsListInput, PendingPromptsRuntimeService, PendingPromptsServiceApi, PendingPromptsUpdateInput, RestoreSessionInput, RestoreSessionResult, RuntimeHost, RuntimeHost as SessionHost, RuntimeHostMode, RuntimeHostSubscribeOptions, SendSessionInput, SessionAccumulatedUsage, SessionUsageSummary, StartSessionConfig, StartSessionInput, StartSessionResult, } from "./runtime/host/runtime-host";
|
|
44
|
+
export type { CommandExecutionRuntimeService, PendingPromptMutationResult, PendingPromptsDeleteInput, PendingPromptsListInput, PendingPromptsRuntimeService, PendingPromptsServiceApi, PendingPromptsUpdateInput, RestoreSessionInput, RestoreSessionResult, RuntimeHost, RuntimeHost as SessionHost, RuntimeHostMode, RuntimeHostSubscribeOptions, SendSessionInput, SessionAccumulatedUsage, SessionUsageSummary, StartSessionConfig, StartSessionInput, StartSessionResult, } from "./runtime/host/runtime-host";
|
|
45
45
|
export { isSessionNotFoundError, isUnusableSessionError, SESSION_NOT_FOUND_ERROR_CODE, SessionNotFoundError, splitCoreSessionConfig, } from "./runtime/host/runtime-host";
|
|
46
46
|
export { createTeamName, DefaultRuntimeBuilder, } from "./runtime/orchestration/runtime-builder";
|
|
47
47
|
export { OAuthReauthRequiredError, type RuntimeOAuthResolution, RuntimeOAuthTokenManager, } from "./runtime/orchestration/runtime-oauth-token-manager";
|
|
48
48
|
export type { BuiltRuntime, RuntimeBuilder, RuntimeBuilderInput, SessionRuntime, } from "./runtime/orchestration/session-runtime";
|
|
49
|
+
export { getProcessStartToken, getProcessStartTokenAsync, type ProcessStartTokenProbeResult, probeProcessStartToken, probeProcessStartTokenAsync, } from "./runtime/process-start-token";
|
|
49
50
|
export { formatRulesForSystemPrompt, isRuleEnabled, mergeRulesForSystemPrompt, } from "./runtime/safety/rules";
|
|
50
51
|
export { type SandboxCallOptions, SubprocessSandbox, type SubprocessSandboxOptions, } from "./runtime/tools/subprocess-sandbox";
|
|
51
52
|
export { type DesktopToolApprovalOptions, requestDesktopToolApproval, } from "./runtime/tools/tool-approval";
|
|
@@ -70,7 +71,7 @@ export { listPluginTools, listPluginToolsWithDiagnostics, } from "./services/plu
|
|
|
70
71
|
export type { PluginUninstallOptions, PluginUninstallResult, } from "./services/plugin-uninstall";
|
|
71
72
|
export { uninstallPlugin } from "./services/plugin-uninstall";
|
|
72
73
|
export { ensureCustomProvidersLoadedSync, readModelsFileSync, resolveModelsRegistryPath, type StoredModelEntry, type StoredProviderEntry, syncStoredProviderRegistration, writeModelsFileSync, } from "./services/providers/local-provider-registry";
|
|
73
|
-
export { addLocalProvider, type DeleteLocalProviderRequest, deleteLocalProvider, ensureCustomProvidersLoaded, getLocalProviderModels, listLocalProviders, loginAndSaveLocalProviderOAuthCredentials, loginLocalProvider, markLocalProviderEnabled, normalizeOAuthProvider, refreshProviderModelsFromSource, resolveLocalClineAuthToken, saveLocalProviderOAuthCredentials, saveLocalProviderSettings, type UpdateLocalProviderRequest, updateLocalProvider, } from "./services/providers/local-provider-service";
|
|
74
|
+
export { addLocalProvider, type CreateConfiguredStreamingTranscriptionSessionRequest, createConfiguredStreamingTranscriptionSession, type DeleteLocalProviderRequest, deleteLocalProvider, ensureCustomProvidersLoaded, getLocalProviderModels, isDedicatedTranscriptionModel, listLocalProviders, loginAndSaveLocalProviderOAuthCredentials, loginLocalProvider, markLocalProviderEnabled, normalizeOAuthProvider, refreshProviderModelsFromSource, resolveLocalClineAuthToken, saveLocalProviderOAuthCredentials, saveLocalProviderSettings, saveVoiceInputSettings, type TranscribeConfiguredVoiceInputRequest, type TranscribeLocalAudioRequest, transcribeConfiguredVoiceInput, transcribeLocalAudio, type UpdateLocalProviderRequest, updateLocalProvider, } from "./services/providers/local-provider-service";
|
|
74
75
|
export { getProviderConfigFields, type ProviderConfigFieldKey, type ProviderConfigFieldRequirement, type ProviderConfigFields, } from "./services/providers/provider-config-fields";
|
|
75
76
|
export { type MigrateLegacyProviderSettingsOptions, type MigrateLegacyProviderSettingsResult, migrateLegacyProviderSettings, } from "./services/storage/provider-settings-legacy-migration";
|
|
76
77
|
export { ProviderSettingsManager } from "./services/storage/provider-settings-manager";
|
|
@@ -104,6 +105,7 @@ export { FileTeamPersistenceStore, type FileTeamPersistenceStoreOptions, } from
|
|
|
104
105
|
export { countUserRunMessages, getUserRunSpan, isUserRunMessage, type MessageDisplayRole, resolveMessageDisplayRole, } from "./session/user-run-messages";
|
|
105
106
|
export type { CorePluginContributions, CorePluginSettingsSnapshot, CorePluginSettingsSource, CoreSettingsItem, CoreSettingsItemKind, CoreSettingsItemSource, CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsServiceOptions, CoreSettingsSnapshot, CoreSettingsToggleInput, CoreSettingsType, } from "./settings";
|
|
106
107
|
export { CoreSettingsService, createCoreSettingsService, } from "./settings";
|
|
108
|
+
export * from "./tasks";
|
|
107
109
|
export type { ChatMessage, ChatMessageImage, ChatSessionConfig, ChatSessionStatus, ChatSummary, ChatViewState, } from "./types/chat-schema";
|
|
108
110
|
export { ChatMessageImageSchema, ChatMessageRoleSchema, ChatMessageSchema, ChatSessionConfigSchema, ChatSessionStatusSchema, ChatSummarySchema, ChatViewStateSchema, } from "./types/chat-schema";
|
|
109
111
|
export type { SessionMessagesArtifactUploader } from "./types/session";
|
|
@@ -111,9 +113,9 @@ export { CORE_BUILD_VERSION } from "./version";
|
|
|
111
113
|
export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./services/telemetry")>;
|
|
112
114
|
export { Agent, createAgentRuntime } from "@cline/agents";
|
|
113
115
|
export { createCompactionStateAwarePrepareTurn, createContextCompactionPrepareTurn, } from "./extensions/context/compaction";
|
|
114
|
-
export { ALL_DEFAULT_TOOL_NAMES, type ApplyPatchExecutor, type ApplyPatchInput, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, CommandExitError, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, computePatchChanges, createApplyPatchExecutor, createBuiltinTools, createDefaultExecutors, createDefaultShellExecutor, createDefaultTools, createDefaultToolsWithPreset, createEditorExecutor, createShellExecutor, createShellTool, createToolPoliciesWithPreset, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, type EditFileInput, type EditorExecutor, type EditorExecutorOptions, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, MAX_COMMAND_OUTPUT_CHARS, PATCH_MARKERS, PatchActionType, type PatchFileChange, resolveCoreSelectedToolIds, type ShellExecutor, type ShellExecutorOptions, type StructuredCommandInput, StructuredCommandInputSchema, TEAM_TOOL_NAMES, type ToolCatalogEntry, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, truncateCommandOutput, } from "./extensions/tools";
|
|
115
|
-
export { type ClineRecommendedModel, type ClineRecommendedModelsData, FALLBACK_CLINE_RECOMMENDED_MODELS, type FetchClineRecommendedModelsOptions, fetchClineRecommendedModels, } from "./services/llms/cline-recommended-models";
|
|
116
|
-
export { clearLiveModelsCatalogCache, clearPrivateModelsCatalogCache, DEFAULT_MODELS_CATALOG_URL, getLiveModelsCatalog, getProviderConfig, OPENAI_COMPATIBLE_PROVIDERS, resolveProviderConfig, } from "./services/llms/provider-defaults";
|
|
116
|
+
export { ALL_DEFAULT_TOOL_NAMES, type ApplyPatchExecutor, type ApplyPatchInput, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, CommandExitError, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, computePatchChanges, createApplyPatchExecutor, createBuiltinTools, createDefaultExecutors, createDefaultShellExecutor, createDefaultTools, createDefaultToolsWithPreset, createEditorExecutor, createShellExecutor, createShellTool, createToolPoliciesWithPreset, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, type EditFileInput, type EditorExecutor, type EditorExecutorOptions, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, isSkillsToolAvailable, MAX_COMMAND_OUTPUT_CHARS, PATCH_MARKERS, PatchActionType, type PatchFileChange, resolveCoreSelectedToolIds, type ShellExecutor, type ShellExecutorOptions, type StructuredCommandInput, StructuredCommandInputSchema, TEAM_TOOL_NAMES, type ToolCatalogEntry, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, truncateCommandOutput, } from "./extensions/tools";
|
|
117
|
+
export { applyClineFeaturedModels, type ClineRecommendedModel, type ClineRecommendedModelsData, FALLBACK_CLINE_RECOMMENDED_MODELS, type FetchClineRecommendedModelsOptions, fetchClineRecommendedModels, getCachedClineRecommendedModels, peekClineRecommendedModels, resetClineRecommendedModelsCacheForTests, } from "./services/llms/cline-recommended-models";
|
|
118
|
+
export { clearLiveModelsCatalogCache, clearPrivateModelsCatalogCache, DEFAULT_MODELS_CATALOG_URL, getLiveModelsCatalog, getProviderConfig, isPrivateModelCatalogProvider, OPENAI_COMPATIBLE_PROVIDERS, resolveProviderConfig, } from "./services/llms/provider-defaults";
|
|
117
119
|
export type { AuthSettings, AwsSettings, AzureSettings, BuiltInProviderId, GcpSettings, ModelCatalogConfig, ModelCatalogSettings, OcaSettings, ProviderCapability, ProviderClient, ProviderConfig, ProviderDefaultsConfig, ProviderId, ProviderProtocol, ProviderSettings, ReasoningSettings, SapSettings, ToProviderConfigOptions, } from "./services/llms/provider-settings";
|
|
118
120
|
export { AuthSettingsSchema, AwsSettingsSchema, AzureSettingsSchema, BUILT_IN_PROVIDER, BUILT_IN_PROVIDER_IDS, createProviderConfig, GcpSettingsSchema, isBuiltInProviderId, ModelCatalogSettingsSchema, normalizeProviderId, OcaSettingsSchema, ProviderClientSchema, ProviderIdSchema, ProviderProtocolSchema, ProviderSettingsSchema, parseSettings, ReasoningSettingsSchema, SapSettingsSchema, safeCreateProviderConfig, safeParseSettings, toProviderConfig, } from "./services/llms/provider-settings";
|
|
119
121
|
export { defineLlmsConfig, loadLlmsConfigFromFile, } from "./services/llms/runtime-config";
|
|
@@ -126,7 +128,7 @@ export type { SessionStatus } from "./types/common";
|
|
|
126
128
|
export { SESSION_STATUSES, SessionSource } from "./types/common";
|
|
127
129
|
export type { ClineCoreStartConfig, CoreAgentMode, CoreCheckpointConfig, CoreCheckpointContext, CoreCompactionConfig, CoreCompactionContext, CoreCompactionResult, CoreCompactionStrategy, CoreCompactionSummarizerConfig, CoreModelConfig, CoreRuntimeFeatures, CoreSessionConfig, } from "./types/config";
|
|
128
130
|
export type { CoreSessionEvent, SessionChunkEvent, SessionEndedEvent, SessionPendingPrompt, SessionPendingPromptSubmittedEvent, SessionPendingPromptsEvent, SessionTeamProgressEvent, SessionToolEvent, } from "./types/events";
|
|
129
|
-
export type { ProviderTokenSource, StoredProviderSettings, StoredProviderSettingsEntry, } from "./types/provider-settings";
|
|
130
|
-
export { emptyStoredProviderSettings, StoredProviderSettingsEntrySchema, StoredProviderSettingsSchema, } from "./types/provider-settings";
|
|
131
|
+
export type { ProviderTokenSource, StoredProviderModes, StoredProviderSettings, StoredProviderSettingsEntry, } from "./types/provider-settings";
|
|
132
|
+
export { emptyStoredProviderSettings, StoredProviderModesSchema, StoredProviderSettingsEntrySchema, StoredProviderSettingsSchema, } from "./types/provider-settings";
|
|
131
133
|
export type { SessionHistoryMetadata, SessionHistoryRecord, SessionRecord, SessionRef, } from "./types/sessions";
|
|
132
134
|
export type { ArtifactStore, SessionStore, TeamStore } from "./types/storage";
|