@cline/shared 0.0.88 → 0.0.89

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,16 @@
1
+ /** The local CLI a provider borrows credentials from. */
2
+ export interface ProviderLocalCli {
3
+ command: string;
4
+ docsUrl?: string;
5
+ }
6
+ /** Serializable authentication facts resolved by the host's provider catalog. */
7
+ export interface ProviderAuthInfo {
8
+ providerId: string;
9
+ capabilities?: string[];
10
+ localCli?: ProviderLocalCli;
11
+ }
12
+ /** Extract declared CLI metadata; callers own provider lookup. */
13
+ export declare function resolveProviderLocalCli(provider: {
14
+ metadata?: Record<string, unknown>;
15
+ docsUrl?: string;
16
+ } | undefined): ProviderLocalCli | undefined;
@@ -1,7 +1,9 @@
1
1
  import z from "zod";
2
2
  import type { HubToolExecutorName } from "../hub";
3
3
  import type { ModelModality, ModelOperation, ModelOperationMode } from "../llms/model-info";
4
+ import type { ModelToolName } from "../llms/model-tools";
4
5
  import type { ReasoningLevel } from "../llms/reasoning-options";
6
+ import type { ProviderAuthInfo } from "../provider-auth";
5
7
  import type { RuntimeConfigExtensionKind, SessionExecutionConfig, SessionPromptConfig } from "../session/runtime-config";
6
8
  export interface ChatRuntimeConfig extends SessionPromptConfig {
7
9
  cwd?: string;
@@ -169,6 +171,9 @@ export interface ProviderConfigField {
169
171
  defaultValue?: ProviderConfigFieldPrimitive;
170
172
  }
171
173
  export interface ProviderListItem {
174
+ /** Native tools offered by at least some models, resolved by the host. */
175
+ modelTools: ModelToolName[];
176
+ auth: ProviderAuthInfo;
172
177
  id: string;
173
178
  name: string;
174
179
  models: number | null;
@@ -2,6 +2,7 @@ import { z } from "zod";
2
2
  import type { AgentTool, AgentToolContext } from "../agent";
3
3
  export declare function createTool<TInput, TOutput>(config: {
4
4
  name: string;
5
+ resultPolicy?: AgentTool["resultPolicy"];
5
6
  description: string;
6
7
  inputSchema: Record<string, unknown>;
7
8
  execute: (input: TInput, context: AgentToolContext) => Promise<TOutput>;
@@ -13,6 +14,7 @@ export declare function createTool<TInput, TOutput>(config: {
13
14
  }): AgentTool<TInput, TOutput>;
14
15
  export declare function createTool<TSchema extends z.ZodTypeAny, TOutput>(config: {
15
16
  name: string;
17
+ resultPolicy?: AgentTool["resultPolicy"];
16
18
  description: string;
17
19
  inputSchema: TSchema;
18
20
  execute: (input: z.infer<TSchema>, context: AgentToolContext) => Promise<TOutput>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",