@wular/coder 0.3.2 → 0.3.3

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/sdk.d.ts CHANGED
@@ -1,22 +1,4 @@
1
- import {
2
- C as Job,
3
- E as CustomModelConfig,
4
- S as Availability,
5
- T as CoderConfig,
6
- _ as FlowStep,
7
- a as JobLogEntry,
8
- c as StopSummary,
9
- g as FlowRecord,
10
- h as FlowEvent,
11
- i as TaskResult,
12
- m as DiscoveredFlow,
13
- n as flowSdk,
14
- o as RunOptions,
15
- r as CoderError,
16
- s as RunSummary,
17
- w as TurnResult,
18
- x as Approval,
19
- } from './index-CUy_WPvw.js';
1
+ import { C as Job, E as CustomModelConfig, S as Availability, T as CoderConfig, _ as FlowStep, a as JobLogEntry, c as StopSummary, g as FlowRecord, h as FlowEvent, i as TaskResult, m as DiscoveredFlow, n as flowSdk, o as RunOptions, r as CoderError, s as RunSummary, w as TurnResult, x as Approval } from "./index-CTrgzW3M.js";
20
2
  //#region src/lib/codex-core.d.ts
21
3
  declare function getCodexAvailability(cwd: string): Availability;
22
4
  //#endregion
@@ -28,17 +10,14 @@ interface PluginResult {
28
10
  note: string;
29
11
  }
30
12
  /** Outcome of the codex auto-update check; null when nothing to do. */
31
- type CodexUpdateResult =
32
- | {
33
- updated: true;
34
- from: string;
35
- }
36
- | {
37
- updated: false;
38
- from: string;
39
- note: string;
40
- }
41
- | null;
13
+ type CodexUpdateResult = {
14
+ updated: true;
15
+ from: string;
16
+ } | {
17
+ updated: false;
18
+ from: string;
19
+ note: string;
20
+ } | null;
42
21
  /** Outcome of an on-demand codex install; null when codex was already present. */
43
22
  type CodexInstallResult = {
44
23
  installed: boolean;
@@ -146,10 +125,7 @@ interface TaskRunOptions {
146
125
  /** Run and control coder tasks. Mirrors `coder task`. */
147
126
  declare const task: {
148
127
  /** Dispatch a task to the agent chain; returns as soon as it is live. */
149
- run(
150
- prompt: string,
151
- opts?: TaskRunOptions,
152
- ): Promise<{
128
+ run(prompt: string, opts?: TaskRunOptions): Promise<{
153
129
  taskId: string;
154
130
  }>;
155
131
  /**
@@ -158,214 +134,170 @@ declare const task: {
158
134
  * `steps` with the last n log entries (default 0: []). Omit the id for the
159
135
  * most recent task.
160
136
  */
161
- result(
162
- id?: string,
163
- opts?: {
164
- wait?: boolean;
165
- tail?: number | 'all';
166
- cwd?: string;
167
- },
168
- ): Promise<TaskResult>;
137
+ result(id?: string, opts?: {
138
+ wait?: boolean;
139
+ tail?: number | "all";
140
+ cwd?: string;
141
+ }): Promise<TaskResult>;
169
142
  /** Recent tasks (mirrors `coder list` / `coder task list`). */
170
- list(
171
- opts?: ListOptions & {
172
- cwd?: string;
173
- },
174
- ): Job[];
143
+ list(opts?: ListOptions & {
144
+ cwd?: string;
145
+ }): Job[];
175
146
  /** Steer a follow-up into a task (live, queued, or resumed on its thread). */
176
- steer(
177
- id: string,
178
- text: string,
179
- opts?: {
180
- cwd?: string;
181
- },
182
- ): Promise<{
147
+ steer(id: string, text: string, opts?: {
148
+ model?: string;
149
+ effort?: string;
150
+ permissions?: string;
151
+ cwd?: string;
152
+ }): Promise<{
183
153
  taskId: string;
184
154
  steered: SteerOutcome;
185
155
  }>;
156
+ /** Ask about a task via a read-only sidecar; its thread is never touched. */
157
+ ask(id: string, question: string, opts?: {
158
+ model?: string;
159
+ effort?: string;
160
+ cwd?: string;
161
+ }): Promise<{
162
+ taskId: string;
163
+ answer: string | null;
164
+ }>;
186
165
  /** Stop a running task. */
187
- stop(
188
- id: string,
189
- opts?: {
190
- cwd?: string;
191
- },
192
- ): Promise<{
166
+ stop(id: string, opts?: {
167
+ cwd?: string;
168
+ }): Promise<{
193
169
  taskId: string;
194
- status: 'cancelled';
170
+ status: "cancelled";
195
171
  interrupt: string;
196
172
  }>;
197
173
  /** Archive a task (hide it from the default list). */
198
- archive(
199
- id: string,
200
- opts?: {
201
- cwd?: string;
202
- },
203
- ): {
174
+ archive(id: string, opts?: {
175
+ cwd?: string;
176
+ }): {
204
177
  taskId: string;
205
178
  archived: true;
206
179
  };
207
180
  /** Delete a task and its engine session from disk. */
208
- delete(
209
- id: string,
210
- opts?: {
211
- cwd?: string;
212
- },
213
- ): {
181
+ delete(id: string, opts?: {
182
+ cwd?: string;
183
+ }): {
214
184
  taskId: string;
215
185
  deleted: boolean;
216
186
  };
217
187
  /** Answer a pending approval (accept, or `deny`). */
218
- approve(
219
- id: string,
220
- approvalId: string,
221
- opts?: {
222
- deny?: boolean;
223
- cwd?: string;
224
- },
225
- ): {
188
+ approve(id: string, approvalId: string, opts?: {
189
+ deny?: boolean;
190
+ cwd?: string;
191
+ }): {
226
192
  taskId: string;
227
193
  approvalId: string;
228
- decision: 'accept' | 'decline';
194
+ decision: "accept" | "decline";
229
195
  };
230
196
  /** Pending approvals for a task (omit the id for the most recent task). */
231
- approvals(
232
- id?: string,
233
- opts?: {
234
- cwd?: string;
235
- },
236
- ): Approval[];
197
+ approvals(id?: string, opts?: {
198
+ cwd?: string;
199
+ }): Approval[];
237
200
  /** Follow a task live: an async iterable of progress log entries. `tail` replays only the last n (default 1). */
238
- stream(
239
- id?: string,
240
- opts?: {
241
- tail?: number | 'all';
242
- cwd?: string;
243
- },
244
- ): AsyncGenerator<JobLogEntry>;
201
+ stream(id?: string, opts?: {
202
+ tail?: number | "all";
203
+ cwd?: string;
204
+ }): AsyncGenerator<JobLogEntry>;
245
205
  };
246
206
  /** Manage models: custom endpoints, engine aliases, disable toggles. Mirrors `coder model`. */
247
207
  declare const model: {
248
208
  /** Register a custom OpenAI-compatible endpoint model. */
249
- add: (
250
- name: string,
251
- opts: ModelWriteOptions & {
252
- cwd?: string;
253
- },
254
- ) => Promise<PersistedModel>;
209
+ add: (name: string, opts: ModelWriteOptions & {
210
+ cwd?: string;
211
+ }) => Promise<PersistedModel>;
255
212
  /** Update fields of a configured model entry. */
256
- update: (
257
- name: string,
258
- opts: ModelWriteOptions & {
259
- cwd?: string;
260
- },
261
- ) => Promise<PersistedModel>;
213
+ update: (name: string, opts: ModelWriteOptions & {
214
+ cwd?: string;
215
+ }) => Promise<PersistedModel>;
262
216
  /** Remove a configured model entry. */
263
- remove: (
264
- name: string,
265
- opts?: {
266
- workspace?: boolean;
267
- cwd?: string;
268
- },
269
- ) => {
217
+ remove: (name: string, opts?: {
218
+ workspace?: boolean;
219
+ cwd?: string;
220
+ }) => {
270
221
  removed: string;
271
222
  file: string;
272
223
  };
273
224
  /** Every dispatchable model: built-ins, aliases, custom endpoints. */
274
- list: (opts?: { cwd?: string }) => Promise<{
275
- toggles?:
276
- | {
277
- name: string;
278
- disabled: boolean;
279
- }[]
280
- | undefined;
281
- codex: (
282
- | {
283
- alias: string;
284
- model: string;
285
- builtin: boolean;
286
- disabled: boolean;
287
- spec?: undefined;
288
- overrides?: undefined;
289
- }
290
- | {
291
- alias: string;
292
- spec: string;
293
- disabled: boolean;
294
- }
295
- )[];
296
- claude: (
297
- | {
298
- alias: string;
299
- model: string;
300
- builtin: boolean;
301
- disabled: boolean;
302
- spec?: undefined;
303
- overrides?: undefined;
304
- }
305
- | {
306
- alias: string;
307
- spec: string;
308
- disabled: boolean;
309
- }
310
- )[];
225
+ list: (opts?: {
226
+ cwd?: string;
227
+ }) => Promise<{
228
+ toggles?: {
229
+ name: string;
230
+ disabled: boolean;
231
+ }[] | undefined;
232
+ codex: ({
233
+ alias: string;
234
+ model: string;
235
+ builtin: boolean;
236
+ disabled: boolean;
237
+ spec?: undefined;
238
+ overrides?: undefined;
239
+ } | {
240
+ alias: string;
241
+ spec: string;
242
+ disabled: boolean;
243
+ })[];
244
+ claude: ({
245
+ alias: string;
246
+ model: string;
247
+ builtin: boolean;
248
+ disabled: boolean;
249
+ spec?: undefined;
250
+ overrides?: undefined;
251
+ } | {
252
+ alias: string;
253
+ spec: string;
254
+ disabled: boolean;
255
+ })[];
311
256
  custom: {
312
257
  probe: ProbeResult;
313
258
  baseUrl: string;
314
259
  model: string;
315
260
  envKey?: string | undefined;
316
- wireApi?: 'chat' | 'responses' | undefined;
261
+ wireApi?: "chat" | "responses" | undefined;
317
262
  disabled?: boolean | undefined;
318
263
  name: string;
319
264
  }[];
320
265
  }>;
321
266
  /** Alias a name to an engine spec, e.g. alias('fast', 'codex:mini'). */
322
- alias: (
323
- name: string,
324
- spec: string,
325
- opts?: {
326
- workspace?: boolean;
327
- cwd?: string;
328
- },
329
- ) => {
330
- provider: 'codex' | 'claude';
267
+ alias: (name: string, spec: string, opts?: {
268
+ workspace?: boolean;
269
+ cwd?: string;
270
+ }) => {
271
+ provider: "codex" | "claude";
331
272
  model: string;
332
- effort?: 'low' | 'medium' | 'high' | undefined;
273
+ effort?: "low" | "medium" | "high" | undefined;
333
274
  disabled?: boolean | undefined;
334
275
  } & {
335
276
  alias: string;
336
277
  file: string;
337
278
  };
338
279
  /** Remove a user-defined alias. */
339
- unalias: (
340
- name: string,
341
- opts?: {
342
- workspace?: boolean;
343
- cwd?: string;
344
- },
345
- ) => {
280
+ unalias: (name: string, opts?: {
281
+ workspace?: boolean;
282
+ cwd?: string;
283
+ }) => {
346
284
  unaliased: string;
347
285
  file: string;
348
286
  };
349
287
  /** Disable a model name (built-in, alias, or raw slug) without removing it. */
350
- disable: (
351
- name: string,
352
- opts?: {
353
- workspace?: boolean;
354
- cwd?: string;
355
- },
356
- ) => {
288
+ disable: (name: string, opts?: {
289
+ workspace?: boolean;
290
+ cwd?: string;
291
+ }) => {
357
292
  name: string;
358
293
  disabled: boolean;
359
294
  file: string;
360
295
  };
361
296
  /** Re-enable a disabled model name. */
362
- enable: (
363
- name: string,
364
- opts?: {
365
- workspace?: boolean;
366
- cwd?: string;
367
- },
368
- ) => {
297
+ enable: (name: string, opts?: {
298
+ workspace?: boolean;
299
+ cwd?: string;
300
+ }) => {
369
301
  name: string;
370
302
  disabled: boolean;
371
303
  file: string;
@@ -374,21 +306,14 @@ declare const model: {
374
306
  /** Read and write coder configuration. Mirrors `coder config`. */
375
307
  declare const config: {
376
308
  /** A config value by dotted key (or the whole effective config). */
377
- get: (
378
- key?: string,
379
- opts?: {
380
- cwd?: string;
381
- },
382
- ) => unknown;
309
+ get: (key?: string, opts?: {
310
+ cwd?: string;
311
+ }) => unknown;
383
312
  /** Set a config value; `workspace` targets the repo file instead of the user file. */
384
- set: (
385
- key: string,
386
- value: unknown,
387
- opts?: {
388
- workspace?: boolean;
389
- cwd?: string;
390
- },
391
- ) => {
313
+ set: (key: string, value: unknown, opts?: {
314
+ workspace?: boolean;
315
+ cwd?: string;
316
+ }) => {
392
317
  file: string;
393
318
  key: string;
394
319
  effective: unknown;
@@ -397,36 +322,28 @@ declare const config: {
397
322
  };
398
323
  };
399
324
  /** Probe engines, seed the chain, install requested host plugins. */
400
- declare function setupHost(
401
- hosts?: string[],
402
- opts?: {
403
- cwd?: string;
404
- },
405
- ): Promise<SetupHostReport>;
325
+ declare function setupHost(hosts?: string[], opts?: {
326
+ cwd?: string;
327
+ }): Promise<SetupHostReport>;
406
328
  /** Update the CLI and/or host plugin installs; returns what moved. */
407
329
  declare function upgrade(opts?: {
408
330
  cliOnly?: boolean;
409
331
  pluginsOnly?: boolean;
410
332
  }): Promise<UpgradeReport>;
411
333
  /** List bundled docs, or return one topic's raw markdown. */
412
- declare function docs(topic?: string):
413
- | {
414
- topics: {
415
- name: string;
416
- description: string;
417
- }[];
418
- }
419
- | {
420
- name: string;
421
- content: string;
422
- };
334
+ declare function docs(topic?: string): {
335
+ topics: {
336
+ name: string;
337
+ description: string;
338
+ }[];
339
+ } | {
340
+ name: string;
341
+ content: string;
342
+ };
423
343
  declare const _default: {
424
344
  task: {
425
345
  /** Dispatch a task to the agent chain; returns as soon as it is live. */
426
- run(
427
- prompt: string,
428
- opts?: TaskRunOptions,
429
- ): Promise<{
346
+ run(prompt: string, opts?: TaskRunOptions): Promise<{
430
347
  taskId: string;
431
348
  }>;
432
349
  /**
@@ -435,117 +352,93 @@ declare const _default: {
435
352
  * `steps` with the last n log entries (default 0: []). Omit the id for the
436
353
  * most recent task.
437
354
  */
438
- result(
439
- id?: string,
440
- opts?: {
441
- wait?: boolean;
442
- tail?: number | 'all';
443
- cwd?: string;
444
- },
445
- ): Promise<TaskResult>;
355
+ result(id?: string, opts?: {
356
+ wait?: boolean;
357
+ tail?: number | "all";
358
+ cwd?: string;
359
+ }): Promise<TaskResult>;
446
360
  /** Recent tasks (mirrors `coder list` / `coder task list`). */
447
- list(
448
- opts?: ListOptions & {
449
- cwd?: string;
450
- },
451
- ): Job[];
361
+ list(opts?: ListOptions & {
362
+ cwd?: string;
363
+ }): Job[];
452
364
  /** Steer a follow-up into a task (live, queued, or resumed on its thread). */
453
- steer(
454
- id: string,
455
- text: string,
456
- opts?: {
457
- cwd?: string;
458
- },
459
- ): Promise<{
365
+ steer(id: string, text: string, opts?: {
366
+ model?: string;
367
+ effort?: string;
368
+ permissions?: string;
369
+ cwd?: string;
370
+ }): Promise<{
460
371
  taskId: string;
461
372
  steered: SteerOutcome;
462
373
  }>;
374
+ /** Ask about a task via a read-only sidecar; its thread is never touched. */
375
+ ask(id: string, question: string, opts?: {
376
+ model?: string;
377
+ effort?: string;
378
+ cwd?: string;
379
+ }): Promise<{
380
+ taskId: string;
381
+ answer: string | null;
382
+ }>;
463
383
  /** Stop a running task. */
464
- stop(
465
- id: string,
466
- opts?: {
467
- cwd?: string;
468
- },
469
- ): Promise<{
384
+ stop(id: string, opts?: {
385
+ cwd?: string;
386
+ }): Promise<{
470
387
  taskId: string;
471
- status: 'cancelled';
388
+ status: "cancelled";
472
389
  interrupt: string;
473
390
  }>;
474
391
  /** Archive a task (hide it from the default list). */
475
- archive(
476
- id: string,
477
- opts?: {
478
- cwd?: string;
479
- },
480
- ): {
392
+ archive(id: string, opts?: {
393
+ cwd?: string;
394
+ }): {
481
395
  taskId: string;
482
396
  archived: true;
483
397
  };
484
398
  /** Delete a task and its engine session from disk. */
485
- delete(
486
- id: string,
487
- opts?: {
488
- cwd?: string;
489
- },
490
- ): {
399
+ delete(id: string, opts?: {
400
+ cwd?: string;
401
+ }): {
491
402
  taskId: string;
492
403
  deleted: boolean;
493
404
  };
494
405
  /** Answer a pending approval (accept, or `deny`). */
495
- approve(
496
- id: string,
497
- approvalId: string,
498
- opts?: {
499
- deny?: boolean;
500
- cwd?: string;
501
- },
502
- ): {
406
+ approve(id: string, approvalId: string, opts?: {
407
+ deny?: boolean;
408
+ cwd?: string;
409
+ }): {
503
410
  taskId: string;
504
411
  approvalId: string;
505
- decision: 'accept' | 'decline';
412
+ decision: "accept" | "decline";
506
413
  };
507
414
  /** Pending approvals for a task (omit the id for the most recent task). */
508
- approvals(
509
- id?: string,
510
- opts?: {
511
- cwd?: string;
512
- },
513
- ): Approval[];
415
+ approvals(id?: string, opts?: {
416
+ cwd?: string;
417
+ }): Approval[];
514
418
  /** Follow a task live: an async iterable of progress log entries. `tail` replays only the last n (default 1). */
515
- stream(
516
- id?: string,
517
- opts?: {
518
- tail?: number | 'all';
519
- cwd?: string;
520
- },
521
- ): AsyncGenerator<JobLogEntry>;
419
+ stream(id?: string, opts?: {
420
+ tail?: number | "all";
421
+ cwd?: string;
422
+ }): AsyncGenerator<JobLogEntry>;
522
423
  };
523
424
  flow: {
524
425
  run(nameOrPath: string, opts?: RunOptions): Promise<RunSummary>;
525
- list(opts?: { archived?: boolean; limit?: number }): FlowRecord[];
426
+ list(opts?: {
427
+ archived?: boolean;
428
+ limit?: number;
429
+ }): FlowRecord[];
526
430
  discover(cwd?: string): DiscoveredFlow[];
527
- result(
528
- runId?: string,
529
- opts?: {
530
- tail?: number | 'all';
531
- },
532
- ):
533
- | (FlowRecord & {
534
- steps: FlowStep[];
535
- })
536
- | null;
537
- stream(
538
- runId?: string,
539
- opts?: {
540
- tail?: number | 'all';
541
- },
542
- ): AsyncGenerator<FlowEvent>;
543
- stop(
544
- runId?: string,
545
- opts?: {
546
- keepTasks?: boolean;
547
- },
548
- ): Promise<StopSummary>;
431
+ result(runId?: string, opts?: {
432
+ tail?: number | "all";
433
+ }): (FlowRecord & {
434
+ steps: FlowStep[];
435
+ }) | null;
436
+ stream(runId?: string, opts?: {
437
+ tail?: number | "all";
438
+ }): AsyncGenerator<FlowEvent>;
439
+ stop(runId?: string, opts?: {
440
+ keepTasks?: boolean;
441
+ }): Promise<StopSummary>;
549
442
  resume(runId?: string, opts?: RunOptions): Promise<RunSummary>;
550
443
  archive(runId: string): {
551
444
  runId: string;
@@ -558,126 +451,98 @@ declare const _default: {
558
451
  };
559
452
  model: {
560
453
  /** Register a custom OpenAI-compatible endpoint model. */
561
- add: (
562
- name: string,
563
- opts: ModelWriteOptions & {
564
- cwd?: string;
565
- },
566
- ) => Promise<PersistedModel>;
454
+ add: (name: string, opts: ModelWriteOptions & {
455
+ cwd?: string;
456
+ }) => Promise<PersistedModel>;
567
457
  /** Update fields of a configured model entry. */
568
- update: (
569
- name: string,
570
- opts: ModelWriteOptions & {
571
- cwd?: string;
572
- },
573
- ) => Promise<PersistedModel>;
458
+ update: (name: string, opts: ModelWriteOptions & {
459
+ cwd?: string;
460
+ }) => Promise<PersistedModel>;
574
461
  /** Remove a configured model entry. */
575
- remove: (
576
- name: string,
577
- opts?: {
578
- workspace?: boolean;
579
- cwd?: string;
580
- },
581
- ) => {
462
+ remove: (name: string, opts?: {
463
+ workspace?: boolean;
464
+ cwd?: string;
465
+ }) => {
582
466
  removed: string;
583
467
  file: string;
584
468
  };
585
469
  /** Every dispatchable model: built-ins, aliases, custom endpoints. */
586
- list: (opts?: { cwd?: string }) => Promise<{
587
- toggles?:
588
- | {
589
- name: string;
590
- disabled: boolean;
591
- }[]
592
- | undefined;
593
- codex: (
594
- | {
595
- alias: string;
596
- model: string;
597
- builtin: boolean;
598
- disabled: boolean;
599
- spec?: undefined;
600
- overrides?: undefined;
601
- }
602
- | {
603
- alias: string;
604
- spec: string;
605
- disabled: boolean;
606
- }
607
- )[];
608
- claude: (
609
- | {
610
- alias: string;
611
- model: string;
612
- builtin: boolean;
613
- disabled: boolean;
614
- spec?: undefined;
615
- overrides?: undefined;
616
- }
617
- | {
618
- alias: string;
619
- spec: string;
620
- disabled: boolean;
621
- }
622
- )[];
470
+ list: (opts?: {
471
+ cwd?: string;
472
+ }) => Promise<{
473
+ toggles?: {
474
+ name: string;
475
+ disabled: boolean;
476
+ }[] | undefined;
477
+ codex: ({
478
+ alias: string;
479
+ model: string;
480
+ builtin: boolean;
481
+ disabled: boolean;
482
+ spec?: undefined;
483
+ overrides?: undefined;
484
+ } | {
485
+ alias: string;
486
+ spec: string;
487
+ disabled: boolean;
488
+ })[];
489
+ claude: ({
490
+ alias: string;
491
+ model: string;
492
+ builtin: boolean;
493
+ disabled: boolean;
494
+ spec?: undefined;
495
+ overrides?: undefined;
496
+ } | {
497
+ alias: string;
498
+ spec: string;
499
+ disabled: boolean;
500
+ })[];
623
501
  custom: {
624
502
  probe: ProbeResult;
625
503
  baseUrl: string;
626
504
  model: string;
627
505
  envKey?: string | undefined;
628
- wireApi?: 'chat' | 'responses' | undefined;
506
+ wireApi?: "chat" | "responses" | undefined;
629
507
  disabled?: boolean | undefined;
630
508
  name: string;
631
509
  }[];
632
510
  }>;
633
511
  /** Alias a name to an engine spec, e.g. alias('fast', 'codex:mini'). */
634
- alias: (
635
- name: string,
636
- spec: string,
637
- opts?: {
638
- workspace?: boolean;
639
- cwd?: string;
640
- },
641
- ) => {
642
- provider: 'codex' | 'claude';
512
+ alias: (name: string, spec: string, opts?: {
513
+ workspace?: boolean;
514
+ cwd?: string;
515
+ }) => {
516
+ provider: "codex" | "claude";
643
517
  model: string;
644
- effort?: 'low' | 'medium' | 'high' | undefined;
518
+ effort?: "low" | "medium" | "high" | undefined;
645
519
  disabled?: boolean | undefined;
646
520
  } & {
647
521
  alias: string;
648
522
  file: string;
649
523
  };
650
524
  /** Remove a user-defined alias. */
651
- unalias: (
652
- name: string,
653
- opts?: {
654
- workspace?: boolean;
655
- cwd?: string;
656
- },
657
- ) => {
525
+ unalias: (name: string, opts?: {
526
+ workspace?: boolean;
527
+ cwd?: string;
528
+ }) => {
658
529
  unaliased: string;
659
530
  file: string;
660
531
  };
661
532
  /** Disable a model name (built-in, alias, or raw slug) without removing it. */
662
- disable: (
663
- name: string,
664
- opts?: {
665
- workspace?: boolean;
666
- cwd?: string;
667
- },
668
- ) => {
533
+ disable: (name: string, opts?: {
534
+ workspace?: boolean;
535
+ cwd?: string;
536
+ }) => {
669
537
  name: string;
670
538
  disabled: boolean;
671
539
  file: string;
672
540
  };
673
541
  /** Re-enable a disabled model name. */
674
- enable: (
675
- name: string,
676
- opts?: {
677
- workspace?: boolean;
678
- cwd?: string;
679
- },
680
- ) => {
542
+ enable: (name: string, opts?: {
543
+ workspace?: boolean;
544
+ cwd?: string;
545
+ }) => {
681
546
  name: string;
682
547
  disabled: boolean;
683
548
  file: string;
@@ -685,21 +550,14 @@ declare const _default: {
685
550
  };
686
551
  config: {
687
552
  /** A config value by dotted key (or the whole effective config). */
688
- get: (
689
- key?: string,
690
- opts?: {
691
- cwd?: string;
692
- },
693
- ) => unknown;
553
+ get: (key?: string, opts?: {
554
+ cwd?: string;
555
+ }) => unknown;
694
556
  /** Set a config value; `workspace` targets the repo file instead of the user file. */
695
- set: (
696
- key: string,
697
- value: unknown,
698
- opts?: {
699
- workspace?: boolean;
700
- cwd?: string;
701
- },
702
- ) => {
557
+ set: (key: string, value: unknown, opts?: {
558
+ workspace?: boolean;
559
+ cwd?: string;
560
+ }) => {
703
561
  file: string;
704
562
  key: string;
705
563
  effective: unknown;
@@ -712,23 +570,4 @@ declare const _default: {
712
570
  docs: typeof docs;
713
571
  };
714
572
  //#endregion
715
- export {
716
- type Approval,
717
- CoderError,
718
- type FlowEvent,
719
- type FlowStep,
720
- type Job,
721
- type JobLogEntry,
722
- type SteerOutcome,
723
- type TaskResult,
724
- TaskRunOptions,
725
- type TurnResult,
726
- config,
727
- _default as default,
728
- docs,
729
- flowSdk as flow,
730
- model,
731
- setupHost,
732
- task,
733
- upgrade,
734
- };
573
+ export { type Approval, CoderError, type FlowEvent, type FlowStep, type Job, type JobLogEntry, type SteerOutcome, type TaskResult, TaskRunOptions, type TurnResult, config, _default as default, docs, flowSdk as flow, model, setupHost, task, upgrade };