@cline/shared 0.0.87 → 0.0.88-nightly.1790735522

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.
Files changed (2) hide show
  1. package/dist/agent.d.ts +14 -1
  2. package/package.json +1 -1
package/dist/agent.d.ts CHANGED
@@ -191,7 +191,20 @@ export interface AgentRuntimePrepareTurnResult {
191
191
  messages?: readonly AgentMessage[];
192
192
  systemPrompt?: string;
193
193
  }
194
- export type AgentModelFinishReason = "stop" | "tool-calls" | "max-tokens" | "aborted" | "error";
194
+ /**
195
+ * Why a model turn stopped producing output.
196
+ *
197
+ * `content-filter` is distinct from `stop` because the two need opposite
198
+ * handling when the turn produced nothing: a `stop` with no content is a
199
+ * transient upstream flake worth retrying, while a filtered turn will
200
+ * reproduce on every attempt. Collapsing them (as this union did before)
201
+ * left both surfacing as "Model returned empty response", which tells a
202
+ * user to retry something that cannot succeed.
203
+ *
204
+ * Provider finish reasons with no dedicated member here (`other`,
205
+ * `unknown`, ...) still normalize to `stop`.
206
+ */
207
+ export type AgentModelFinishReason = "stop" | "tool-calls" | "max-tokens" | "content-filter" | "aborted" | "error";
195
208
  /**
196
209
  * Coarse classification of a provider error, derived from the raw provider
197
210
  * error object before it is flattened into a display string. Shared by the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.87",
3
+ "version": "0.0.88-nightly.1790735522",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",