@cline/core 0.0.92 → 0.0.93-nightly.1792117748
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 +2 -0
- package/dist/cloud/api.d.ts +3 -0
- package/dist/cloud/controller.d.ts +3 -0
- package/dist/cloud/index.js +16 -16
- package/dist/cron/store/sqlite-cron-store.d.ts +6 -0
- package/dist/extensions/composio/composio-meta-tools.d.ts +37 -0
- package/dist/extensions/composio/composio-tools-extension.d.ts +4 -9
- package/dist/extensions/index.d.ts +5 -2
- package/dist/extensions/plugin/plugin-config-loader.d.ts +47 -6
- package/dist/extensions/plugin/plugin-contributions.d.ts +43 -0
- package/dist/extensions/plugin/plugin-loader.d.ts +2 -0
- package/dist/extensions/plugin/plugin-module-import.d.ts +13 -0
- package/dist/extensions/plugin/plugin-registry.d.ts +172 -0
- package/dist/extensions/plugin/plugin-sandbox.d.ts +47 -1
- package/dist/extensions/plugin-sandbox-bootstrap.js +563 -1
- package/dist/extensions/tools/definitions.d.ts +1 -1
- package/dist/extensions/tools/schemas.d.ts +1 -1
- package/dist/extensions/tools/types.d.ts +3 -2
- package/dist/hub/daemon/entry.js +242 -231
- package/dist/hub/daemon/index.d.ts +24 -0
- package/dist/hub/daemon/runtime-handlers.d.ts +2 -0
- package/dist/hub/discovery/index.d.ts +8 -1
- package/dist/hub/index.js +229 -220
- package/dist/hub/runtime-host/hub-runtime-host.d.ts +3 -0
- package/dist/hub/server/handlers/session-handlers.d.ts +3 -1
- package/dist/hub/server/hub-server-transport.d.ts +3 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +263 -254
- package/dist/remote/remote-environments.d.ts +1 -0
- package/dist/runtime/host/local-runtime-host.d.ts +3 -0
- package/dist/runtime/host/runtime-host.d.ts +11 -0
- package/dist/runtime/tools/worker-sandbox.d.ts +90 -0
- package/dist/services/local-runtime-bootstrap.d.ts +7 -1
- package/dist/services/plugin-tools.d.ts +4 -0
- package/dist/services/telemetry/index.js +1 -1
- package/dist/types/chat-schema.d.ts +2 -2
- package/dist/types.d.ts +2 -0
- package/package.json +8 -12
- package/dist/remote/remote-helper-entry.d.ts +0 -1
- package/dist/remote/remote-helper-entry.js +0 -5
- package/dist/remote/remote-helper.d.ts +0 -29
- package/dist/remote/remote-helper.js +0 -4
|
@@ -6,9 +6,12 @@ import { type SessionCompactionState } from "../../session/models/session-compac
|
|
|
6
6
|
import type { CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsSnapshot, CoreSettingsToggleInput } from "../../settings";
|
|
7
7
|
import type { CoreSessionEvent } from "../../types/events";
|
|
8
8
|
import type { SessionRecord } from "../../types/sessions";
|
|
9
|
+
import { type HubClientOptions } from "../client";
|
|
9
10
|
export interface HubRuntimeHostOptions {
|
|
10
11
|
url: string;
|
|
11
12
|
authToken?: string;
|
|
13
|
+
/** Header-based upgrade auth for remote proxies; see NodeHubClient. */
|
|
14
|
+
resolveConnectionHeaders?: HubClientOptions["resolveConnectionHeaders"];
|
|
12
15
|
clientType?: string;
|
|
13
16
|
displayName?: string;
|
|
14
17
|
capabilities?: RuntimeCapabilities;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClientContext, HubCommandEnvelope, HubReplyEnvelope, ToolApprovalRequest, UserContext } from "@cline/shared";
|
|
1
|
+
import type { ClientContext, HubCommandEnvelope, HubReplyEnvelope, PluginPolicies, ToolApprovalRequest, UserContext } from "@cline/shared";
|
|
2
2
|
import type { SessionConnectionUpdate } from "../../../runtime/host/runtime-host";
|
|
3
3
|
import { type HubTransportContext } from "./context";
|
|
4
4
|
/** Parse the serializable subset of ExtensionContext carried by Hub clients. */
|
|
@@ -10,6 +10,8 @@ export declare function selectSessionTools<T extends {
|
|
|
10
10
|
}>(tools: readonly T[], mode: string, source?: string): T[];
|
|
11
11
|
export declare function readSessionConnectionUpdate(value: unknown): SessionConnectionUpdate;
|
|
12
12
|
export declare function resolveSessionAutoApproveTools(toolPolicies: unknown, runtimeOptions: Record<string, unknown>): boolean;
|
|
13
|
+
/** Accepts `{ "*"?: { enabled?: boolean }, [plugin]: { enabled?: boolean } }`. */
|
|
14
|
+
export declare function parsePluginPolicies(value: unknown): PluginPolicies | undefined;
|
|
13
15
|
export declare function handleSessionCreate(ctx: HubTransportContext, envelope: HubCommandEnvelope, requestToolApproval: (request: ToolApprovalRequest) => Promise<{
|
|
14
16
|
approved: boolean;
|
|
15
17
|
reason?: string;
|
|
@@ -32,6 +32,8 @@ export declare class HubServerTransport implements NativeHubTransport {
|
|
|
32
32
|
private runQueue?;
|
|
33
33
|
private runExecutor?;
|
|
34
34
|
private draining;
|
|
35
|
+
private readonly plugins;
|
|
36
|
+
private unsubscribePluginStatus?;
|
|
35
37
|
constructor(options: HubWebSocketServerOptions);
|
|
36
38
|
private startAgendaTaskSession;
|
|
37
39
|
private runAgendaTaskSession;
|
|
@@ -53,6 +55,7 @@ export declare class HubServerTransport implements NativeHubTransport {
|
|
|
53
55
|
* boundary an operator chose, never as an ambush under a live turn.
|
|
54
56
|
*/
|
|
55
57
|
private handleHubDrain;
|
|
58
|
+
private handlePluginsReload;
|
|
56
59
|
private handleHubStatus;
|
|
57
60
|
private describeStatus;
|
|
58
61
|
/** Whether the hub is currently draining (exposed for the HTTP status). */
|
package/dist/index.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ export type { OAuthCredentials, OAuthLoginCallbacks, OAuthPrompt, OAuthProviderI
|
|
|
21
21
|
export { ClineCore } from "./ClineCore";
|
|
22
22
|
export { toClineCoreStartInput } from "./cline-core/start-input";
|
|
23
23
|
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";
|
|
24
|
-
export type { AgentPluginPackageDiagnostic, AgentPluginPackageDiagnosticScope, AgentPluginPackageLoadReport, AgentPluginPackageManifest, AgentPluginPackageMcpServer, AgentPluginPackageSkill, AgentSkillMetadata, LoadAgentPluginFromPathOptions, LoadAgentPluginPackagesOptions, LoadedAgentPluginPackage, ParsedAgentSkill, PluginInitializationFailure, PluginInitializationWarning, PluginLoadDiagnostics, ResolveAgentPluginPathsOptions, } from "./extensions";
|
|
25
|
-
export { AGENT_PLUGINS_V1_MANIFEST_SCHEMA, AGENT_PLUGINS_V1_MCP_SCHEMA, discoverPluginModulePaths, getPluginDisplayName, loadAgentPluginFromPath, loadAgentPluginPackages, loadAgentPluginsFromPaths, loadAgentPluginsFromPathsWithDiagnostics, parseAgentSkillMarkdown, resolveAgentPluginPaths, resolveAndLoadAgentPlugins, resolvePluginConfigSearchPaths, resolvePluginSkillDirectoriesFromPaths, } from "./extensions";
|
|
24
|
+
export type { AgentPluginPackageDiagnostic, AgentPluginPackageDiagnosticScope, AgentPluginPackageLoadReport, AgentPluginPackageManifest, AgentPluginPackageMcpServer, AgentPluginPackageSkill, AgentSkillMetadata, LoadAgentPluginFromPathOptions, LoadAgentPluginPackagesOptions, LoadedAgentPluginPackage, ParsedAgentSkill, PluginExecutionMode, PluginHookErrorMode, PluginInitializationFailure, PluginInitializationWarning, PluginLoadDiagnostics, PluginRegistryOptions, PluginSessionLoadInput, PluginSessionLoadResult, PluginStatusListener, ResolveAgentPluginPathsOptions, } from "./extensions";
|
|
25
|
+
export { AGENT_PLUGINS_V1_MANIFEST_SCHEMA, AGENT_PLUGINS_V1_MCP_SCHEMA, CLINE_PLUGIN_BOOTSTRAP_PATH_ENV, discoverPluginModulePaths, formatSessionPluginIssue, getPluginDisplayName, getProcessPluginRegistry, loadAgentPluginFromPath, loadAgentPluginPackages, loadAgentPluginsFromPaths, loadAgentPluginsFromPathsWithDiagnostics, PluginCallTimeoutError, PluginRegistry, parseAgentSkillMarkdown, resolveAgentPluginPaths, resolveAgentPluginPathsWithDiagnostics, resolveAndLoadAgentPlugins, resolvePluginConfigSearchPaths, resolvePluginSkillDirectoriesFromPaths, } from "./extensions";
|
|
26
26
|
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";
|
|
27
27
|
export { combineUserInstructionConfigServices, 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";
|
|
28
28
|
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";
|
|
@@ -51,6 +51,7 @@ export { getProcessStartToken, getProcessStartTokenAsync, type ProcessStartToken
|
|
|
51
51
|
export { formatRulesForSystemPrompt, isRuleEnabled, loadRulesForSystemPromptFromRecords, mergeRulesForSystemPrompt, } from "./runtime/safety/rules";
|
|
52
52
|
export { type SandboxCallOptions, SubprocessSandbox, type SubprocessSandboxOptions, } from "./runtime/tools/subprocess-sandbox";
|
|
53
53
|
export { type DesktopToolApprovalOptions, requestDesktopToolApproval, } from "./runtime/tools/tool-approval";
|
|
54
|
+
export { WorkerSandbox, type WorkerSandboxOptions, } from "./runtime/tools/worker-sandbox";
|
|
54
55
|
export * from "./services/cloud-handoff";
|
|
55
56
|
export { listActiveConnectors } from "./services/connectors/active-connectors";
|
|
56
57
|
export { disableConnectorAutostart, getPersistedConnectorConnection, persistConnectorConnection, type ReconnectAttempt, type ReconnectPersistedConnectorsOptions, type ReconnectTarget, reconnectPersistedConnectors, removePersistedConnectorConnection, } from "./services/connectors/connector-autostart";
|
|
@@ -121,7 +122,8 @@ export type { SessionMessagesArtifactUploader } from "./types/session";
|
|
|
121
122
|
export { CORE_BUILD_VERSION } from "./version";
|
|
122
123
|
export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./services/telemetry")>;
|
|
123
124
|
export { Agent, createAgentRuntime } from "@cline/agents";
|
|
124
|
-
export {
|
|
125
|
+
export type { ConnectorsRequest } from "./extensions/composio/composio-meta-tools";
|
|
126
|
+
export { resolveComposioConnectionStatePath } from "./extensions/composio/composio-tools-extension";
|
|
125
127
|
export { createCompactionStateAwarePrepareTurn, createContextCompactionPrepareTurn, } from "./extensions/context/compaction";
|
|
126
128
|
export { ALL_DEFAULT_TOOL_NAMES, type ApplyPatchExecutor, type ApplyPatchInput, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, CommandExitError, CommandSpawnError, CommandTerminationError, 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, isCoreBuiltinToolAvailable, isSkillsToolAvailable, MAX_COMMAND_OUTPUT_CHARS, PATCH_MARKERS, PatchActionType, type PatchFileChange, resolveCoreSelectedToolIds, resolveToolClientType, type ShellExecutor, type ShellExecutorOptions, type StructuredCommandInput, StructuredCommandInputSchema, TEAM_TOOL_NAMES, type ToolCatalogEntry, type ToolClientType, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, truncateCommandOutput, } from "./extensions/tools";
|
|
127
129
|
export * from "./remote/remote-environments";
|