@cline/llms 0.0.82 → 0.0.83
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/catalog/catalog-cline-recommended.d.ts +6 -1
- package/dist/catalog/catalog-cline-recommended.d.ts.map +1 -1
- package/dist/catalog/catalog-live.d.ts +6 -1
- package/dist/catalog/catalog-live.d.ts.map +1 -1
- package/dist/catalog/catalog.generated.d.ts.map +1 -1
- package/dist/catalog/cline-recommended.generated.d.ts +4 -0
- package/dist/catalog/cline-recommended.generated.d.ts.map +1 -0
- package/dist/catalog/types.d.ts +14 -0
- package/dist/catalog/types.d.ts.map +1 -1
- package/dist/index.browser.d.ts +2 -1
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +82 -72
- package/dist/models.d.ts +1 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +82 -72
- package/dist/providers/ai-sdk.d.ts +1 -1
- package/dist/providers/ai-sdk.d.ts.map +1 -1
- package/dist/providers/builtins.d.ts +8 -1
- package/dist/providers/builtins.d.ts.map +1 -1
- package/dist/providers/compat.d.ts.map +1 -1
- package/dist/providers/config.d.ts +5 -0
- package/dist/providers/config.d.ts.map +1 -1
- package/dist/providers/error-classification.d.ts +22 -0
- package/dist/providers/error-classification.d.ts.map +1 -1
- package/dist/providers/ids.d.ts +1 -0
- package/dist/providers/ids.d.ts.map +1 -1
- package/dist/providers/local-cli.d.ts +19 -0
- package/dist/providers/local-cli.d.ts.map +1 -0
- package/dist/providers/openai-codex-models.d.ts.map +1 -1
- package/dist/providers/provider-ids.generated.d.ts +1 -1
- package/dist/providers/provider-ids.generated.d.ts.map +1 -1
- package/dist/providers/provider-keys.d.ts.map +1 -1
- package/dist/providers/providers.generated.d.ts +1 -1
- package/dist/providers/providers.generated.d.ts.map +1 -1
- package/dist/providers/request-headers.d.ts.map +1 -1
- package/dist/providers.browser.js +4 -4
- package/dist/providers.d.ts +2 -2
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +84 -74
- package/dist/services/langfuse-telemetry.d.ts +13 -2
- package/dist/services/langfuse-telemetry.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -39,7 +39,7 @@ export declare function repairMalformedToolCall<T extends RepairableToolCall>({
|
|
|
39
39
|
* @param providerMetadata - Provider-specific metadata for cost extraction
|
|
40
40
|
* @param pricingValue - Fallback pricing config (per 1M tokens) when no explicit cost found
|
|
41
41
|
*/
|
|
42
|
-
export declare function normalizeUsage(usageValue: AiSdkStreamUsage | AiSdkStreamTotalUsage | Record<string, unknown> | undefined, providerMetadata?: unknown, pricingValue?: unknown): GatewayNormalizedUsage;
|
|
42
|
+
export declare function normalizeUsage(usageValue: AiSdkStreamUsage | AiSdkStreamTotalUsage | Record<string, unknown> | undefined, providerMetadata?: unknown, pricingValue?: unknown, selection?: Pick<GatewayStreamRequest, "providerId" | "modelId">): GatewayNormalizedUsage;
|
|
43
43
|
/**
|
|
44
44
|
* Wrap a vendor-constructed model with the transient-failure retry
|
|
45
45
|
* middleware (empty responses + pre-content network interruptions).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-sdk.d.ts","sourceRoot":"","sources":["../../src/providers/ai-sdk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIX,sBAAsB,EACtB,sBAAsB,EAEtB,oBAAoB,EAQpB,MAAM,eAAe,CAAC;AAkBvB,OAAO,EACN,KAAK,YAAY,EAQjB,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-sdk.d.ts","sourceRoot":"","sources":["../../src/providers/ai-sdk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIX,sBAAsB,EACtB,sBAAsB,EAEtB,oBAAoB,EAQpB,MAAM,eAAe,CAAC;AAkBvB,OAAO,EACN,KAAK,YAAY,EAQjB,MAAM,IAAI,CAAC;AAgCZ,OAAO,KAA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AQ,CAAC,GACtC,OAAO,CAWT;AA6VD,eAAO,MAAM,oBAAoB,wBAAgC,CAAC;AAClE,eAAO,MAAM,mBAAmB,wBAA+B,CAAC;AAChE,eAAO,MAAM,8BAA8B,wBACF,CAAC;AAC1C,eAAO,MAAM,uBAAuB,wBAAmC,CAAC;AACxE,eAAO,MAAM,oBAAoB,wBAAgC,CAAC;AAClE,eAAO,MAAM,oBAAoB,wBAAgC,CAAC;AAClE,eAAO,MAAM,qBAAqB,wBAAiC,CAAC;AACpE,eAAO,MAAM,qBAAqB,wBAAiC,CAAC;AACpE,eAAO,MAAM,wBAAwB,wBAAqC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,wBAAsC,CAAC;AAC7E,eAAO,MAAM,sBAAsB,wBAAkC,CAAC;AACtE,eAAO,MAAM,kBAAkB,wBAA8B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,wBAAgC,CAAC;AAClE,eAAO,MAAM,uBAAuB,wBAAmC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type GatewayProviderManifest } from "@cline/shared";
|
|
2
|
-
import type { ModelCollection } from "../catalog/types";
|
|
2
|
+
import type { ModelCollection, ModelInfo } from "../catalog/types";
|
|
3
3
|
import type { BuiltinSpec, ProviderApiLine } from "./builtin-types";
|
|
4
4
|
export declare const DEFAULT_INTERNAL_OCA_BASE_URL = "https://code-internal.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm";
|
|
5
5
|
export declare const DEFAULT_EXTERNAL_OCA_BASE_URL = "https://code.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm";
|
|
@@ -12,6 +12,13 @@ export declare const DEFAULT_EXTERNAL_OCA_BASE_URL = "https://code.aiservice.us-
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const OLLAMA_DEFAULT_CONTEXT_WINDOW = 32768;
|
|
14
14
|
export type { BuiltinSpec, ProviderApiLine, ProviderFamily, } from "./builtin-types";
|
|
15
|
+
/**
|
|
16
|
+
* Generated catalog models a runtime provider reads from, with that provider's
|
|
17
|
+
* catalog rules applied. Most runtime providers read their mapped catalog(s)
|
|
18
|
+
* as-is; the ChatGPT subscription provider shares the OpenAI catalog but only
|
|
19
|
+
* serves a filtered subset of it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getGeneratedModelsForRuntimeProvider(providerId: string): Record<string, ModelInfo>;
|
|
15
22
|
export declare const BUILTIN_SPECS: BuiltinSpec[];
|
|
16
23
|
export declare function isProviderApiLine(value: unknown): value is ProviderApiLine;
|
|
17
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtins.d.ts","sourceRoot":"","sources":["../../src/providers/builtins.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,uBAAuB,EAO5B,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EACX,eAAe,
|
|
1
|
+
{"version":3,"file":"builtins.d.ts","sourceRoot":"","sources":["../../src/providers/builtins.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,uBAAuB,EAO5B,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EACX,eAAe,EACf,SAAS,EAGT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACX,WAAW,EACX,eAAe,EAEf,MAAM,iBAAiB,CAAC;AA6BzB,eAAO,MAAM,6BAA6B,0FAC8C,CAAC;AACzF,eAAO,MAAM,6BAA6B,iFACqC,CAAC;AA+BhF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD,YAAY,EACX,WAAW,EACX,eAAe,EACf,cAAc,GACd,MAAM,iBAAiB,CAAC;AA2VzB;;;;;GAKG;AACH,wBAAgB,oCAAoC,CACnD,UAAU,EAAE,MAAM,GAChB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAU3B;AAi1BD,eAAO,MAAM,aAAa,EAAE,WAAW,EAGtC,CAAC;AAWF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC5C,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAOpB;AAkDD,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,uBAAuB,CAuDrE;AAED,qFAAqF;AACrF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CACtD,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAGvC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,eAAe,EACzB,CAAC;AAEtC,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACtD,MAAM,EACN,eAAe,CAMf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/providers/compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,sBAAsB,EAGtB,oBAAoB,EACpB,MAAM,eAAe,CAAC;AA6BvB,OAAO,EACN,KAAK,UAAU,EAIf,KAAK,OAAO,EAEZ,KAAK,cAAc,EAGnB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/providers/compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,sBAAsB,EAGtB,oBAAoB,EACpB,MAAM,eAAe,CAAC;AA6BvB,OAAO,EACN,KAAK,UAAU,EAIf,KAAK,OAAO,EAEZ,KAAK,cAAc,EAGnB,MAAM,SAAS,CAAC;AAoOjB,wBAAgB,wBAAwB,CACvC,QAAQ,EAAE,OAAO,EAAE,GACjB,oBAAoB,CAAC,UAAU,CAAC,CAiGlC;AAwCD,iBAAS,kBAAkB,CAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,cAAc,GACpB,IAAI,CAAC,sBAAsB,EAAE,YAAY,CAAC,EAAE,GAAG,SAAS,CAkE1D;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCjD;AA6JD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU,CAE1E;AAED,wBAAsB,4BAA4B,CACjD,MAAM,EAAE,cAAc,GACpB,OAAO,CAAC,UAAU,CAAC,CAqCrB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
|
|
@@ -204,6 +204,11 @@ export interface ProviderOptions {
|
|
|
204
204
|
export interface ModelCatalogConfig {
|
|
205
205
|
/** Fetch latest catalog at handler initialization */
|
|
206
206
|
loadLatestOnInit?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Include models that are only valid for Cline Cloud sessions.
|
|
209
|
+
* Defaults to false; cloud-inclusive and local catalogs use separate caches.
|
|
210
|
+
*/
|
|
211
|
+
includeClineCloudModels?: boolean;
|
|
207
212
|
/** Fetch provider-private models when auth is available */
|
|
208
213
|
loadPrivateOnAuth?: boolean;
|
|
209
214
|
/** Catalog endpoint URL */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/providers/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,OAAO,CAAC;AAGf,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,mBAAmB,GACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE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,oBAAoB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,cAAc,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,oBAAoB,GAAG,cAAc,CAQzE;AAMD;;GAEG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAEjE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAEnE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,mBAAmB,CAAC,GAC9D,MAAM,CAER;AAMD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACxC,cAAc,EACZ,KAAK,GACL,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,gBAAgB,GAChB,SAAS,GACT,WAAW,GACX,2BAA2B,CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACxC,cAAc,EACd,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,cAAc,CAClE,CAAC"}
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/providers/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,KAAK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CAAC"}
|
|
@@ -10,4 +10,26 @@ import { type ProviderErrorClass } from "@cline/shared";
|
|
|
10
10
|
* SDK errors — goes through the conservative structural walk.
|
|
11
11
|
*/
|
|
12
12
|
export declare function classifyProviderError(error: unknown): ProviderErrorClass;
|
|
13
|
+
/**
|
|
14
|
+
* Decide whether a provider/API error is a transient failure worth retrying
|
|
15
|
+
* with backoff, as opposed to a permanent failure a retry cannot fix
|
|
16
|
+
* (credential rejections, context-window overflow, other client-side 4xx
|
|
17
|
+
* errors). Prefers the AI SDK's own typed `isRetryable` signal; for
|
|
18
|
+
* non-instances (already-flattened messages or gateway-forwarded JSON) it
|
|
19
|
+
* falls back to the HTTP status, and finally to the single documented
|
|
20
|
+
* "Provider returned error" provider quirk. Accepts either a raw structured
|
|
21
|
+
* error or a flattened message string.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isRetryableProviderError(error: unknown): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Retryability as seen by the agent loop's turn-level retry, which must not
|
|
26
|
+
* stack on retries another layer already spent. The AI SDK owns request-start
|
|
27
|
+
* failures: it retries them itself with `retry-after`-aware backoff and, once
|
|
28
|
+
* exhausted, surfaces a `RetryError`. Re-running such a turn would multiply
|
|
29
|
+
* the SDK's attempts by the agent's, so a `RetryError` is terminal here even
|
|
30
|
+
* when its final attempt looks transient. Everything else (most importantly a
|
|
31
|
+
* provider error emitted mid-stream, which the SDK never retries) is judged by
|
|
32
|
+
* {@link isRetryableProviderError}.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isRetryableBeyondSdkRetries(error: unknown): boolean;
|
|
13
35
|
//# sourceMappingURL=error-classification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-classification.d.ts","sourceRoot":"","sources":["../../src/providers/error-classification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,eAAe,CAAC;AAqRvE;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,CAqBxE"}
|
|
1
|
+
{"version":3,"file":"error-classification.d.ts","sourceRoot":"","sources":["../../src/providers/error-classification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,eAAe,CAAC;AAqRvE;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,CAqBxE;AA0GD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYhE;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYnE"}
|
package/dist/providers/ids.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../src/providers/ids.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,oBAAY,iBAAiB;IAE5B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,UAAU,eAAe;IAEzB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IAErC,QAAQ,aAAa;IAErB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IAEjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IAErB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,iBAAiB,sBAA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AkD;AAClD,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAG9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The local CLI a `local-auth` provider borrows credentials from. Providers
|
|
3
|
+
* declare it in the catalog (`metadata.localCliCommand` plus `docsUrl`), so
|
|
4
|
+
* hosts can check readiness and point at an install page without knowing any
|
|
5
|
+
* provider ids.
|
|
6
|
+
*/
|
|
7
|
+
export interface ProviderLocalCli {
|
|
8
|
+
/** Executable to probe, e.g. `codex` or `claude`. */
|
|
9
|
+
command: string;
|
|
10
|
+
/** Where to send someone whose machine does not have it yet. */
|
|
11
|
+
docsUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolves the local CLI a provider authenticates through, or `undefined`
|
|
15
|
+
* when it names none — including `local-auth` providers whose credentials
|
|
16
|
+
* come from somewhere a host cannot probe.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveProviderLocalCli(providerId: string): ProviderLocalCli | undefined;
|
|
19
|
+
//# sourceMappingURL=local-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-cli.d.ts","sourceRoot":"","sources":["../../src/providers/local-cli.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,UAAU,EAAE,MAAM,GAChB,gBAAgB,GAAG,SAAS,CAS9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-codex-models.d.ts","sourceRoot":"","sources":["../../src/providers/openai-codex-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,sCAAsC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"openai-codex-models.d.ts","sourceRoot":"","sources":["../../src/providers/openai-codex-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,sCAAsC,OAAO,CAAC;AAiE3D,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAQ3B"}
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* WARNING: DO NOT EDIT THIS FILE MANUALLY.
|
|
11
11
|
*/
|
|
12
|
-
export declare const GENERATED_PROVIDER_IDS: readonly ["302ai", "abacus", "abliteration-ai", "above", "agentrouter", "agnes", "ai-router", "aiand", "aihubmix", "aixy", "aki-io", "alibaba", "alibaba-cn", "alibaba-coding-plan", "alibaba-coding-plan-cn", "alibaba-token-plan", "alibaba-token-plan-cn", "ambient", "amd", "anthropic", "anyapi", "arcee", "atomic-chat", "auriko", "bailing", "baseten", "bedrock", "berget", "blueclaw", "bothub", "cerebras", "chutes", "clarifai", "claudinio", "cline-pass", "cloudferro-sherlock", "cloudflare-workers-ai", "coralbricks", "cortecs", "crof", "crossmodel", "crusoe", "daoxe", "databricks", "deepseek", "digitalocean", "dinference", "drun", "ebcloud", "echo", "edenai", "empiriolabs", "evroc", "fastrouter", "fireworks", "freemodel", "friendli", "frogbot", "gemini", "github-copilot", "gmicloud", "greenpt", "groq", "helicone", "hetzner", "hpc-ai", "huggingface", "hyper", "iflowcn", "impossibl", "inception", "inceptron", "inference", "inferx", "infomaniak", "io-net", "iteracompute", "jalapeno", "jiekou", "kenari", "kilo", "kimi-for-coding", "klokintegration", "kosmik", "kuae-cloud-coding-plan", "lilac", "llama", "llmgateway", "llmgateway-providers", "llmtech", "llmtr", "lmstudio", "longcat", "lucidquery", "lynkr", "meganova", "meta", "minimax", "minimax-cn", "minimax-cn-coding-plan", "minimax-coding-plan", "mistral", "mixlayer", "moark", "modal", "model-oracle-ai", "modelis", "modelscope", "moonshot", "moonshotai-cn", "morph", "nano-gpt", "nearai", "nebius", "neon", "neosmith", "neuralwatt", "nova", "novita-ai", "nvidia", "ofox", "ollama", "openai-native", "opencode", "opencode-go", "openreason", "openrouter", "opper", "orcarouter", "ovhcloud", "pendra", "perplexity-agent", "pioneer", "poe", "poolside", "privatemode-ai", "qihang-ai", "qiniu-ai", "regolo-ai", "requesty", "routing-run", "runinfra", "sakana", "sapaicore", "sarvam", "scaleway", "scnet-token-plan", "scx-ai", "sensenova", "siliconflow", "siliconflow-cn", "snowflake-cortex", "stackit", "standardcompute", "stepfun", "stepfun-ai", "stepfun-ai-step-plan", "stepfun-step-plan", "subconscious", "submodel", "synthetic", "tencent-coding-plan", "tencent-token-plan", "tencent-tokenhub", "tensorx", "the-grid-ai", "thinkingmachines", "tinfoil", "together", "tokengo", "tokenrouter", "trustedrouter", "umans-ai", "umans-ai-coding-plan", "unorouter", "upstage", "v0", "vancine", "vercel-ai-gateway", "vertex", "vivgrid", "volcengine", "volcengine-coding-plan", "vultr", "wafer.ai", "wandb", "xai", "xiaomi", "xiaomi-token-plan-ams", "xiaomi-token-plan-cn", "xiaomi-token-plan-sgp", "xpersona", "zai", "zai-coding-plan", "zeldoc", "zenifra", "zenmux", "zhipuai", "zhipuai-coding-plan"];
|
|
12
|
+
export declare const GENERATED_PROVIDER_IDS: readonly ["302ai", "abacus", "abliteration-ai", "above", "agentrouter", "agnes", "ai-router", "aiand", "aihubmix", "aixy", "aki-io", "alibaba", "alibaba-cn", "alibaba-coding-plan", "alibaba-coding-plan-cn", "alibaba-token-plan", "alibaba-token-plan-cn", "ambient", "amd", "anthropic", "anyapi", "arcee", "atomic-chat", "auriko", "bailing", "baseten", "bedrock", "berget", "blueclaw", "bothub", "cerebras", "chutes", "clarifai", "claudinio", "cline-pass", "cloudferro-sherlock", "cloudflare-workers-ai", "coralbricks", "cortecs", "crof", "crossmodel", "crusoe", "daoxe", "databricks", "deepseek", "digitalocean", "dinference", "drun", "ebcloud", "echo", "edenai", "empiriolabs", "evroc", "fastrouter", "fireworks", "freemodel", "friendli", "frogbot", "gemini", "github-copilot", "gmicloud", "greenpt", "groq", "helicone", "hetzner", "hpc-ai", "huggingface", "hyper", "iflowcn", "impossibl", "inception", "inceptron", "infer", "inference", "inferx", "infomaniak", "io-net", "iteracompute", "jalapeno", "jiekou", "kenari", "kilo", "kimi-for-coding", "klokintegration", "kosmik", "kuae-cloud-coding-plan", "lilac", "llama", "llmgateway", "llmgateway-providers", "llmtech", "llmtr", "lmstudio", "longcat", "lucidquery", "lynkr", "meganova", "melious", "meta", "minimax", "minimax-cn", "minimax-cn-coding-plan", "minimax-coding-plan", "mistral", "mixlayer", "moark", "modal", "model-oracle-ai", "modelis", "modelscope", "moonshot", "moonshotai-cn", "morph", "nan", "nano-gpt", "nearai", "nebius", "neon", "neosmith", "neuralwatt", "nova", "novita-ai", "nvidia", "ofox", "ollama", "openai-native", "opencode", "opencode-go", "openreason", "openrouter", "opper", "orcarouter", "ovhcloud", "pendra", "perplexity-agent", "pioneer", "poe", "poolside", "privatemode-ai", "qihang-ai", "qiniu-ai", "regolo-ai", "requesty", "routing-run", "runinfra", "sakana", "sapaicore", "sarvam", "scaleway", "scnet-token-plan", "scx-ai", "sensenova", "siliconflow", "siliconflow-cn", "snowflake-cortex", "stackit", "standardcompute", "stepfun", "stepfun-ai", "stepfun-ai-step-plan", "stepfun-step-plan", "subconscious", "submodel", "synthetic", "tencent-coding-plan", "tencent-token-plan", "tencent-tokenhub", "tensorx", "the-grid-ai", "thinkingmachines", "tinfoil", "together", "tokengo", "tokenrouter", "trustedrouter", "umans-ai", "umans-ai-coding-plan", "unorouter", "upstage", "v0", "vancine", "vercel-ai-gateway", "vertex", "vispark", "vivgrid", "volcengine", "volcengine-coding-plan", "vultr", "wafer.ai", "wallaby", "wandb", "xai", "xiaomi", "xiaomi-token-plan-ams", "xiaomi-token-plan-cn", "xiaomi-token-plan-sgp", "xpersona", "zai", "zai-coding-plan", "zeldoc", "zenifra", "zenmux", "zhipuai", "zhipuai-coding-plan"];
|
|
13
13
|
//# sourceMappingURL=provider-ids.generated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-ids.generated.d.ts","sourceRoot":"","sources":["../../src/providers/provider-ids.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"provider-ids.generated.d.ts","sourceRoot":"","sources":["../../src/providers/provider-ids.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,6oFA6MzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-keys.d.ts","sourceRoot":"","sources":["../../src/providers/provider-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-keys.d.ts","sourceRoot":"","sources":["../../src/providers/provider-keys.ts"],"names":[],"mappings":"AAgKA,eAAO,MAAM,2BAA2B;;CAMvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,WAAW,CAAC,MAAM,CAAa,CAAC;AAE9E,eAAO,MAAM,wCAAwC,aAEpD,CAAC;AAEF,wBAAgB,yCAAyC,CACxD,YAAY,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAEpB;AAED,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAmB5E"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* package supported by catalog-live.ts. Add an ID mapping in provider-keys.ts
|
|
8
8
|
* when Cline's generated ID differs from the models.dev key, and ensure the ID
|
|
9
9
|
* is not in MODELS_DEV_BLOCKED_PROVIDER_IDS. Then run:
|
|
10
|
-
* bun
|
|
10
|
+
* bun run build:models
|
|
11
11
|
*
|
|
12
12
|
* Product/runtime-only providers belong in builtins.ts and are merged with
|
|
13
13
|
* this catalog; they do not need to appear in this generated file.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.generated.d.ts","sourceRoot":"","sources":["../../src/providers/providers.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,eAAO,MAAM,wBAAwB,EAAE,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"providers.generated.d.ts","sourceRoot":"","sources":["../../src/providers/providers.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,eAAO,MAAM,wBAAwB,EAAE,SAAS,WAAW,EAsyF1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-headers.d.ts","sourceRoot":"","sources":["../../src/providers/request-headers.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kCAAkC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,+BAA+B;IAC/C,SAAS,CAAC,EAAE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AC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,kCAAkC,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACtC;AA2HD,wBAAgB,6BAA6B,CAC5C,KAAK,EAAE,kCAAkC,GACvC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAYpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{z as t}from"zod";import{z as l}from"zod";import{z as p}from"zod";import{z as f}from"zod";import{z as s}from"zod";import{z as o}from"zod";import{z as d}from"zod";import{z as Xt}from"zod";import{z as n}from"zod";import S from"zod";import{z as m}from"zod";import{z as e}from"zod";import{z as Wn}from"zod";var L=["none","minimal","low","medium","high","xhigh","max"],Z=p.enum(L),Q=Z.exclude(["none"]),V=p.enum([...L,"default"]).nullable(),$=p.discriminatedUnion("type",[p.object({type:p.literal("toggle")}).strict(),p.object({type:p.literal("effort"),values:p.array(V)}).strict(),p.object({type:p.literal("budget_tokens"),min:p.number().min(-1).optional(),max:p.number().min(0).optional()}).strict().refine((r)=>r.min===void 0||r.max===void 0||r.min<=r.max,{message:"Minimum reasoning budget cannot exceed maximum",path:["min"]})]),ee=l.enum(["default","openai-responses","r1"]);var te=l.enum(["images","video","tools","streaming","prompt-cache","reasoning","reasoning-effort","computer-use","global-endpoint","structured_output","temperature","files"]),ne=l.enum(["active","preview","deprecated","legacy"]),re=l.object({input:l.number().optional(),output:l.number().optional(),cacheWrite:l.number().optional(),cacheRead:l.number().optional()}),oe=l.object({maxBudget:l.number().optional(),outputPrice:l.number().optional(),thinkingLevel:l.enum(["low","high"]).optional()}),ae=l.object({reasoningDefaultOn:l.boolean().optional()}).catchall(l.unknown()),O=l.enum(["text","image","audio","video","pdf"]),ie=l.object({input:l.array(O),output:l.array(O)});function se(r){return(r?.input===void 0||r.input.includes("text"))&&(r?.output===void 0||r.output.includes("text"))}var le=l.enum(["language","image-generation","speech-generation","video-generation","transcription"]);function Mt(r){return(r.operation===void 0||r.operation==="language")&&se(r.modalities)}var ue=l.enum(["batch","streaming"]);var P=l.object({id:l.string(),name:l.string().optional(),description:l.string().optional(),maxTokens:l.number().optional(),contextWindow:l.number().optional(),maxInputTokens:l.number().optional(),capabilities:l.array(te).optional(),operation:le.optional(),operationModes:l.array(ue).optional(),modalities:ie.optional(),reasoningOptions:l.array($).optional(),apiFormat:ee.optional(),systemRole:l.enum(["system","developer"]).optional(),temperature:l.number().optional(),pricing:re.optional(),thinkingConfig:oe.optional(),status:ne.optional(),deprecationNotice:l.string().optional(),replacedBy:l.string().optional(),releaseDate:l.string().optional(),deprecationDate:l.string().optional(),family:l.string().optional(),metadata:ae.optional()});var ce=f.object({id:f.string(),name:f.string(),execution:f.enum(["client","provider"]).optional(),input:f.unknown(),output:f.unknown(),error:f.string().optional(),durationMs:f.number(),startedAt:f.date(),endedAt:f.date()}),de=t.enum(["completed","max_iterations","aborted","mistake_limit","error"]),pe=t.object({inputTokens:t.number(),outputTokens:t.number(),cacheReadTokens:t.number().optional(),cacheWriteTokens:t.number().optional(),totalCost:t.number().optional()}),Ot=t.object({text:t.string(),usage:pe,messages:t.array(t.custom()),toolCalls:t.array(ce),iterations:t.number(),finishReason:de,model:t.object({id:t.string(),provider:t.string(),info:P.optional()}),startedAt:t.date(),endedAt:t.date(),durationMs:t.number()}),Rt=t.object({distinctId:t.string().optional(),sessionId:t.string().optional(),providerId:t.string(),modelId:t.string(),apiKey:t.string().optional(),baseUrl:t.string().url().optional(),headers:t.record(t.string(),t.string()).optional(),knownModels:t.record(t.string(),P).optional(),providerConfig:t.unknown().optional(),initialMessages:t.array(t.custom()).optional(),systemPrompt:t.string(),tools:t.array(t.custom()),modelTools:t.array(t.custom()).optional(),maxIterations:t.number().positive().optional(),maxParallelToolCalls:t.number().int().positive().default(8),maxTokensPerTurn:t.number().positive().optional(),temperature:t.number().nonnegative().optional(),apiTimeoutMs:t.number().positive().default(180000),userFileContentLoader:t.function().input([t.string()]).output(t.promise(t.string())).optional(),toolContextMetadata:t.record(t.string(),t.unknown()).optional(),execution:t.object({maxConsecutiveMistakes:t.number().int().positive().optional(),reminderAfterIterations:t.number().nonnegative().optional(),reminderText:t.string().optional(),loopDetection:t.union([t.literal(!1),t.object({softThreshold:t.number().int().positive().optional(),hardThreshold:t.number().int().positive().optional()})]).optional()}).optional(),reasoningEffort:Q.optional(),thinkingBudgetTokens:t.number().positive().optional(),thinking:t.boolean().optional(),onEvent:t.function().input([t.custom()]).output(t.void()).optional(),hooks:t.custom().optional(),parentAgentId:t.string().optional(),extensions:t.array(t.custom()).optional(),hookErrorMode:t.enum(["ignore","throw"]).default("ignore"),toolPolicies:t.record(t.string(),t.object({enabled:t.boolean().optional(),autoApprove:t.boolean().optional()})).optional(),requestToolApproval:t.function().input([t.object({sessionId:t.string(),agentId:t.string(),conversationId:t.string(),iteration:t.number(),toolCallId:t.string(),toolName:t.string(),input:t.unknown(),policy:t.object({enabled:t.boolean().optional(),autoApprove:t.boolean().optional()}).default({})})]).output(t.union([t.object({approved:t.boolean(),reason:t.string().optional()}),t.promise(t.object({approved:t.boolean(),reason:t.string().optional()}))])).optional(),onConsecutiveMistakeLimitReached:t.function().input([t.object({iteration:t.number().int().positive(),consecutiveMistakes:t.number().int().positive(),maxConsecutiveMistakes:t.number().int().positive(),reason:t.enum(["api_error","invalid_tool_call","tool_execution_failed"]),details:t.string().optional()})]).output(t.union([t.object({action:t.literal("continue"),guidance:t.string().optional()}),t.object({action:t.literal("stop"),reason:t.string().optional()}),t.promise(t.union([t.object({action:t.literal("continue"),guidance:t.string().optional()}),t.object({action:t.literal("stop"),reason:t.string().optional()})]))])).optional(),logger:t.custom().optional(),extensionContext:t.custom().optional(),abortSignal:t.custom().optional()}),me=s.enum(["connector.started","connector.stopping","session.authorize","message.received","message.denied","message.completed","message.failed","session.started","session.reused","session.reset","schedule.delivery.started","schedule.delivery.sent","schedule.delivery.failed"]),ge=s.object({id:s.string().optional(),label:s.string().optional(),role:s.string().optional(),participantKey:s.string().optional(),participantLabel:s.string().optional(),platformUserId:s.string().optional(),metadata:s.record(s.string(),s.unknown()).optional()}),fe=s.object({source:s.string(),sourceEvent:s.string(),threadId:s.string(),channelId:s.string(),isDM:s.boolean(),sessionId:s.string().optional(),workspaceRoot:s.string().optional(),metadata:s.record(s.string(),s.unknown()).optional()}),Nt=s.object({actor:ge,context:fe,payload:s.record(s.string(),s.unknown()).optional()}),Lt=s.object({action:s.enum(["allow","deny"]).default("allow"),message:s.string().optional(),reason:s.string().optional(),metadata:s.record(s.string(),s.unknown()).optional()}),Pt=s.object({adapter:s.string(),botUserName:s.string().optional(),event:me,payload:s.record(s.string(),s.unknown()),ts:s.string()});var he=["hooks","tools","commands","rules","skills","messageBuilders","providers","automationEvents","mcp"],Dt=new Set(he);var w={CLINE_PASS:"ext-cline-pass",CODE_ONBOARDING_GITHUB:"code-onboarding-github"},Bt={[w.CLINE_PASS]:!1,[w.CODE_ONBOARDING_GITHUB]:!1},Ut=Object.values(w),ye=o.enum(["agent_start","agent_resume","agent_abort","agent_end","agent_error","tool_call","tool_result","prompt_submit","pre_compact","session_shutdown"]),y=o.record(o.string(),o.string()),be=o.object({toolName:o.string(),parameters:y}),ve=o.object({toolName:o.string(),parameters:y,result:o.string(),success:o.boolean(),executionTimeMs:o.number()}),ke=o.object({prompt:o.string(),attachments:o.array(o.string())}),Te=o.object({taskMetadata:y}),Ee=o.object({taskMetadata:y,previousState:y}),we=o.object({taskMetadata:y}),Se=o.object({taskMetadata:y}),Ae=o.object({taskId:o.string(),ulid:o.string(),contextSize:o.number(),compactionStrategy:o.string(),previousApiReqIndex:o.number(),tokensIn:o.number(),tokensOut:o.number(),tokensInCache:o.number(),tokensOutCache:o.number(),deletedRangeStart:o.number(),deletedRangeEnd:o.number(),contextJsonPath:o.string(),contextRawPath:o.string()}),qt=o.object({clineVersion:o.string(),hookName:ye,timestamp:o.string(),taskId:o.string(),sessionContext:o.object({rootSessionId:o.string().optional(),hookLogPath:o.string().optional()}).optional(),workspaceRoots:o.array(o.string()),workspaceInfo:o.custom().optional(),userId:o.string(),agent_id:o.string(),parent_agent_id:o.string().nullable(),iteration:o.number().optional(),reason:o.string().optional(),tool_call:o.object({id:o.string(),name:o.string(),input:o.unknown()}).optional(),tool_result:o.custom().optional(),turn:o.unknown().optional(),error:o.object({name:o.string(),message:o.string(),stack:o.string().optional()}).optional(),preToolUse:be.optional(),postToolUse:ve.optional(),userPromptSubmit:ke.optional(),taskStart:Te.optional(),taskResume:Ee.optional(),taskCancel:we.optional(),taskComplete:Se.optional(),preCompact:Ae.optional()}).passthrough();var Ce=["readFile","search","bash","webFetch","editor","applyPatch","skills","askQuestion","submit"],Gt=new Set(Ce);var _e=d.enum(["image","audio","video","file"]),xe=d.discriminatedUnion("type",[d.object({type:d.literal("base64"),data:d.string().min(1)}),d.object({type:d.literal("url"),url:d.string().url().refine((r)=>{let i=new URL(r).protocol;return i==="http:"||i==="https:"},"Generated media URLs must use HTTP or HTTPS")}),d.object({type:d.literal("artifact"),artifactId:d.string().min(1)})]);function Me(r){if(r.startsWith("image/"))return"image";if(r.startsWith("audio/"))return"audio";if(r.startsWith("video/"))return"video";return"file"}var Ht=d.object({id:d.string().min(1),modality:_e,mediaType:d.string().min(1),source:xe,name:d.string().min(1).optional(),sizeBytes:d.number().int().nonnegative().optional()}).refine((r)=>Me(r.mediaType)===r.modality,{message:"Generated media modality must match its media type",path:["modality"]});var Wt=["show","hide","subscription"];function Ie(r){if(typeof globalThis.atob==="function")try{let i=globalThis.atob(r),c=Uint8Array.from(i,(h)=>h.charCodeAt(0));return new TextDecoder().decode(c)}catch{return null}if(typeof Buffer<"u")try{return Buffer.from(r,"base64").toString("utf8")}catch{return null}return null}function zt(r){let i=r?.trim();if(!i)return null;try{let c=i.split(".");if(c.length!==3)return null;let h=c[1];if(!h)return null;let b=h.replace(/-/g,"+").replace(/_/g,"/"),J=b.padEnd(b.length+(4-b.length%4)%4,"="),I=Ie(J);return I?JSON.parse(I):null}catch{return null}}var D=`# Plan Mode
|
|
1
|
+
import{z as t}from"zod";import{z as l}from"zod";import{z as p}from"zod";import{z as h}from"zod";import{z as s}from"zod";import{z as o}from"zod";import{z as d}from"zod";import{z as Kt}from"zod";import{z as n}from"zod";import S from"zod";import{z as m}from"zod";import{z as e}from"zod";import{z as Wn}from"zod";var L=["none","minimal","low","medium","high","xhigh","max"],J=p.enum(L),Z=J.exclude(["none"]),V=p.enum([...L,"default"]).nullable(),Q=p.discriminatedUnion("type",[p.object({type:p.literal("toggle")}).strict(),p.object({type:p.literal("effort"),values:p.array(V)}).strict(),p.object({type:p.literal("budget_tokens"),min:p.number().min(-1).optional(),max:p.number().min(0).optional()}).strict().refine((r)=>r.min===void 0||r.max===void 0||r.min<=r.max,{message:"Minimum reasoning budget cannot exceed maximum",path:["min"]})]),ee=l.enum(["default","openai-responses","r1"]);var te=l.enum(["images","video","tools","streaming","prompt-cache","reasoning","reasoning-effort","computer-use","global-endpoint","structured_output","temperature","files"]),ne=l.enum(["active","preview","deprecated","legacy"]),re=l.object({input:l.number().optional(),output:l.number().optional(),cacheWrite:l.number().optional(),cacheRead:l.number().optional()}),oe=l.object({maxBudget:l.number().optional(),outputPrice:l.number().optional(),thinkingLevel:l.enum(["low","high"]).optional()}),ae=l.object({reasoningDefaultOn:l.boolean().optional(),apiProtocol:l.enum(["openai-chat","openai-responses","anthropic","gemini"]).optional()}).catchall(l.unknown()),O=l.enum(["text","image","audio","video","pdf"]),ie=l.object({input:l.array(O),output:l.array(O)});function se(r){return(r?.input===void 0||r.input.includes("text"))&&(r?.output===void 0||r.output.includes("text"))}var le=l.enum(["language","image-generation","speech-generation","video-generation","transcription"]);function Mt(r){return(r.operation===void 0||r.operation==="language")&&se(r.modalities)}var ue=l.enum(["batch","streaming"]);var P=l.object({id:l.string(),name:l.string().optional(),description:l.string().optional(),maxTokens:l.number().optional(),contextWindow:l.number().optional(),maxInputTokens:l.number().optional(),capabilities:l.array(te).optional(),operation:le.optional(),operationModes:l.array(ue).optional(),modalities:ie.optional(),reasoningOptions:l.array(Q).optional(),apiFormat:ee.optional(),systemRole:l.enum(["system","developer"]).optional(),temperature:l.number().optional(),pricing:re.optional(),thinkingConfig:oe.optional(),status:ne.optional(),deprecationNotice:l.string().optional(),replacedBy:l.string().optional(),releaseDate:l.string().optional(),deprecationDate:l.string().optional(),family:l.string().optional(),metadata:ae.optional()});var ce=h.object({id:h.string(),name:h.string(),execution:h.enum(["client","provider"]).optional(),input:h.unknown(),output:h.unknown(),error:h.string().optional(),durationMs:h.number(),startedAt:h.date(),endedAt:h.date()}),de=t.enum(["completed","max_iterations","aborted","mistake_limit","error"]),pe=t.object({inputTokens:t.number(),outputTokens:t.number(),cacheReadTokens:t.number().optional(),cacheWriteTokens:t.number().optional(),totalCost:t.number().optional()}),Ot=t.object({text:t.string(),usage:pe,messages:t.array(t.custom()),toolCalls:t.array(ce),iterations:t.number(),finishReason:de,model:t.object({id:t.string(),provider:t.string(),info:P.optional()}),startedAt:t.date(),endedAt:t.date(),durationMs:t.number()}),Rt=t.object({distinctId:t.string().optional(),sessionId:t.string().optional(),providerId:t.string(),modelId:t.string(),apiKey:t.string().optional(),baseUrl:t.string().url().optional(),headers:t.record(t.string(),t.string()).optional(),knownModels:t.record(t.string(),P).optional(),providerConfig:t.unknown().optional(),initialMessages:t.array(t.custom()).optional(),systemPrompt:t.string(),tools:t.array(t.custom()),modelTools:t.array(t.custom()).optional(),maxIterations:t.number().positive().optional(),maxParallelToolCalls:t.number().int().positive().default(8),maxTokensPerTurn:t.number().positive().optional(),temperature:t.number().nonnegative().optional(),apiTimeoutMs:t.number().positive().default(180000),userFileContentLoader:t.function().input([t.string()]).output(t.promise(t.string())).optional(),toolContextMetadata:t.record(t.string(),t.unknown()).optional(),execution:t.object({maxConsecutiveMistakes:t.number().int().positive().optional(),reminderAfterIterations:t.number().nonnegative().optional(),reminderText:t.string().optional(),loopDetection:t.union([t.literal(!1),t.object({softThreshold:t.number().int().positive().optional(),hardThreshold:t.number().int().positive().optional()})]).optional()}).optional(),reasoningEffort:Z.optional(),thinkingBudgetTokens:t.number().positive().optional(),thinking:t.boolean().optional(),onEvent:t.function().input([t.custom()]).output(t.void()).optional(),hooks:t.custom().optional(),parentAgentId:t.string().optional(),extensions:t.array(t.custom()).optional(),hookErrorMode:t.enum(["ignore","throw"]).default("ignore"),toolPolicies:t.record(t.string(),t.object({enabled:t.boolean().optional(),autoApprove:t.boolean().optional()})).optional(),requestToolApproval:t.function().input([t.object({sessionId:t.string(),agentId:t.string(),conversationId:t.string(),iteration:t.number(),toolCallId:t.string(),toolName:t.string(),input:t.unknown(),policy:t.object({enabled:t.boolean().optional(),autoApprove:t.boolean().optional()}).default({})})]).output(t.union([t.object({approved:t.boolean(),reason:t.string().optional()}),t.promise(t.object({approved:t.boolean(),reason:t.string().optional()}))])).optional(),onConsecutiveMistakeLimitReached:t.function().input([t.object({iteration:t.number().int().positive(),consecutiveMistakes:t.number().int().positive(),maxConsecutiveMistakes:t.number().int().positive(),reason:t.enum(["api_error","invalid_tool_call","tool_execution_failed"]),details:t.string().optional()})]).output(t.union([t.object({action:t.literal("continue"),guidance:t.string().optional()}),t.object({action:t.literal("stop"),reason:t.string().optional()}),t.promise(t.union([t.object({action:t.literal("continue"),guidance:t.string().optional()}),t.object({action:t.literal("stop"),reason:t.string().optional()})]))])).optional(),logger:t.custom().optional(),extensionContext:t.custom().optional(),abortSignal:t.custom().optional()}),me=s.enum(["connector.started","connector.stopping","session.authorize","message.received","message.denied","message.completed","message.failed","session.started","session.reused","session.reset","schedule.delivery.started","schedule.delivery.sent","schedule.delivery.failed"]),ge=s.object({id:s.string().optional(),label:s.string().optional(),role:s.string().optional(),participantKey:s.string().optional(),participantLabel:s.string().optional(),platformUserId:s.string().optional(),metadata:s.record(s.string(),s.unknown()).optional()}),he=s.object({source:s.string(),sourceEvent:s.string(),threadId:s.string(),channelId:s.string(),isDM:s.boolean(),sessionId:s.string().optional(),workspaceRoot:s.string().optional(),metadata:s.record(s.string(),s.unknown()).optional()}),jt=s.object({actor:ge,context:he,payload:s.record(s.string(),s.unknown()).optional()}),Lt=s.object({action:s.enum(["allow","deny"]).default("allow"),message:s.string().optional(),reason:s.string().optional(),metadata:s.record(s.string(),s.unknown()).optional()}),Pt=s.object({adapter:s.string(),botUserName:s.string().optional(),event:me,payload:s.record(s.string(),s.unknown()),ts:s.string()});var fe=["hooks","tools","commands","rules","skills","messageBuilders","providers","automationEvents","mcp"],Dt=new Set(fe);var k={CLINE_PASS:"ext-cline-pass",CODE_CLOUD_AGENTS:"code-cloud-agents",CODE_ONBOARDING_GITHUB:"code-onboarding-github"},Bt={[k.CLINE_PASS]:!1,[k.CODE_CLOUD_AGENTS]:!1,[k.CODE_ONBOARDING_GITHUB]:!1},$t=Object.values(k),be=o.enum(["agent_start","agent_resume","agent_abort","agent_end","agent_error","tool_call","tool_result","prompt_submit","pre_compact","session_shutdown"]),b=o.record(o.string(),o.string()),ye=o.object({toolName:o.string(),parameters:b}),ve=o.object({toolName:o.string(),parameters:b,result:o.string(),success:o.boolean(),executionTimeMs:o.number()}),ke=o.object({prompt:o.string(),attachments:o.array(o.string())}),we=o.object({taskMetadata:b}),Te=o.object({taskMetadata:b,previousState:b}),Ee=o.object({taskMetadata:b}),Se=o.object({taskMetadata:b}),Ae=o.object({taskId:o.string(),ulid:o.string(),contextSize:o.number(),compactionStrategy:o.string(),previousApiReqIndex:o.number(),tokensIn:o.number(),tokensOut:o.number(),tokensInCache:o.number(),tokensOutCache:o.number(),deletedRangeStart:o.number(),deletedRangeEnd:o.number(),contextJsonPath:o.string(),contextRawPath:o.string()}),Ft=o.object({clineVersion:o.string(),hookName:be,timestamp:o.string(),taskId:o.string(),sessionContext:o.object({rootSessionId:o.string().optional(),hookLogPath:o.string().optional()}).optional(),workspaceRoots:o.array(o.string()),workspaceInfo:o.custom().optional(),userId:o.string(),agent_id:o.string(),parent_agent_id:o.string().nullable(),iteration:o.number().optional(),reason:o.string().optional(),tool_call:o.object({id:o.string(),name:o.string(),input:o.unknown()}).optional(),tool_result:o.custom().optional(),turn:o.unknown().optional(),error:o.object({name:o.string(),message:o.string(),stack:o.string().optional()}).optional(),preToolUse:ye.optional(),postToolUse:ve.optional(),userPromptSubmit:ke.optional(),taskStart:we.optional(),taskResume:Te.optional(),taskCancel:Ee.optional(),taskComplete:Se.optional(),preCompact:Ae.optional()}).passthrough();var Ce=["readFile","search","bash","webFetch","editor","applyPatch","skills","askQuestion","submit"],Ut=new Set(Ce);var _e=d.enum(["image","audio","video","file"]),xe=d.discriminatedUnion("type",[d.object({type:d.literal("base64"),data:d.string().min(1)}),d.object({type:d.literal("url"),url:d.string().url().refine((r)=>{let i=new URL(r).protocol;return i==="http:"||i==="https:"},"Generated media URLs must use HTTP or HTTPS")}),d.object({type:d.literal("artifact"),artifactId:d.string().min(1)})]);function Me(r){if(r.startsWith("image/"))return"image";if(r.startsWith("audio/"))return"audio";if(r.startsWith("video/"))return"video";return"file"}var Gt=d.object({id:d.string().min(1),modality:_e,mediaType:d.string().min(1),source:xe,name:d.string().min(1).optional(),sizeBytes:d.number().int().nonnegative().optional()}).refine((r)=>Me(r.mediaType)===r.modality,{message:"Generated media modality must match its media type",path:["modality"]});var Wt=["show","hide","subscription"];function Ie(r){if(typeof globalThis.atob==="function")try{let i=globalThis.atob(r),c=Uint8Array.from(i,(f)=>f.charCodeAt(0));return new TextDecoder().decode(c)}catch{return null}if(typeof Buffer<"u")try{return Buffer.from(r,"base64").toString("utf8")}catch{return null}return null}function Yt(r){let i=r?.trim();if(!i)return null;try{let c=i.split(".");if(c.length!==3)return null;let f=c[1];if(!f)return null;let y=f.replace(/-/g,"+").replace(/_/g,"/"),X=y.padEnd(y.length+(4-y.length%4)%4,"="),I=Ie(X);return I?JSON.parse(I):null}catch{return null}}var D=`# Plan Mode
|
|
2
2
|
|
|
3
3
|
You are in Plan mode. Your role is to explore, analyze, and plan -- not to execute.
|
|
4
4
|
|
|
@@ -9,8 +9,8 @@ You are in Plan mode. Your role is to explore, analyze, and plan -- not to execu
|
|
|
9
9
|
- Do NOT edit files, write code, run destructive commands, or make any changes
|
|
10
10
|
- Do NOT implement anything -- focus on understanding and alignment first
|
|
11
11
|
|
|
12
|
-
The run_commands tool remains available in plan mode strictly for read-only inspection -- listing files, searching (grep), reading configs, inspecting git history and diffs, checking tool versions, and the like. Never use it to change anything: no creating, modifying, or deleting files, no writing scripts that make changes, and no state-changing commands (installs, migrations, database or schema changes, container commands that mutate state, etc.). File-editing commands (rm/mv/cp, in-place edits like sed -i, output redirection to files outside /tmp, git commands that change the working tree, package installs) are hard-blocked in plan mode: they are not executed and return a tool error instead, so do not attempt them. If the task requires a mutation, put it in the plan; it happens only after the user switches to act mode.`,
|
|
12
|
+
The run_commands tool remains available in plan mode strictly for read-only inspection -- listing files, searching (grep), reading configs, inspecting git history and diffs, checking tool versions, and the like. Never use it to change anything: no creating, modifying, or deleting files, no writing scripts that make changes, and no state-changing commands (installs, migrations, database or schema changes, container commands that mutate state, etc.). File-editing commands (rm/mv/cp, in-place edits like sed -i, output redirection to files outside /tmp, git commands that change the working tree, package installs) are hard-blocked in plan mode: they are not executed and return a tool error instead, so do not attempt them. If the task requires a mutation, put it in the plan; it happens only after the user switches to act mode.`,Xt=`${D}
|
|
13
13
|
|
|
14
|
-
Once the user has reviewed your plan and explicitly approved it in a follow-up message, use the switch_to_act_mode tool to switch to act mode and begin implementation. Calling switch_to_act_mode immediately starts execution, so never call it in the same turn you present a plan and never treat the original task request as approval -- end your turn after presenting the plan and wait for the user's response.`,
|
|
14
|
+
Once the user has reviewed your plan and explicitly approved it in a follow-up message, use the switch_to_act_mode tool to switch to act mode and begin implementation. Calling switch_to_act_mode immediately starts execution, so never call it in the same turn you present a plan and never treat the original task request as approval -- end your turn after presenting the plan and wait for the user's response.`,Jt=`${D}
|
|
15
15
|
|
|
16
|
-
Once you have presented your plan, end your turn and wait for the user's response. You do NOT have the ability to switch to act mode yourself -- the user must do it manually with the Plan/Act toggle once they are satisfied with the plan. If the task requires tools that are only available in act mode, ask the user to "toggle to Act mode" (use those words).`;var Qt="anthropic/claude-sonnet-5";var Oe=n.object({id:n.string(),temperature:n.number().optional(),maxTokens:n.number().optional(),contextWindow:n.number().optional(),inputPrice:n.number().optional(),outputPrice:n.number().optional(),supportsImages:n.boolean().optional()}),Re=n.object({models:n.array(Oe).optional(),openAiBaseUrl:n.string().optional(),openAiHeaders:n.record(n.string(),n.string()).optional(),azureApiVersion:n.string().optional(),azureIdentity:n.boolean().optional()}),je=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),Ne=n.object({name:n.string(),baseModelId:n.string(),thinkingBudgetTokens:n.number().optional()}),Le=n.object({models:n.array(je).optional(),customModels:n.array(Ne).optional(),awsRegion:n.string().optional(),awsUseCrossRegionInference:n.boolean().optional(),awsUseGlobalInference:n.boolean().optional(),awsBedrockUsePromptCache:n.boolean().optional(),awsBedrockEndpoint:n.string().optional()}),Pe=n.object({id:n.string()}),De=n.object({models:n.array(Pe).optional()}),Be=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),Ue=n.object({models:n.array(Be).optional(),vertexProjectId:n.string().optional(),vertexRegion:n.string().optional()}),Fe=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional(),promptCachingEnabled:n.boolean().optional()}),qe=n.object({models:n.array(Fe).optional(),baseUrl:n.string().optional()}),Ge=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),Ye=n.object({models:n.array(Ge).optional(),baseUrl:n.string().optional()}),He=n.object({OpenAiCompatible:Re.optional(),AwsBedrock:Le.optional(),Cline:De.optional(),Vertex:Ue.optional(),LiteLLM:qe.optional(),Anthropic:Ye.optional()}),We=n.object({id:n.string()}),ze=n.object({name:n.string(),url:n.string(),alwaysEnabled:n.boolean().optional(),headers:n.record(n.string(),n.string()).optional()}),R=n.object({alwaysEnabled:n.boolean(),name:n.string(),contents:n.string()}),E=n.object({bucket:n.string(),accessKeyId:n.string(),secretAccessKey:n.string(),region:n.string().optional(),endpoint:n.string().optional(),accountId:n.string().optional()}),Ke=n.object({enabled:n.boolean().optional(),type:n.union([n.literal("s3_access_keys"),n.literal("r2_access_keys"),n.literal("azure_access_keys")]).optional(),s3AccessSettings:E.optional(),r2AccessSettings:E.optional(),azureAccessSettings:E.optional()}),Xe=n.object({promptUploading:Ke.optional()}),$t=n.object({version:n.string(),providerSettings:He.optional(),telemetryEnabled:n.boolean().optional(),kanbanEnabled:n.boolean().optional(),mcpMarketplaceEnabled:n.boolean().optional(),allowedMCPServers:n.array(We).optional(),remoteMCPServers:n.array(ze).optional(),blockPersonalRemoteMCPServers:n.boolean().optional(),yoloModeAllowed:n.boolean().optional(),openTelemetryEnabled:n.boolean().optional(),openTelemetryMetricsExporter:n.string().optional(),openTelemetryLogsExporter:n.string().optional(),openTelemetryOtlpProtocol:n.string().optional(),openTelemetryOtlpEndpoint:n.string().optional(),openTelemetryOtlpHeaders:n.record(n.string(),n.string()).optional(),openTelemetryOtlpMetricsProtocol:n.string().optional(),openTelemetryOtlpMetricsEndpoint:n.string().optional(),openTelemetryOtlpMetricsHeaders:n.record(n.string(),n.string()).optional(),openTelemetryOtlpLogsProtocol:n.string().optional(),openTelemetryOtlpLogsEndpoint:n.string().optional(),openTelemetryOtlpLogsHeaders:n.record(n.string(),n.string()).optional(),openTelemetryMetricExportInterval:n.number().optional(),openTelemetryOtlpInsecure:n.boolean().optional(),openTelemetryLogBatchSize:n.number().optional(),openTelemetryLogBatchTimeout:n.number().optional(),openTelemetryLogMaxQueueSize:n.number().optional(),enterpriseTelemetry:Xe.optional(),globalRules:n.array(R).optional(),globalWorkflows:n.array(R).optional()}),en=n.record(n.string(),n.string());var nn=S.enum(["reasoning","prompt-cache","tools","provider-tools","oauth","temperature","files","streaming","vision","computer-use","local-auth","popular"]),rn=S.enum(["anthropic","gemini","openai-chat","openai-responses","openai-r1","ai-sdk"]),on=S.enum(["anthropic","ai-sdk","ai-sdk-community","openai","openai-compatible","openai-r1","gemini","bedrock","custom","fetch","vertex"]);var j={production:{environment:"production",appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",mcpBaseUrl:"https://api.cline.bot/v1/mcp",workOsClientId:"client_01K3A541FN8TA3EPPHTD2325AR"},staging:{environment:"staging",appBaseUrl:"https://staging-app.cline.bot",apiBaseUrl:"https://core-api.staging.int.cline.bot",mcpBaseUrl:"https://core-api.staging.int.cline.bot/v1/mcp",workOsClientId:"client_01K3A5415VF6QBQBG3XYCW91G6"},local:{environment:"local",appBaseUrl:"http://localhost:3000",apiBaseUrl:"http://localhost:7777",mcpBaseUrl:"http://localhost:7777/v1/mcp",workOsClientId:"client_01K6XQAY7JK6T5HXVSZW2S5VYK"}};function N(r){let i=r?.trim().toLowerCase();if(i==="production"||i==="staging"||i==="local")return i;return}function B(){if(typeof process>"u"||!process?.env)return{};return process.env}function Je(){let r=B();return N(r.CLINE_ENVIRONMENT_OVERRIDE)??N(r.CLINE_ENVIRONMENT)??"production"}function Ze(r){if(typeof r==="string")return j[r];return j[Je()]}function Qe(r,i){if(i.CLINE_API_BASE_URL)r={...r,apiBaseUrl:i.CLINE_API_BASE_URL,mcpBaseUrl:`${i.CLINE_API_BASE_URL}/v1/mcp`};return r}function U(r){let i=Ze(r);return Qe(i,B())}var Ve=["rules","skills","workflows","plugins","hooks"];var an=new Set(Ve);var $e=m.object({rootPath:m.string().min(1),hint:m.string().min(1).optional(),associatedRemoteUrls:m.array(m.string().min(1)).optional(),latestGitCommitHash:m.string().min(1).optional(),latestGitBranchName:m.string().min(1).optional()}),ln=m.object({currentWorkspacePath:m.string().min(1).optional(),workspaces:m.record(m.string().min(1),$e)});var et=["current_state","boundary_analysis","interface_proposal"];var g=e.preprocess((r)=>r instanceof Date?r.toISOString():r,e.string().datetime()),v=e.enum(["pending","in_progress","blocked","completed"]),F=e.enum(["queued","running","completed","failed","cancelled","interrupted"]),k=e.enum(["draft","in_review","finalized"]),tt=e.object({agentId:e.string(),role:e.enum(["lead","teammate"]),description:e.string().optional(),status:e.enum(["idle","running","stopped"])}),cn=e.object({agentId:e.string(),rolePrompt:e.string(),modelId:e.string().optional(),maxIterations:e.number().optional()});function u(r){return e.preprocess((i)=>i===null?void 0:i,r.optional())}var dn=e.object({agentId:e.string().min(1).describe("Teammate identifier"),rolePrompt:e.string().min(1).describe("System prompt describing teammate role")}).strict(),pn=e.object({agentId:e.string().min(1).describe("Teammate identifier"),reason:u(e.string().min(1)).describe("Optional shutdown reason")}),mn=e.object({}),nt={create:["title","description"],list:[],claim:["taskId"],complete:["taskId","summary"],block:["taskId","reason"]};var gn=e.object({action:e.enum(["create","list","claim","complete","block"]),title:u(e.string().min(1)).describe("Task title"),description:u(e.string().min(1)).describe("Task details"),dependsOn:u(e.array(e.string().describe("Dependency task ID"))).describe("Array of dependency task IDs"),assignee:u(e.string().min(1)).describe("Optional assignee"),status:u(e.enum(["pending","in_progress","blocked","completed"])).describe("Optional task status filter"),taskId:u(e.string()).describe("Task ID"),summary:u(e.string().min(1)).describe("Completion summary"),reason:u(e.string().min(1)).describe("Blocking reason")}).superRefine((r,i)=>{for(let c of nt[r.action]){if(r[c]!==void 0)continue;i.addIssue({code:"custom",path:[c],message:`Field "${c}" is required when action=${r.action}`})}}),fn=e.object({agentId:e.string().describe("Teammate agent ID"),task:e.string().min(1).describe("Task instructions for the teammate"),taskId:u(e.string()).describe("Optional shared task list ID"),runMode:u(e.enum(["sync","async"])).describe("Execution mode: 'sync' blocks until the teammate finishes and returns the result (default if omitted); 'async' queues the run and returns a runId immediately — use team_await_runs to collect results later."),continueConversation:u(e.boolean()).describe("If true, continue the teammate conversation; otherwise start fresh")}),hn=e.object({status:u(e.enum(["queued","running","completed","failed","cancelled","interrupted"])).describe("Optional run status filter. Omit to include all statuses."),agentId:u(e.string().min(1)).describe("Optional teammate ID filter. Omit to include all teammates."),includeCompleted:u(e.boolean()).describe("Include completed/failed runs (default true)")}),yn=e.object({runId:e.string().min(1).describe("Run ID"),reason:u(e.string().min(1)).describe("Optional cancellation reason")}),bn=e.object({runId:u(e.string().min(1)).describe("Optional async run ID to await. Omit to wait for all active async runs.")}).strict(),vn=e.object({toAgentId:e.string().min(1).describe("Recipient agent ID"),subject:e.string().min(1).describe("Message subject"),body:e.string().min(1).describe("Message body"),taskId:u(e.string().min(1)).describe("Optional task ID context")}),kn=e.object({subject:e.string().min(1).describe("Message subject"),body:e.string().min(1).describe("Message body"),taskId:u(e.string().min(1)).describe("Optional task ID context")}),Tn=e.object({unreadOnly:u(e.boolean()).describe("Only unread messages for read action (default true)")}),En=e.object({kind:e.enum(["progress","handoff","blocked","decision","done","error"]),summary:e.string().min(1).describe("Update summary"),taskId:u(e.string().min(1)).describe("Optional task ID context"),evidence:u(e.array(e.string().min(1))).describe("Optional evidence links/snippets"),nextAction:u(e.string().min(1)).describe("Planned next step")}),wn=e.object({}),Sn=e.object({title:e.string().describe("Outcome title"),requiredSections:e.array(e.string()).default(et).describe("Required sections for finalization gate (defaults to current_state,boundary_analysis,interface_proposal)")}),An=e.object({outcomeId:e.string().describe("Outcome ID"),section:e.string().describe("Section name"),sourceRunId:u(e.string()).describe("Optional source run ID"),content:e.string().describe("Section fragment content")}),Cn=e.object({fragmentId:e.string().describe("Fragment ID"),approved:e.boolean().describe("Review decision")}),_n=e.object({outcomeId:e.string().describe("Outcome ID")}),xn=e.object({}),Mn=e.object({teamId:e.string(),teamName:e.string(),members:e.array(tt),taskCounts:e.record(v,e.number()),unreadMessages:e.number(),missionLogEntries:e.number(),activeRuns:e.number(),queuedRuns:e.number(),outcomeCounts:e.record(k,e.number())}),rt=e.object({id:e.string(),title:e.string(),description:e.string(),status:v,createdAt:g,updatedAt:g,createdBy:e.string(),assignee:e.string().optional(),dependsOn:e.array(e.string()),summary:e.string().optional(),isReady:e.boolean(),blockedBy:e.array(e.string())}),In=e.discriminatedUnion("action",[e.object({action:e.literal("create"),taskId:e.string(),status:v,ignoredFields:e.array(e.string()).optional(),note:e.string().optional()}),e.object({action:e.literal("list"),tasks:e.array(rt)}),e.object({action:e.literal("claim"),taskId:e.string(),status:v,nextStep:e.string()}),e.object({action:e.literal("complete"),taskId:e.string(),status:v}),e.object({action:e.literal("block"),taskId:e.string(),status:v})]),On=e.object({agentId:e.string(),mode:e.enum(["sync","async"]),status:e.enum(["dispatched","running","queued","joined"]),dispatched:e.boolean(),message:e.string(),deduped:e.boolean().optional(),runId:e.string().optional(),text:e.string().optional(),iterations:e.number().optional()}),ot=e.object({textPreview:e.string(),iterations:e.number(),finishReason:e.string(),durationMs:e.number(),usage:e.object({inputTokens:e.number(),outputTokens:e.number(),cacheReadTokens:e.number().optional(),cacheWriteTokens:e.number().optional(),totalCost:e.number().optional()})}),Rn=e.object({id:e.string(),agentId:e.string(),taskId:e.string().optional(),status:F,messagePreview:e.string(),priority:e.number(),retryCount:e.number(),maxRetries:e.number(),nextAttemptAt:g.optional(),continueConversation:e.boolean().optional(),startedAt:g,endedAt:g.optional(),leaseOwner:e.string().optional(),heartbeatAt:g.optional(),lastProgressAt:g.optional(),lastProgressMessage:e.string().optional(),currentActivity:e.string().optional(),error:e.string().optional(),resultSummary:ot.optional()}),jn=e.object({id:e.string(),teamId:e.string(),fromAgentId:e.string(),toAgentId:e.string(),subject:e.string(),body:e.string(),taskId:e.string().optional(),sentAt:g,readAt:g.optional()}),Nn=e.object({id:e.string(),teamId:e.string(),title:e.string(),status:k,requiredSections:e.array(e.string()),createdBy:e.string(),createdAt:g,finalizedAt:g.optional()}),Ln=e.object({outcomeId:e.string(),status:k,requiredSections:e.array(e.string())}),Pn=e.object({agentId:e.string(),status:e.string()}),Dn=e.object({runId:e.string(),status:F}),Bn=e.object({id:e.string(),toAgentId:e.string()}),Un=e.object({delivered:e.number()}),Fn=e.object({id:e.string()}),qn=e.object({status:e.string()}),Gn=e.object({fragmentId:e.string(),status:e.string()}),Yn=e.object({outcomeId:e.string(),status:k}),at;((r)=>{r.TaskStart="task_start",r.TaskEnd="task_end",r.AgentEvent="agent_event",r.TeammateSpawned="teammate_spawned",r.TeammateShutdown="teammate_shutdown",r.TeamTaskUpdated="team_task_updated",r.TeamMessage="team_message",r.TeamMissionLog="team_mission_log",r.TeamTaskCompleted="team_task_completed",r.RunStarted="run_started",r.RunQueued="run_queued",r.RunProgress="run_progress",r.RunCompleted="run_completed",r.RunFailed="run_failed",r.RunCancelled="run_cancelled",r.RunInterrupted="run_interrupted",r.OutcomeCreated="outcome_created",r.OutcomeFragmentAttached="outcome_fragment_attached",r.OutcomeFragmentReviewed="outcome_fragment_reviewed",r.OutcomeFinalized="outcome_finalized"})(at||={});var it="the user is not subscribed to required model plan",st="no access to clinepass subscription models yet. subscribe to clinepass",lt="organization accounts cannot use individual model inference subscriptions",ut="you have reached your",ct="clinepass limit",q="please try again later.",dt="free limit reached on model",G="try again in ",pt="model not found";function Y(r){let i=r.toLowerCase(),c=i.indexOf(ut);if(c===-1)return;let h=i.indexOf(q,c);if(h===-1)return;let b=h+q.length;if(!i.slice(c,b).includes(ct))return;return{start:c,end:b}}function H(){return`${new URL("/dashboard/subscription?personal=true",U().appBaseUrl).toString()}`}function W(){return`No access to ClinePass subscription models yet. Subscribe to ClinePass, the low cost open weights model coding plan: ${H()}`}class A extends Error{providerId;constructor(r){super(W());this.name="ClineNotSubscribedError",this.providerId=r}}function z(){return"Organization accounts cannot use ClinePass subscriptions. Go to /account -> change account to switch to your personal account for ClinePass"}class C extends Error{providerId;constructor(r){super(z());this.name="ClineOrgIndividualInferenceSubscriptionError",this.providerId=r}}class _ extends Error{providerId;constructor(r,i){super(r);this.name="ClinePassLimitError",this.providerId=i}}class x extends Error{providerId;constructor(r,i){super(r);this.name="ClineFreeModelLimitError",this.providerId=i}}function mt(r){return r instanceof A}function gt(r){return r instanceof C}function ft(r){return r instanceof _}function ht(r){return r instanceof x}function yt(r){let i=r.trim().toLowerCase();return i.includes(it)||i.includes(st)}function bt(r){return r.toLowerCase().includes(lt)}function vt(r){return Y(r)!==void 0}function kt(r){let i=Y(r);return i?r.slice(i.start,i.end):void 0}function Tt(r){return r.toLowerCase().includes(dt)}function Et(r){return r.toLowerCase().includes(pt)}function wt(r){let i=r.toLowerCase(),c=i.indexOf(G);if(c===-1)return;return i.slice(c+G.length).trim()||void 0}var K=["302ai","abacus","abliteration-ai","above","agentrouter","agnes","ai-router","aiand","aihubmix","aixy","aki-io","alibaba","alibaba-cn","alibaba-coding-plan","alibaba-coding-plan-cn","alibaba-token-plan","alibaba-token-plan-cn","ambient","amd","anthropic","anyapi","arcee","atomic-chat","auriko","bailing","baseten","bedrock","berget","blueclaw","bothub","cerebras","chutes","clarifai","claudinio","cline-pass","cloudferro-sherlock","cloudflare-workers-ai","coralbricks","cortecs","crof","crossmodel","crusoe","daoxe","databricks","deepseek","digitalocean","dinference","drun","ebcloud","echo","edenai","empiriolabs","evroc","fastrouter","fireworks","freemodel","friendli","frogbot","gemini","github-copilot","gmicloud","greenpt","groq","helicone","hetzner","hpc-ai","huggingface","hyper","iflowcn","impossibl","inception","inceptron","inference","inferx","infomaniak","io-net","iteracompute","jalapeno","jiekou","kenari","kilo","kimi-for-coding","klokintegration","kosmik","kuae-cloud-coding-plan","lilac","llama","llmgateway","llmgateway-providers","llmtech","llmtr","lmstudio","longcat","lucidquery","lynkr","meganova","meta","minimax","minimax-cn","minimax-cn-coding-plan","minimax-coding-plan","mistral","mixlayer","moark","modal","model-oracle-ai","modelis","modelscope","moonshot","moonshotai-cn","morph","nano-gpt","nearai","nebius","neon","neosmith","neuralwatt","nova","novita-ai","nvidia","ofox","ollama","openai-native","opencode","opencode-go","openreason","openrouter","opper","orcarouter","ovhcloud","pendra","perplexity-agent","pioneer","poe","poolside","privatemode-ai","qihang-ai","qiniu-ai","regolo-ai","requesty","routing-run","runinfra","sakana","sapaicore","sarvam","scaleway","scnet-token-plan","scx-ai","sensenova","siliconflow","siliconflow-cn","snowflake-cortex","stackit","standardcompute","stepfun","stepfun-ai","stepfun-ai-step-plan","stepfun-step-plan","subconscious","submodel","synthetic","tencent-coding-plan","tencent-token-plan","tencent-tokenhub","tensorx","the-grid-ai","thinkingmachines","tinfoil","together","tokengo","tokenrouter","trustedrouter","umans-ai","umans-ai-coding-plan","unorouter","upstage","v0","vancine","vercel-ai-gateway","vertex","vivgrid","volcengine","volcengine-coding-plan","vultr","wafer.ai","wandb","xai","xiaomi","xiaomi-token-plan-ams","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xpersona","zai","zai-coding-plan","zeldoc","zenifra","zenmux","zhipuai","zhipuai-coding-plan"];var T;((a)=>{a.ANTHROPIC="anthropic";a.CLAUDE_CODE="claude-code";a.CLINE="cline";a.CLINE_PASS="cline-pass";a.ELEVENLABS="elevenlabs";a.OPENAI_COMPATIBLE="openai-compatible";a.OPENAI_NATIVE="openai-native";a.OPENAI_CODEX="openai-codex";a.OPENAI_CODEX_CLI="openai-codex-cli";a.OPENCODE="opencode";a.BEDROCK="bedrock";a.VERTEX="vertex";a.GEMINI="gemini";a.OLLAMA="ollama";a.LMSTUDIO="lmstudio";a.DEEPSEEK="deepseek";a.XAI="xai";a.TOGETHER="together";a.FIREWORKS="fireworks";a.GROQ="groq";a.POOLSIDE="poolside";a.CEREBRAS="cerebras";a.SAMBANOVA="sambanova";a.NEBIUS="nebius";a.BASETEN="baseten";a.REQUESTY="requesty";a.LITELLM="litellm";a.HUGGINGFACE="huggingface";a.VERCEL_AI_GATEWAY="vercel-ai-gateway";a.V0="v0";a.AIHUBMIX="aihubmix";a.HICAP="hicap";a.NOUS_RESEARCH="nousResearch";a.HUAWEI_CLOUD_MAAS="huawei-cloud-maas";a.WANDB="wandb";a.XIAOMI="xiaomi";a.TENCENT_TOKENHUB="tencent-tokenhub";a.KILO="kilo";a.ZAI="zai";a.ZAI_CODING_PLAN="zai-coding-plan";a.QWEN="qwen";a.QWEN_CODE="qwen-code";a.DOUBAO="doubao";a.MISTRAL="mistral";a.MOONSHOT="moonshot";a.ASKSAGE="asksage";a.MINIMAX="minimax";a.DIFY="dify";a.OCA="oca";a.SAPAICORE="sapaicore";a.OPENROUTER="openrouter"})(T||={});var St={openai:"openai-compatible",togetherai:"together","sap-ai-core":"sapaicore"},X=[...new Set([...Object.values(T),...K])];function M(r){let i=r.trim();return St[i]??i}export{M as normalizeProviderId,vt as isClinePassLimitMessage,ft as isClinePassLimitError,bt as isClineOrgIndividualInferenceSubscriptionMessage,gt as isClineOrgIndividualInferenceSubscriptionError,yt as isClineNotSubscribedMessage,mt as isClineNotSubscribedError,Et as isClineModelNotFoundMessage,Tt as isClineFreeModelLimitMessage,ht as isClineFreeModelLimitError,H as getClinePassSubscriptionUrl,z as getClineOrgIndividualInferenceSubscriptionMessage,W as getClineNotSubscribedMessage,kt as extractClinePassLimitMessage,wt as extractClineFreeModelLimitResetTime,_ as ClinePassLimitError,C as ClineOrgIndividualInferenceSubscriptionError,A as ClineNotSubscribedError,x as ClineFreeModelLimitError};
|
|
16
|
+
Once you have presented your plan, end your turn and wait for the user's response. You do NOT have the ability to switch to act mode yourself -- the user must do it manually with the Plan/Act toggle once they are satisfied with the plan. If the task requires tools that are only available in act mode, ask the user to "toggle to Act mode" (use those words).`;var Zt="anthropic/claude-sonnet-5";var Oe=n.object({id:n.string(),temperature:n.number().optional(),maxTokens:n.number().optional(),contextWindow:n.number().optional(),inputPrice:n.number().optional(),outputPrice:n.number().optional(),supportsImages:n.boolean().optional()}),Re=n.object({models:n.array(Oe).optional(),openAiBaseUrl:n.string().optional(),openAiHeaders:n.record(n.string(),n.string()).optional(),azureApiVersion:n.string().optional(),azureIdentity:n.boolean().optional()}),Ne=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),je=n.object({name:n.string(),baseModelId:n.string(),thinkingBudgetTokens:n.number().optional()}),Le=n.object({models:n.array(Ne).optional(),customModels:n.array(je).optional(),awsRegion:n.string().optional(),awsUseCrossRegionInference:n.boolean().optional(),awsUseGlobalInference:n.boolean().optional(),awsBedrockUsePromptCache:n.boolean().optional(),awsBedrockEndpoint:n.string().optional()}),Pe=n.object({id:n.string()}),De=n.object({models:n.array(Pe).optional()}),Be=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),$e=n.object({models:n.array(Be).optional(),vertexProjectId:n.string().optional(),vertexRegion:n.string().optional()}),qe=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional(),promptCachingEnabled:n.boolean().optional()}),Fe=n.object({models:n.array(qe).optional(),baseUrl:n.string().optional()}),Ue=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),He=n.object({models:n.array(Ue).optional(),baseUrl:n.string().optional()}),Ge=n.object({OpenAiCompatible:Re.optional(),AwsBedrock:Le.optional(),Cline:De.optional(),Vertex:$e.optional(),LiteLLM:Fe.optional(),Anthropic:He.optional()}),We=n.object({id:n.string()}),Ye=n.object({name:n.string(),url:n.string(),alwaysEnabled:n.boolean().optional(),headers:n.record(n.string(),n.string()).optional()}),R=n.object({alwaysEnabled:n.boolean(),name:n.string(),contents:n.string()}),E=n.object({bucket:n.string(),accessKeyId:n.string(),secretAccessKey:n.string(),region:n.string().optional(),endpoint:n.string().optional(),accountId:n.string().optional()}),ze=n.object({enabled:n.boolean().optional(),type:n.union([n.literal("s3_access_keys"),n.literal("r2_access_keys"),n.literal("azure_access_keys")]).optional(),s3AccessSettings:E.optional(),r2AccessSettings:E.optional(),azureAccessSettings:E.optional()}),Ke=n.object({promptUploading:ze.optional()}),Qt=n.object({version:n.string(),providerSettings:Ge.optional(),telemetryEnabled:n.boolean().optional(),kanbanEnabled:n.boolean().optional(),mcpMarketplaceEnabled:n.boolean().optional(),allowedMCPServers:n.array(We).optional(),remoteMCPServers:n.array(Ye).optional(),blockPersonalRemoteMCPServers:n.boolean().optional(),yoloModeAllowed:n.boolean().optional(),openTelemetryEnabled:n.boolean().optional(),openTelemetryMetricsExporter:n.string().optional(),openTelemetryLogsExporter:n.string().optional(),openTelemetryOtlpProtocol:n.string().optional(),openTelemetryOtlpEndpoint:n.string().optional(),openTelemetryOtlpHeaders:n.record(n.string(),n.string()).optional(),openTelemetryOtlpMetricsProtocol:n.string().optional(),openTelemetryOtlpMetricsEndpoint:n.string().optional(),openTelemetryOtlpMetricsHeaders:n.record(n.string(),n.string()).optional(),openTelemetryOtlpLogsProtocol:n.string().optional(),openTelemetryOtlpLogsEndpoint:n.string().optional(),openTelemetryOtlpLogsHeaders:n.record(n.string(),n.string()).optional(),openTelemetryMetricExportInterval:n.number().optional(),openTelemetryOtlpInsecure:n.boolean().optional(),openTelemetryLogBatchSize:n.number().optional(),openTelemetryLogBatchTimeout:n.number().optional(),openTelemetryLogMaxQueueSize:n.number().optional(),enterpriseTelemetry:Ke.optional(),globalRules:n.array(R).optional(),globalWorkflows:n.array(R).optional()}),en=n.record(n.string(),n.string());var nn=S.enum(["reasoning","prompt-cache","tools","provider-tools","oauth","temperature","files","streaming","vision","computer-use","local-auth","popular"]),rn=S.enum(["anthropic","gemini","openai-chat","openai-responses","openai-r1","ai-sdk"]),on=S.enum(["anthropic","ai-sdk","ai-sdk-community","openai","openai-compatible","openai-r1","gemini","bedrock","custom","fetch","vertex"]);var N={production:{environment:"production",appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",mcpBaseUrl:"https://api.cline.bot/v1/mcp",workOsClientId:"client_01K3A541FN8TA3EPPHTD2325AR"},staging:{environment:"staging",appBaseUrl:"https://staging-app.cline.bot",apiBaseUrl:"https://core-api.staging.int.cline.bot",mcpBaseUrl:"https://core-api.staging.int.cline.bot/v1/mcp",workOsClientId:"client_01K3A5415VF6QBQBG3XYCW91G6"},local:{environment:"local",appBaseUrl:"http://localhost:3000",apiBaseUrl:"http://localhost:7777",mcpBaseUrl:"http://localhost:7777/v1/mcp",workOsClientId:"client_01K6XQAY7JK6T5HXVSZW2S5VYK"}};function j(r){let i=r?.trim().toLowerCase();if(i==="production"||i==="staging"||i==="local")return i;return}function B(){if(typeof process>"u"||!process?.env)return{};return process.env}function Xe(){let r=B();return j(r.CLINE_ENVIRONMENT_OVERRIDE)??j(r.CLINE_ENVIRONMENT)??"production"}function Je(r){if(typeof r==="string")return N[r];return N[Xe()]}function Ze(r,i){if(i.CLINE_API_BASE_URL)r={...r,apiBaseUrl:i.CLINE_API_BASE_URL,mcpBaseUrl:`${i.CLINE_API_BASE_URL}/v1/mcp`};return r}function $(r){let i=Je(r);return Ze(i,B())}var Ve=["rules","skills","workflows","plugins","hooks"];var an=new Set(Ve);var Qe=m.object({rootPath:m.string().min(1),hint:m.string().min(1).optional(),associatedRemoteUrls:m.array(m.string().min(1)).optional(),latestGitCommitHash:m.string().min(1).optional(),latestGitBranchName:m.string().min(1).optional()}),ln=m.object({currentWorkspacePath:m.string().min(1).optional(),workspaces:m.record(m.string().min(1),Qe)});var et=["current_state","boundary_analysis","interface_proposal"];var g=e.preprocess((r)=>r instanceof Date?r.toISOString():r,e.string().datetime()),v=e.enum(["pending","in_progress","blocked","completed"]),q=e.enum(["queued","running","completed","failed","cancelled","interrupted"]),w=e.enum(["draft","in_review","finalized"]),tt=e.object({agentId:e.string(),role:e.enum(["lead","teammate"]),description:e.string().optional(),status:e.enum(["idle","running","stopped"])}),cn=e.object({agentId:e.string(),rolePrompt:e.string(),modelId:e.string().optional(),maxIterations:e.number().optional()});function u(r){return e.preprocess((i)=>i===null?void 0:i,r.optional())}var dn=e.object({agentId:e.string().min(1).describe("Teammate identifier"),rolePrompt:e.string().min(1).describe("System prompt describing teammate role")}).strict(),pn=e.object({agentId:e.string().min(1).describe("Teammate identifier"),reason:u(e.string().min(1)).describe("Optional shutdown reason")}),mn=e.object({}),nt={create:["title","description"],list:[],claim:["taskId"],complete:["taskId","summary"],block:["taskId","reason"]};var gn=e.object({action:e.enum(["create","list","claim","complete","block"]),title:u(e.string().min(1)).describe("Task title"),description:u(e.string().min(1)).describe("Task details"),dependsOn:u(e.array(e.string().describe("Dependency task ID"))).describe("Array of dependency task IDs"),assignee:u(e.string().min(1)).describe("Optional assignee"),status:u(e.enum(["pending","in_progress","blocked","completed"])).describe("Optional task status filter"),taskId:u(e.string()).describe("Task ID"),summary:u(e.string().min(1)).describe("Completion summary"),reason:u(e.string().min(1)).describe("Blocking reason")}).superRefine((r,i)=>{for(let c of nt[r.action]){if(r[c]!==void 0)continue;i.addIssue({code:"custom",path:[c],message:`Field "${c}" is required when action=${r.action}`})}}),hn=e.object({agentId:e.string().describe("Teammate agent ID"),task:e.string().min(1).describe("Task instructions for the teammate"),taskId:u(e.string()).describe("Optional shared task list ID"),runMode:u(e.enum(["sync","async"])).describe("Execution mode: 'sync' blocks until the teammate finishes and returns the result (default if omitted); 'async' queues the run and returns a runId immediately — use team_await_runs to collect results later."),continueConversation:u(e.boolean()).describe("If true, continue the teammate conversation; otherwise start fresh")}),fn=e.object({status:u(e.enum(["queued","running","completed","failed","cancelled","interrupted"])).describe("Optional run status filter. Omit to include all statuses."),agentId:u(e.string().min(1)).describe("Optional teammate ID filter. Omit to include all teammates."),includeCompleted:u(e.boolean()).describe("Include completed/failed runs (default true)")}),bn=e.object({runId:e.string().min(1).describe("Run ID"),reason:u(e.string().min(1)).describe("Optional cancellation reason")}),yn=e.object({runId:u(e.string().min(1)).describe("Optional async run ID to await. Omit to wait for all active async runs.")}).strict(),vn=e.object({toAgentId:e.string().min(1).describe("Recipient agent ID"),subject:e.string().min(1).describe("Message subject"),body:e.string().min(1).describe("Message body"),taskId:u(e.string().min(1)).describe("Optional task ID context")}),kn=e.object({subject:e.string().min(1).describe("Message subject"),body:e.string().min(1).describe("Message body"),taskId:u(e.string().min(1)).describe("Optional task ID context")}),wn=e.object({unreadOnly:u(e.boolean()).describe("Only unread messages for read action (default true)")}),Tn=e.object({kind:e.enum(["progress","handoff","blocked","decision","done","error"]),summary:e.string().min(1).describe("Update summary"),taskId:u(e.string().min(1)).describe("Optional task ID context"),evidence:u(e.array(e.string().min(1))).describe("Optional evidence links/snippets"),nextAction:u(e.string().min(1)).describe("Planned next step")}),En=e.object({}),Sn=e.object({title:e.string().describe("Outcome title"),requiredSections:e.array(e.string()).default(et).describe("Required sections for finalization gate (defaults to current_state,boundary_analysis,interface_proposal)")}),An=e.object({outcomeId:e.string().describe("Outcome ID"),section:e.string().describe("Section name"),sourceRunId:u(e.string()).describe("Optional source run ID"),content:e.string().describe("Section fragment content")}),Cn=e.object({fragmentId:e.string().describe("Fragment ID"),approved:e.boolean().describe("Review decision")}),_n=e.object({outcomeId:e.string().describe("Outcome ID")}),xn=e.object({}),Mn=e.object({teamId:e.string(),teamName:e.string(),members:e.array(tt),taskCounts:e.record(v,e.number()),unreadMessages:e.number(),missionLogEntries:e.number(),activeRuns:e.number(),queuedRuns:e.number(),outcomeCounts:e.record(w,e.number())}),rt=e.object({id:e.string(),title:e.string(),description:e.string(),status:v,createdAt:g,updatedAt:g,createdBy:e.string(),assignee:e.string().optional(),dependsOn:e.array(e.string()),summary:e.string().optional(),isReady:e.boolean(),blockedBy:e.array(e.string())}),In=e.discriminatedUnion("action",[e.object({action:e.literal("create"),taskId:e.string(),status:v,ignoredFields:e.array(e.string()).optional(),note:e.string().optional()}),e.object({action:e.literal("list"),tasks:e.array(rt)}),e.object({action:e.literal("claim"),taskId:e.string(),status:v,nextStep:e.string()}),e.object({action:e.literal("complete"),taskId:e.string(),status:v}),e.object({action:e.literal("block"),taskId:e.string(),status:v})]),On=e.object({agentId:e.string(),mode:e.enum(["sync","async"]),status:e.enum(["dispatched","running","queued","joined"]),dispatched:e.boolean(),message:e.string(),deduped:e.boolean().optional(),runId:e.string().optional(),text:e.string().optional(),iterations:e.number().optional()}),ot=e.object({textPreview:e.string(),iterations:e.number(),finishReason:e.string(),durationMs:e.number(),usage:e.object({inputTokens:e.number(),outputTokens:e.number(),cacheReadTokens:e.number().optional(),cacheWriteTokens:e.number().optional(),totalCost:e.number().optional()})}),Rn=e.object({id:e.string(),agentId:e.string(),taskId:e.string().optional(),status:q,messagePreview:e.string(),priority:e.number(),retryCount:e.number(),maxRetries:e.number(),nextAttemptAt:g.optional(),continueConversation:e.boolean().optional(),startedAt:g,endedAt:g.optional(),leaseOwner:e.string().optional(),heartbeatAt:g.optional(),lastProgressAt:g.optional(),lastProgressMessage:e.string().optional(),currentActivity:e.string().optional(),error:e.string().optional(),resultSummary:ot.optional()}),Nn=e.object({id:e.string(),teamId:e.string(),fromAgentId:e.string(),toAgentId:e.string(),subject:e.string(),body:e.string(),taskId:e.string().optional(),sentAt:g,readAt:g.optional()}),jn=e.object({id:e.string(),teamId:e.string(),title:e.string(),status:w,requiredSections:e.array(e.string()),createdBy:e.string(),createdAt:g,finalizedAt:g.optional()}),Ln=e.object({outcomeId:e.string(),status:w,requiredSections:e.array(e.string())}),Pn=e.object({agentId:e.string(),status:e.string()}),Dn=e.object({runId:e.string(),status:q}),Bn=e.object({id:e.string(),toAgentId:e.string()}),$n=e.object({delivered:e.number()}),qn=e.object({id:e.string()}),Fn=e.object({status:e.string()}),Un=e.object({fragmentId:e.string(),status:e.string()}),Hn=e.object({outcomeId:e.string(),status:w}),at;((r)=>{r.TaskStart="task_start",r.TaskEnd="task_end",r.AgentEvent="agent_event",r.TeammateSpawned="teammate_spawned",r.TeammateShutdown="teammate_shutdown",r.TeamTaskUpdated="team_task_updated",r.TeamMessage="team_message",r.TeamMissionLog="team_mission_log",r.TeamTaskCompleted="team_task_completed",r.RunStarted="run_started",r.RunQueued="run_queued",r.RunProgress="run_progress",r.RunCompleted="run_completed",r.RunFailed="run_failed",r.RunCancelled="run_cancelled",r.RunInterrupted="run_interrupted",r.OutcomeCreated="outcome_created",r.OutcomeFragmentAttached="outcome_fragment_attached",r.OutcomeFragmentReviewed="outcome_fragment_reviewed",r.OutcomeFinalized="outcome_finalized"})(at||={});var it="the user is not subscribed to required model plan",st="no access to clinepass subscription models yet. subscribe to clinepass",lt="organization accounts cannot use individual model inference subscriptions",ut="you have reached your",ct="clinepass limit",F="please try again later.",dt="free limit reached on model",U="try again in ",pt="model not found";function H(r){let i=r.toLowerCase(),c=i.indexOf(ut);if(c===-1)return;let f=i.indexOf(F,c);if(f===-1)return;let y=f+F.length;if(!i.slice(c,y).includes(ct))return;return{start:c,end:y}}function G(){return`${new URL("/dashboard/subscription?personal=true",$().appBaseUrl).toString()}`}function W(){return`No access to ClinePass subscription models yet. Subscribe to ClinePass, the low cost open weights model coding plan: ${G()}`}class A extends Error{providerId;constructor(r){super(W());this.name="ClineNotSubscribedError",this.providerId=r}}function Y(){return"Organization accounts cannot use ClinePass subscriptions. Go to /account -> change account to switch to your personal account for ClinePass"}class C extends Error{providerId;constructor(r){super(Y());this.name="ClineOrgIndividualInferenceSubscriptionError",this.providerId=r}}class _ extends Error{providerId;constructor(r,i){super(r);this.name="ClinePassLimitError",this.providerId=i}}class x extends Error{providerId;constructor(r,i){super(r);this.name="ClineFreeModelLimitError",this.providerId=i}}function mt(r){return r instanceof A}function gt(r){return r instanceof C}function ht(r){return r instanceof _}function ft(r){return r instanceof x}function bt(r){let i=r.trim().toLowerCase();return i.includes(it)||i.includes(st)}function yt(r){return r.toLowerCase().includes(lt)}function vt(r){return H(r)!==void 0}function kt(r){let i=H(r);return i?r.slice(i.start,i.end):void 0}function wt(r){return r.toLowerCase().includes(dt)}function Tt(r){return r.toLowerCase().includes(pt)}function Et(r){let i=r.toLowerCase(),c=i.indexOf(U);if(c===-1)return;return i.slice(c+U.length).trim()||void 0}var z=["302ai","abacus","abliteration-ai","above","agentrouter","agnes","ai-router","aiand","aihubmix","aixy","aki-io","alibaba","alibaba-cn","alibaba-coding-plan","alibaba-coding-plan-cn","alibaba-token-plan","alibaba-token-plan-cn","ambient","amd","anthropic","anyapi","arcee","atomic-chat","auriko","bailing","baseten","bedrock","berget","blueclaw","bothub","cerebras","chutes","clarifai","claudinio","cline-pass","cloudferro-sherlock","cloudflare-workers-ai","coralbricks","cortecs","crof","crossmodel","crusoe","daoxe","databricks","deepseek","digitalocean","dinference","drun","ebcloud","echo","edenai","empiriolabs","evroc","fastrouter","fireworks","freemodel","friendli","frogbot","gemini","github-copilot","gmicloud","greenpt","groq","helicone","hetzner","hpc-ai","huggingface","hyper","iflowcn","impossibl","inception","inceptron","infer","inference","inferx","infomaniak","io-net","iteracompute","jalapeno","jiekou","kenari","kilo","kimi-for-coding","klokintegration","kosmik","kuae-cloud-coding-plan","lilac","llama","llmgateway","llmgateway-providers","llmtech","llmtr","lmstudio","longcat","lucidquery","lynkr","meganova","melious","meta","minimax","minimax-cn","minimax-cn-coding-plan","minimax-coding-plan","mistral","mixlayer","moark","modal","model-oracle-ai","modelis","modelscope","moonshot","moonshotai-cn","morph","nan","nano-gpt","nearai","nebius","neon","neosmith","neuralwatt","nova","novita-ai","nvidia","ofox","ollama","openai-native","opencode","opencode-go","openreason","openrouter","opper","orcarouter","ovhcloud","pendra","perplexity-agent","pioneer","poe","poolside","privatemode-ai","qihang-ai","qiniu-ai","regolo-ai","requesty","routing-run","runinfra","sakana","sapaicore","sarvam","scaleway","scnet-token-plan","scx-ai","sensenova","siliconflow","siliconflow-cn","snowflake-cortex","stackit","standardcompute","stepfun","stepfun-ai","stepfun-ai-step-plan","stepfun-step-plan","subconscious","submodel","synthetic","tencent-coding-plan","tencent-token-plan","tencent-tokenhub","tensorx","the-grid-ai","thinkingmachines","tinfoil","together","tokengo","tokenrouter","trustedrouter","umans-ai","umans-ai-coding-plan","unorouter","upstage","v0","vancine","vercel-ai-gateway","vertex","vispark","vivgrid","volcengine","volcengine-coding-plan","vultr","wafer.ai","wallaby","wandb","xai","xiaomi","xiaomi-token-plan-ams","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xpersona","zai","zai-coding-plan","zeldoc","zenifra","zenmux","zhipuai","zhipuai-coding-plan"];var T;((a)=>{a.ANTHROPIC="anthropic";a.CLAUDE_CODE="claude-code";a.CLINE="cline";a.CLINE_PASS="cline-pass";a.ELEVENLABS="elevenlabs";a.OPENAI_COMPATIBLE="openai-compatible";a.OPENAI_NATIVE="openai-native";a.OPENAI_CODEX="openai-codex";a.OPENAI_CODEX_CLI="openai-codex-cli";a.OPENCODE="opencode";a.BEDROCK="bedrock";a.VERTEX="vertex";a.GEMINI="gemini";a.OLLAMA="ollama";a.LMSTUDIO="lmstudio";a.DEEPSEEK="deepseek";a.XAI="xai";a.TOGETHER="together";a.FIREWORKS="fireworks";a.GROQ="groq";a.POOLSIDE="poolside";a.CEREBRAS="cerebras";a.SAMBANOVA="sambanova";a.NEBIUS="nebius";a.CRUSOE="crusoe";a.BASETEN="baseten";a.REQUESTY="requesty";a.LITELLM="litellm";a.HUGGINGFACE="huggingface";a.VERCEL_AI_GATEWAY="vercel-ai-gateway";a.V0="v0";a.AIHUBMIX="aihubmix";a.HICAP="hicap";a.NOUS_RESEARCH="nousResearch";a.HUAWEI_CLOUD_MAAS="huawei-cloud-maas";a.WANDB="wandb";a.XIAOMI="xiaomi";a.TENCENT_TOKENHUB="tencent-tokenhub";a.KILO="kilo";a.ZAI="zai";a.ZAI_CODING_PLAN="zai-coding-plan";a.QWEN="qwen";a.QWEN_CODE="qwen-code";a.DOUBAO="doubao";a.MISTRAL="mistral";a.MOONSHOT="moonshot";a.ASKSAGE="asksage";a.MINIMAX="minimax";a.DIFY="dify";a.OCA="oca";a.SAPAICORE="sapaicore";a.OPENROUTER="openrouter"})(T||={});var St={openai:"openai-compatible",togetherai:"together","sap-ai-core":"sapaicore"},K=[...new Set([...Object.values(T),...z])];function M(r){let i=r.trim();return St[i]??i}export{M as normalizeProviderId,vt as isClinePassLimitMessage,ht as isClinePassLimitError,yt as isClineOrgIndividualInferenceSubscriptionMessage,gt as isClineOrgIndividualInferenceSubscriptionError,bt as isClineNotSubscribedMessage,mt as isClineNotSubscribedError,Tt as isClineModelNotFoundMessage,wt as isClineFreeModelLimitMessage,ft as isClineFreeModelLimitError,G as getClinePassSubscriptionUrl,Y as getClineOrgIndividualInferenceSubscriptionMessage,W as getClineNotSubscribedMessage,kt as extractClinePassLimitMessage,Et as extractClineFreeModelLimitResetTime,_ as ClinePassLimitError,C as ClineOrgIndividualInferenceSubscriptionError,A as ClineNotSubscribedError,x as ClineFreeModelLimitError};
|
package/dist/providers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { isProviderApiLine, OLLAMA_DEFAULT_CONTEXT_WINDOW, type ProviderApiLine, resolveProviderApiLineBaseUrl, } from "./providers/builtins";
|
|
1
|
+
export { getGeneratedModelsForRuntimeProvider, isProviderApiLine, OLLAMA_DEFAULT_CONTEXT_WINDOW, type ProviderApiLine, resolveProviderApiLineBaseUrl, } from "./providers/builtins";
|
|
2
2
|
export { type ApiHandler, BUILT_IN_PROVIDER, BUILT_IN_PROVIDER_IDS, type BuiltInProviderId, type HandlerFactory, isBuiltInProviderId, type LazyHandlerFactory, normalizeProviderId, type ProviderCapability, type ProviderConfig, type ProviderId, } from "./providers/types";
|
|
3
3
|
import { type ApiHandler, type ProviderConfig } from "./providers/types";
|
|
4
|
-
export { classifyProviderError } from "./providers/error-classification";
|
|
4
|
+
export { classifyProviderError, isRetryableProviderError, } from "./providers/error-classification";
|
|
5
5
|
export { ClineFreeModelLimitError, ClineNotSubscribedError, ClineOrgIndividualInferenceSubscriptionError, ClinePassLimitError, extractClineFreeModelLimitResetTime, extractClinePassLimitMessage, getClineNotSubscribedMessage, getClineOrgIndividualInferenceSubscriptionMessage, getClinePassSubscriptionUrl, isClineFreeModelLimitError, isClineFreeModelLimitMessage, isClineModelNotFoundMessage, isClineNotSubscribedError, isClineNotSubscribedMessage, isClineOrgIndividualInferenceSubscriptionError, isClineOrgIndividualInferenceSubscriptionMessage, isClinePassLimitError, isClinePassLimitMessage, } from "./providers/errors";
|
|
6
6
|
export { getRegisteredHandler, getRegisteredHandlerAsync, hasRegisteredHandler, isRegisteredHandlerAsync, registerAsyncHandler, registerHandler, } from "./providers/factory-registry";
|
|
7
7
|
export type { ApiStreamChunk, ContentBlock, FileContent, HandlerModelInfo, ImageContent, Message, MessageRole, MessageWithMetadata, RedactedThinkingContent, TextContent, ThinkingContent, ToolDefinition, ToolResultContent, ToolUseContent, } from "./providers/types";
|
package/dist/providers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../src/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,6BAA6B,EAC7B,KAAK,eAAe,EACpB,6BAA6B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,UAAU,EACf,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,UAAU,GACf,MAAM,mBAAmB,CAAC;AAY3B,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../src/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oCAAoC,EACpC,iBAAiB,EACjB,6BAA6B,EAC7B,KAAK,eAAe,EACpB,6BAA6B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,UAAU,EACf,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,UAAU,GACf,MAAM,mBAAmB,CAAC;AAY3B,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACN,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,wBAAwB,EACxB,uBAAuB,EACvB,4CAA4C,EAC5C,mBAAmB,EACnB,mCAAmC,EACnC,4BAA4B,EAC5B,4BAA4B,EAC5B,iDAAiD,EACjD,2BAA2B,EAC3B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