@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.
@@ -61,7 +61,12 @@ export declare class PendingPromptsController {
61
61
  userFiles?: string[];
62
62
  }): void;
63
63
  consumeSteer(sessionId: string): PendingPromptEntry | undefined;
64
- clearAborted(session: ActiveSession): void;
64
+ /**
65
+ * Drops every queued prompt. Only called when the user aborts a
66
+ * queue-initiated turn — that gesture means "stop the queued work", not
67
+ * just "stop this response", so the remainder must not auto-run.
68
+ */
69
+ discardQueue(session: ActiveSession): void;
65
70
  emitPrompts(session: ActiveSession): void;
66
71
  scheduleDrain(sessionId: string, session: ActiveSession): void;
67
72
  drain(sessionId: string): Promise<void>;
@@ -24,3 +24,12 @@ export declare function buildMcpInstallTransport(options: {
24
24
  };
25
25
  export declare function parseMcpInstallArgs(args: string[]): McpInstallOptions;
26
26
  export declare function installMcpServer(options: McpInstallOptions): McpInstallResult;
27
+ export interface McpUninstallOptions {
28
+ name: string;
29
+ settingsPath?: string;
30
+ }
31
+ export interface McpUninstallResult {
32
+ name: string;
33
+ status: "uninstalled";
34
+ }
35
+ export declare function uninstallMcpServer(options: McpUninstallOptions): McpUninstallResult;
@@ -9,9 +9,21 @@ export interface PluginToolSummary {
9
9
  }
10
10
  export interface ListPluginToolsResult {
11
11
  tools: PluginToolSummary[];
12
+ plugins: PluginContributionSummary[];
12
13
  failures: PluginInitializationFailure[];
13
14
  warnings: PluginInitializationWarning[];
14
15
  }
16
+ export interface PluginContributionSummary {
17
+ pluginName: string;
18
+ path: string;
19
+ capabilities: string[];
20
+ tools: string[];
21
+ rules: string[];
22
+ hooks: string[];
23
+ commands: string[];
24
+ mcpServers: string[];
25
+ providers: string[];
26
+ }
15
27
  export declare function listPluginToolsWithDiagnostics(input: {
16
28
  workspacePath: string;
17
29
  cwd?: string;
@@ -1,3 +1,4 @@
1
+ export { ensureChatWorkspace } from "./chat-workspace";
1
2
  export type { FastFileIndexOptions } from "./file-indexer";
2
3
  export { getFileIndex, prewarmFileIndex } from "./file-indexer";
3
4
  export type { MentionEnricherOptions, MentionEnrichmentResult, } from "./mention-enricher";
@@ -1,2 +1,2 @@
1
1
  export { CoreSettingsService, createCoreSettingsService, } from "./settings-service";
2
- export type { ClineCoreSettingsApi, CoreSettingsItem, CoreSettingsItemKind, CoreSettingsItemSource, CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsSnapshot, CoreSettingsToggleInput, CoreSettingsType, } from "./types";
2
+ export type { ClineCoreSettingsApi, CorePluginContributions, CorePluginSettingsSnapshot, CorePluginSettingsSource, CoreSettingsItem, CoreSettingsItemKind, CoreSettingsItemSource, CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsServiceOptions, CoreSettingsSnapshot, CoreSettingsToggleInput, CoreSettingsType, } from "./types";
@@ -1,6 +1,8 @@
1
- import type { CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsSnapshot, CoreSettingsToggleInput } from "./types";
1
+ import type { CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsServiceOptions, CoreSettingsSnapshot, CoreSettingsToggleInput } from "./types";
2
2
  export declare class CoreSettingsService {
3
+ private readonly pluginSource;
4
+ constructor(options?: CoreSettingsServiceOptions);
3
5
  list(input?: CoreSettingsListInput): Promise<CoreSettingsSnapshot>;
4
6
  toggle(input: CoreSettingsToggleInput): Promise<CoreSettingsMutationResult>;
5
7
  }
6
- export declare function createCoreSettingsService(): CoreSettingsService;
8
+ export declare function createCoreSettingsService(options?: CoreSettingsServiceOptions): CoreSettingsService;
@@ -1,7 +1,7 @@
1
1
  import type { UserInstructionConfigService } from "../extensions/config";
2
2
  import type { BuiltinToolAvailabilityContext } from "../extensions/tools";
3
- export type CoreSettingsType = "skills" | "workflows" | "rules" | "tools" | "mcp";
4
- export type CoreSettingsItemKind = "skill" | "workflow" | "rule" | "tool" | "mcp";
3
+ export type CoreSettingsType = "skills" | "workflows" | "rules" | "plugins" | "tools" | "mcp";
4
+ export type CoreSettingsItemKind = "skill" | "workflow" | "rule" | "plugin" | "tool" | "mcp";
5
5
  export type CoreSettingsItemSource = "global" | "workspace" | "builtin" | "global-plugin" | "workspace-plugin";
6
6
  export interface CoreSettingsItem {
7
7
  id: string;
@@ -14,10 +14,40 @@ export interface CoreSettingsItem {
14
14
  toggleable?: boolean;
15
15
  pluginName?: string;
16
16
  pluginPath?: string;
17
+ contributions?: CorePluginContributions;
18
+ }
19
+ export interface CorePluginContributions {
20
+ inspectionStatus: "available" | "disabled" | "failed";
21
+ capabilities: string[];
22
+ tools: string[];
23
+ skills: string[];
24
+ rules: string[];
25
+ hooks: string[];
26
+ commands: string[];
27
+ mcpServers: string[];
28
+ providers: string[];
29
+ }
30
+ export interface CorePluginSettingsSnapshot {
31
+ plugins: CoreSettingsItem[];
32
+ tools: CoreSettingsItem[];
33
+ }
34
+ export interface CorePluginSettingsSource {
35
+ list(input: CoreSettingsListInput): Promise<CorePluginSettingsSnapshot>;
36
+ /** Apply enablement and return the source's authoritative post-mutation state. */
37
+ setEnabled(input: {
38
+ path: string;
39
+ enabled: boolean;
40
+ cwd?: string;
41
+ workspaceRoot?: string;
42
+ }): Promise<CorePluginSettingsSnapshot>;
43
+ }
44
+ export interface CoreSettingsServiceOptions {
45
+ pluginSource?: CorePluginSettingsSource;
17
46
  }
18
47
  export interface CoreSettingsSnapshot {
19
48
  workflows: CoreSettingsItem[];
20
49
  rules: CoreSettingsItem[];
50
+ plugins: CoreSettingsItem[];
21
51
  skills: CoreSettingsItem[];
22
52
  tools: CoreSettingsItem[];
23
53
  mcp: CoreSettingsItem[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cline/core",
3
3
  "description": "Cline Core SDK for Node Runtime",
4
- "version": "0.0.71",
4
+ "version": "0.0.72",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/cline/cline",
@@ -49,9 +49,9 @@
49
49
  "test:watch": "vitest --config vitest.config.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@cline/agents": "0.0.71",
53
- "@cline/shared": "0.0.71",
54
- "@cline/llms": "0.0.71",
52
+ "@cline/agents": "0.0.72",
53
+ "@cline/shared": "0.0.72",
54
+ "@cline/llms": "0.0.72",
55
55
  "@modelcontextprotocol/sdk": "^1.29.0",
56
56
  "@opentelemetry/api": "^1.9.0",
57
57
  "@opentelemetry/api-logs": "^0.214.0",