@cline/core 0.0.59 → 0.0.60
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/auth/cline.d.ts +8 -0
- package/dist/extensions/context/agentic-compaction.d.ts +6 -0
- package/dist/extensions/context/budget-projection/index.d.ts +2 -0
- package/dist/extensions/context/budget-projection/project.d.ts +4 -0
- package/dist/extensions/context/budget-projection/types.d.ts +58 -0
- package/dist/hub/daemon/entry.js +212 -210
- package/dist/hub/index.js +209 -207
- package/dist/index.d.ts +11 -9
- package/dist/index.js +213 -211
- package/dist/logging/early-logger.d.ts +37 -0
- package/dist/runtime/config/connection-update.d.ts +27 -0
- package/dist/runtime/host/local-runtime-host.d.ts +10 -0
- package/dist/services/llms/provider-settings.d.ts +19 -19
- package/dist/services/telemetry/core-events.d.ts +33 -1
- package/dist/services/telemetry/index.js +1 -1
- package/dist/session/models/session-manifest.d.ts +3 -3
- package/dist/types/chat-schema.d.ts +8 -8
- package/dist/types/config.d.ts +16 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* Core contracts, shared state utilities, and Node runtime services.
|
|
5
5
|
*/
|
|
6
6
|
export * as Llms from "@cline/llms";
|
|
7
|
-
export { ClineNotSubscribedError, ClineOrgIndividualInferenceSubscriptionError, ClinePassLimitError, getClineOrgIndividualInferenceSubscriptionMessage, getClineNotSubscribedMessage, getClinePassSubscriptionUrl, isClineNotSubscribedError, isClineNotSubscribedMessage, isClineOrgIndividualInferenceSubscriptionError, isClineOrgIndividualInferenceSubscriptionMessage, isClinePassLimitError, isClinePassLimitMessage, } from "@cline/llms";
|
|
7
|
+
export { ClineNotSubscribedError, ClineOrgIndividualInferenceSubscriptionError, ClinePassLimitError, extractClinePassLimitMessage, getClineOrgIndividualInferenceSubscriptionMessage, getClineNotSubscribedMessage, getClinePassSubscriptionUrl, isClineNotSubscribedError, isClineNotSubscribedMessage, isClineOrgIndividualInferenceSubscriptionError, isClineOrgIndividualInferenceSubscriptionMessage, isClinePassLimitError, isClinePassLimitMessage, } from "@cline/llms";
|
|
8
8
|
export type { AddProviderActionRequest, AgentConfig, AgentEvent, AgentExtension as AgentPlugin, // Public-facing alias for extensions
|
|
9
9
|
AgentExtensionCommand, AgentExtensionCommand as AgentPluginCommand, AgentExtensionCommandResult, AgentHooks, AgentMode, AgentResult, AgentRunResult, AgentRunStatus, AgentTool, AgentToolContext, AutomationEventEnvelope, BasicLogger, BasicLogger as Logger, CaptureSdkErrorInput, ChatRunTurnRequest, ChatRuntimeConfig, ChatStartSessionArtifacts, ChatStartSessionRequest, ChatTurnResult, ClineAccountActionRequest, ConnectorHookEvent, ContentBlock, FeatureFlag, FeatureFlagPayload, FeatureFlagsAndPayloads, FeatureFlagsContext, FeatureFlagsSettings, FileContent, GetProviderModelsActionRequest, HookSessionContext, IFeatureFlagsProvider, ImageContent, ITelemetryService, ListProvidersActionRequest, Message, MessageWithMetadata, ProviderActionRequest, ProviderCatalogResponse, ProviderListItem, ProviderModel, ProviderOAuthLoginResponse, RuntimeLoggerConfig, SaveProviderSettingsActionRequest, SdkTelemetryErrorComponent, SdkTelemetryErrorSeverity, SessionLineage, TEAM_LIFECYCLE_EVENT_TYPE, TEAM_PROGRESS_EVENT_TYPE, TeamProgressProjectionEvent, TelemetryArray, TelemetryMetadata, TelemetryObject, TelemetryPrimitive, TelemetryProperties, TelemetryValue, TextContent, ThinkingContent, ToolApprovalRequest, ToolApprovalResult, ToolPolicy, ToolResultContent, ToolUseContent, WorkspaceInfo, WorkspaceInfoSchema, WorkspaceManifest, WorkspaceManifestSchema, } from "@cline/shared";
|
|
10
10
|
export { buildClineSystemPrompt as getClineDefaultSystemPrompt, buildSdkErrorProperties, ContributionRegistry, captureSdkError, createClineTelemetryServiceConfig, createClineTelemetryServiceMetadata, createContributionRegistry, createTool, emptyWorkspaceManifest, FEATURE_FLAGS, FeatureFlagDefaultValue, formatDisplayUserInput, noopBasicLogger, normalizeSdkError, normalizeUserInput, parseUserCommandEnvelope, registerDisposable, SDK_ERROR_TELEMETRY_EVENT, } from "@cline/shared";
|
|
11
11
|
export * from "@cline/shared/storage";
|
|
12
|
-
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, type ClineOrganization, type ClineSubscriptionPlan, executeClineAccountAction, type FeaturebaseTokenResponse, isClineAccountActionRequest, type ProviderActionExecutor, RpcClineAccountService, type
|
|
12
|
+
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, type ClineOrganization, type ClineSubscriptionPlan, executeClineAccountAction, type FeaturebaseTokenResponse, isClineAccountActionRequest, type ProviderActionExecutor, RpcClineAccountService, type UserCurrentPlan, type UserRemoteConfigOrganization, type UserRemoteConfigResponse, } from "./account";
|
|
13
|
+
export { hashSecret, setSdkLogger, sdkDebug, } from "./logging/early-logger";
|
|
13
14
|
export { createOAuthClientCallbacks, type OAuthClientCallbacksOptions, } from "./auth/client";
|
|
14
15
|
export { completeClineDeviceAuth, getValidClineCredentials, loginClineOAuth, refreshClineToken, startClineDeviceAuth, } from "./auth/cline";
|
|
15
16
|
export { getValidOpenAICodexCredentials, loginOpenAICodex, refreshOpenAICodexToken, } from "./auth/codex";
|
|
@@ -24,7 +25,7 @@ export type { LoadAgentPluginFromPathOptions, PluginInitializationFailure, Plugi
|
|
|
24
25
|
export { discoverPluginModulePaths, loadAgentPluginFromPath, loadAgentPluginsFromPaths, loadAgentPluginsFromPathsWithDiagnostics, resolveAgentPluginPaths, resolveAndLoadAgentPlugins, resolvePluginConfigSearchPaths, resolvePluginSkillDirectoriesFromPaths, } from "./extensions";
|
|
25
26
|
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
27
|
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, 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, type McpSettingsMutator, 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,
|
|
28
|
+
export { type AuthorizeMcpServerOAuthOptions, type AuthorizeMcpServerOAuthResult, 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";
|
|
28
29
|
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
30
|
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
31
|
export type { CheckpointEntry, CheckpointMetadata, } from "./hooks/checkpoint-hooks";
|
|
@@ -34,6 +35,8 @@ export { RemoteRuntimeHost } from "./hub/runtime-host/remote-runtime-host";
|
|
|
34
35
|
export { buildRemoteConfigSessionBlobUploadMetadata, createRemoteConfigSessionMessagesArtifactUploader, type PreparedRemoteConfigCoreIntegration, type PrepareRemoteConfigCoreIntegrationOptions, prepareRemoteConfigCoreIntegration, REMOTE_CONFIG_SESSION_BLOB_UPLOAD_METADATA_KEY, readRemoteConfigSessionBlobUploadMetadata, registerRemoteConfigSessionBlobUpload, } from "./remote-config/integration";
|
|
35
36
|
export type { RuntimeCapabilities } from "./runtime/capabilities";
|
|
36
37
|
export { normalizeRuntimeCapabilities } from "./runtime/capabilities";
|
|
38
|
+
export type { ConnectionUpdate, ConnectionUpdateInput, } from "./runtime/config/connection-update";
|
|
39
|
+
export { buildConnectionUpdate } from "./runtime/config/connection-update";
|
|
37
40
|
export { listSessionHistoryFromBackend } from "./runtime/host/history";
|
|
38
41
|
export type { SessionBackend } from "./runtime/host/host";
|
|
39
42
|
export { createRuntimeHost, createRuntimeHost as createSessionHost, resolveSessionBackend, } from "./runtime/host/host";
|
|
@@ -46,13 +49,12 @@ export { formatRulesForSystemPrompt, isRuleEnabled, mergeRulesForSystemPrompt, }
|
|
|
46
49
|
export { type SandboxCallOptions, SubprocessSandbox, type SubprocessSandboxOptions, } from "./runtime/tools/subprocess-sandbox";
|
|
47
50
|
export { type DesktopToolApprovalOptions, requestDesktopToolApproval, } from "./runtime/tools/tool-approval";
|
|
48
51
|
export { FeatureFlagsService, type FeatureFlagsServiceOptions, NoOpFeatureFlagsProvider, } from "./services/feature-flags";
|
|
49
|
-
export type { GlobalSettings } from "./services/global-settings";
|
|
52
|
+
export type { GlobalCompactionStrategy, GlobalSettings, } from "./services/global-settings";
|
|
50
53
|
export { filterDisabledPluginPaths, filterDisabledTools, filterExtensionToolRegistrations, GlobalSettingsSchema, isAutoUpdateEnabledGlobally, isPluginDisabledGlobally, isTelemetryOptedOutGlobally, isToolDisabledGlobally, readCompactionStrategyGlobally, readGlobalSettings, resolveDisabledPluginPaths, resolveDisabledToolNames, setAutoUpdateEnabledGlobally, setCompactionStrategyGlobally, setDisabledPlugin, setDisabledTools, setTelemetryOptOutGlobally, toggleDisabledTool, writeGlobalSettings, } from "./services/global-settings";
|
|
51
|
-
export type { GlobalCompactionStrategy } from "./services/global-settings";
|
|
52
|
-
export type { McpInstallOptions, McpInstallResult, } from "./services/mcp-install";
|
|
53
|
-
export { buildMcpInstallTransport, installMcpServer, parseMcpInstallArgs, } from "./services/mcp-install";
|
|
54
54
|
export type { MarketplaceActionResult, MarketplaceEntryInput, MarketplacePrimitiveType, MarketplaceSpawnCommand, MarketplaceSpawnResult, UninstallMarketplaceEntryOptions, } from "./services/marketplace";
|
|
55
55
|
export { findInstalledGlobalMarketplaceSkillName, getGlobalMarketplaceSkillPaths, getMarketplaceSkillCandidates, isMarketplaceSkillInstalled, marketplaceEntryKey, resolveMarketplaceMcpServerName, uninstallMarketplaceEntry, uninstallMarketplaceMcpServerFromSettings, uninstallMarketplacePlugin, uninstallMarketplaceSkill, } from "./services/marketplace";
|
|
56
|
+
export type { McpInstallOptions, McpInstallResult, } from "./services/mcp-install";
|
|
57
|
+
export { buildMcpInstallTransport, installMcpServer, parseMcpInstallArgs, } from "./services/mcp-install";
|
|
56
58
|
export type { ParsedPluginSource, PluginInstallOptions, PluginInstallResult, PluginInstallSourceType, PluginMcpOAuthCandidate, } from "./services/plugin-install";
|
|
57
59
|
export { collectPluginMcpOAuthCandidates, installPlugin, isOfficialPluginSlug, parsePluginSource, } from "./services/plugin-install";
|
|
58
60
|
export type { PluginMcpSettingsMutation, PluginMcpSettingsSyncResult, RemovePluginMcpServersFromSettingsOptions, SyncPluginMcpServersToSettingsOptions, } from "./services/plugin-mcp-settings";
|
|
@@ -79,7 +81,7 @@ export { enrichPromptWithMentions, getFileIndex, prewarmFileIndex, } from "./ser
|
|
|
79
81
|
export type { WorkspaceManager, WorkspaceManagerEvent, } from "./services/workspace/workspace-manager";
|
|
80
82
|
export { InMemoryWorkspaceManager } from "./services/workspace/workspace-manager";
|
|
81
83
|
export { buildWorkspaceMetadata, generateWorkspaceInfo, generateWorkspaceInfoWithDiagnostics, normalizeWorkspacePath, } from "./services/workspace/workspace-manifest";
|
|
82
|
-
export { buildCheckpointWorkspaceDiff,
|
|
84
|
+
export { buildCheckpointWorkspaceDiff, type CheckpointComparePlan, type CheckpointContentDiff, type CheckpointWorkspaceCompareResult, compareCheckpointToWorkspace, createCheckpointComparePlan, } from "./session/checkpoint-diff";
|
|
83
85
|
export { findCheckpointForRun, readSessionCheckpointHistory, } from "./session/checkpoint-restore";
|
|
84
86
|
export { deriveSubsessionStatus, makeSubSessionId, makeTeamTaskSubSessionId, sanitizeSessionToken, } from "./session/models/session-graph";
|
|
85
87
|
export type { SessionManifest } from "./session/models/session-manifest";
|
|
@@ -100,7 +102,7 @@ export { CORE_BUILD_VERSION } from "./version";
|
|
|
100
102
|
export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./services/telemetry")>;
|
|
101
103
|
export { Agent, createAgentRuntime } from "@cline/agents";
|
|
102
104
|
export { createCompactionStateAwarePrepareTurn, createContextCompactionPrepareTurn, } from "./extensions/context/compaction";
|
|
103
|
-
export { ALL_DEFAULT_TOOL_NAMES, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, createBuiltinTools, createDefaultExecutors, createDefaultShellExecutor, createDefaultTools, createDefaultToolsWithPreset, createShellExecutor, createShellTool, createToolPoliciesWithPreset, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, MAX_COMMAND_OUTPUT_CHARS, resolveCoreSelectedToolIds, type
|
|
105
|
+
export { ALL_DEFAULT_TOOL_NAMES, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, createBuiltinTools, createDefaultExecutors, createDefaultShellExecutor, createDefaultTools, createDefaultToolsWithPreset, createShellExecutor, createShellTool, createToolPoliciesWithPreset, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, MAX_COMMAND_OUTPUT_CHARS, resolveCoreSelectedToolIds, type ShellExecutor, type ShellExecutorOptions, type StructuredCommandInput, StructuredCommandInputSchema, TEAM_TOOL_NAMES, type ToolCatalogEntry, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, truncateCommandOutput, } from "./extensions/tools";
|
|
104
106
|
export { type ClineRecommendedModel, type ClineRecommendedModelsData, FALLBACK_CLINE_RECOMMENDED_MODELS, type FetchClineRecommendedModelsOptions, fetchClineRecommendedModels, } from "./services/llms/cline-recommended-models";
|
|
105
107
|
export { clearLiveModelsCatalogCache, clearPrivateModelsCatalogCache, DEFAULT_MODELS_CATALOG_URL, getLiveModelsCatalog, getProviderConfig, OPENAI_COMPATIBLE_PROVIDERS, resolveProviderConfig, } from "./services/llms/provider-defaults";
|
|
106
108
|
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";
|