@cline/core 0.0.71 → 0.0.72
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/reports/cron-report-writer.d.ts +2 -0
- package/dist/cron/service/schedule-service.d.ts +7 -0
- package/dist/extensions/mcp/client.d.ts +16 -0
- package/dist/extensions/mcp/config-loader.d.ts +23 -3
- package/dist/extensions/mcp/index.d.ts +5 -5
- package/dist/extensions/mcp/oauth.d.ts +15 -1
- package/dist/extensions/mcp/remote-proxy.d.ts +9 -0
- package/dist/extensions/mcp/types.d.ts +8 -1
- package/dist/extensions/plugin/plugin-config-loader.d.ts +1 -0
- package/dist/extensions/plugin/plugin-sandbox.d.ts +24 -0
- package/dist/hub/client/ui-client.d.ts +2 -0
- package/dist/hub/daemon/entry.d.ts +10 -0
- package/dist/hub/daemon/entry.js +195 -187
- package/dist/hub/index.js +194 -186
- package/dist/hub/server/handlers/context.d.ts +10 -0
- package/dist/hub/server/hub-server-transport.d.ts +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +189 -181
- package/dist/runtime/turn-queue/pending-prompt-service.d.ts +6 -1
- package/dist/services/mcp-install.d.ts +9 -0
- package/dist/services/plugin-tools.d.ts +12 -0
- package/dist/services/workspace/index.d.ts +1 -0
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/settings-service.d.ts +4 -2
- package/dist/settings/types.d.ts +32 -2
- package/package.json +4 -4
|
@@ -30,6 +30,16 @@ export interface HubTransportContext {
|
|
|
30
30
|
readonly pendingApprovals: Map<string, PendingApproval>;
|
|
31
31
|
readonly pendingCapabilityRequests: Map<string, PendingCapabilityRequest>;
|
|
32
32
|
readonly suppressNextTerminalEventBySession: Map<string, string>;
|
|
33
|
+
/**
|
|
34
|
+
* Count of RPC-driven turns (`run.start` / session input commands)
|
|
35
|
+
* currently awaiting `sessionHost.runTurn` per session. While > 0 the
|
|
36
|
+
* awaiting handler publishes the authoritative terminal run event, so the
|
|
37
|
+
* session-event projector must not publish its own `run.failed` for
|
|
38
|
+
* agent-level error events emitted during that turn. Turns drained from
|
|
39
|
+
* the pending-prompt queue run with no awaiting RPC handler (count 0), so
|
|
40
|
+
* the projector is their only failure reporter.
|
|
41
|
+
*/
|
|
42
|
+
readonly activeRpcTurnCountBySession: Map<string, number>;
|
|
33
43
|
readonly telemetry?: ITelemetryService;
|
|
34
44
|
readonly sessionHost: RuntimeHost & Partial<PendingPromptsRuntimeService & SessionUsageRuntimeService & SessionConnectionRuntimeService>;
|
|
35
45
|
publish(event: HubEventEnvelope): void;
|
|
@@ -11,6 +11,7 @@ export declare class HubServerTransport implements NativeHubTransport {
|
|
|
11
11
|
private readonly pendingApprovals;
|
|
12
12
|
private readonly pendingCapabilityRequests;
|
|
13
13
|
private readonly suppressNextTerminalEventBySession;
|
|
14
|
+
private readonly activeRpcTurnCountBySession;
|
|
14
15
|
private readonly schedules;
|
|
15
16
|
private readonly scheduleCommands;
|
|
16
17
|
private readonly settings;
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type { LoadAgentPluginFromPathOptions, PluginInitializationFailure, Plugi
|
|
|
24
24
|
export { discoverPluginModulePaths, getPluginDisplayName, loadAgentPluginFromPath, loadAgentPluginsFromPaths, loadAgentPluginsFromPathsWithDiagnostics, resolveAgentPluginPaths, resolveAndLoadAgentPlugins, resolvePluginConfigSearchPaths, resolvePluginSkillDirectoriesFromPaths, } from "./extensions";
|
|
25
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";
|
|
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
|
-
export { type AuthorizeMcpServerOAuthOptions, type AuthorizeMcpServerOAuthResult, augmentMcpTimeoutError, authorizeMcpServerOAuth, type CreateDisabledMcpToolPoliciesOptions, type CreateDisabledMcpToolPolicyOptions, type CreateMcpToolsOptions, createDefaultMcpServerClientFactory, createDisabledMcpToolPolicies, createDisabledMcpToolPolicy, createMcpTools, type DefaultMcpServerClientFactoryOptions, getMcpServerOAuthState, hasMcpSettingsFile, InMemoryMcpManager, type LoadMcpSettingsOptions, listMcpServerOAuthStatuses, loadMcpSettingsFile, type McpConnectionStatus, type McpManager, type McpManagerOptions, type McpServerClient, type McpServerClientFactory, 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 RegisterMcpServersFromSettingsOptions, registerMcpServersFromSettingsFile, resolveDefaultMcpSettingsPath, resolveMcpServerRegistrations, type SetMcpServerDisabledOptions, setMcpServerDisabled, updateMcpServerOAuthState, updateMcpServerOAuthStateAsync, updateMcpSettingsFile, updateMcpSettingsFileSync, } from "./extensions/mcp";
|
|
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";
|
|
29
29
|
export { createAgentHooksExtension, createHookAuditHooks, createHookConfigFileExtension, createHookConfigFileHooks, createSubprocessHooks, HOOK_CONFIG_FILE_EVENT_MAP, HOOKS_CONFIG_DIRECTORY_NAME, type HookConfigFileEntry, HookConfigFileName, type HookEventName, HookEventNameSchema, type HookEventPayload, HookEventPayloadSchema, listHookConfigFiles, mergeAgentHooks, parseHookEventPayload, type RunHookOptions, type RunHookResult, type RunSubprocessEventOptions, type RunSubprocessEventResult, resolveHooksConfigSearchPaths, runHook, runSubprocessEvent, type SubprocessHookControl, type SubprocessHooksOptions, toHookConfigFileName, } from "./hooks";
|
|
30
30
|
export type { CheckpointEntry, CheckpointMetadata, } from "./hooks/checkpoint-hooks";
|
|
@@ -53,19 +53,19 @@ export { listActiveConnectors } from "./services/connectors/active-connectors";
|
|
|
53
53
|
export { disableConnectorAutostart, getPersistedConnectorConnection, persistConnectorConnection, type ReconnectAttempt, type ReconnectPersistedConnectorsOptions, type ReconnectTarget, reconnectPersistedConnectors, removePersistedConnectorConnection, } from "./services/connectors/connector-autostart";
|
|
54
54
|
export { buildConnectorChildEnv } from "./services/connectors/connector-child-env";
|
|
55
55
|
export { cleanupConnectorInstanceViaCli } from "./services/connectors/connector-cleanup";
|
|
56
|
-
export { ADOPTED_POLL_INTERVAL_MS, ConnectorSupervisor, type ConnectorSupervisorDeps, getActiveConnectorSupervisor, RESTART_BASE_DELAY_MS, RESTART_COUNTER_RESET_MS, RESTART_GIVE_UP_AFTER, RESTART_MAX_DELAY_MS,
|
|
56
|
+
export { ADOPTED_POLL_INTERVAL_MS, ConnectorSupervisor, type ConnectorSupervisorDeps, getActiveConnectorSupervisor, RESTART_BASE_DELAY_MS, RESTART_COUNTER_RESET_MS, RESTART_GIVE_UP_AFTER, RESTART_MAX_DELAY_MS, STOP_SIGKILL_TIMEOUT_MS, STOP_SIGTERM_TIMEOUT_MS, setActiveConnectorSupervisor, } from "./services/connectors/connector-supervisor";
|
|
57
57
|
export { FeatureFlagsService, type FeatureFlagsServiceOptions, NoOpFeatureFlagsProvider, } from "./services/feature-flags";
|
|
58
58
|
export type { GlobalCompactionMode, GlobalCompactionStrategy, GlobalPlanActMode, GlobalSettings, } from "./services/global-settings";
|
|
59
59
|
export { filterDisabledPluginPaths, filterDisabledTools, filterExtensionToolRegistrations, GlobalSettingsSchema, isAutoUpdateEnabledGlobally, isPluginDisabledGlobally, isTelemetryOptedOutGlobally, isToolDisabledGlobally, readCompactionModeGlobally, readCompactionStrategyGlobally, readGlobalSettings, readPlanActModeGlobally, readToolAutoApproveGlobally, readTuiThemeGlobally, resolveDisabledPluginPaths, resolveDisabledToolNames, setAutoUpdateEnabledGlobally, setCompactionModeGlobally, setCompactionStrategyGlobally, setDisabledPlugin, setDisabledTools, setPlanActModeGlobally, setTelemetryOptOutGlobally, setToolAutoApproveGlobally, setTuiThemeGlobally, toggleDisabledTool, writeGlobalSettings, } from "./services/global-settings";
|
|
60
60
|
export type { MarketplaceActionResult, MarketplaceEntryInput, MarketplacePrimitiveType, MarketplaceSpawnCommand, MarketplaceSpawnResult, UninstallMarketplaceEntryOptions, } from "./services/marketplace";
|
|
61
61
|
export { findInstalledGlobalMarketplaceSkillName, getGlobalMarketplaceSkillPaths, getMarketplaceSkillCandidates, isMarketplaceSkillInstalled, marketplaceEntryKey, resolveMarketplaceMcpServerName, uninstallMarketplaceEntry, uninstallMarketplaceMcpServerFromSettings, uninstallMarketplacePlugin, uninstallMarketplaceSkill, } from "./services/marketplace";
|
|
62
|
-
export type { McpInstallOptions, McpInstallResult, } from "./services/mcp-install";
|
|
63
|
-
export { buildMcpInstallTransport, installMcpServer, parseMcpInstallArgs, } from "./services/mcp-install";
|
|
62
|
+
export type { McpInstallOptions, McpInstallResult, McpUninstallOptions, McpUninstallResult, } from "./services/mcp-install";
|
|
63
|
+
export { buildMcpInstallTransport, installMcpServer, parseMcpInstallArgs, uninstallMcpServer, } from "./services/mcp-install";
|
|
64
64
|
export type { ParsedPluginSource, PluginInstallOptions, PluginInstallResult, PluginInstallSourceType, PluginMcpOAuthCandidate, } from "./services/plugin-install";
|
|
65
65
|
export { collectPluginMcpOAuthCandidates, installPlugin, isOfficialPluginSlug, parsePluginSource, } from "./services/plugin-install";
|
|
66
66
|
export type { PluginMcpSettingsMutation, PluginMcpSettingsSyncResult, RemovePluginMcpServersFromSettingsOptions, SyncPluginMcpServersToSettingsOptions, } from "./services/plugin-mcp-settings";
|
|
67
67
|
export { disablePluginMcpServersInSettings, removePluginMcpServersFromSettings, syncPluginMcpServersToSettings, } from "./services/plugin-mcp-settings";
|
|
68
|
-
export type { ListPluginToolsResult, PluginToolSummary, } from "./services/plugin-tools";
|
|
68
|
+
export type { ListPluginToolsResult, PluginContributionSummary, PluginToolSummary, } from "./services/plugin-tools";
|
|
69
69
|
export { listPluginTools, listPluginToolsWithDiagnostics, } from "./services/plugin-tools";
|
|
70
70
|
export type { PluginUninstallOptions, PluginUninstallResult, } from "./services/plugin-uninstall";
|
|
71
71
|
export { uninstallPlugin } from "./services/plugin-uninstall";
|
|
@@ -78,13 +78,13 @@ export { SqliteSessionStore } from "./services/storage/sqlite-session-store";
|
|
|
78
78
|
export { SqliteTeamStore, type SqliteTeamStoreOptions, } from "./services/storage/team-store";
|
|
79
79
|
export { resolveCoreDeviceId, resolveCoreDistinctId, } from "./services/telemetry";
|
|
80
80
|
export type { CaptureAgentUnexpectedReasoningTokensInput, CaptureCompactionExecutedProperties, CaptureCompactionSkippedProperties, TelemetryAgentIdentityProperties, TelemetryAgentKind, TelemetryCompactionMode, TelemetryCompactionStrategy, WorkspaceInitErrorProperties, WorkspaceInitializedProperties, WorkspacePathResolvedProperties, } from "./services/telemetry/core-events";
|
|
81
|
-
export { CORE_TELEMETRY_EVENTS, captureAgentCreated, captureAgentTeamCreated, captureAgentUnexpectedReasoningTokens, captureAuthFailed, captureAuthLoggedOut, captureAuthStarted, captureAuthSucceeded, captureCompactionExecuted, captureCompactionSkipped, captureConversationTurnEvent, captureDiffEditFailure, captureExtensionActivated, captureHookDiscovery, captureMentionFailed, captureMentionSearchResults, captureMentionUsed, captureMistakeLimitReached, captureModeSwitch, captureProviderApiError, captureProviderConfigured, captureSkillUsed, captureSubagentExecution, captureTaskCompleted, captureTaskCreated, captureTaskRestarted, captureTokenUsage, captureToolUsage, captureWorkspaceInitError, captureWorkspaceInitialized, captureWorkspacePathResolved, identifyAccount, } from "./services/telemetry/core-events";
|
|
81
|
+
export { CORE_TELEMETRY_EVENTS, captureAgentCreated, captureAgentTeamCreated, captureAgentUnexpectedReasoningTokens, captureAuthFailed, captureAuthLoggedOut, captureAuthRefreshSoftFailure, captureAuthStarted, captureAuthSucceeded, captureCompactionExecuted, captureCompactionSkipped, captureConversationTurnEvent, captureDiffEditFailure, captureExtensionActivated, captureHookDiscovery, captureMentionFailed, captureMentionSearchResults, captureMentionUsed, captureMistakeLimitReached, captureModeSwitch, captureProviderApiError, captureProviderConfigured, captureSkillUsed, captureSubagentExecution, captureTaskCompleted, captureTaskCreated, captureTaskRestarted, captureTokenUsage, captureToolUsage, captureWorkspaceInitError, captureWorkspaceInitialized, captureWorkspacePathResolved, identifyAccount, } from "./services/telemetry/core-events";
|
|
82
82
|
export type { ITelemetryAdapter } from "./services/telemetry/ITelemetryAdapter";
|
|
83
83
|
export { type ConfiguredTelemetryHandle, type CreateOpenTelemetryTelemetryServiceOptions, createConfiguredTelemetryHandle, createConfiguredTelemetryService, createOpenTelemetryTelemetryService, OpenTelemetryProvider, type OpenTelemetryProviderOptions, } from "./services/telemetry/OpenTelemetryProvider";
|
|
84
84
|
export { TelemetryLoggerSink, type TelemetryLoggerSinkOptions, } from "./services/telemetry/TelemetryLoggerSink";
|
|
85
85
|
export { accumulateUsageTotals, createInitialAccumulatedUsage, getCurrentContextSize, summarizeUsageFromMessages, } from "./services/usage";
|
|
86
86
|
export type { FastFileIndexOptions, MentionEnricherOptions, MentionEnrichmentResult, } from "./services/workspace";
|
|
87
|
-
export { enrichPromptWithMentions, getFileIndex, prewarmFileIndex, } from "./services/workspace";
|
|
87
|
+
export { enrichPromptWithMentions, ensureChatWorkspace, getFileIndex, prewarmFileIndex, } from "./services/workspace";
|
|
88
88
|
export type { WorkspaceManager, WorkspaceManagerEvent, } from "./services/workspace/workspace-manager";
|
|
89
89
|
export { InMemoryWorkspaceManager } from "./services/workspace/workspace-manager";
|
|
90
90
|
export { buildWorkspaceMetadata, generateWorkspaceInfo, generateWorkspaceInfoWithDiagnostics, normalizeWorkspacePath, } from "./services/workspace/workspace-manifest";
|
|
@@ -101,7 +101,7 @@ export type { SessionCheckpointRestoreContext, SessionCheckpointRestoreResult, S
|
|
|
101
101
|
export { SessionVersioningError, SessionVersioningService, } from "./session/session-versioning-service";
|
|
102
102
|
export { FileTeamPersistenceStore, type FileTeamPersistenceStoreOptions, } from "./session/stores/team-persistence-store";
|
|
103
103
|
export { countUserRunMessages, getUserRunSpan, isUserRunMessage, type MessageDisplayRole, resolveMessageDisplayRole, } from "./session/user-run-messages";
|
|
104
|
-
export type { CoreSettingsItem, CoreSettingsItemKind, CoreSettingsItemSource, CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsSnapshot, CoreSettingsToggleInput, CoreSettingsType, } from "./settings";
|
|
104
|
+
export type { CorePluginContributions, CorePluginSettingsSnapshot, CorePluginSettingsSource, CoreSettingsItem, CoreSettingsItemKind, CoreSettingsItemSource, CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsServiceOptions, CoreSettingsSnapshot, CoreSettingsToggleInput, CoreSettingsType, } from "./settings";
|
|
105
105
|
export { CoreSettingsService, createCoreSettingsService, } from "./settings";
|
|
106
106
|
export type { ChatMessage, ChatMessageImage, ChatSessionConfig, ChatSessionStatus, ChatSummary, ChatViewState, } from "./types/chat-schema";
|
|
107
107
|
export { ChatMessageImageSchema, ChatMessageRoleSchema, ChatMessageSchema, ChatSessionConfigSchema, ChatSessionStatusSchema, ChatSummarySchema, ChatViewStateSchema, } from "./types/chat-schema";
|