@cline/core 0.0.52 → 0.0.53-nightly.1782703376

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.
@@ -0,0 +1,41 @@
1
+ export type MarketplacePrimitiveType = "mcp" | "skill" | "plugin";
2
+ export type MarketplaceEntryInput = {
3
+ id: string;
4
+ type: MarketplacePrimitiveType;
5
+ name?: string;
6
+ install?: {
7
+ args?: string[];
8
+ };
9
+ };
10
+ export type MarketplaceActionResult = {
11
+ id: string;
12
+ type: MarketplacePrimitiveType;
13
+ status: "installed" | "uninstalled";
14
+ message: string;
15
+ output?: string;
16
+ };
17
+ export type MarketplaceSpawnResult = {
18
+ exitCode: number;
19
+ stdout: string;
20
+ stderr: string;
21
+ };
22
+ export type MarketplaceSpawnCommand = (command: string, args: string[]) => Promise<MarketplaceSpawnResult>;
23
+ export type UninstallMarketplaceEntryOptions = {
24
+ deleteMcpServer?: (name: string) => void | Promise<void>;
25
+ mcpSettingsPath?: string;
26
+ spawnCommand?: MarketplaceSpawnCommand;
27
+ workspaceRoot?: string;
28
+ };
29
+ export declare function marketplaceEntryKey(entry: Pick<MarketplaceEntryInput, "id" | "type">): string;
30
+ export declare function resolveMarketplaceMcpServerName(entry: MarketplaceEntryInput): string;
31
+ export declare function uninstallMarketplaceMcpServerFromSettings(entry: MarketplaceEntryInput, options?: Pick<UninstallMarketplaceEntryOptions, "mcpSettingsPath">): {
32
+ name: string;
33
+ deleted: boolean;
34
+ };
35
+ export declare function getMarketplaceSkillCandidates(entry: MarketplaceEntryInput): string[];
36
+ export declare function getGlobalMarketplaceSkillPaths(skillName: string): string[];
37
+ export declare function findInstalledGlobalMarketplaceSkillName(entry: MarketplaceEntryInput): string | undefined;
38
+ export declare function isMarketplaceSkillInstalled(entry: MarketplaceEntryInput): boolean;
39
+ export declare function uninstallMarketplaceSkill(entry: MarketplaceEntryInput, options?: Pick<UninstallMarketplaceEntryOptions, "spawnCommand">): Promise<MarketplaceActionResult>;
40
+ export declare function uninstallMarketplacePlugin(entry: MarketplaceEntryInput, options?: Pick<UninstallMarketplaceEntryOptions, "workspaceRoot">): Promise<MarketplaceActionResult>;
41
+ export declare function uninstallMarketplaceEntry(entry: MarketplaceEntryInput, options?: UninstallMarketplaceEntryOptions): Promise<MarketplaceActionResult>;
@@ -0,0 +1,26 @@
1
+ import type { McpServerTransportConfig } from "../extensions/mcp";
2
+ export interface McpInstallOptions {
3
+ name: string;
4
+ headers?: string[];
5
+ targetArgs?: string[];
6
+ transport?: string;
7
+ settingsPath?: string;
8
+ }
9
+ export interface McpInstallResult {
10
+ name: string;
11
+ status: "installed";
12
+ transport: McpServerTransportConfig;
13
+ warnings: string[];
14
+ }
15
+ export declare function buildMcpInstallTransport(options: {
16
+ headers?: string[];
17
+ name: string;
18
+ targetArgs?: string[];
19
+ transport?: string;
20
+ }): {
21
+ name: string;
22
+ transport: McpServerTransportConfig;
23
+ warnings: string[];
24
+ };
25
+ export declare function parseMcpInstallArgs(args: string[]): McpInstallOptions;
26
+ export declare function installMcpServer(options: McpInstallOptions): McpInstallResult;
@@ -0,0 +1,52 @@
1
+ import { type PluginMcpSettingsSyncResult } from "./plugin-mcp-settings";
2
+ export interface PluginInstallOptions {
3
+ source: string;
4
+ sourceType?: PluginInstallSourceType;
5
+ cwd?: string;
6
+ force?: boolean;
7
+ npmCommand?: string;
8
+ officialPluginsRepo?: string;
9
+ }
10
+ export interface PluginInstallResult {
11
+ source: string;
12
+ installPath: string;
13
+ entryPaths: string[];
14
+ mcpSyncFailures: PluginMcpSettingsSyncResult["failures"];
15
+ mcpOAuthCandidates: PluginMcpOAuthCandidate[];
16
+ }
17
+ export interface PluginMcpOAuthCandidate {
18
+ name: string;
19
+ pluginName: string;
20
+ pluginPath: string;
21
+ transportType: "sse" | "streamableHttp";
22
+ lastError?: string;
23
+ }
24
+ export type ParsedPluginSource = {
25
+ type: "npm";
26
+ spec: string;
27
+ name: string;
28
+ } | {
29
+ type: "git";
30
+ repo: string;
31
+ ref?: string;
32
+ host: string;
33
+ path: string;
34
+ } | {
35
+ type: "remote";
36
+ url: string;
37
+ filename: string;
38
+ } | {
39
+ type: "local";
40
+ path: string;
41
+ } | {
42
+ type: "official";
43
+ slug: string;
44
+ };
45
+ export type PluginInstallSourceType = "npm" | "git" | "local" | "remote";
46
+ export declare function isOfficialPluginSlug(source: string): boolean;
47
+ export declare function parsePluginSource(source: string, sourceType?: PluginInstallSourceType): ParsedPluginSource;
48
+ export declare function collectPluginMcpOAuthCandidates(input: {
49
+ pluginPaths: readonly string[];
50
+ settingsPath?: string;
51
+ }): PluginMcpOAuthCandidate[];
52
+ export declare function installPlugin(options: PluginInstallOptions): Promise<PluginInstallResult>;
@@ -12,6 +12,8 @@ export interface CoreSettingsItem {
12
12
  enabled?: boolean;
13
13
  description?: string;
14
14
  toggleable?: boolean;
15
+ pluginName?: string;
16
+ pluginPath?: string;
15
17
  }
16
18
  export interface CoreSettingsSnapshot {
17
19
  workflows: CoreSettingsItem[];
@@ -45,6 +45,7 @@ export interface CoreCompactionContext {
45
45
  };
46
46
  maxInputTokens: number;
47
47
  triggerTokens: number;
48
+ targetTokens?: number;
48
49
  thresholdRatio: number;
49
50
  utilizationRatio: number;
50
51
  }
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.52",
4
+ "version": "0.0.53-nightly.1782703376",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/cline/cline",
@@ -48,9 +48,9 @@
48
48
  "test:watch": "vitest --config vitest.config.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@cline/agents": "0.0.52",
52
- "@cline/shared": "0.0.52",
53
- "@cline/llms": "0.0.52",
51
+ "@cline/agents": "0.0.53-nightly.1782703376",
52
+ "@cline/shared": "0.0.53-nightly.1782703376",
53
+ "@cline/llms": "0.0.53-nightly.1782703376",
54
54
  "@modelcontextprotocol/sdk": "^1.29.0",
55
55
  "@opentelemetry/api": "^1.9.0",
56
56
  "@opentelemetry/api-logs": "^0.214.0",