reevesagents 1.8.2 → 1.9.1
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/AGENTS.md +27 -11
- package/CHANGELOG.md +14 -0
- package/README.md +84 -6
- package/dist/{chunk-EZJQYBYP.js → chunk-B7MJIWPK.js} +2 -2
- package/dist/{chunk-4ARHWX5G.js → chunk-CNIU7XLA.js} +2 -2
- package/dist/{chunk-HHNMES47.js → chunk-LQLSTRGU.js} +546 -23
- package/dist/{chunk-KQ5HV63P.js → chunk-OFNHHF6P.js} +3 -3
- package/dist/{chunk-BITRLLG5.js → chunk-P4CSYX5H.js} +7 -2
- package/dist/{chunk-5K4BBZMS.js → chunk-PMMG4VDO.js} +2 -2
- package/dist/{chunk-CR6PKNNA.js → chunk-QIHT27ZG.js} +12 -1
- package/dist/cli.js +28 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/{router-SJOSRYLQ.js → router-DIZA4N3F.js} +33 -12
- package/dist/{server-GJTDNSX7.js → server-AWGT7TDX.js} +10 -7
- package/dist/{server-5NKGREUJ.js → server-DKWKDBAA.js} +13 -5
- package/dist/{tui-launch-XYYH3XEY.js → tui-launch-PAG5YUAO.js} +2 -2
- package/dist/web/app.css +41 -0
- package/dist/web/app.js +43 -16
- package/dist/web/favicon.png +0 -0
- package/dist/web/index.html +1 -1
- package/package.json +27 -11
- package/skills/reevesagents/SKILL.md +11 -0
|
@@ -64,6 +64,83 @@ var AIDER_MODELS = [
|
|
|
64
64
|
"haiku",
|
|
65
65
|
"deepseek/deepseek-chat"
|
|
66
66
|
];
|
|
67
|
+
var GEMINI_MODEL_SOURCE = "curated Gemini CLI model ids";
|
|
68
|
+
var GEMINI_MODELS = [
|
|
69
|
+
"gemini-3.1-pro-preview",
|
|
70
|
+
"gemini-3.5-flash",
|
|
71
|
+
"gemini-3.1-flash-lite"
|
|
72
|
+
];
|
|
73
|
+
var CLINE_MODEL_SOURCE = "curated Cline CLI model ids";
|
|
74
|
+
var CLINE_MODELS = [
|
|
75
|
+
"anthropic/claude-sonnet-4-6",
|
|
76
|
+
"anthropic/claude-opus-4-8",
|
|
77
|
+
"google/gemini-3.1-pro"
|
|
78
|
+
];
|
|
79
|
+
var CRUSH_MODEL_SOURCE = "chosen inside Crush (its TUI model picker); the launch has no model flag";
|
|
80
|
+
var CRUSH_MODELS = [];
|
|
81
|
+
var GOOSE_MODEL_SOURCE = "curated Goose model ids";
|
|
82
|
+
var GOOSE_MODELS = [
|
|
83
|
+
"claude-sonnet-4-6",
|
|
84
|
+
"claude-opus-4-8",
|
|
85
|
+
"deepseek-v4-pro"
|
|
86
|
+
];
|
|
87
|
+
var KILO_MODEL_SOURCE = "curated Kilo Code model ids";
|
|
88
|
+
var KILO_MODELS = [
|
|
89
|
+
"kilo/~anthropic/claude-sonnet-latest",
|
|
90
|
+
"kilo/~anthropic/claude-opus-latest",
|
|
91
|
+
"kilo/~google/gemini-pro-latest",
|
|
92
|
+
"kilo/~openai/gpt-sol-latest"
|
|
93
|
+
];
|
|
94
|
+
var LETTA_MODEL_SOURCE = "curated Letta Code model ids";
|
|
95
|
+
var LETTA_MODELS = [
|
|
96
|
+
"zai-org/GLM-5.3-max",
|
|
97
|
+
"moonshotai/Kimi-K2-Instruct",
|
|
98
|
+
"Qwen/Qwen3-Coder-480B-A35B-Instruct"
|
|
99
|
+
];
|
|
100
|
+
var VIBE_MODEL_SOURCE = "set in vibe config (active_model or VIBE_ACTIVE_MODEL); the launch has no model flag";
|
|
101
|
+
var VIBE_MODELS = [];
|
|
102
|
+
var GROK_MODEL_SOURCE = "curated Grok Build model ids";
|
|
103
|
+
var GROK_MODELS = [
|
|
104
|
+
"grok-4.6",
|
|
105
|
+
"grok-4.5",
|
|
106
|
+
"grok-4.7"
|
|
107
|
+
];
|
|
108
|
+
var KIRO_MODEL_SOURCE = "curated Kiro CLI model ids";
|
|
109
|
+
var KIRO_MODELS = [
|
|
110
|
+
"claude-sonnet-4.6",
|
|
111
|
+
"claude-opus-4.7",
|
|
112
|
+
"claude-opus-4.6"
|
|
113
|
+
];
|
|
114
|
+
var DROID_MODEL_SOURCE = "chosen inside Factory Droid itself; the launch has no model flag";
|
|
115
|
+
var DROID_MODELS = [];
|
|
116
|
+
var QODER_MODEL_SOURCE = "curated Qoder CLI model ids";
|
|
117
|
+
var QODER_MODELS = [
|
|
118
|
+
"auto",
|
|
119
|
+
"performance",
|
|
120
|
+
"lite"
|
|
121
|
+
];
|
|
122
|
+
var WARP_MODEL_SOURCE = "chosen inside the Warp TUI; the launch has no model flag";
|
|
123
|
+
var WARP_MODELS = [];
|
|
124
|
+
var JUNIE_MODEL_SOURCE = "curated Junie CLI model ids";
|
|
125
|
+
var JUNIE_MODELS = [
|
|
126
|
+
"sonnet",
|
|
127
|
+
"opus",
|
|
128
|
+
"gpt-sol"
|
|
129
|
+
];
|
|
130
|
+
var COPILOT_MODEL_SOURCE = "curated GitHub Copilot CLI model ids";
|
|
131
|
+
var COPILOT_MODELS = [
|
|
132
|
+
"auto",
|
|
133
|
+
"gpt-5.4",
|
|
134
|
+
"claude-opus-4.8"
|
|
135
|
+
];
|
|
136
|
+
var CURSOR_MODEL_SOURCE = "curated Cursor CLI model ids";
|
|
137
|
+
var CURSOR_MODELS = [
|
|
138
|
+
"gpt-5",
|
|
139
|
+
"sonnet-4-thinking",
|
|
140
|
+
"claude-opus-4-8"
|
|
141
|
+
];
|
|
142
|
+
var ROVO_MODEL_SOURCE = "set in Rovo Dev itself (/models or agent.modelId in config); the launch has no model flag";
|
|
143
|
+
var ROVO_MODELS = [];
|
|
67
144
|
|
|
68
145
|
// src/core/provider-registry.ts
|
|
69
146
|
var HERMES_PROVIDER_PREFIXES = /* @__PURE__ */ new Set([
|
|
@@ -299,6 +376,318 @@ var PROVIDER_REGISTRY = {
|
|
|
299
376
|
if (model) args.push("--model", model);
|
|
300
377
|
return args;
|
|
301
378
|
}
|
|
379
|
+
},
|
|
380
|
+
gemini: {
|
|
381
|
+
id: "gemini",
|
|
382
|
+
bin: "gemini",
|
|
383
|
+
displayName: "Gemini CLI",
|
|
384
|
+
color: "#8b7fe8",
|
|
385
|
+
// muted blue-violet, the Gemini spark gradient
|
|
386
|
+
aliases: ["gemini", "gemini cli", "gemini-cli"],
|
|
387
|
+
models: GEMINI_MODELS,
|
|
388
|
+
modelSource: GEMINI_MODEL_SOURCE,
|
|
389
|
+
helpRequirements: [
|
|
390
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
391
|
+
{ feature: "skip permissions", tokens: ["--approval-mode"] }
|
|
392
|
+
],
|
|
393
|
+
buildArgs: ({ permissions, model }) => {
|
|
394
|
+
const args = [];
|
|
395
|
+
if (permissions === "skip") args.push("--approval-mode", "yolo");
|
|
396
|
+
if (model) args.push("--model", model);
|
|
397
|
+
return args;
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
cline: {
|
|
401
|
+
id: "cline",
|
|
402
|
+
bin: "cline",
|
|
403
|
+
displayName: "Cline CLI",
|
|
404
|
+
color: "#6b9fd6",
|
|
405
|
+
// muted Cline blue
|
|
406
|
+
aliases: ["cline", "cline cli", "cline-cli"],
|
|
407
|
+
models: CLINE_MODELS,
|
|
408
|
+
modelSource: CLINE_MODEL_SOURCE,
|
|
409
|
+
helpRequirements: [
|
|
410
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
411
|
+
{ feature: "skip permissions", tokens: ["--auto-approve"] }
|
|
412
|
+
],
|
|
413
|
+
buildArgs: ({ permissions, model }) => {
|
|
414
|
+
const args = ["--tui"];
|
|
415
|
+
if (permissions === "skip") args.push("--auto-approve", "true");
|
|
416
|
+
if (model) args.push("--model", model);
|
|
417
|
+
return args;
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
crush: {
|
|
421
|
+
id: "crush",
|
|
422
|
+
bin: "crush",
|
|
423
|
+
displayName: "Crush",
|
|
424
|
+
color: "#e092b8",
|
|
425
|
+
// muted Charm pink
|
|
426
|
+
aliases: ["crush", "charm crush", "charm-crush"],
|
|
427
|
+
models: CRUSH_MODELS,
|
|
428
|
+
modelSource: CRUSH_MODEL_SOURCE,
|
|
429
|
+
helpRequirements: [
|
|
430
|
+
{ feature: "skip permissions", tokens: ["--yolo"] }
|
|
431
|
+
],
|
|
432
|
+
buildArgs: ({ permissions }) => {
|
|
433
|
+
const args = [];
|
|
434
|
+
if (permissions === "skip") args.push("--yolo");
|
|
435
|
+
return args;
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
goose: {
|
|
439
|
+
id: "goose",
|
|
440
|
+
bin: "goose",
|
|
441
|
+
displayName: "Goose",
|
|
442
|
+
color: "#b39a80",
|
|
443
|
+
// muted goose tan
|
|
444
|
+
aliases: ["goose"],
|
|
445
|
+
models: GOOSE_MODELS,
|
|
446
|
+
modelSource: GOOSE_MODEL_SOURCE,
|
|
447
|
+
helpRequirements: [
|
|
448
|
+
{ feature: "interactive session", tokens: ["session"] },
|
|
449
|
+
{ feature: "model selection", tokens: ["--model"] }
|
|
450
|
+
],
|
|
451
|
+
helpArgs: ["session", "--help"],
|
|
452
|
+
buildArgs: ({ model }) => {
|
|
453
|
+
const args = ["session"];
|
|
454
|
+
if (model) args.push("--model", model);
|
|
455
|
+
return args;
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
kilo: {
|
|
459
|
+
id: "kilo",
|
|
460
|
+
bin: "kilo",
|
|
461
|
+
displayName: "Kilo Code",
|
|
462
|
+
color: "#c46f6f",
|
|
463
|
+
// muted soft red
|
|
464
|
+
aliases: ["kilo", "kilo code", "kilo-code", "kilocode"],
|
|
465
|
+
models: KILO_MODELS,
|
|
466
|
+
modelSource: KILO_MODEL_SOURCE,
|
|
467
|
+
helpRequirements: [
|
|
468
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
469
|
+
{ feature: "skip permissions", tokens: ["--auto"] }
|
|
470
|
+
],
|
|
471
|
+
buildArgs: ({ permissions, model }) => {
|
|
472
|
+
const args = [];
|
|
473
|
+
if (permissions === "skip") args.push("--auto");
|
|
474
|
+
if (model) args.push("--model", model);
|
|
475
|
+
return args;
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
letta: {
|
|
479
|
+
id: "letta",
|
|
480
|
+
bin: "letta",
|
|
481
|
+
displayName: "Letta Code",
|
|
482
|
+
color: "#6fb387",
|
|
483
|
+
// muted starling green
|
|
484
|
+
aliases: ["letta", "letta code", "letta-code"],
|
|
485
|
+
models: LETTA_MODELS,
|
|
486
|
+
modelSource: LETTA_MODEL_SOURCE,
|
|
487
|
+
helpRequirements: [
|
|
488
|
+
{ feature: "fresh conversation", tokens: ["--new"] },
|
|
489
|
+
{ feature: "model selection", tokens: ["--model"] }
|
|
490
|
+
],
|
|
491
|
+
buildArgs: ({ permissions, model }) => {
|
|
492
|
+
const args = ["--new"];
|
|
493
|
+
if (permissions === "skip") args.push("--permission-mode", "unrestricted");
|
|
494
|
+
if (model) args.push("--model", model);
|
|
495
|
+
return args;
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
vibe: {
|
|
499
|
+
id: "vibe",
|
|
500
|
+
bin: "vibe",
|
|
501
|
+
displayName: "Mistral Vibe",
|
|
502
|
+
color: "#e3a35e",
|
|
503
|
+
// muted Mistral amber
|
|
504
|
+
aliases: ["vibe", "mistral vibe", "mistral-vibe", "mistral"],
|
|
505
|
+
models: VIBE_MODELS,
|
|
506
|
+
modelSource: VIBE_MODEL_SOURCE,
|
|
507
|
+
helpRequirements: [
|
|
508
|
+
{ feature: "skip permissions", tokens: ["--auto-approve"] }
|
|
509
|
+
],
|
|
510
|
+
buildArgs: ({ permissions }) => {
|
|
511
|
+
const args = [];
|
|
512
|
+
if (permissions === "skip") args.push("--auto-approve");
|
|
513
|
+
return args;
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
grok: {
|
|
517
|
+
id: "grok",
|
|
518
|
+
bin: "grok",
|
|
519
|
+
displayName: "Grok Build",
|
|
520
|
+
color: "#9a9a96",
|
|
521
|
+
// muted xAI graphite
|
|
522
|
+
aliases: ["grok", "grok build", "grok-build", "xai"],
|
|
523
|
+
models: GROK_MODELS,
|
|
524
|
+
modelSource: GROK_MODEL_SOURCE,
|
|
525
|
+
helpRequirements: [
|
|
526
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
527
|
+
{ feature: "skip permissions", tokens: ["--always-approve"] }
|
|
528
|
+
],
|
|
529
|
+
buildArgs: ({ permissions, model }) => {
|
|
530
|
+
const args = [];
|
|
531
|
+
if (permissions === "skip") args.push("--always-approve");
|
|
532
|
+
if (model) args.push("--model", model);
|
|
533
|
+
return args;
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
kiro: {
|
|
537
|
+
id: "kiro",
|
|
538
|
+
bin: "kiro-cli",
|
|
539
|
+
displayName: "Kiro CLI",
|
|
540
|
+
color: "#b070c8",
|
|
541
|
+
// muted Kiro violet
|
|
542
|
+
aliases: ["kiro", "kiro cli", "kiro-cli"],
|
|
543
|
+
models: KIRO_MODELS,
|
|
544
|
+
modelSource: KIRO_MODEL_SOURCE,
|
|
545
|
+
helpRequirements: [
|
|
546
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
547
|
+
{ feature: "skip permissions", tokens: ["--trust-all-tools"] }
|
|
548
|
+
],
|
|
549
|
+
helpArgs: ["chat", "--help"],
|
|
550
|
+
buildArgs: ({ permissions, model }) => {
|
|
551
|
+
const args = ["chat"];
|
|
552
|
+
if (permissions === "skip") args.push("--trust-all-tools");
|
|
553
|
+
if (model) args.push("--model", model);
|
|
554
|
+
return args;
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
droid: {
|
|
558
|
+
id: "droid",
|
|
559
|
+
bin: "droid",
|
|
560
|
+
displayName: "Factory Droid",
|
|
561
|
+
color: "#7f8fa3",
|
|
562
|
+
// muted slate
|
|
563
|
+
aliases: ["droid", "factory", "factory droid", "factory-droid"],
|
|
564
|
+
models: DROID_MODELS,
|
|
565
|
+
modelSource: DROID_MODEL_SOURCE,
|
|
566
|
+
helpRequirements: [
|
|
567
|
+
{ feature: "skip permissions", tokens: ["--auto"] }
|
|
568
|
+
],
|
|
569
|
+
buildArgs: ({ permissions }) => {
|
|
570
|
+
const args = [];
|
|
571
|
+
if (permissions === "skip") args.push("--auto", "high");
|
|
572
|
+
return args;
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
qoder: {
|
|
576
|
+
id: "qoder",
|
|
577
|
+
bin: "qodercli",
|
|
578
|
+
displayName: "Qoder CLI",
|
|
579
|
+
color: "#57c785",
|
|
580
|
+
// muted Qoder green
|
|
581
|
+
aliases: ["qoder", "qoder cli", "qoder-cli", "qodercli"],
|
|
582
|
+
models: QODER_MODELS,
|
|
583
|
+
modelSource: QODER_MODEL_SOURCE,
|
|
584
|
+
helpRequirements: [
|
|
585
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
586
|
+
{ feature: "skip permissions", tokens: ["--dangerously-skip-permissions"] }
|
|
587
|
+
],
|
|
588
|
+
buildArgs: ({ permissions, model }) => {
|
|
589
|
+
const args = [];
|
|
590
|
+
if (permissions === "skip") args.push("--dangerously-skip-permissions");
|
|
591
|
+
if (model) args.push("--model", model);
|
|
592
|
+
return args;
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
warp: {
|
|
596
|
+
id: "warp",
|
|
597
|
+
bin: "warp",
|
|
598
|
+
displayName: "Warp",
|
|
599
|
+
color: "#4aa3b0",
|
|
600
|
+
// muted Warp teal
|
|
601
|
+
aliases: ["warp", "warp agent", "warp-agent"],
|
|
602
|
+
models: WARP_MODELS,
|
|
603
|
+
modelSource: WARP_MODEL_SOURCE,
|
|
604
|
+
helpRequirements: [
|
|
605
|
+
{ feature: "skip permissions", tokens: ["--auto-approve"] }
|
|
606
|
+
],
|
|
607
|
+
buildArgs: ({ permissions }) => {
|
|
608
|
+
const args = [];
|
|
609
|
+
if (permissions === "skip") args.push("--auto-approve");
|
|
610
|
+
return args;
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
junie: {
|
|
614
|
+
id: "junie",
|
|
615
|
+
bin: "junie",
|
|
616
|
+
displayName: "Junie CLI",
|
|
617
|
+
color: "#a9c256",
|
|
618
|
+
// muted Junie lime
|
|
619
|
+
aliases: ["junie", "junie cli", "junie-cli", "jetbrains junie"],
|
|
620
|
+
models: JUNIE_MODELS,
|
|
621
|
+
modelSource: JUNIE_MODEL_SOURCE,
|
|
622
|
+
helpRequirements: [
|
|
623
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
624
|
+
{ feature: "skip permissions", tokens: ["--brave"] }
|
|
625
|
+
],
|
|
626
|
+
buildArgs: ({ permissions, model }) => {
|
|
627
|
+
const args = [];
|
|
628
|
+
if (permissions === "skip") args.push("--brave");
|
|
629
|
+
if (model) args.push("--model", model);
|
|
630
|
+
return args;
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
copilot: {
|
|
634
|
+
id: "copilot",
|
|
635
|
+
bin: "copilot",
|
|
636
|
+
displayName: "GitHub Copilot CLI",
|
|
637
|
+
color: "#7d8ce8",
|
|
638
|
+
// muted Copilot indigo
|
|
639
|
+
aliases: ["copilot", "copilot cli", "copilot-cli", "github copilot"],
|
|
640
|
+
models: COPILOT_MODELS,
|
|
641
|
+
modelSource: COPILOT_MODEL_SOURCE,
|
|
642
|
+
helpRequirements: [
|
|
643
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
644
|
+
{ feature: "skip permissions", tokens: ["--allow-all"] }
|
|
645
|
+
],
|
|
646
|
+
buildArgs: ({ permissions, model }) => {
|
|
647
|
+
const args = [];
|
|
648
|
+
if (permissions === "skip") args.push("--allow-all");
|
|
649
|
+
if (model) args.push("--model", model);
|
|
650
|
+
return args;
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
cursor: {
|
|
654
|
+
id: "cursor",
|
|
655
|
+
bin: "cursor-agent",
|
|
656
|
+
displayName: "Cursor CLI",
|
|
657
|
+
color: "#cfd8dc",
|
|
658
|
+
// muted Cursor silver
|
|
659
|
+
aliases: ["cursor", "cursor cli", "cursor-cli", "cursor-agent"],
|
|
660
|
+
models: CURSOR_MODELS,
|
|
661
|
+
modelSource: CURSOR_MODEL_SOURCE,
|
|
662
|
+
helpRequirements: [
|
|
663
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
664
|
+
{ feature: "skip permissions", tokens: ["--force"] }
|
|
665
|
+
],
|
|
666
|
+
buildArgs: ({ permissions, model }) => {
|
|
667
|
+
const args = [];
|
|
668
|
+
if (permissions === "skip") args.push("--force");
|
|
669
|
+
if (model) args.push("--model", model);
|
|
670
|
+
return args;
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
rovo: {
|
|
674
|
+
id: "rovo",
|
|
675
|
+
bin: "acli",
|
|
676
|
+
displayName: "Rovo Dev CLI",
|
|
677
|
+
color: "#3f7fd0",
|
|
678
|
+
// muted Atlassian blue
|
|
679
|
+
aliases: ["rovo", "rovo dev", "rovo-dev", "rovodev"],
|
|
680
|
+
models: ROVO_MODELS,
|
|
681
|
+
modelSource: ROVO_MODEL_SOURCE,
|
|
682
|
+
helpRequirements: [
|
|
683
|
+
{ feature: "skip permissions", tokens: ["--yolo"] }
|
|
684
|
+
],
|
|
685
|
+
helpArgs: ["rovodev", "run", "--help"],
|
|
686
|
+
buildArgs: ({ permissions }) => {
|
|
687
|
+
const args = ["rovodev", "run"];
|
|
688
|
+
if (permissions === "skip") args.push("--yolo");
|
|
689
|
+
return args;
|
|
690
|
+
}
|
|
302
691
|
}
|
|
303
692
|
};
|
|
304
693
|
var PROVIDER_DEFS = Object.values(PROVIDER_REGISTRY);
|
|
@@ -322,7 +711,7 @@ var PROVIDER_ALIASES = Object.fromEntries(
|
|
|
322
711
|
PROVIDER_DEFS.flatMap((def) => def.aliases.map((alias) => [alias, def.id]))
|
|
323
712
|
);
|
|
324
713
|
var HELP_INSPECT_TIMEOUT_MS = 3e3;
|
|
325
|
-
var HELP_INSPECT_TOTAL_BUDGET_MS = 8e3;
|
|
714
|
+
var HELP_INSPECT_TOTAL_BUDGET_MS = Math.max(8e3, PROVIDERS.length * 1500);
|
|
326
715
|
function isProvider(value) {
|
|
327
716
|
return typeof value === "string" && Object.prototype.hasOwnProperty.call(PROVIDER_REGISTRY, value);
|
|
328
717
|
}
|
|
@@ -344,15 +733,18 @@ function buildCommand(opts) {
|
|
|
344
733
|
const def = PROVIDER_REGISTRY[provider];
|
|
345
734
|
return [def.bin, ...def.buildArgs({ permissions, model, auth_mode, effort }), ...extra_args];
|
|
346
735
|
}
|
|
736
|
+
function binaryOnPath(bin) {
|
|
737
|
+
try {
|
|
738
|
+
execFileSync("which", [bin], { stdio: "pipe" });
|
|
739
|
+
return true;
|
|
740
|
+
} catch {
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
347
744
|
function detectAvailable() {
|
|
348
745
|
const result = {};
|
|
349
746
|
for (const provider of PROVIDERS) {
|
|
350
|
-
|
|
351
|
-
execFileSync("which", [BIN[provider]], { stdio: "pipe" });
|
|
352
|
-
result[provider] = true;
|
|
353
|
-
} catch {
|
|
354
|
-
result[provider] = false;
|
|
355
|
-
}
|
|
747
|
+
result[provider] = binaryOnPath(BIN[provider]);
|
|
356
748
|
}
|
|
357
749
|
return result;
|
|
358
750
|
}
|
|
@@ -1083,7 +1475,8 @@ var DEFAULT_GLOBAL = {
|
|
|
1083
1475
|
ready_delay_ms: 5e3,
|
|
1084
1476
|
max_lifetime_ms: 0,
|
|
1085
1477
|
default_permissions: "ask",
|
|
1086
|
-
language: DEFAULT_LANGUAGE
|
|
1478
|
+
language: DEFAULT_LANGUAGE,
|
|
1479
|
+
web_theme: "dark"
|
|
1087
1480
|
};
|
|
1088
1481
|
function configPath() {
|
|
1089
1482
|
const base = process.env.REEVES_CONFIG;
|
|
@@ -1121,6 +1514,7 @@ function mergeDefaults(raw) {
|
|
|
1121
1514
|
if (typeof g.max_lifetime_ms === "number" && g.max_lifetime_ms >= 0) merged.global.max_lifetime_ms = g.max_lifetime_ms;
|
|
1122
1515
|
if (g.default_permissions === "skip" || g.default_permissions === "ask") merged.global.default_permissions = g.default_permissions;
|
|
1123
1516
|
if (isLanguageCode(g.language)) merged.global.language = g.language;
|
|
1517
|
+
if (g.web_theme === "dark" || g.web_theme === "light") merged.global.web_theme = g.web_theme;
|
|
1124
1518
|
}
|
|
1125
1519
|
return merged;
|
|
1126
1520
|
}
|
|
@@ -1146,6 +1540,7 @@ function saveConfig(cfg) {
|
|
|
1146
1540
|
return path;
|
|
1147
1541
|
}
|
|
1148
1542
|
var CONFIG_FIELDS = [
|
|
1543
|
+
{ key: "web_theme", kind: "web-theme", label: "web theme" },
|
|
1149
1544
|
{ key: "peek_interval_ms", kind: "posint", label: "peek interval (ms)" },
|
|
1150
1545
|
{ key: "peek_lines", kind: "posint", label: "peek lines" },
|
|
1151
1546
|
{ key: "max_depth", kind: "posint", label: "max depth" },
|
|
@@ -1183,6 +1578,9 @@ function validateConfigField(spec, value) {
|
|
|
1183
1578
|
case "language":
|
|
1184
1579
|
if (!isLanguageCode(value)) throw new Error(`unknown language: ${String(value)}`);
|
|
1185
1580
|
return value;
|
|
1581
|
+
case "web-theme":
|
|
1582
|
+
if (value !== "dark" && value !== "light") throw new Error(`${spec.label} must be dark or light`);
|
|
1583
|
+
return value;
|
|
1186
1584
|
}
|
|
1187
1585
|
}
|
|
1188
1586
|
function setConfigValues(patch) {
|
|
@@ -1982,11 +2380,129 @@ function openTmuxTarget(id, options = {}) {
|
|
|
1982
2380
|
return { session, window, label };
|
|
1983
2381
|
}
|
|
1984
2382
|
|
|
2383
|
+
// src/core/tool-registry.ts
|
|
2384
|
+
import { spawnSync as spawnSync3 } from "child_process";
|
|
2385
|
+
import { statSync as statSync3 } from "fs";
|
|
2386
|
+
import { homedir as homedir4 } from "os";
|
|
2387
|
+
import { isAbsolute, join as join5 } from "path";
|
|
2388
|
+
var TOOL_REGISTRY = {
|
|
2389
|
+
pplx: {
|
|
2390
|
+
id: "pplx",
|
|
2391
|
+
bin: "pplx",
|
|
2392
|
+
displayName: "Perplexity CLI",
|
|
2393
|
+
color: "#3f7f8d",
|
|
2394
|
+
// muted Perplexity teal
|
|
2395
|
+
purpose: "Web search and page snippets from Perplexity, as JSON.",
|
|
2396
|
+
authEnv: [],
|
|
2397
|
+
probe: pplxSigninState,
|
|
2398
|
+
stateLabel: "signed in",
|
|
2399
|
+
example: 'pplx search web "node 24 release date" --limit 3',
|
|
2400
|
+
docsUrl: "https://github.com/perplexityai/perplexity-cli"
|
|
2401
|
+
},
|
|
2402
|
+
colab: {
|
|
2403
|
+
id: "colab",
|
|
2404
|
+
bin: "colab",
|
|
2405
|
+
displayName: "Google Colab CLI",
|
|
2406
|
+
color: "#d9a13d",
|
|
2407
|
+
// muted Colab amber
|
|
2408
|
+
purpose: "CPU, GPU and TPU runtimes on Google Colab: run scripts and notebooks remotely.",
|
|
2409
|
+
authEnv: [],
|
|
2410
|
+
// --auth=oauth2 must precede the subcommand; never adc, which would use
|
|
2411
|
+
// this machine's gcloud Application Default Credentials.
|
|
2412
|
+
authCheckArgs: ["--auth=oauth2", "whoami"],
|
|
2413
|
+
stateLabel: "signed in",
|
|
2414
|
+
example: "colab --auth=oauth2 run job.py",
|
|
2415
|
+
docsUrl: "https://github.com/googlecolab/google-colab-cli"
|
|
2416
|
+
},
|
|
2417
|
+
hf: {
|
|
2418
|
+
id: "hf",
|
|
2419
|
+
bin: "hf",
|
|
2420
|
+
displayName: "Hugging Face CLI",
|
|
2421
|
+
color: "#d4c04e",
|
|
2422
|
+
// muted Hugging Face yellow
|
|
2423
|
+
purpose: "Download and upload models and datasets, run jobs on the Hugging Face Hub.",
|
|
2424
|
+
authEnv: ["HF_TOKEN"],
|
|
2425
|
+
authCheckArgs: ["auth", "whoami"],
|
|
2426
|
+
stateLabel: "signed in",
|
|
2427
|
+
example: "hf download Qwen/Qwen3-0.6B config.json",
|
|
2428
|
+
docsUrl: "https://huggingface.co/docs/huggingface_hub/en/guides/cli"
|
|
2429
|
+
},
|
|
2430
|
+
ollama: {
|
|
2431
|
+
id: "ollama",
|
|
2432
|
+
bin: "ollama",
|
|
2433
|
+
displayName: "Ollama",
|
|
2434
|
+
color: "#8b93a6",
|
|
2435
|
+
// slate gray, the monochrome Ollama brand
|
|
2436
|
+
purpose: "Run local or Ollama cloud models from the terminal.",
|
|
2437
|
+
authEnv: [],
|
|
2438
|
+
// The CLI always needs a running ollama server; there is no non-interactive
|
|
2439
|
+
// sign-in status command, so `ollama list` reports the server instead.
|
|
2440
|
+
authCheckArgs: ["list"],
|
|
2441
|
+
stateLabel: "reachable",
|
|
2442
|
+
example: 'ollama run gemma4:31b-cloud "summarize README.md"',
|
|
2443
|
+
docsUrl: "https://github.com/ollama/ollama/tree/main/docs"
|
|
2444
|
+
}
|
|
2445
|
+
};
|
|
2446
|
+
var TOOL_DEFS = Object.values(TOOL_REGISTRY);
|
|
2447
|
+
var TOOLS = Object.keys(TOOL_REGISTRY);
|
|
2448
|
+
var TOOL_AUTH_CHECK_TIMEOUT_MS = 3e3;
|
|
2449
|
+
function pplxSigninState(env, home, platform = process.platform) {
|
|
2450
|
+
const set = (name) => Boolean(env[name]?.trim());
|
|
2451
|
+
const sdkBase = set("PPLX_SDK_BASE_URL");
|
|
2452
|
+
const sdkKey = set("PPLX_SDK_API_KEY");
|
|
2453
|
+
if (sdkBase !== sdkKey) return "no";
|
|
2454
|
+
if (sdkBase && sdkKey) return "yes";
|
|
2455
|
+
if (set("PERPLEXITY_API_KEY")) return "yes";
|
|
2456
|
+
let credentials;
|
|
2457
|
+
if (platform === "linux") {
|
|
2458
|
+
const xdg = env.XDG_CONFIG_HOME;
|
|
2459
|
+
credentials = join5(xdg && isAbsolute(xdg) ? xdg : join5(home, ".config"), "perplexity", "credentials.json");
|
|
2460
|
+
} else if (platform === "darwin") {
|
|
2461
|
+
credentials = join5(home, "Library", "Application Support", "perplexity", "credentials.json");
|
|
2462
|
+
} else {
|
|
2463
|
+
return "unknown";
|
|
2464
|
+
}
|
|
2465
|
+
try {
|
|
2466
|
+
return statSync3(credentials, { throwIfNoEntry: false }) ? "yes" : "no";
|
|
2467
|
+
} catch {
|
|
2468
|
+
return "unknown";
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
function toolState(def, env = process.env, home = homedir4()) {
|
|
2472
|
+
if (def.probe) return def.probe(env, home);
|
|
2473
|
+
if (def.authEnv.some((name) => Boolean(env[name]))) return "yes";
|
|
2474
|
+
if (!def.authCheckArgs) return "unknown";
|
|
2475
|
+
try {
|
|
2476
|
+
const checked = spawnSync3(def.bin, [...def.authCheckArgs], {
|
|
2477
|
+
stdio: "ignore",
|
|
2478
|
+
timeout: TOOL_AUTH_CHECK_TIMEOUT_MS
|
|
2479
|
+
});
|
|
2480
|
+
if (checked.error) return "unknown";
|
|
2481
|
+
return checked.status === 0 ? "yes" : "no";
|
|
2482
|
+
} catch {
|
|
2483
|
+
return "unknown";
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
function detectToolStatuses(env = process.env, home = homedir4()) {
|
|
2487
|
+
return TOOL_DEFS.map((def) => ({
|
|
2488
|
+
id: def.id,
|
|
2489
|
+
bin: def.bin,
|
|
2490
|
+
display_name: def.displayName,
|
|
2491
|
+
color: def.color,
|
|
2492
|
+
purpose: def.purpose,
|
|
2493
|
+
example: def.example,
|
|
2494
|
+
docs_url: def.docsUrl,
|
|
2495
|
+
installed: binaryOnPath(def.bin),
|
|
2496
|
+
state: toolState(def, env, home),
|
|
2497
|
+
state_means: def.stateLabel
|
|
2498
|
+
}));
|
|
2499
|
+
}
|
|
2500
|
+
|
|
1985
2501
|
// src/surfaces/mcp/installer.ts
|
|
1986
2502
|
import { execFileSync as execFileSync3 } from "child_process";
|
|
1987
2503
|
import { realpathSync, readFileSync as readFileSync4, writeFileSync as writeFileSync4, existsSync as existsSync4, mkdirSync as mkdirSync4 } from "fs";
|
|
1988
|
-
import { homedir as
|
|
1989
|
-
import { join as
|
|
2504
|
+
import { homedir as homedir5 } from "os";
|
|
2505
|
+
import { join as join6, dirname as dirname4 } from "path";
|
|
1990
2506
|
var SERVER_NAME = "reevesagents";
|
|
1991
2507
|
var SERVER_BIN = "reevesagents";
|
|
1992
2508
|
var SERVER_ARG = "mcp";
|
|
@@ -1994,10 +2510,10 @@ var MGMT_TIMEOUT_MS = 15e3;
|
|
|
1994
2510
|
var STATUS_TIMEOUT_MS = 2e4;
|
|
1995
2511
|
var VERIFY_TIMEOUT_MS = 2e4;
|
|
1996
2512
|
function opencodeConfigPath() {
|
|
1997
|
-
const base = process.env.REEVES_HOME ||
|
|
1998
|
-
const dir =
|
|
1999
|
-
const jsonc =
|
|
2000
|
-
const json =
|
|
2513
|
+
const base = process.env.REEVES_HOME || homedir5();
|
|
2514
|
+
const dir = join6(base, ".config", "opencode");
|
|
2515
|
+
const jsonc = join6(dir, "opencode.jsonc");
|
|
2516
|
+
const json = join6(dir, "opencode.json");
|
|
2001
2517
|
if (existsSync4(json)) return json;
|
|
2002
2518
|
if (existsSync4(jsonc)) return jsonc;
|
|
2003
2519
|
return json;
|
|
@@ -2043,8 +2559,8 @@ function opencodeDetach() {
|
|
|
2043
2559
|
}
|
|
2044
2560
|
}
|
|
2045
2561
|
function kimiCodeHome() {
|
|
2046
|
-
if (process.env.REEVES_HOME) return
|
|
2047
|
-
return process.env.KIMI_CODE_HOME ||
|
|
2562
|
+
if (process.env.REEVES_HOME) return join6(process.env.REEVES_HOME, ".kimi-code");
|
|
2563
|
+
return process.env.KIMI_CODE_HOME || join6(homedir5(), ".kimi-code");
|
|
2048
2564
|
}
|
|
2049
2565
|
function isKimiCode(bin) {
|
|
2050
2566
|
try {
|
|
@@ -2060,7 +2576,7 @@ function isKimiCode(bin) {
|
|
|
2060
2576
|
}
|
|
2061
2577
|
function kimiCodePluginAttached() {
|
|
2062
2578
|
try {
|
|
2063
|
-
const installed = JSON.parse(readFileSync4(
|
|
2579
|
+
const installed = JSON.parse(readFileSync4(join6(kimiCodeHome(), "plugins", "installed.json"), "utf-8"));
|
|
2064
2580
|
return Array.isArray(installed.plugins) && installed.plugins.some((p) => p.id === SERVER_NAME && p.enabled !== false);
|
|
2065
2581
|
} catch {
|
|
2066
2582
|
return false;
|
|
@@ -2068,7 +2584,7 @@ function kimiCodePluginAttached() {
|
|
|
2068
2584
|
}
|
|
2069
2585
|
function kimiCodeMcpConfig() {
|
|
2070
2586
|
try {
|
|
2071
|
-
const raw = readFileSync4(
|
|
2587
|
+
const raw = readFileSync4(join6(kimiCodeHome(), "mcp.json"), "utf-8").trim();
|
|
2072
2588
|
return raw ? JSON.parse(raw) : {};
|
|
2073
2589
|
} catch {
|
|
2074
2590
|
return {};
|
|
@@ -2082,7 +2598,7 @@ var KIMI_CODE_FILE_OPS = {
|
|
|
2082
2598
|
attached: () => kimiCodePluginAttached() || kimiCodeMcpAttached(),
|
|
2083
2599
|
attach: (cmd) => {
|
|
2084
2600
|
if (kimiCodePluginAttached()) return;
|
|
2085
|
-
const path =
|
|
2601
|
+
const path = join6(kimiCodeHome(), "mcp.json");
|
|
2086
2602
|
const cfg = kimiCodeMcpConfig();
|
|
2087
2603
|
const servers = typeof cfg.mcpServers === "object" && cfg.mcpServers !== null ? cfg.mcpServers : {};
|
|
2088
2604
|
servers[SERVER_NAME] = { command: cmd.command, args: cmd.args };
|
|
@@ -2092,7 +2608,7 @@ var KIMI_CODE_FILE_OPS = {
|
|
|
2092
2608
|
`, "utf-8");
|
|
2093
2609
|
},
|
|
2094
2610
|
detach: () => {
|
|
2095
|
-
const path =
|
|
2611
|
+
const path = join6(kimiCodeHome(), "mcp.json");
|
|
2096
2612
|
if (!existsSync4(path)) return;
|
|
2097
2613
|
const cfg = kimiCodeMcpConfig();
|
|
2098
2614
|
const servers = cfg.mcpServers;
|
|
@@ -2325,7 +2841,7 @@ async function verifyServerLaunch(cmd = resolveLaunchCmd()) {
|
|
|
2325
2841
|
// src/core/doctor.ts
|
|
2326
2842
|
import { accessSync, constants, existsSync as existsSync5, readFileSync as readFileSync5 } from "fs";
|
|
2327
2843
|
import { createRequire } from "module";
|
|
2328
|
-
import { join as
|
|
2844
|
+
import { join as join7 } from "path";
|
|
2329
2845
|
var MIN_NODE_VERSION = [20, 19, 0];
|
|
2330
2846
|
function parseNodeVersion(version) {
|
|
2331
2847
|
const clean = version.startsWith("v") ? version.slice(1) : version;
|
|
@@ -2420,6 +2936,11 @@ function checkProviderCompatibility() {
|
|
|
2420
2936
|
detail: problems.slice(0, 3).join("; ") + (problems.length > 3 ? `; +${problems.length - 3} more` : "")
|
|
2421
2937
|
};
|
|
2422
2938
|
}
|
|
2939
|
+
function checkTools() {
|
|
2940
|
+
const statuses = detectToolStatuses();
|
|
2941
|
+
const detail = statuses.map((tool) => tool.installed ? `${tool.display_name}: installed, ${tool.state_means}: ${tool.state}` : `${tool.display_name}: missing`).join("; ");
|
|
2942
|
+
return { name: "tools", status: "ok", detail };
|
|
2943
|
+
}
|
|
2423
2944
|
function checkPathAccess(name, path) {
|
|
2424
2945
|
if (!existsSync5(path)) return { name, status: "warn", detail: `${path} (will be created on first use)` };
|
|
2425
2946
|
try {
|
|
@@ -2484,9 +3005,10 @@ function runDoctor() {
|
|
|
2484
3005
|
checkTmux(),
|
|
2485
3006
|
checkProviders(),
|
|
2486
3007
|
checkProviderCompatibility(),
|
|
3008
|
+
checkTools(),
|
|
2487
3009
|
checkPathAccess("state dir", stateRoot()),
|
|
2488
3010
|
checkPathAccess("runs dir", runsDir()),
|
|
2489
|
-
checkPathAccess("presets dir",
|
|
3011
|
+
checkPathAccess("presets dir", join7(stateRoot(), "presets")),
|
|
2490
3012
|
checkRunsState(),
|
|
2491
3013
|
checkWebExtras(),
|
|
2492
3014
|
checkMcpServerCommand()
|
|
@@ -2575,6 +3097,7 @@ export {
|
|
|
2575
3097
|
killAgent,
|
|
2576
3098
|
stopRun,
|
|
2577
3099
|
openTmuxTarget,
|
|
3100
|
+
detectToolStatuses,
|
|
2578
3101
|
resolveLaunchCmd,
|
|
2579
3102
|
hostStatus,
|
|
2580
3103
|
attach,
|
|
@@ -2585,4 +3108,4 @@ export {
|
|
|
2585
3108
|
checkTmux,
|
|
2586
3109
|
runDoctor
|
|
2587
3110
|
};
|
|
2588
|
-
//# sourceMappingURL=chunk-
|
|
3111
|
+
//# sourceMappingURL=chunk-LQLSTRGU.js.map
|