@ai-sdk/harness-cline 1.0.60 → 1.0.62

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/index.d.ts CHANGED
@@ -1,810 +1,813 @@
1
- import * as _ai_sdk_harness from '@ai-sdk/harness';
2
- import { HarnessV1Authentication, HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
3
- import * as _ai_sdk_provider from '@ai-sdk/provider';
4
- import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
5
-
1
+ import { HarnessV1, HarnessV1Authentication, HarnessV1BuiltinTool } from "@ai-sdk/harness";
2
+ import "@ai-sdk/provider-utils";
3
+ //#region src/cline-auth.d.ts
6
4
  type ClineAuthenticationMode = HarnessV1Authentication;
7
-
5
+ //#endregion
6
+ //#region src/cline-session.d.ts
8
7
  type ClineReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
9
-
8
+ //#endregion
9
+ //#region src/cline-harness.d.ts
10
10
  /**
11
11
  * Configuration knobs for `createCline`. The Cline runtime
12
12
  * (`@cline/agents`, part of the Cline SDK) runs as an in-process Node
13
13
  * library — no bridge, so there is no `port` or `startupTimeoutMs` to set.
14
14
  */
15
15
  type ClineHarnessSettings = {
16
- /** Where Cline sources direct or AI Gateway credentials from. */
17
- readonly auth?: ClineAuthenticationMode;
18
- /**
19
- * MCP server definitions keyed by server name. Each definition uses the
20
- * underlying runtime's native MCP server configuration format.
21
- */
22
- readonly mcpServers?: Record<string, unknown>;
23
- /**
24
- * Cline LLM provider id (e.g. `'anthropic'`, `'openai'`, `'gemini'`).
25
- * When omitted, direct authentication uses the Cline backend.
26
- */
27
- readonly providerId?: string;
28
- /**
29
- * Provider API key. When omitted, the Cline gateway falls back to the
30
- * provider's environment variable (e.g. `ANTHROPIC_API_KEY`).
31
- * A record-shaped authentication override disables that fallback.
32
- */
33
- readonly apiKey?: string;
34
- /** Custom provider endpoint. */
35
- readonly baseUrl?: string;
36
- /** Extra headers sent to the provider. */
37
- readonly headers?: Record<string, string>;
38
- /**
39
- * Reasoning effort for reasoning-capable models. Use `'none'` to disable
40
- * reasoning. When omitted, the Cline SDK selects the reasoning behavior.
41
- */
42
- readonly reasoningEffort?: ClineReasoningEffort;
43
- /**
44
- * Safety cap on agent-loop iterations per turn. Unbounded when omitted.
45
- */
46
- readonly maxIterations?: number;
16
+ /** Where Cline sources direct or AI Gateway credentials from. */
17
+ readonly auth?: ClineAuthenticationMode;
18
+ /**
19
+ * MCP server definitions keyed by server name. Each definition uses the
20
+ * underlying runtime's native MCP server configuration format.
21
+ */
22
+ readonly mcpServers?: Record<string, unknown>;
23
+ /**
24
+ * Cline LLM provider id (e.g. `'anthropic'`, `'openai'`, `'gemini'`).
25
+ * When omitted, direct authentication uses the Cline backend.
26
+ */
27
+ readonly providerId?: string;
28
+ /**
29
+ * Provider API key. When omitted, the Cline gateway falls back to the
30
+ * provider's environment variable (e.g. `ANTHROPIC_API_KEY`).
31
+ * A record-shaped authentication override disables that fallback.
32
+ */
33
+ readonly apiKey?: string;
34
+ /** Custom provider endpoint. */
35
+ readonly baseUrl?: string;
36
+ /** Extra headers sent to the provider. */
37
+ readonly headers?: Record<string, string>;
38
+ /**
39
+ * Reasoning effort for reasoning-capable models. Use `'none'` to disable
40
+ * reasoning. When omitted, the Cline SDK selects the reasoning behavior.
41
+ */
42
+ readonly reasoningEffort?: ClineReasoningEffort;
43
+ /**
44
+ * Safety cap on agent-loop iterations per turn. Unbounded when omitted.
45
+ */
46
+ readonly maxIterations?: number;
47
47
  };
48
48
  declare const CLINE_BUILTIN_TOOLS: {
49
- readonly askUserQuestions: {
50
- readonly nativeName: "ask_question";
51
- readonly toolUseKind: "readonly";
52
- readonly deferLoading?: boolean;
53
- readonly title?: string;
54
- readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
55
- readonly metadata?: _ai_sdk_provider.JSONObject;
56
- readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
57
- allowPartialAnswers: boolean;
58
- questions: {
59
- id: string;
60
- question: string;
61
- header?: string | undefined;
62
- options?: {
63
- id: string;
64
- label: string;
65
- description?: string | undefined;
66
- preview?: string | undefined;
67
- }[] | undefined;
68
- allowMultiple?: boolean | undefined;
69
- allowFreeForm?: boolean | {
70
- secret: boolean;
71
- } | undefined;
72
- }[];
49
+ readonly askUserQuestions: {
50
+ readonly nativeName: "ask_question";
51
+ readonly toolUseKind: "readonly";
52
+ readonly deferLoading?: boolean;
53
+ readonly title?: string;
54
+ readonly providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
55
+ readonly metadata?: import("@ai-sdk/provider").JSONObject;
56
+ readonly inputSchema: import("@ai-sdk/provider-utils").FlexibleSchema<{
57
+ allowPartialAnswers: boolean;
58
+ questions: {
59
+ id: string;
60
+ question: string;
61
+ header?: string | undefined;
62
+ options?: {
63
+ id: string;
64
+ label: string;
65
+ description?: string | undefined;
66
+ preview?: string | undefined;
67
+ }[] | undefined;
68
+ allowMultiple?: boolean | undefined;
69
+ allowFreeForm?: boolean | {
70
+ secret: boolean;
71
+ } | undefined;
72
+ }[];
73
+ }>;
74
+ readonly contextSchema?: import("@ai-sdk/provider-utils").FlexibleSchema<any> | undefined;
75
+ readonly needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
76
+ allowPartialAnswers: boolean;
77
+ questions: {
78
+ id: string;
79
+ question: string;
80
+ header?: string | undefined;
81
+ options?: {
82
+ id: string;
83
+ label: string;
84
+ description?: string | undefined;
85
+ preview?: string | undefined;
86
+ }[] | undefined;
87
+ allowMultiple?: boolean | undefined;
88
+ allowFreeForm?: boolean | {
89
+ secret: boolean;
90
+ } | undefined;
91
+ }[];
92
+ }, any> | undefined;
93
+ readonly onInputStart?: ((options: import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
94
+ readonly onInputDelta?: ((options: {
95
+ inputTextDelta: string;
96
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
97
+ readonly onInputAvailable?: ((options: {
98
+ input: {
99
+ allowPartialAnswers: boolean;
100
+ questions: {
101
+ id: string;
102
+ question: string;
103
+ header?: string | undefined;
104
+ options?: {
105
+ id: string;
106
+ label: string;
107
+ description?: string | undefined;
108
+ preview?: string | undefined;
109
+ }[] | undefined;
110
+ allowMultiple?: boolean | undefined;
111
+ allowFreeForm?: boolean | {
112
+ secret: boolean;
113
+ } | undefined;
114
+ }[];
115
+ };
116
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
117
+ readonly toModelOutput?: ((options: {
118
+ toolCallId: string;
119
+ input: {
120
+ allowPartialAnswers: boolean;
121
+ questions: {
122
+ id: string;
123
+ question: string;
124
+ header?: string | undefined;
125
+ options?: {
126
+ id: string;
127
+ label: string;
128
+ description?: string | undefined;
129
+ preview?: string | undefined;
130
+ }[] | undefined;
131
+ allowMultiple?: boolean | undefined;
132
+ allowFreeForm?: boolean | {
133
+ secret: boolean;
134
+ } | undefined;
135
+ }[];
136
+ };
137
+ output: NoInfer<{
138
+ action: "answered";
139
+ answers: Record<string, {
140
+ optionIds: string[];
141
+ freeform?: string | undefined;
73
142
  }>;
74
- readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
75
- readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
76
- allowPartialAnswers: boolean;
77
- questions: {
78
- id: string;
79
- question: string;
80
- header?: string | undefined;
81
- options?: {
82
- id: string;
83
- label: string;
84
- description?: string | undefined;
85
- preview?: string | undefined;
86
- }[] | undefined;
87
- allowMultiple?: boolean | undefined;
88
- allowFreeForm?: boolean | {
89
- secret: boolean;
90
- } | undefined;
91
- }[];
92
- }, any> | undefined;
93
- readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
94
- readonly onInputDelta?: ((options: {
95
- inputTextDelta: string;
96
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
97
- readonly onInputAvailable?: ((options: {
98
- input: {
99
- allowPartialAnswers: boolean;
100
- questions: {
101
- id: string;
102
- question: string;
103
- header?: string | undefined;
104
- options?: {
105
- id: string;
106
- label: string;
107
- description?: string | undefined;
108
- preview?: string | undefined;
109
- }[] | undefined;
110
- allowMultiple?: boolean | undefined;
111
- allowFreeForm?: boolean | {
112
- secret: boolean;
113
- } | undefined;
114
- }[];
115
- };
116
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
117
- readonly toModelOutput?: ((options: {
118
- toolCallId: string;
119
- input: {
120
- allowPartialAnswers: boolean;
121
- questions: {
122
- id: string;
123
- question: string;
124
- header?: string | undefined;
125
- options?: {
126
- id: string;
127
- label: string;
128
- description?: string | undefined;
129
- preview?: string | undefined;
130
- }[] | undefined;
131
- allowMultiple?: boolean | undefined;
132
- allowFreeForm?: boolean | {
133
- secret: boolean;
134
- } | undefined;
135
- }[];
136
- };
137
- output: NoInfer<{
138
- action: "answered";
139
- answers: Record<string, {
140
- optionIds: string[];
141
- freeform?: string | undefined;
142
- }>;
143
- } | {
144
- action: "partially-answered";
145
- answers: Record<string, {
146
- optionIds: string[];
147
- freeform?: string | undefined;
148
- }>;
149
- } | {
150
- action: "declined";
151
- } | {
152
- action: "cancelled";
153
- }>;
154
- }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
155
- readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<{
156
- action: "answered";
157
- answers: Record<string, {
158
- optionIds: string[];
159
- freeform?: string | undefined;
160
- }>;
161
- } | {
162
- action: "partially-answered";
163
- answers: Record<string, {
164
- optionIds: string[];
165
- freeform?: string | undefined;
166
- }>;
167
- } | {
168
- action: "declined";
169
- } | {
170
- action: "cancelled";
171
- }> | undefined;
172
- readonly execute: _ai_sdk_provider_utils.ToolExecuteFunction<{
173
- allowPartialAnswers: boolean;
174
- questions: {
175
- id: string;
176
- question: string;
177
- header?: string | undefined;
178
- options?: {
179
- id: string;
180
- label: string;
181
- description?: string | undefined;
182
- preview?: string | undefined;
183
- }[] | undefined;
184
- allowMultiple?: boolean | undefined;
185
- allowFreeForm?: boolean | {
186
- secret: boolean;
187
- } | undefined;
188
- }[];
189
- }, {
190
- action: "answered";
191
- answers: Record<string, {
192
- optionIds: string[];
193
- freeform?: string | undefined;
194
- }>;
195
- } | {
196
- action: "partially-answered";
197
- answers: Record<string, {
198
- optionIds: string[];
199
- freeform?: string | undefined;
200
- }>;
201
- } | {
202
- action: "declined";
203
- } | {
204
- action: "cancelled";
205
- }, any>;
206
- readonly description?: string | ((options: {
207
- context: any;
208
- experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
209
- }) => string) | undefined;
210
- readonly strict?: boolean;
211
- readonly inputExamples?: {
212
- input: NoInfer<{
213
- allowPartialAnswers: boolean;
214
- questions: {
215
- id: string;
216
- question: string;
217
- header?: string | undefined;
218
- options?: {
219
- id: string;
220
- label: string;
221
- description?: string | undefined;
222
- preview?: string | undefined;
223
- }[] | undefined;
224
- allowMultiple?: boolean | undefined;
225
- allowFreeForm?: boolean | {
226
- secret: boolean;
227
- } | undefined;
228
- }[];
229
- }>;
143
+ } | {
144
+ action: "partially-answered";
145
+ answers: Record<string, {
146
+ optionIds: string[];
147
+ freeform?: string | undefined;
148
+ }>;
149
+ } | {
150
+ action: "declined";
151
+ } | {
152
+ action: "cancelled";
153
+ }>;
154
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
155
+ readonly outputSchema?: import("@ai-sdk/provider-utils").FlexibleSchema<{
156
+ action: "answered";
157
+ answers: Record<string, {
158
+ optionIds: string[];
159
+ freeform?: string | undefined;
160
+ }>;
161
+ } | {
162
+ action: "partially-answered";
163
+ answers: Record<string, {
164
+ optionIds: string[];
165
+ freeform?: string | undefined;
166
+ }>;
167
+ } | {
168
+ action: "declined";
169
+ } | {
170
+ action: "cancelled";
171
+ }> | undefined;
172
+ readonly execute: import("@ai-sdk/provider-utils").ToolExecuteFunction<{
173
+ allowPartialAnswers: boolean;
174
+ questions: {
175
+ id: string;
176
+ question: string;
177
+ header?: string | undefined;
178
+ options?: {
179
+ id: string;
180
+ label: string;
181
+ description?: string | undefined;
182
+ preview?: string | undefined;
230
183
  }[] | undefined;
231
- readonly id?: never;
232
- readonly isProviderExecuted?: never;
233
- readonly args?: never;
234
- readonly supportsDeferredResults?: never;
235
- readonly type?: undefined | "function";
184
+ allowMultiple?: boolean | undefined;
185
+ allowFreeForm?: boolean | {
186
+ secret: boolean;
187
+ } | undefined;
188
+ }[];
189
+ }, {
190
+ action: "answered";
191
+ answers: Record<string, {
192
+ optionIds: string[];
193
+ freeform?: string | undefined;
194
+ }>;
195
+ } | {
196
+ action: "partially-answered";
197
+ answers: Record<string, {
198
+ optionIds: string[];
199
+ freeform?: string | undefined;
200
+ }>;
236
201
  } | {
237
- readonly nativeName: "ask_question";
238
- readonly toolUseKind: "readonly";
239
- readonly deferLoading?: boolean;
240
- readonly title?: string;
241
- readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
242
- readonly metadata?: _ai_sdk_provider.JSONObject;
243
- readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
244
- allowPartialAnswers: boolean;
245
- questions: {
246
- id: string;
247
- question: string;
248
- header?: string | undefined;
249
- options?: {
250
- id: string;
251
- label: string;
252
- description?: string | undefined;
253
- preview?: string | undefined;
254
- }[] | undefined;
255
- allowMultiple?: boolean | undefined;
256
- allowFreeForm?: boolean | {
257
- secret: boolean;
258
- } | undefined;
259
- }[];
202
+ action: "declined";
203
+ } | {
204
+ action: "cancelled";
205
+ }, any>;
206
+ readonly description?: string | ((options: {
207
+ context: any;
208
+ experimental_sandbox?: import("@ai-sdk/provider-utils").Experimental_SandboxSession;
209
+ }) => string) | undefined;
210
+ readonly strict?: boolean;
211
+ readonly inputExamples?: {
212
+ input: NoInfer<{
213
+ allowPartialAnswers: boolean;
214
+ questions: {
215
+ id: string;
216
+ question: string;
217
+ header?: string | undefined;
218
+ options?: {
219
+ id: string;
220
+ label: string;
221
+ description?: string | undefined;
222
+ preview?: string | undefined;
223
+ }[] | undefined;
224
+ allowMultiple?: boolean | undefined;
225
+ allowFreeForm?: boolean | {
226
+ secret: boolean;
227
+ } | undefined;
228
+ }[];
229
+ }>;
230
+ }[] | undefined;
231
+ readonly id?: never;
232
+ readonly isProviderExecuted?: never;
233
+ readonly args?: never;
234
+ readonly supportsDeferredResults?: never;
235
+ readonly type?: undefined | "function";
236
+ } | {
237
+ readonly nativeName: "ask_question";
238
+ readonly toolUseKind: "readonly";
239
+ readonly deferLoading?: boolean;
240
+ readonly title?: string;
241
+ readonly providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
242
+ readonly metadata?: import("@ai-sdk/provider").JSONObject;
243
+ readonly inputSchema: import("@ai-sdk/provider-utils").FlexibleSchema<{
244
+ allowPartialAnswers: boolean;
245
+ questions: {
246
+ id: string;
247
+ question: string;
248
+ header?: string | undefined;
249
+ options?: {
250
+ id: string;
251
+ label: string;
252
+ description?: string | undefined;
253
+ preview?: string | undefined;
254
+ }[] | undefined;
255
+ allowMultiple?: boolean | undefined;
256
+ allowFreeForm?: boolean | {
257
+ secret: boolean;
258
+ } | undefined;
259
+ }[];
260
+ }>;
261
+ readonly contextSchema?: import("@ai-sdk/provider-utils").FlexibleSchema<any> | undefined;
262
+ readonly needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
263
+ allowPartialAnswers: boolean;
264
+ questions: {
265
+ id: string;
266
+ question: string;
267
+ header?: string | undefined;
268
+ options?: {
269
+ id: string;
270
+ label: string;
271
+ description?: string | undefined;
272
+ preview?: string | undefined;
273
+ }[] | undefined;
274
+ allowMultiple?: boolean | undefined;
275
+ allowFreeForm?: boolean | {
276
+ secret: boolean;
277
+ } | undefined;
278
+ }[];
279
+ }, any> | undefined;
280
+ readonly onInputStart?: ((options: import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
281
+ readonly onInputDelta?: ((options: {
282
+ inputTextDelta: string;
283
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
284
+ readonly onInputAvailable?: ((options: {
285
+ input: {
286
+ allowPartialAnswers: boolean;
287
+ questions: {
288
+ id: string;
289
+ question: string;
290
+ header?: string | undefined;
291
+ options?: {
292
+ id: string;
293
+ label: string;
294
+ description?: string | undefined;
295
+ preview?: string | undefined;
296
+ }[] | undefined;
297
+ allowMultiple?: boolean | undefined;
298
+ allowFreeForm?: boolean | {
299
+ secret: boolean;
300
+ } | undefined;
301
+ }[];
302
+ };
303
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
304
+ readonly toModelOutput?: ((options: {
305
+ toolCallId: string;
306
+ input: {
307
+ allowPartialAnswers: boolean;
308
+ questions: {
309
+ id: string;
310
+ question: string;
311
+ header?: string | undefined;
312
+ options?: {
313
+ id: string;
314
+ label: string;
315
+ description?: string | undefined;
316
+ preview?: string | undefined;
317
+ }[] | undefined;
318
+ allowMultiple?: boolean | undefined;
319
+ allowFreeForm?: boolean | {
320
+ secret: boolean;
321
+ } | undefined;
322
+ }[];
323
+ };
324
+ output: NoInfer<{
325
+ action: "answered";
326
+ answers: Record<string, {
327
+ optionIds: string[];
328
+ freeform?: string | undefined;
260
329
  }>;
261
- readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
262
- readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
263
- allowPartialAnswers: boolean;
264
- questions: {
265
- id: string;
266
- question: string;
267
- header?: string | undefined;
268
- options?: {
269
- id: string;
270
- label: string;
271
- description?: string | undefined;
272
- preview?: string | undefined;
273
- }[] | undefined;
274
- allowMultiple?: boolean | undefined;
275
- allowFreeForm?: boolean | {
276
- secret: boolean;
277
- } | undefined;
278
- }[];
279
- }, any> | undefined;
280
- readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
281
- readonly onInputDelta?: ((options: {
282
- inputTextDelta: string;
283
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
284
- readonly onInputAvailable?: ((options: {
285
- input: {
286
- allowPartialAnswers: boolean;
287
- questions: {
288
- id: string;
289
- question: string;
290
- header?: string | undefined;
291
- options?: {
292
- id: string;
293
- label: string;
294
- description?: string | undefined;
295
- preview?: string | undefined;
296
- }[] | undefined;
297
- allowMultiple?: boolean | undefined;
298
- allowFreeForm?: boolean | {
299
- secret: boolean;
300
- } | undefined;
301
- }[];
302
- };
303
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
304
- readonly toModelOutput?: ((options: {
305
- toolCallId: string;
306
- input: {
307
- allowPartialAnswers: boolean;
308
- questions: {
309
- id: string;
310
- question: string;
311
- header?: string | undefined;
312
- options?: {
313
- id: string;
314
- label: string;
315
- description?: string | undefined;
316
- preview?: string | undefined;
317
- }[] | undefined;
318
- allowMultiple?: boolean | undefined;
319
- allowFreeForm?: boolean | {
320
- secret: boolean;
321
- } | undefined;
322
- }[];
323
- };
324
- output: NoInfer<{
325
- action: "answered";
326
- answers: Record<string, {
327
- optionIds: string[];
328
- freeform?: string | undefined;
329
- }>;
330
- } | {
331
- action: "partially-answered";
332
- answers: Record<string, {
333
- optionIds: string[];
334
- freeform?: string | undefined;
335
- }>;
336
- } | {
337
- action: "declined";
338
- } | {
339
- action: "cancelled";
340
- }>;
341
- }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
342
- readonly outputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
343
- action: "answered";
344
- answers: Record<string, {
345
- optionIds: string[];
346
- freeform?: string | undefined;
347
- }>;
348
- } | {
349
- action: "partially-answered";
350
- answers: Record<string, {
351
- optionIds: string[];
352
- freeform?: string | undefined;
353
- }>;
354
- } | {
355
- action: "declined";
356
- } | {
357
- action: "cancelled";
330
+ } | {
331
+ action: "partially-answered";
332
+ answers: Record<string, {
333
+ optionIds: string[];
334
+ freeform?: string | undefined;
358
335
  }>;
359
- readonly execute?: never;
360
- readonly description?: string | ((options: {
361
- context: any;
362
- experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
363
- }) => string) | undefined;
364
- readonly strict?: boolean;
365
- readonly inputExamples?: {
366
- input: NoInfer<{
367
- allowPartialAnswers: boolean;
368
- questions: {
369
- id: string;
370
- question: string;
371
- header?: string | undefined;
372
- options?: {
373
- id: string;
374
- label: string;
375
- description?: string | undefined;
376
- preview?: string | undefined;
377
- }[] | undefined;
378
- allowMultiple?: boolean | undefined;
379
- allowFreeForm?: boolean | {
380
- secret: boolean;
381
- } | undefined;
382
- }[];
383
- }>;
384
- }[] | undefined;
385
- readonly id?: never;
386
- readonly isProviderExecuted?: never;
387
- readonly args?: never;
388
- readonly supportsDeferredResults?: never;
389
- readonly type?: undefined | "function";
390
- };
391
- readonly read: HarnessV1BuiltinTool<{
392
- file_path: string;
393
- }, unknown>;
394
- readonly write: HarnessV1BuiltinTool<{
395
- file_path: string;
396
- content: string;
397
- }, unknown>;
398
- readonly edit: HarnessV1BuiltinTool<{
399
- file_path: string;
400
- old_string: string;
401
- new_string: string;
402
- }, unknown>;
403
- readonly bash: HarnessV1BuiltinTool<{
404
- command: string;
405
- timeout?: number | undefined;
406
- }, unknown>;
407
- readonly grep: HarnessV1BuiltinTool<{
408
- pattern: string;
409
- path?: string | undefined;
410
- glob?: string | undefined;
411
- ignoreCase?: boolean | undefined;
412
- literal?: boolean | undefined;
413
- context?: number | undefined;
414
- limit?: number | undefined;
415
- }, unknown>;
416
- readonly glob: HarnessV1BuiltinTool<{
417
- pattern: string;
418
- path?: string | undefined;
419
- limit?: number | undefined;
420
- }, unknown>;
421
- readonly ls: HarnessV1BuiltinTool;
422
- readonly skills: HarnessV1BuiltinTool;
336
+ } | {
337
+ action: "declined";
338
+ } | {
339
+ action: "cancelled";
340
+ }>;
341
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
342
+ readonly outputSchema: import("@ai-sdk/provider-utils").FlexibleSchema<{
343
+ action: "answered";
344
+ answers: Record<string, {
345
+ optionIds: string[];
346
+ freeform?: string | undefined;
347
+ }>;
348
+ } | {
349
+ action: "partially-answered";
350
+ answers: Record<string, {
351
+ optionIds: string[];
352
+ freeform?: string | undefined;
353
+ }>;
354
+ } | {
355
+ action: "declined";
356
+ } | {
357
+ action: "cancelled";
358
+ }>;
359
+ readonly execute?: never;
360
+ readonly description?: string | ((options: {
361
+ context: any;
362
+ experimental_sandbox?: import("@ai-sdk/provider-utils").Experimental_SandboxSession;
363
+ }) => string) | undefined;
364
+ readonly strict?: boolean;
365
+ readonly inputExamples?: {
366
+ input: NoInfer<{
367
+ allowPartialAnswers: boolean;
368
+ questions: {
369
+ id: string;
370
+ question: string;
371
+ header?: string | undefined;
372
+ options?: {
373
+ id: string;
374
+ label: string;
375
+ description?: string | undefined;
376
+ preview?: string | undefined;
377
+ }[] | undefined;
378
+ allowMultiple?: boolean | undefined;
379
+ allowFreeForm?: boolean | {
380
+ secret: boolean;
381
+ } | undefined;
382
+ }[];
383
+ }>;
384
+ }[] | undefined;
385
+ readonly id?: never;
386
+ readonly isProviderExecuted?: never;
387
+ readonly args?: never;
388
+ readonly supportsDeferredResults?: never;
389
+ readonly type?: undefined | "function";
390
+ };
391
+ readonly read: HarnessV1BuiltinTool<{
392
+ file_path: string;
393
+ }, unknown>;
394
+ readonly write: HarnessV1BuiltinTool<{
395
+ file_path: string;
396
+ content: string;
397
+ }, unknown>;
398
+ readonly edit: HarnessV1BuiltinTool<{
399
+ file_path: string;
400
+ old_string: string;
401
+ new_string: string;
402
+ }, unknown>;
403
+ readonly bash: HarnessV1BuiltinTool<{
404
+ command: string;
405
+ timeout?: number | undefined;
406
+ }, unknown>;
407
+ readonly grep: HarnessV1BuiltinTool<{
408
+ pattern: string;
409
+ path?: string | undefined;
410
+ glob?: string | undefined;
411
+ ignoreCase?: boolean | undefined;
412
+ literal?: boolean | undefined;
413
+ context?: number | undefined;
414
+ limit?: number | undefined;
415
+ }, unknown>;
416
+ readonly glob: HarnessV1BuiltinTool<{
417
+ pattern: string;
418
+ path?: string | undefined;
419
+ limit?: number | undefined;
420
+ }, unknown>;
421
+ readonly ls: HarnessV1BuiltinTool;
422
+ readonly skills: HarnessV1BuiltinTool;
423
423
  };
424
- declare function createCline(settings?: ClineHarnessSettings): HarnessV1<typeof CLINE_BUILTIN_TOOLS>;
425
-
426
- declare const VERSION: string;
427
-
424
+ export declare function createCline(settings?: ClineHarnessSettings): HarnessV1<typeof CLINE_BUILTIN_TOOLS>;
425
+ //#endregion
426
+ //#region src/version.d.ts
427
+ export declare const VERSION: string;
428
+ //#endregion
429
+ //#region src/index.d.ts
428
430
  /**
429
431
  * Default `cline` harness instance with no overrides — suitable for the
430
432
  * common case where the Cline SDK's defaults are fine. Equivalent to
431
433
  * `createCline()`.
432
434
  */
433
- declare const cline: _ai_sdk_harness.HarnessV1<{
434
- readonly askUserQuestions: {
435
- readonly nativeName: "ask_question";
436
- readonly toolUseKind: "readonly";
437
- readonly deferLoading?: boolean;
438
- readonly title?: string;
439
- readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
440
- readonly metadata?: _ai_sdk_provider.JSONObject;
441
- readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
442
- allowPartialAnswers: boolean;
443
- questions: {
444
- id: string;
445
- question: string;
446
- header?: string | undefined;
447
- options?: {
448
- id: string;
449
- label: string;
450
- description?: string | undefined;
451
- preview?: string | undefined;
452
- }[] | undefined;
453
- allowMultiple?: boolean | undefined;
454
- allowFreeForm?: boolean | {
455
- secret: boolean;
456
- } | undefined;
457
- }[];
435
+ export declare const cline: import("@ai-sdk/harness").HarnessV1<{
436
+ readonly askUserQuestions: {
437
+ readonly nativeName: "ask_question";
438
+ readonly toolUseKind: "readonly";
439
+ readonly deferLoading?: boolean;
440
+ readonly title?: string;
441
+ readonly providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
442
+ readonly metadata?: import("@ai-sdk/provider").JSONObject;
443
+ readonly inputSchema: import("@ai-sdk/provider-utils").FlexibleSchema<{
444
+ allowPartialAnswers: boolean;
445
+ questions: {
446
+ id: string;
447
+ question: string;
448
+ header?: string | undefined;
449
+ options?: {
450
+ id: string;
451
+ label: string;
452
+ description?: string | undefined;
453
+ preview?: string | undefined;
454
+ }[] | undefined;
455
+ allowMultiple?: boolean | undefined;
456
+ allowFreeForm?: boolean | {
457
+ secret: boolean;
458
+ } | undefined;
459
+ }[];
460
+ }>;
461
+ readonly contextSchema?: import("@ai-sdk/provider-utils").FlexibleSchema<any> | undefined;
462
+ readonly needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
463
+ allowPartialAnswers: boolean;
464
+ questions: {
465
+ id: string;
466
+ question: string;
467
+ header?: string | undefined;
468
+ options?: {
469
+ id: string;
470
+ label: string;
471
+ description?: string | undefined;
472
+ preview?: string | undefined;
473
+ }[] | undefined;
474
+ allowMultiple?: boolean | undefined;
475
+ allowFreeForm?: boolean | {
476
+ secret: boolean;
477
+ } | undefined;
478
+ }[];
479
+ }, any> | undefined;
480
+ readonly onInputStart?: ((options: import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
481
+ readonly onInputDelta?: ((options: {
482
+ inputTextDelta: string;
483
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
484
+ readonly onInputAvailable?: ((options: {
485
+ input: {
486
+ allowPartialAnswers: boolean;
487
+ questions: {
488
+ id: string;
489
+ question: string;
490
+ header?: string | undefined;
491
+ options?: {
492
+ id: string;
493
+ label: string;
494
+ description?: string | undefined;
495
+ preview?: string | undefined;
496
+ }[] | undefined;
497
+ allowMultiple?: boolean | undefined;
498
+ allowFreeForm?: boolean | {
499
+ secret: boolean;
500
+ } | undefined;
501
+ }[];
502
+ };
503
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
504
+ readonly toModelOutput?: ((options: {
505
+ toolCallId: string;
506
+ input: {
507
+ allowPartialAnswers: boolean;
508
+ questions: {
509
+ id: string;
510
+ question: string;
511
+ header?: string | undefined;
512
+ options?: {
513
+ id: string;
514
+ label: string;
515
+ description?: string | undefined;
516
+ preview?: string | undefined;
517
+ }[] | undefined;
518
+ allowMultiple?: boolean | undefined;
519
+ allowFreeForm?: boolean | {
520
+ secret: boolean;
521
+ } | undefined;
522
+ }[];
523
+ };
524
+ output: NoInfer<{
525
+ action: "answered";
526
+ answers: Record<string, {
527
+ optionIds: string[];
528
+ freeform?: string | undefined;
458
529
  }>;
459
- readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
460
- readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
461
- allowPartialAnswers: boolean;
462
- questions: {
463
- id: string;
464
- question: string;
465
- header?: string | undefined;
466
- options?: {
467
- id: string;
468
- label: string;
469
- description?: string | undefined;
470
- preview?: string | undefined;
471
- }[] | undefined;
472
- allowMultiple?: boolean | undefined;
473
- allowFreeForm?: boolean | {
474
- secret: boolean;
475
- } | undefined;
476
- }[];
477
- }, any> | undefined;
478
- readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
479
- readonly onInputDelta?: ((options: {
480
- inputTextDelta: string;
481
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
482
- readonly onInputAvailable?: ((options: {
483
- input: {
484
- allowPartialAnswers: boolean;
485
- questions: {
486
- id: string;
487
- question: string;
488
- header?: string | undefined;
489
- options?: {
490
- id: string;
491
- label: string;
492
- description?: string | undefined;
493
- preview?: string | undefined;
494
- }[] | undefined;
495
- allowMultiple?: boolean | undefined;
496
- allowFreeForm?: boolean | {
497
- secret: boolean;
498
- } | undefined;
499
- }[];
500
- };
501
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
502
- readonly toModelOutput?: ((options: {
503
- toolCallId: string;
504
- input: {
505
- allowPartialAnswers: boolean;
506
- questions: {
507
- id: string;
508
- question: string;
509
- header?: string | undefined;
510
- options?: {
511
- id: string;
512
- label: string;
513
- description?: string | undefined;
514
- preview?: string | undefined;
515
- }[] | undefined;
516
- allowMultiple?: boolean | undefined;
517
- allowFreeForm?: boolean | {
518
- secret: boolean;
519
- } | undefined;
520
- }[];
521
- };
522
- output: NoInfer<{
523
- action: "answered";
524
- answers: Record<string, {
525
- optionIds: string[];
526
- freeform?: string | undefined;
527
- }>;
528
- } | {
529
- action: "partially-answered";
530
- answers: Record<string, {
531
- optionIds: string[];
532
- freeform?: string | undefined;
533
- }>;
534
- } | {
535
- action: "declined";
536
- } | {
537
- action: "cancelled";
538
- }>;
539
- }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
540
- readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<{
541
- action: "answered";
542
- answers: Record<string, {
543
- optionIds: string[];
544
- freeform?: string | undefined;
545
- }>;
546
- } | {
547
- action: "partially-answered";
548
- answers: Record<string, {
549
- optionIds: string[];
550
- freeform?: string | undefined;
551
- }>;
552
- } | {
553
- action: "declined";
554
- } | {
555
- action: "cancelled";
556
- }> | undefined;
557
- readonly execute: _ai_sdk_provider_utils.ToolExecuteFunction<{
558
- allowPartialAnswers: boolean;
559
- questions: {
560
- id: string;
561
- question: string;
562
- header?: string | undefined;
563
- options?: {
564
- id: string;
565
- label: string;
566
- description?: string | undefined;
567
- preview?: string | undefined;
568
- }[] | undefined;
569
- allowMultiple?: boolean | undefined;
570
- allowFreeForm?: boolean | {
571
- secret: boolean;
572
- } | undefined;
573
- }[];
574
- }, {
575
- action: "answered";
576
- answers: Record<string, {
577
- optionIds: string[];
578
- freeform?: string | undefined;
579
- }>;
580
- } | {
581
- action: "partially-answered";
582
- answers: Record<string, {
583
- optionIds: string[];
584
- freeform?: string | undefined;
585
- }>;
586
- } | {
587
- action: "declined";
588
- } | {
589
- action: "cancelled";
590
- }, any>;
591
- readonly description?: string | ((options: {
592
- context: any;
593
- experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
594
- }) => string) | undefined;
595
- readonly strict?: boolean;
596
- readonly inputExamples?: {
597
- input: NoInfer<{
598
- allowPartialAnswers: boolean;
599
- questions: {
600
- id: string;
601
- question: string;
602
- header?: string | undefined;
603
- options?: {
604
- id: string;
605
- label: string;
606
- description?: string | undefined;
607
- preview?: string | undefined;
608
- }[] | undefined;
609
- allowMultiple?: boolean | undefined;
610
- allowFreeForm?: boolean | {
611
- secret: boolean;
612
- } | undefined;
613
- }[];
614
- }>;
530
+ } | {
531
+ action: "partially-answered";
532
+ answers: Record<string, {
533
+ optionIds: string[];
534
+ freeform?: string | undefined;
535
+ }>;
536
+ } | {
537
+ action: "declined";
538
+ } | {
539
+ action: "cancelled";
540
+ }>;
541
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
542
+ readonly outputSchema?: import("@ai-sdk/provider-utils").FlexibleSchema<{
543
+ action: "answered";
544
+ answers: Record<string, {
545
+ optionIds: string[];
546
+ freeform?: string | undefined;
547
+ }>;
548
+ } | {
549
+ action: "partially-answered";
550
+ answers: Record<string, {
551
+ optionIds: string[];
552
+ freeform?: string | undefined;
553
+ }>;
554
+ } | {
555
+ action: "declined";
556
+ } | {
557
+ action: "cancelled";
558
+ }> | undefined;
559
+ readonly execute: import("@ai-sdk/provider-utils").ToolExecuteFunction<{
560
+ allowPartialAnswers: boolean;
561
+ questions: {
562
+ id: string;
563
+ question: string;
564
+ header?: string | undefined;
565
+ options?: {
566
+ id: string;
567
+ label: string;
568
+ description?: string | undefined;
569
+ preview?: string | undefined;
615
570
  }[] | undefined;
616
- readonly id?: never;
617
- readonly isProviderExecuted?: never;
618
- readonly args?: never;
619
- readonly supportsDeferredResults?: never;
620
- readonly type?: undefined | "function";
571
+ allowMultiple?: boolean | undefined;
572
+ allowFreeForm?: boolean | {
573
+ secret: boolean;
574
+ } | undefined;
575
+ }[];
576
+ }, {
577
+ action: "answered";
578
+ answers: Record<string, {
579
+ optionIds: string[];
580
+ freeform?: string | undefined;
581
+ }>;
582
+ } | {
583
+ action: "partially-answered";
584
+ answers: Record<string, {
585
+ optionIds: string[];
586
+ freeform?: string | undefined;
587
+ }>;
621
588
  } | {
622
- readonly nativeName: "ask_question";
623
- readonly toolUseKind: "readonly";
624
- readonly deferLoading?: boolean;
625
- readonly title?: string;
626
- readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
627
- readonly metadata?: _ai_sdk_provider.JSONObject;
628
- readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
629
- allowPartialAnswers: boolean;
630
- questions: {
631
- id: string;
632
- question: string;
633
- header?: string | undefined;
634
- options?: {
635
- id: string;
636
- label: string;
637
- description?: string | undefined;
638
- preview?: string | undefined;
639
- }[] | undefined;
640
- allowMultiple?: boolean | undefined;
641
- allowFreeForm?: boolean | {
642
- secret: boolean;
643
- } | undefined;
644
- }[];
589
+ action: "declined";
590
+ } | {
591
+ action: "cancelled";
592
+ }, any>;
593
+ readonly description?: string | ((options: {
594
+ context: any;
595
+ experimental_sandbox?: import("@ai-sdk/provider-utils").Experimental_SandboxSession;
596
+ }) => string) | undefined;
597
+ readonly strict?: boolean;
598
+ readonly inputExamples?: {
599
+ input: NoInfer<{
600
+ allowPartialAnswers: boolean;
601
+ questions: {
602
+ id: string;
603
+ question: string;
604
+ header?: string | undefined;
605
+ options?: {
606
+ id: string;
607
+ label: string;
608
+ description?: string | undefined;
609
+ preview?: string | undefined;
610
+ }[] | undefined;
611
+ allowMultiple?: boolean | undefined;
612
+ allowFreeForm?: boolean | {
613
+ secret: boolean;
614
+ } | undefined;
615
+ }[];
616
+ }>;
617
+ }[] | undefined;
618
+ readonly id?: never;
619
+ readonly isProviderExecuted?: never;
620
+ readonly args?: never;
621
+ readonly supportsDeferredResults?: never;
622
+ readonly type?: undefined | "function";
623
+ } | {
624
+ readonly nativeName: "ask_question";
625
+ readonly toolUseKind: "readonly";
626
+ readonly deferLoading?: boolean;
627
+ readonly title?: string;
628
+ readonly providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
629
+ readonly metadata?: import("@ai-sdk/provider").JSONObject;
630
+ readonly inputSchema: import("@ai-sdk/provider-utils").FlexibleSchema<{
631
+ allowPartialAnswers: boolean;
632
+ questions: {
633
+ id: string;
634
+ question: string;
635
+ header?: string | undefined;
636
+ options?: {
637
+ id: string;
638
+ label: string;
639
+ description?: string | undefined;
640
+ preview?: string | undefined;
641
+ }[] | undefined;
642
+ allowMultiple?: boolean | undefined;
643
+ allowFreeForm?: boolean | {
644
+ secret: boolean;
645
+ } | undefined;
646
+ }[];
647
+ }>;
648
+ readonly contextSchema?: import("@ai-sdk/provider-utils").FlexibleSchema<any> | undefined;
649
+ readonly needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
650
+ allowPartialAnswers: boolean;
651
+ questions: {
652
+ id: string;
653
+ question: string;
654
+ header?: string | undefined;
655
+ options?: {
656
+ id: string;
657
+ label: string;
658
+ description?: string | undefined;
659
+ preview?: string | undefined;
660
+ }[] | undefined;
661
+ allowMultiple?: boolean | undefined;
662
+ allowFreeForm?: boolean | {
663
+ secret: boolean;
664
+ } | undefined;
665
+ }[];
666
+ }, any> | undefined;
667
+ readonly onInputStart?: ((options: import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
668
+ readonly onInputDelta?: ((options: {
669
+ inputTextDelta: string;
670
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
671
+ readonly onInputAvailable?: ((options: {
672
+ input: {
673
+ allowPartialAnswers: boolean;
674
+ questions: {
675
+ id: string;
676
+ question: string;
677
+ header?: string | undefined;
678
+ options?: {
679
+ id: string;
680
+ label: string;
681
+ description?: string | undefined;
682
+ preview?: string | undefined;
683
+ }[] | undefined;
684
+ allowMultiple?: boolean | undefined;
685
+ allowFreeForm?: boolean | {
686
+ secret: boolean;
687
+ } | undefined;
688
+ }[];
689
+ };
690
+ } & import("@ai-sdk/provider-utils").ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
691
+ readonly toModelOutput?: ((options: {
692
+ toolCallId: string;
693
+ input: {
694
+ allowPartialAnswers: boolean;
695
+ questions: {
696
+ id: string;
697
+ question: string;
698
+ header?: string | undefined;
699
+ options?: {
700
+ id: string;
701
+ label: string;
702
+ description?: string | undefined;
703
+ preview?: string | undefined;
704
+ }[] | undefined;
705
+ allowMultiple?: boolean | undefined;
706
+ allowFreeForm?: boolean | {
707
+ secret: boolean;
708
+ } | undefined;
709
+ }[];
710
+ };
711
+ output: NoInfer<{
712
+ action: "answered";
713
+ answers: Record<string, {
714
+ optionIds: string[];
715
+ freeform?: string | undefined;
645
716
  }>;
646
- readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
647
- readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
648
- allowPartialAnswers: boolean;
649
- questions: {
650
- id: string;
651
- question: string;
652
- header?: string | undefined;
653
- options?: {
654
- id: string;
655
- label: string;
656
- description?: string | undefined;
657
- preview?: string | undefined;
658
- }[] | undefined;
659
- allowMultiple?: boolean | undefined;
660
- allowFreeForm?: boolean | {
661
- secret: boolean;
662
- } | undefined;
663
- }[];
664
- }, any> | undefined;
665
- readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
666
- readonly onInputDelta?: ((options: {
667
- inputTextDelta: string;
668
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
669
- readonly onInputAvailable?: ((options: {
670
- input: {
671
- allowPartialAnswers: boolean;
672
- questions: {
673
- id: string;
674
- question: string;
675
- header?: string | undefined;
676
- options?: {
677
- id: string;
678
- label: string;
679
- description?: string | undefined;
680
- preview?: string | undefined;
681
- }[] | undefined;
682
- allowMultiple?: boolean | undefined;
683
- allowFreeForm?: boolean | {
684
- secret: boolean;
685
- } | undefined;
686
- }[];
687
- };
688
- } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
689
- readonly toModelOutput?: ((options: {
690
- toolCallId: string;
691
- input: {
692
- allowPartialAnswers: boolean;
693
- questions: {
694
- id: string;
695
- question: string;
696
- header?: string | undefined;
697
- options?: {
698
- id: string;
699
- label: string;
700
- description?: string | undefined;
701
- preview?: string | undefined;
702
- }[] | undefined;
703
- allowMultiple?: boolean | undefined;
704
- allowFreeForm?: boolean | {
705
- secret: boolean;
706
- } | undefined;
707
- }[];
708
- };
709
- output: NoInfer<{
710
- action: "answered";
711
- answers: Record<string, {
712
- optionIds: string[];
713
- freeform?: string | undefined;
714
- }>;
715
- } | {
716
- action: "partially-answered";
717
- answers: Record<string, {
718
- optionIds: string[];
719
- freeform?: string | undefined;
720
- }>;
721
- } | {
722
- action: "declined";
723
- } | {
724
- action: "cancelled";
725
- }>;
726
- }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
727
- readonly outputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
728
- action: "answered";
729
- answers: Record<string, {
730
- optionIds: string[];
731
- freeform?: string | undefined;
732
- }>;
733
- } | {
734
- action: "partially-answered";
735
- answers: Record<string, {
736
- optionIds: string[];
737
- freeform?: string | undefined;
738
- }>;
739
- } | {
740
- action: "declined";
741
- } | {
742
- action: "cancelled";
717
+ } | {
718
+ action: "partially-answered";
719
+ answers: Record<string, {
720
+ optionIds: string[];
721
+ freeform?: string | undefined;
743
722
  }>;
744
- readonly execute?: never;
745
- readonly description?: string | ((options: {
746
- context: any;
747
- experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
748
- }) => string) | undefined;
749
- readonly strict?: boolean;
750
- readonly inputExamples?: {
751
- input: NoInfer<{
752
- allowPartialAnswers: boolean;
753
- questions: {
754
- id: string;
755
- question: string;
756
- header?: string | undefined;
757
- options?: {
758
- id: string;
759
- label: string;
760
- description?: string | undefined;
761
- preview?: string | undefined;
762
- }[] | undefined;
763
- allowMultiple?: boolean | undefined;
764
- allowFreeForm?: boolean | {
765
- secret: boolean;
766
- } | undefined;
767
- }[];
768
- }>;
769
- }[] | undefined;
770
- readonly id?: never;
771
- readonly isProviderExecuted?: never;
772
- readonly args?: never;
773
- readonly supportsDeferredResults?: never;
774
- readonly type?: undefined | "function";
775
- };
776
- readonly read: _ai_sdk_harness.HarnessV1BuiltinTool<{
777
- file_path: string;
778
- }, unknown>;
779
- readonly write: _ai_sdk_harness.HarnessV1BuiltinTool<{
780
- file_path: string;
781
- content: string;
782
- }, unknown>;
783
- readonly edit: _ai_sdk_harness.HarnessV1BuiltinTool<{
784
- file_path: string;
785
- old_string: string;
786
- new_string: string;
787
- }, unknown>;
788
- readonly bash: _ai_sdk_harness.HarnessV1BuiltinTool<{
789
- command: string;
790
- timeout?: number | undefined;
791
- }, unknown>;
792
- readonly grep: _ai_sdk_harness.HarnessV1BuiltinTool<{
793
- pattern: string;
794
- path?: string | undefined;
795
- glob?: string | undefined;
796
- ignoreCase?: boolean | undefined;
797
- literal?: boolean | undefined;
798
- context?: number | undefined;
799
- limit?: number | undefined;
800
- }, unknown>;
801
- readonly glob: _ai_sdk_harness.HarnessV1BuiltinTool<{
802
- pattern: string;
803
- path?: string | undefined;
804
- limit?: number | undefined;
805
- }, unknown>;
806
- readonly ls: _ai_sdk_harness.HarnessV1BuiltinTool;
807
- readonly skills: _ai_sdk_harness.HarnessV1BuiltinTool;
723
+ } | {
724
+ action: "declined";
725
+ } | {
726
+ action: "cancelled";
727
+ }>;
728
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
729
+ readonly outputSchema: import("@ai-sdk/provider-utils").FlexibleSchema<{
730
+ action: "answered";
731
+ answers: Record<string, {
732
+ optionIds: string[];
733
+ freeform?: string | undefined;
734
+ }>;
735
+ } | {
736
+ action: "partially-answered";
737
+ answers: Record<string, {
738
+ optionIds: string[];
739
+ freeform?: string | undefined;
740
+ }>;
741
+ } | {
742
+ action: "declined";
743
+ } | {
744
+ action: "cancelled";
745
+ }>;
746
+ readonly execute?: never;
747
+ readonly description?: string | ((options: {
748
+ context: any;
749
+ experimental_sandbox?: import("@ai-sdk/provider-utils").Experimental_SandboxSession;
750
+ }) => string) | undefined;
751
+ readonly strict?: boolean;
752
+ readonly inputExamples?: {
753
+ input: NoInfer<{
754
+ allowPartialAnswers: boolean;
755
+ questions: {
756
+ id: string;
757
+ question: string;
758
+ header?: string | undefined;
759
+ options?: {
760
+ id: string;
761
+ label: string;
762
+ description?: string | undefined;
763
+ preview?: string | undefined;
764
+ }[] | undefined;
765
+ allowMultiple?: boolean | undefined;
766
+ allowFreeForm?: boolean | {
767
+ secret: boolean;
768
+ } | undefined;
769
+ }[];
770
+ }>;
771
+ }[] | undefined;
772
+ readonly id?: never;
773
+ readonly isProviderExecuted?: never;
774
+ readonly args?: never;
775
+ readonly supportsDeferredResults?: never;
776
+ readonly type?: undefined | "function";
777
+ };
778
+ readonly read: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
779
+ file_path: string;
780
+ }, unknown>;
781
+ readonly write: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
782
+ file_path: string;
783
+ content: string;
784
+ }, unknown>;
785
+ readonly edit: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
786
+ file_path: string;
787
+ old_string: string;
788
+ new_string: string;
789
+ }, unknown>;
790
+ readonly bash: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
791
+ command: string;
792
+ timeout?: number | undefined;
793
+ }, unknown>;
794
+ readonly grep: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
795
+ pattern: string;
796
+ path?: string | undefined;
797
+ glob?: string | undefined;
798
+ ignoreCase?: boolean | undefined;
799
+ literal?: boolean | undefined;
800
+ context?: number | undefined;
801
+ limit?: number | undefined;
802
+ }, unknown>;
803
+ readonly glob: import("@ai-sdk/harness").HarnessV1BuiltinTool<{
804
+ pattern: string;
805
+ path?: string | undefined;
806
+ limit?: number | undefined;
807
+ }, unknown>;
808
+ readonly ls: import("@ai-sdk/harness").HarnessV1BuiltinTool;
809
+ readonly skills: import("@ai-sdk/harness").HarnessV1BuiltinTool;
808
810
  }>;
809
-
810
- export { type ClineAuthenticationMode, type ClineHarnessSettings, VERSION, cline, createCline };
811
+ //#endregion
812
+ export type { ClineAuthenticationMode, ClineHarnessSettings };
813
+ //# sourceMappingURL=index.d.ts.map