@cline/core 0.0.65 → 0.0.66

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.
Files changed (32) hide show
  1. package/README.md +12 -0
  2. package/dist/cline-core/types.d.ts +5 -3
  3. package/dist/cron/service/schedule-service.d.ts +2 -1
  4. package/dist/cron/store/sqlite-cron-store.d.ts +5 -2
  5. package/dist/extensions/context/basic-compaction.d.ts +10 -1
  6. package/dist/extensions/context/compaction-shared.d.ts +20 -0
  7. package/dist/hub/client/index.d.ts +2 -0
  8. package/dist/hub/daemon/entry.d.ts +5 -1
  9. package/dist/hub/daemon/entry.js +261 -216
  10. package/dist/hub/index.js +255 -212
  11. package/dist/hub/server/handlers/connector-handlers.d.ts +0 -2
  12. package/dist/hub/server/hub-server-options.d.ts +6 -1
  13. package/dist/index.d.ts +10 -7
  14. package/dist/index.js +256 -213
  15. package/dist/runtime/host/local-runtime-host.d.ts +4 -1
  16. package/dist/runtime/host/runtime-host.d.ts +11 -3
  17. package/dist/services/connectors/active-connectors.d.ts +2 -0
  18. package/dist/services/connectors/connector-autostart.d.ts +33 -0
  19. package/dist/services/connectors/daemon-connector-reconnect.d.ts +30 -0
  20. package/dist/services/global-settings.d.ts +33 -0
  21. package/dist/services/llms/provider-settings.d.ts +1 -1
  22. package/dist/services/llms/runtime-registry.d.ts +1 -1
  23. package/dist/services/local-runtime-bootstrap.d.ts +5 -4
  24. package/dist/services/storage/sqlite-session-store.d.ts +5 -0
  25. package/dist/services/telemetry/OpenTelemetryProvider.d.ts +16 -0
  26. package/dist/services/telemetry/core-events.d.ts +20 -4
  27. package/dist/services/telemetry/index.js +1 -1
  28. package/dist/services/workspace/chat-workspace.d.ts +9 -0
  29. package/dist/types/chat-schema.d.ts +31 -0
  30. package/dist/types/config.d.ts +8 -0
  31. package/dist/types.d.ts +2 -2
  32. package/package.json +5 -4
@@ -1,5 +1,4 @@
1
1
  import type { ConnectorChannelsResponse, HubCommandEnvelope, HubReplyEnvelope } from "@cline/shared";
2
- import { resolveConnectorSettingsPath } from "@cline/shared/storage";
3
2
  import { type HubTransportContext } from "./context";
4
3
  declare function connectorChannelsPayload(): ConnectorChannelsResponse;
5
4
  declare function configureConnector(payload: unknown): ConnectorChannelsResponse;
@@ -9,6 +8,5 @@ export declare const __test__: {
9
8
  configureConnector: typeof configureConnector;
10
9
  connectorChannelsPayload: typeof connectorChannelsPayload;
11
10
  deleteConnectorConfig: typeof deleteConnectorConfig;
12
- resolveConnectorSettingsPath: typeof resolveConnectorSettingsPath;
13
11
  };
14
12
  export {};
@@ -1,4 +1,4 @@
1
- import type { ITelemetryService } from "@cline/shared";
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
4
  import type { PendingPromptsRuntimeService, RuntimeHost } from "../../runtime/host/runtime-host";
@@ -36,6 +36,11 @@ export interface HubWebSocketServerOptions {
36
36
  * Ignored when `sessionHost` is supplied.
37
37
  */
38
38
  telemetry?: ITelemetryService;
39
+ /**
40
+ * Structured logger forwarded to the internally-constructed local runtime.
41
+ * Ignored when `sessionHost` is supplied.
42
+ */
43
+ logger?: BasicLogger;
39
44
  }
40
45
  export interface HubWebSocketServer {
41
46
  host: string;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@
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, extractClinePassLimitMessage, getClineNotSubscribedMessage, getClineOrgIndividualInferenceSubscriptionMessage, getClinePassSubscriptionUrl, isClineNotSubscribedError, isClineNotSubscribedMessage, isClineOrgIndividualInferenceSubscriptionError, isClineOrgIndividualInferenceSubscriptionMessage, isClinePassLimitError, isClinePassLimitMessage, } from "@cline/llms";
7
+ export { ClineFreeModelLimitError, ClineNotSubscribedError, ClineOrgIndividualInferenceSubscriptionError, ClinePassLimitError, extractClineFreeModelLimitResetTime, extractClinePassLimitMessage, getClineNotSubscribedMessage, getClineOrgIndividualInferenceSubscriptionMessage, getClinePassSubscriptionUrl, isClineFreeModelLimitError, isClineFreeModelLimitMessage, isClineModelNotFoundMessage, 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, stripUtf8Bom, } from "@cline/shared";
@@ -41,16 +41,19 @@ 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, StartSessionInput, StartSessionResult, } from "./runtime/host/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";
45
45
  export { isSessionNotFoundError, SESSION_NOT_FOUND_ERROR_CODE, SessionNotFoundError, splitCoreSessionConfig, } from "./runtime/host/runtime-host";
46
46
  export { createTeamName, DefaultRuntimeBuilder, } from "./runtime/orchestration/runtime-builder";
47
+ export { OAuthReauthRequiredError, type RuntimeOAuthResolution, RuntimeOAuthTokenManager, } from "./runtime/orchestration/runtime-oauth-token-manager";
47
48
  export type { BuiltRuntime, RuntimeBuilder, RuntimeBuilderInput, SessionRuntime, } from "./runtime/orchestration/session-runtime";
48
49
  export { formatRulesForSystemPrompt, isRuleEnabled, mergeRulesForSystemPrompt, } from "./runtime/safety/rules";
49
50
  export { type SandboxCallOptions, SubprocessSandbox, type SubprocessSandboxOptions, } from "./runtime/tools/subprocess-sandbox";
50
51
  export { type DesktopToolApprovalOptions, requestDesktopToolApproval, } from "./runtime/tools/tool-approval";
52
+ export { listActiveConnectors } from "./services/connectors/active-connectors";
53
+ export { disableConnectorAutostart, getPersistedConnectorConnection, persistConnectorConnection, type ReconnectAttempt, type ReconnectPersistedConnectorsOptions, type ReconnectTarget, reconnectPersistedConnectors, removePersistedConnectorConnection, } from "./services/connectors/connector-autostart";
51
54
  export { FeatureFlagsService, type FeatureFlagsServiceOptions, NoOpFeatureFlagsProvider, } from "./services/feature-flags";
52
- export type { GlobalCompactionStrategy, GlobalSettings, } from "./services/global-settings";
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";
55
+ export type { GlobalCompactionMode, GlobalCompactionStrategy, GlobalPlanActMode, GlobalSettings, } from "./services/global-settings";
56
+ export { filterDisabledPluginPaths, filterDisabledTools, filterExtensionToolRegistrations, GlobalSettingsSchema, isAutoUpdateEnabledGlobally, isPluginDisabledGlobally, isTelemetryOptedOutGlobally, isToolDisabledGlobally, readCompactionModeGlobally, readCompactionStrategyGlobally, readGlobalSettings, readPlanActModeGlobally, readToolAutoApproveGlobally, resolveDisabledPluginPaths, resolveDisabledToolNames, setAutoUpdateEnabledGlobally, setCompactionModeGlobally, setCompactionStrategyGlobally, setDisabledPlugin, setDisabledTools, setPlanActModeGlobally, setTelemetryOptOutGlobally, setToolAutoApproveGlobally, toggleDisabledTool, writeGlobalSettings, } from "./services/global-settings";
54
57
  export type { MarketplaceActionResult, MarketplaceEntryInput, MarketplacePrimitiveType, MarketplaceSpawnCommand, MarketplaceSpawnResult, UninstallMarketplaceEntryOptions, } from "./services/marketplace";
55
58
  export { findInstalledGlobalMarketplaceSkillName, getGlobalMarketplaceSkillPaths, getMarketplaceSkillCandidates, isMarketplaceSkillInstalled, marketplaceEntryKey, resolveMarketplaceMcpServerName, uninstallMarketplaceEntry, uninstallMarketplaceMcpServerFromSettings, uninstallMarketplacePlugin, uninstallMarketplaceSkill, } from "./services/marketplace";
56
59
  export type { McpInstallOptions, McpInstallResult, } from "./services/mcp-install";
@@ -96,8 +99,8 @@ export { SessionVersioningError, SessionVersioningService, } from "./session/ses
96
99
  export { FileTeamPersistenceStore, type FileTeamPersistenceStoreOptions, } from "./session/stores/team-persistence-store";
97
100
  export type { CoreSettingsItem, CoreSettingsItemKind, CoreSettingsItemSource, CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsSnapshot, CoreSettingsToggleInput, CoreSettingsType, } from "./settings";
98
101
  export { CoreSettingsService, createCoreSettingsService, } from "./settings";
99
- export type { ChatMessage, ChatSessionConfig, ChatSessionStatus, ChatSummary, ChatViewState, } from "./types/chat-schema";
100
- export { ChatMessageRoleSchema, ChatMessageSchema, ChatSessionConfigSchema, ChatSessionStatusSchema, ChatSummarySchema, ChatViewStateSchema, } from "./types/chat-schema";
102
+ export type { ChatMessage, ChatMessageImage, ChatSessionConfig, ChatSessionStatus, ChatSummary, ChatViewState, } from "./types/chat-schema";
103
+ export { ChatMessageImageSchema, ChatMessageRoleSchema, ChatMessageSchema, ChatSessionConfigSchema, ChatSessionStatusSchema, ChatSummarySchema, ChatViewStateSchema, } from "./types/chat-schema";
101
104
  export type { SessionMessagesArtifactUploader } from "./types/session";
102
105
  export { CORE_BUILD_VERSION } from "./version";
103
106
  export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./services/telemetry")>;
@@ -116,7 +119,7 @@ export { createSessionCompactionState, parseSessionCompactionState, projectSessi
116
119
  export type { RuntimeEnvironment } from "./types";
117
120
  export type { SessionStatus } from "./types/common";
118
121
  export { SESSION_STATUSES, SessionSource } from "./types/common";
119
- export type { CoreAgentMode, CoreCheckpointConfig, CoreCheckpointContext, CoreCompactionConfig, CoreCompactionContext, CoreCompactionResult, CoreCompactionStrategy, CoreCompactionSummarizerConfig, CoreModelConfig, CoreRuntimeFeatures, CoreSessionConfig, } from "./types/config";
122
+ export type { ClineCoreStartConfig, CoreAgentMode, CoreCheckpointConfig, CoreCheckpointContext, CoreCompactionConfig, CoreCompactionContext, CoreCompactionResult, CoreCompactionStrategy, CoreCompactionSummarizerConfig, CoreModelConfig, CoreRuntimeFeatures, CoreSessionConfig, } from "./types/config";
120
123
  export type { CoreSessionEvent, SessionChunkEvent, SessionEndedEvent, SessionPendingPrompt, SessionPendingPromptSubmittedEvent, SessionPendingPromptsEvent, SessionTeamProgressEvent, SessionToolEvent, } from "./types/events";
121
124
  export type { ProviderTokenSource, StoredProviderSettings, StoredProviderSettingsEntry, } from "./types/provider-settings";
122
125
  export { emptyStoredProviderSettings, StoredProviderSettingsEntrySchema, StoredProviderSettingsSchema, } from "./types/provider-settings";