cursor-route 0.1.7 → 0.1.8

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/src/jobs.ts CHANGED
@@ -37,7 +37,7 @@ export interface Job {
37
37
  status: JobStatus;
38
38
  worker: WorkerKind;
39
39
  lane?: Lane;
40
- /** Mid-lane DeepSeek model alias (flash|pro). Only set for claude-ds. */
40
+ /** Mid-lane DeepSeek model alias (flash|pro). Set for claude-ds and deepseek. */
41
41
  model?: DsModelAlias;
42
42
  prompt: string;
43
43
  cwd: string;
@@ -231,7 +231,7 @@ export interface StartOptions {
231
231
  prompt: string;
232
232
  worker?: WorkerKind;
233
233
  lane?: Lane;
234
- /** Mid-lane DeepSeek: flash (default) | pro. Ignored by grok/openrouter. */
234
+ /** Mid-lane DeepSeek: flash (default) | pro (claude-ds + deepseek). Ignored by grok/openrouter. */
235
235
  model?: DsModelAlias;
236
236
  /** Concrete DeepSeek id (preserves pro[1m]). Derived from --model / env when unset. */
237
237
  modelId?: string;
@@ -284,7 +284,7 @@ export function startJob(opts: StartOptions): {
284
284
 
285
285
  let model: DsModelAlias | undefined;
286
286
  let modelId: string | undefined;
287
- if (worker === "claude-ds") {
287
+ if (worker === "claude-ds" || worker === "deepseek") {
288
288
  if (opts.model) {
289
289
  model = opts.model;
290
290
  modelId = opts.modelId ?? DS_MODEL_IDS[opts.model];
@@ -312,6 +312,7 @@ export function startJob(opts: StartOptions): {
312
312
  alwaysApprove,
313
313
  model,
314
314
  modelId,
315
+ dryRun: Boolean(opts.dryRun),
315
316
  });
316
317
  } catch (e) {
317
318
  try {
@@ -493,7 +494,7 @@ export function cleanJobs(olderThanDays = 7): number {
493
494
  t < cutoff &&
494
495
  (job.status === "completed" || job.status === "failed" || job.status === "killed")
495
496
  ) {
496
- for (const ext of [".json", ".prompt", ".log"] as const) {
497
+ for (const ext of [".json", ".prompt", ".log", ".dsh-patch.yml"] as const) {
497
498
  const fp = underJobsDir(id, ext);
498
499
  if (existsSync(fp)) unlinkSync(fp);
499
500
  }