@cline/llms 0.0.83 → 0.0.84

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.
@@ -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;AAgCZ,OAAO,KAAK,EAGX,qBAAqB,EACrB,gBAAgB,EAEhB,qBAAqB,EAErB,MAAM,iBAAiB,CAAC;AAEzB,UAAU,sBAAsB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AA6OD,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,sBAAsB,GAC9B,OAAO,CAAC,YAAY,CAAC,CASvB;AAgiBD,UAAU,kBAAkB;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAAC,CAAC,SAAS,kBAAkB,EAAE,EAC3E,QAAQ,EACR,KAAK,GACL,EAAE;IACF,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;CACf,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAqBpB;AAmPD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC7B,UAAU,EACP,gBAAgB,GAChB,qBAAqB,GACrB,MAAM,CAAC,MA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Ae,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"}
@@ -0,0 +1,3 @@
1
+ import { type ClineClientIdentity } from "@cline/shared";
2
+ export declare function buildClineClientHeaders(identity?: ClineClientIdentity | undefined): Record<string, string>;
3
+ //# sourceMappingURL=cline-client-headers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cline-client-headers.d.ts","sourceRoot":"","sources":["../../src/providers/cline-client-headers.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,mBAAmB,EAExB,MAAM,eAAe,CAAC;AAQvB,wBAAgB,uBAAuB,CACtC,QAAQ,GAAE,mBAAmB,GAAG,SAAoC,GAClE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"retry-empty-response.d.ts","sourceRoot":"","sources":["../../../src/providers/middleware/retry-empty-response.ts"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EACX,yBAAyB,EAGzB,oBAAoB,EACpB,MAAM,kBAAkB,CAAC;AAG1B,0DAA0D;AAC1D,UAAU,WAAW;IACpB,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC5D;AAED,MAAM,WAAW,yBAAyB;IACzC,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,sDAAsD;AACtD,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,oCAAoC;AACpC,eAAO,MAAM,qCAAqC,MAAM,CAAC;AACzD,iEAAiE;AACjE,eAAO,MAAM,8BAA8B,OAAQ,CAAC;AA+BpD;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAsC/D;AAsBD,4DAA4D;AAC5D,wBAAgB,QAAQ,CACvB,CAAC,EAAE,oBAAoB,EACvB,CAAC,EAAE,oBAAoB,GACrB,oBAAoB,CAuBtB;AAwCD;;;;GAIG;AACH,wBAAgB,kCAAkC,CACjD,OAAO,GAAE,yBAA8B,GACrC,yBAAyB,CAiM3B"}
1
+ {"version":3,"file":"retry-empty-response.d.ts","sourceRoot":"","sources":["../../../src/providers/middleware/retry-empty-response.ts"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EACX,yBAAyB,EAGzB,oBAAoB,EACpB,MAAM,kBAAkB,CAAC;AAG1B,0DAA0D;AAC1D,UAAU,WAAW;IACpB,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC5D;AAED,MAAM,WAAW,yBAAyB;IACzC,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,sDAAsD;AACtD,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,oCAAoC;AACpC,eAAO,MAAM,qCAAqC,MAAM,CAAC;AACzD,iEAAiE;AACjE,eAAO,MAAM,8BAA8B,OAAQ,CAAC;AA+BpD;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAsC/D;AAsBD,4DAA4D;AAC5D,wBAAgB,QAAQ,CACvB,CAAC,EAAE,oBAAoB,EACvB,CAAC,EAAE,oBAAoB,GACrB,oBAAoB,CAuBtB;AAwCD;;;;GAIG;AACH,wBAAgB,kCAAkC,CACjD,OAAO,GAAE,yBAA8B,GACrC,yBAAyB,CAuM3B"}
@@ -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", "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"];
12
+ export declare const GENERATED_PROVIDER_IDS: readonly ["302ai", "abacus", "abliteration-ai", "above", "agentrouter", "agnes", "ai-router", "ai21", "aiand", "aihubmix", "ainetcafe", "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", "inco", "infer", "inference", "inferx", "infomaniak", "io-net", "iteracompute", "jalapeno", "jiekou", "kenari", "kilo", "kimi-code-plan-cn", "kimi-code-plan-global", "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", "oci", "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", "stepfun", "stepfun-ai", "stepfun-ai-step-plan", "stepfun-step-plan", "subconscious", "submodel", "synthetic", "tempr", "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,6oFA6MzB,CAAC"}
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,ksFAkNzB,CAAC"}
@@ -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,EAsyF1D,CAAC"}
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,EA82F1D,CAAC"}
@@ -26,5 +26,6 @@ export interface ResolveProviderRequestHeadersInput {
26
26
  openAiCodex?: OpenAICodexRequestHeaderContext;
27
27
  headers?: ProviderRequestHeaderLayers;
28
28
  }
29
+ export declare const DEFAULT_CLINE_REQUEST_HEADERS: Record<string, string>;
29
30
  export declare function resolveProviderRequestHeaders(input: ResolveProviderRequestHeadersInput): Record<string, string> | undefined;
30
31
  //# sourceMappingURL=request-headers.d.ts.map
@@ -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,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kCAAkC;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;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
+ {"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,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kCAAkC;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;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;AAED,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKhE,CAAC;AAoHF,wBAAgB,6BAA6B,CAC5C,KAAK,EAAE,kCAAkC,GACvC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAYpC"}
@@ -42,6 +42,9 @@ export interface ProviderFactoryResult {
42
42
  }
43
43
  export interface AiSdkStreamPart {
44
44
  type?: string;
45
+ response?: {
46
+ headers?: Record<string, string>;
47
+ };
45
48
  [key: string]: unknown;
46
49
  }
47
50
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/providers/vendors/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,SAAS,EACT,aAAa,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAChD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAEpF,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,WAAW,CAAC,CAAC;AAE9E,MAAM,WAAW,yBAAyB;IACzC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,yBAAyB,CAAC;CAC/D;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;AAE7E,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE;QACX,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QACvC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAC/C,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAChD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;QAC/C,aAAa,CAAC,EAAE,CA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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC5D"}
@@ -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 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
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 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 zn}from"zod";var L=["none","minimal","low","medium","high","xhigh","max"],J=p.enum(L),V=J.exclude(["none"]),Z=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(Z)}).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()}),ie=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"]),ae=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:ae.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:ie.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()}),Rt=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()}),Nt=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:V.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()}),Lt=s.object({actor:ge,context:he,payload:s.record(s.string(),s.unknown()).optional()}),Pt=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()}),Dt=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"],$t=new Set(fe);var k={CLINE_PASS:"ext-cline-pass",CODE_CLOUD_AGENTS:"code-cloud-agents",CODE_ONBOARDING_GITHUB:"code-onboarding-github",CLINE_COMPOSIO_BETA:"CLINE_COMPOSIO_BETA"},qt={[k.CLINE_PASS]:!1,[k.CODE_CLOUD_AGENTS]:!1,[k.CODE_ONBOARDING_GITHUB]:!1,[k.CLINE_COMPOSIO_BETA]:!1},Ft=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}),Ce=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()}),Ut=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:Ce.optional()}).passthrough();var Ae=["readFile","search","bash","webFetch","editor","applyPatch","skills","askQuestion","submit"],Gt=new Set(Ae);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 a=new URL(r).protocol;return a==="http:"||a==="https:"},"Generated media URLs must use HTTP or HTTPS")}),d.object({type:d.literal("artifact"),artifactId:d.string().min(1)})]);function Ie(r){if(r.startsWith("image/"))return"image";if(r.startsWith("audio/"))return"audio";if(r.startsWith("video/"))return"video";return"file"}var Yt=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)=>Ie(r.mediaType)===r.modality,{message:"Generated media modality must match its media type",path:["modality"]});var Wt=["show","hide","subscription"];function Me(r){if(typeof globalThis.atob==="function")try{let a=globalThis.atob(r),c=Uint8Array.from(a,(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 zt(r){let a=r?.trim();if(!a)return null;try{let c=a.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,"="),M=Me(X);return M?JSON.parse(M):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.`,Xt=`${D}
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.`,Jt=`${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.`,Jt=`${D}
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.`,Vt=`${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 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};
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()}),$e=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),qe=n.object({models:n.array($e).optional(),vertexProjectId:n.string().optional(),vertexRegion:n.string().optional()}),Fe=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional(),promptCachingEnabled:n.boolean().optional()}),Be=n.object({models:n.array(Fe).optional(),baseUrl:n.string().optional()}),Ue=n.object({id:n.string(),thinkingBudgetTokens:n.number().optional()}),Ge=n.object({models:n.array(Ue).optional(),baseUrl:n.string().optional()}),He=n.object({OpenAiCompatible:Re.optional(),AwsBedrock:Le.optional(),Cline:De.optional(),Vertex:qe.optional(),LiteLLM:Be.optional(),Anthropic:Ge.optional()}),Ye=n.object({id:n.string()}),We=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()}),en=n.object({version:n.string(),providerSettings:He.optional(),telemetryEnabled:n.boolean().optional(),kanbanEnabled:n.boolean().optional(),mcpMarketplaceEnabled:n.boolean().optional(),allowedMCPServers:n.array(Ye).optional(),remoteMCPServers:n.array(We).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()}),tn=n.record(n.string(),n.string());var rn=S.enum(["reasoning","prompt-cache","tools","provider-tools","oauth","temperature","files","streaming","vision","computer-use","local-auth","popular"]),on=S.enum(["anthropic","gemini","openai-chat","openai-responses","openai-r1","ai-sdk"]),an=S.enum(["anthropic","ai-sdk","ai-sdk-community","openai","openai-compatible","openai-r1","gemini","bedrock","custom","fetch","vertex"]);function Xe(){return globalThis}function sn(){return Xe().__clineClientIdentity}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 a=r?.trim().toLowerCase();if(a==="production"||a==="staging"||a==="local")return a;return}function $(){if(typeof process>"u"||!process?.env)return{};return process.env}function Je(){let r=$();return j(r.CLINE_ENVIRONMENT_OVERRIDE)??j(r.CLINE_ENVIRONMENT)??"production"}function Ve(r){if(typeof r==="string")return N[r];return N[Je()]}function Ze(r,a){if(a.CLINE_API_BASE_URL)r={...r,apiBaseUrl:a.CLINE_API_BASE_URL,mcpBaseUrl:`${a.CLINE_API_BASE_URL}/v1/mcp`};return r}function q(r){let a=Ve(r);return Ze(a,$())}var Qe=["rules","skills","workflows","plugins","hooks"];var ln=new Set(Qe);var et=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()}),cn=m.object({currentWorkspacePath:m.string().min(1).optional(),workspaces:m.record(m.string().min(1),et)});var tt=["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"]),w=e.enum(["draft","in_review","finalized"]),nt=e.object({agentId:e.string(),role:e.enum(["lead","teammate"]),description:e.string().optional(),status:e.enum(["idle","running","stopped"])}),pn=e.object({agentId:e.string(),rolePrompt:e.string(),modelId:e.string().optional(),maxIterations:e.number().optional()});function u(r){return e.preprocess((a)=>a===null?void 0:a,r.optional())}var mn=e.object({agentId:e.string().min(1).describe("Teammate identifier"),rolePrompt:e.string().min(1).describe("System prompt describing teammate role")}).strict(),gn=e.object({agentId:e.string().min(1).describe("Teammate identifier"),reason:u(e.string().min(1)).describe("Optional shutdown reason")}),hn=e.object({}),rt={create:["title","description"],list:[],claim:["taskId"],complete:["taskId","summary"],block:["taskId","reason"]};var fn=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,a)=>{for(let c of rt[r.action]){if(r[c]!==void 0)continue;a.addIssue({code:"custom",path:[c],message:`Field "${c}" is required when action=${r.action}`})}}),bn=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")}),yn=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)")}),vn=e.object({runId:e.string().min(1).describe("Run ID"),reason:u(e.string().min(1)).describe("Optional cancellation reason")}),kn=e.object({runId:u(e.string().min(1)).describe("Optional async run ID to await. Omit to wait for all active async runs.")}).strict(),wn=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")}),Tn=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")}),En=e.object({unreadOnly:u(e.boolean()).describe("Only unread messages for read action (default true)")}),Sn=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")}),Cn=e.object({}),An=e.object({title:e.string().describe("Outcome title"),requiredSections:e.array(e.string()).default(tt).describe("Required sections for finalization gate (defaults to current_state,boundary_analysis,interface_proposal)")}),_n=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")}),xn=e.object({fragmentId:e.string().describe("Fragment ID"),approved:e.boolean().describe("Review decision")}),In=e.object({outcomeId:e.string().describe("Outcome ID")}),Mn=e.object({}),On=e.object({teamId:e.string(),teamName:e.string(),members:e.array(nt),taskCounts:e.record(v,e.number()),unreadMessages:e.number(),missionLogEntries:e.number(),activeRuns:e.number(),queuedRuns:e.number(),outcomeCounts:e.record(w,e.number())}),ot=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())}),Rn=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(ot)}),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})]),Nn=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()}),it=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()})}),jn=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:it.optional()}),Ln=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()}),Pn=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()}),Dn=e.object({outcomeId:e.string(),status:w,requiredSections:e.array(e.string())}),$n=e.object({agentId:e.string(),status:e.string()}),qn=e.object({runId:e.string(),status:F}),Fn=e.object({id:e.string(),toAgentId:e.string()}),Bn=e.object({delivered:e.number()}),Un=e.object({id:e.string()}),Gn=e.object({status:e.string()}),Hn=e.object({fragmentId:e.string(),status:e.string()}),Yn=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 st="the user is not subscribed to required model plan",lt="no access to clinepass subscription models yet. subscribe to clinepass",ut="organization accounts cannot use individual model inference subscriptions",ct="you have reached your",dt="clinepass limit",B="please try again later.",pt="free limit reached on model",U="try again in ",mt="model not found";function G(r){let a=r.toLowerCase(),c=a.indexOf(ct);if(c===-1)return;let f=a.indexOf(B,c);if(f===-1)return;let y=f+B.length;if(!a.slice(c,y).includes(dt))return;return{start:c,end:y}}function H(){return`${new URL("/dashboard/subscription?personal=true",q().appBaseUrl).toString()}`}function Y(){return`No access to ClinePass subscription models yet. Subscribe to ClinePass, the low cost open weights model coding plan: ${H()}`}class C extends Error{providerId;constructor(r){super(Y());this.name="ClineNotSubscribedError",this.providerId=r}}function W(){return"Organization accounts cannot use ClinePass subscriptions. Go to /account -> change account to switch to your personal account for ClinePass"}class A extends Error{providerId;constructor(r){super(W());this.name="ClineOrgIndividualInferenceSubscriptionError",this.providerId=r}}class _ extends Error{providerId;constructor(r,a){super(r);this.name="ClinePassLimitError",this.providerId=a}}class x extends Error{providerId;constructor(r,a){super(r);this.name="ClineFreeModelLimitError",this.providerId=a}}function gt(r){return r instanceof C}function ht(r){return r instanceof A}function ft(r){return r instanceof _}function bt(r){return r instanceof x}function yt(r){let a=r.trim().toLowerCase();return a.includes(st)||a.includes(lt)}function vt(r){return r.toLowerCase().includes(ut)}function kt(r){return G(r)!==void 0}function wt(r){let a=G(r);return a?r.slice(a.start,a.end):void 0}function Tt(r){return r.toLowerCase().includes(pt)}function Et(r){return r.toLowerCase().includes(mt)}function St(r){let a=r.toLowerCase(),c=a.indexOf(U);if(c===-1)return;return a.slice(c+U.length).trim()||void 0}var z=["302ai","abacus","abliteration-ai","above","agentrouter","agnes","ai-router","ai21","aiand","aihubmix","ainetcafe","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","inco","infer","inference","inferx","infomaniak","io-net","iteracompute","jalapeno","jiekou","kenari","kilo","kimi-code-plan-cn","kimi-code-plan-global","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","oci","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","stepfun","stepfun-ai","stepfun-ai-step-plan","stepfun-step-plan","subconscious","submodel","synthetic","tempr","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;((i)=>{i.ANTHROPIC="anthropic";i.CLAUDE_CODE="claude-code";i.CLINE="cline";i.CLINE_PASS="cline-pass";i.ELEVENLABS="elevenlabs";i.OPENAI_COMPATIBLE="openai-compatible";i.OPENAI_NATIVE="openai-native";i.OPENAI_CODEX="openai-codex";i.OPENAI_CODEX_CLI="openai-codex-cli";i.OPENCODE="opencode";i.BEDROCK="bedrock";i.VERTEX="vertex";i.GEMINI="gemini";i.OLLAMA="ollama";i.LMSTUDIO="lmstudio";i.DEEPSEEK="deepseek";i.XAI="xai";i.TOGETHER="together";i.FIREWORKS="fireworks";i.GROQ="groq";i.POOLSIDE="poolside";i.CEREBRAS="cerebras";i.SAMBANOVA="sambanova";i.NEBIUS="nebius";i.CRUSOE="crusoe";i.BASETEN="baseten";i.REQUESTY="requesty";i.LITELLM="litellm";i.HUGGINGFACE="huggingface";i.VERCEL_AI_GATEWAY="vercel-ai-gateway";i.V0="v0";i.AIHUBMIX="aihubmix";i.HICAP="hicap";i.NOUS_RESEARCH="nousResearch";i.HUAWEI_CLOUD_MAAS="huawei-cloud-maas";i.WANDB="wandb";i.XIAOMI="xiaomi";i.TENCENT_TOKENHUB="tencent-tokenhub";i.KILO="kilo";i.ZAI="zai";i.ZAI_CODING_PLAN="zai-coding-plan";i.QWEN="qwen";i.QWEN_CODE="qwen-code";i.DOUBAO="doubao";i.MISTRAL="mistral";i.MOONSHOT="moonshot";i.ASKSAGE="asksage";i.MINIMAX="minimax";i.DIFY="dify";i.OCA="oca";i.SAPAICORE="sapaicore";i.OPENROUTER="openrouter"})(T||={});var Ct={openai:"openai-compatible",togetherai:"together","sap-ai-core":"sapaicore"},K=[...new Set([...Object.values(T),...z])];function I(r){let a=r.trim();return Ct[a]??a}export{I as normalizeProviderId,kt as isClinePassLimitMessage,ft as isClinePassLimitError,vt as isClineOrgIndividualInferenceSubscriptionMessage,ht as isClineOrgIndividualInferenceSubscriptionError,yt as isClineNotSubscribedMessage,gt as isClineNotSubscribedError,Et as isClineModelNotFoundMessage,Tt as isClineFreeModelLimitMessage,bt as isClineFreeModelLimitError,H as getClinePassSubscriptionUrl,W as getClineOrgIndividualInferenceSubscriptionMessage,Y as getClineNotSubscribedMessage,wt as extractClinePassLimitMessage,St as extractClineFreeModelLimitResetTime,_ as ClinePassLimitError,A as ClineOrgIndividualInferenceSubscriptionError,C as ClineNotSubscribedError,x as ClineFreeModelLimitError};