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/CHANGELOG.md +9 -0
- package/CONTRIBUTING.md +1 -0
- package/README.md +46 -5
- package/dist/adapters/deepseek.js +127 -8
- package/dist/cli.js +7 -4
- package/dist/config.js +5 -2
- package/dist/jobs.js +3 -2
- package/docs/DEMO_GIF.md +17 -1
- package/docs/briefs/WORKING.md +11 -6
- package/docs/demo-notes.md +5 -3
- package/docs/fixtures/generate-hero-demo.sh +109 -0
- package/docs/fixtures/hero-demo.log +52 -0
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/skills/route-orch/SKILL.md +15 -2
- package/src/adapters/deepseek.ts +145 -11
- package/src/adapters/types.ts +3 -1
- package/src/cli.test.ts +360 -25
- package/src/cli.ts +7 -4
- package/src/config.ts +9 -3
- package/src/jobs.ts +5 -4
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).
|
|
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
|
}
|