reevesagents 1.8.2 → 1.9.0

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DEFAULT_LANGUAGE
4
- } from "./chunk-HHNMES47.js";
4
+ } from "./chunk-BQQ37O7I.js";
5
5
 
6
6
  // src/i18n/locales/en.ts
7
7
  var en = {
@@ -170,6 +170,8 @@ var en = {
170
170
  "web.cancel": "Cancel",
171
171
  "web.closed": "closed",
172
172
  "web.config": "Config",
173
+ "web.themeDark": "Dark",
174
+ "web.themeLight": "Light",
173
175
  "web.configSubtitle": "Edit global settings.",
174
176
  "web.connecting": "connecting",
175
177
  "web.connectionError": "connection error",
@@ -4035,6 +4037,8 @@ var ru = {
4035
4037
  "web.cancel": "\u041E\u0442\u043C\u0435\u043D\u0430",
4036
4038
  "web.closed": "\u0437\u0430\u043A\u0440\u044B\u0442\u043E",
4037
4039
  "web.config": "\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F",
4040
+ "web.themeDark": "\u0422\u0451\u043C\u043D\u0430\u044F",
4041
+ "web.themeLight": "\u0421\u0432\u0435\u0442\u043B\u0430\u044F",
4038
4042
  "web.configSubtitle": "\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A.",
4039
4043
  "web.connecting": "\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435",
4040
4044
  "web.connectionError": "\u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F",
@@ -4355,6 +4359,7 @@ var ru = {
4355
4359
  "defaults to the run working dir": "\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u0440\u0430\u0431\u043E\u0447\u0430\u044F \u043F\u0430\u043F\u043A\u0430 run",
4356
4360
  "defaults to where you ran reevesagents": "\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u043F\u0430\u043F\u043A\u0430, \u043E\u0442\u043A\u0443\u0434\u0430 \u0437\u0430\u043F\u0443\u0449\u0435\u043D reevesagents",
4357
4361
  "default permissions": "\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",
4362
+ "web theme": "\u0422\u0435\u043C\u0430 \u0432\u0435\u0431-\u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430",
4358
4363
  "delete and return": "\u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F",
4359
4364
  "delete archived run": "\u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0430\u0440\u0445\u0438\u0432\u043D\u044B\u0439 run",
4360
4365
  "delete stopped run": "\u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0439 run",
@@ -5712,4 +5717,4 @@ export {
5712
5717
  localeCatalog,
5713
5718
  translatePhrase
5714
5719
  };
5715
- //# sourceMappingURL=chunk-BITRLLG5.js.map
5720
+ //# sourceMappingURL=chunk-D3FETB6O.js.map
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
28
28
  const { checkWebExtras, webExtrasMessage } = await import("./extras-MWGWGEPB.js");
29
29
  const extras = await checkWebExtras();
30
30
  if (!extras.ok) throw new Error(webExtrasMessage(extras.missing));
31
- const { startWebServer } = await import("./server-GJTDNSX7.js");
31
+ const { startWebServer } = await import("./server-3JMAMPN2.js");
32
32
  return startWebServer({ open: true });
33
33
  }
34
34
  async function closeTuiWebServer() {
@@ -48,4 +48,4 @@ export {
48
48
  startWebFromTui,
49
49
  closeTuiWebServer
50
50
  };
51
- //# sourceMappingURL=chunk-5K4BBZMS.js.map
51
+ //# sourceMappingURL=chunk-NHTL5RJP.js.map
@@ -55,6 +55,17 @@ Spawn several agents with run_id omitted so they land in one run, then poll each
55
55
  spawn { "provider": "kimi", "task": "worker: the docs" }
56
56
  Add "permissions": "skip" to a spawn only if the user explicitly asked for it.
57
57
 
58
+ ## Tools
59
+ list_tools lists the helper tool CLIs on this machine: what each is for,
60
+ whether it is installed, and signed in (Ollama: server reachable). They are
61
+ not spawn providers; run them from your own shell. Examples:
62
+ pplx search web "node 24 release date" --limit 3
63
+ colab --auth=oauth2 run job.py
64
+ hf download Qwen/Qwen3-0.6B config.json
65
+ ollama run gemma4:31b-cloud "summarize README.md"
66
+ Ollama cloud models (tagged -cloud or :cloud) run remotely on ollama.com;
67
+ plain model names need a local ollama server.
68
+
58
69
  ## Housekeeping
59
70
  - list shows every live run and agent; list_history shows ended ones.
60
71
  - reap ends zombie agents: any whose tmux window died, plus any older than
@@ -138,4 +149,4 @@ export {
138
149
  skillsStatus,
139
150
  removeSkills
140
151
  };
141
- //# sourceMappingURL=chunk-CR6PKNNA.js.map
152
+ //# sourceMappingURL=chunk-QIHT27ZG.js.map
package/dist/cli.js CHANGED
@@ -4,22 +4,22 @@ import {
4
4
  runOnboarding,
5
5
  suggestedAgentPrompt,
6
6
  writeTuiOpenToken
7
- } from "./chunk-KQ5HV63P.js";
7
+ } from "./chunk-22VBUVJW.js";
8
8
  import {
9
9
  installSkills,
10
10
  removeSkills,
11
11
  skillsStatus
12
- } from "./chunk-CR6PKNNA.js";
12
+ } from "./chunk-QIHT27ZG.js";
13
13
  import {
14
14
  MODEL_CATALOG
15
- } from "./chunk-EZJQYBYP.js";
15
+ } from "./chunk-BHNPWYPK.js";
16
16
  import {
17
17
  REEVESAGENTS_VERSION,
18
18
  listRunApprovals,
19
19
  resolveRunApproval,
20
20
  sweepAgents,
21
21
  sweepOrphanSessions
22
- } from "./chunk-4ARHWX5G.js";
22
+ } from "./chunk-6YDLG6FR.js";
23
23
  import {
24
24
  ALLOWED_KEYS,
25
25
  CONFIG_FIELDS,
@@ -35,6 +35,7 @@ import {
35
35
  deleteRunHistory,
36
36
  detach,
37
37
  detectAvailable,
38
+ detectToolStatuses,
38
39
  exactSession,
39
40
  hostStatus,
40
41
  interrupt,
@@ -65,7 +66,7 @@ import {
65
66
  verifyServerLaunch,
66
67
  windowByName,
67
68
  windowIds
68
- } from "./chunk-HHNMES47.js";
69
+ } from "./chunk-BQQ37O7I.js";
69
70
  import "./chunk-Q3WWQP2R.js";
70
71
 
71
72
  // src/surfaces/cli/index.ts
@@ -590,6 +591,23 @@ function registerProviders(program2) {
590
591
  });
591
592
  }
592
593
 
594
+ // src/surfaces/cli/tools.ts
595
+ function registerTools(program2) {
596
+ program2.command("tools").description("list helper tool CLIs (search, runtimes, model hub, local models) with install, sign-in or reachability state").option("--json", "output JSON array").action((opts) => {
597
+ const tools = detectToolStatuses();
598
+ if (opts.json) {
599
+ console.log(JSON.stringify(tools, null, 2));
600
+ return;
601
+ }
602
+ for (const tool of tools) {
603
+ const stateText = tool.installed ? `${tool.state_means}: ${tool.state}` : "not installed";
604
+ console.log(`${(tool.installed ? "ok" : "--").padEnd(3)} ${tool.id.padEnd(7)} ${tool.display_name.padEnd(18)} ${stateText}`);
605
+ console.log(` ${tool.purpose}`);
606
+ console.log(` ${tool.example}`);
607
+ }
608
+ });
609
+ }
610
+
593
611
  // src/surfaces/cli/approvals.ts
594
612
  function registerApprovals(program2) {
595
613
  program2.command("approvals").description("list pending approvals").option("--json", "output JSON array").action((opts) => {
@@ -817,7 +835,7 @@ function registerDetach(program2) {
817
835
  function registerMcp(program2) {
818
836
  program2.command("mcp").description("start the agent control MCP server over stdio (for CLIs that have it attached)").action(async () => {
819
837
  try {
820
- const { startAgentMcpServer } = await import("./server-5NKGREUJ.js");
838
+ const { startAgentMcpServer } = await import("./server-MXMN3MW7.js");
821
839
  await startAgentMcpServer();
822
840
  } catch (err) {
823
841
  console.error(err instanceof Error ? err.message : String(err));
@@ -915,7 +933,7 @@ async function runWeb(opts) {
915
933
  console.error(webExtrasMessage(extras.missing));
916
934
  process.exit(1);
917
935
  }
918
- const { startWebServer } = await import("./server-GJTDNSX7.js");
936
+ const { startWebServer } = await import("./server-3JMAMPN2.js");
919
937
  const parsed = opts.port ? Number.parseInt(opts.port, 10) : void 0;
920
938
  const handle = await startWebServer({
921
939
  port: parsed !== void 0 && Number.isFinite(parsed) ? parsed : void 0,
@@ -964,6 +982,7 @@ registerDeleteRun(program);
964
982
  registerHistory(program);
965
983
  registerDeleteHistory(program);
966
984
  registerProviders(program);
985
+ registerTools(program);
967
986
  registerApprovals(program);
968
987
  registerApprove(program);
969
988
  registerDeny(program);
@@ -986,12 +1005,12 @@ async function renderTui() {
986
1005
  const [{ default: React }, { render }, { Router }] = await Promise.all([
987
1006
  import("react"),
988
1007
  import("ink"),
989
- import("./router-SJOSRYLQ.js")
1008
+ import("./router-XZRLM7DN.js")
990
1009
  ]);
991
1010
  try {
992
1011
  await render(React.createElement(Router), { alternateScreen: false }).waitUntilExit();
993
1012
  } finally {
994
- const { closeTuiWebServer } = await import("./tui-launch-XYYH3XEY.js");
1013
+ const { closeTuiWebServer } = await import("./tui-launch-5IIO4JND.js");
995
1014
  await closeTuiWebServer();
996
1015
  }
997
1016
  process.exit(0);
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type Provider = 'cc' | 'codex' | 'opencode' | 'hermes' | 'kimi' | 'deepseek' | 'pi' | 'qwen' | 'aider';
1
+ type Provider = 'cc' | 'codex' | 'opencode' | 'hermes' | 'kimi' | 'deepseek' | 'pi' | 'qwen' | 'aider' | 'gemini' | 'cline' | 'crush' | 'goose' | 'kilo' | 'letta' | 'vibe' | 'grok' | 'kiro' | 'droid' | 'qoder' | 'warp' | 'junie' | 'copilot' | 'cursor' | 'rovo';
2
2
  type LanguageCode = 'en' | 'de' | 'fr' | 'es' | 'pt' | 'it' | 'tr' | 'ru' | 'zh-Hans' | 'ar';
3
3
  type Permissions = 'skip' | 'ask';
4
4
  type TaskStatus = 'queued' | 'working' | 'done' | 'failed' | 'blocked';
@@ -97,6 +97,7 @@ interface GlobalConfig {
97
97
  max_lifetime_ms: number;
98
98
  default_permissions: Permissions;
99
99
  language: LanguageCode;
100
+ web_theme: 'dark' | 'light';
100
101
  }
101
102
  interface Config {
102
103
  version: number;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  modelDisplayName,
7
7
  modelSourceForProvider,
8
8
  modelValuesForProvider
9
- } from "./chunk-EZJQYBYP.js";
9
+ } from "./chunk-BHNPWYPK.js";
10
10
  import {
11
11
  BIN,
12
12
  PROVIDERS,
@@ -39,7 +39,7 @@ import {
39
39
  startRun,
40
40
  stateRoot,
41
41
  stopRun
42
- } from "./chunk-HHNMES47.js";
42
+ } from "./chunk-BQQ37O7I.js";
43
43
  import "./chunk-Q3WWQP2R.js";
44
44
  export {
45
45
  BIN,
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  buildOnboardingState,
4
4
  readTuiOpenToken
5
- } from "./chunk-KQ5HV63P.js";
6
- import "./chunk-CR6PKNNA.js";
5
+ } from "./chunk-22VBUVJW.js";
6
+ import "./chunk-QIHT27ZG.js";
7
7
  import {
8
8
  translate,
9
9
  translatePhrase
10
- } from "./chunk-BITRLLG5.js";
10
+ } from "./chunk-D3FETB6O.js";
11
11
  import {
12
12
  modelDisplayName,
13
13
  modelValuesForProvider
14
- } from "./chunk-EZJQYBYP.js";
14
+ } from "./chunk-BHNPWYPK.js";
15
15
  import {
16
16
  REEVESAGENTS_VERSION,
17
17
  listRunApprovals,
18
18
  resolveRunApproval,
19
19
  sweepAgentsThrottled,
20
20
  sweepOrphanSessionsThrottled
21
- } from "./chunk-4ARHWX5G.js";
21
+ } from "./chunk-6YDLG6FR.js";
22
22
  import {
23
23
  CONFIG_FIELDS,
24
24
  DEFAULT_LANGUAGE,
@@ -70,11 +70,11 @@ import {
70
70
  startRunFromPreset,
71
71
  stateRoot,
72
72
  stopRun
73
- } from "./chunk-HHNMES47.js";
73
+ } from "./chunk-BQQ37O7I.js";
74
74
  import "./chunk-Q3WWQP2R.js";
75
75
  import {
76
76
  startWebFromTui
77
- } from "./chunk-5K4BBZMS.js";
77
+ } from "./chunk-NHTL5RJP.js";
78
78
 
79
79
  // src/surfaces/tui/router.tsx
80
80
  import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
@@ -5038,7 +5038,23 @@ var CONFIG_PATHS = {
5038
5038
  deepseek: "DEEPSEEK_MODEL / .env",
5039
5039
  pi: "~/.pi",
5040
5040
  qwen: "~/.qwen/settings.json",
5041
- aider: "~/.aider.conf.yml"
5041
+ aider: "~/.aider.conf.yml",
5042
+ gemini: "~/.gemini/settings.json",
5043
+ cline: "~/.cline",
5044
+ crush: "~/.config/crush",
5045
+ goose: "~/.config/goose/config.yaml",
5046
+ kilo: "~/.config/kilo/kilo.json",
5047
+ letta: "~/.letta/settings.json",
5048
+ vibe: "~/.vibe/config.toml",
5049
+ grok: "~/.grok/config.toml",
5050
+ kiro: "~/.kiro/settings/cli.json",
5051
+ droid: "~/.factory/settings.json",
5052
+ qoder: "~/.qoder/settings.json",
5053
+ warp: "~/.warp",
5054
+ junie: "~/.junie/config.json",
5055
+ copilot: "~/.copilot",
5056
+ cursor: "~/.cursor/cli-config.json",
5057
+ rovo: "~/.rovodev/config.yml"
5042
5058
  };
5043
5059
  var PROVIDER_LABEL_WIDTH = Math.max(...PROVIDERS.map((provider) => providerDisplayName(provider).length));
5044
5060
  var LANGUAGE_LABEL_WIDTH = Math.max(...LANGUAGE_OPTIONS.map((option) => option.nativeName.length + 3));
@@ -5633,7 +5649,8 @@ function Reference() {
5633
5649
  const { rows } = useWindowSize19();
5634
5650
  const bodyRows = frameBodyRows(rows, true, true);
5635
5651
  const compactBody = bodyRows <= 10;
5636
- const visibleCount = Math.max(1, compactBody ? bodyRows - 3 : bodyRows - 5);
5652
+ const sectionEndRows = CONTENT.filter((item) => item.type === "section").length;
5653
+ const visibleCount = Math.max(1, compactBody ? bodyRows - 3 : bodyRows - 3 - sectionEndRows);
5637
5654
  const maxScroll = Math.max(0, CONTENT.length - visibleCount);
5638
5655
  const [scroll, setScroll] = useState30(0);
5639
5656
  useInput25((_input, key) => {
@@ -6223,9 +6240,13 @@ function Config() {
6223
6240
  return;
6224
6241
  }
6225
6242
  const field = EDITABLE_FIELDS[selectedIdx];
6226
- if (field.kind === "permissions") {
6243
+ if (field.kind === "permissions" || field.kind === "web-theme") {
6227
6244
  if (key.leftArrow || key.rightArrow || key.return) {
6228
- applyValue(field.key, global[field.key] === "ask" ? "skip" : "ask");
6245
+ if (field.kind === "permissions") {
6246
+ applyValue(field.key, global[field.key] === "ask" ? "skip" : "ask");
6247
+ } else {
6248
+ applyValue(field.key, global.web_theme === "dark" ? "light" : "dark");
6249
+ }
6229
6250
  }
6230
6251
  return;
6231
6252
  }
@@ -6640,4 +6661,4 @@ export {
6640
6661
  nextHistoryOnReset,
6641
6662
  useRouter
6642
6663
  };
6643
- //# sourceMappingURL=router-SJOSRYLQ.js.map
6664
+ //# sourceMappingURL=router-XZRLM7DN.js.map
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  localeCatalog,
4
4
  translatePhrase
5
- } from "./chunk-BITRLLG5.js";
5
+ } from "./chunk-D3FETB6O.js";
6
6
  import {
7
7
  modelValuesForProvider
8
- } from "./chunk-EZJQYBYP.js";
8
+ } from "./chunk-BHNPWYPK.js";
9
9
  import {
10
10
  REEVESAGENTS_VERSION,
11
11
  listRunApprovals,
12
12
  resolveRunApproval,
13
13
  sweepAgentsThrottled,
14
14
  sweepOrphanSessionsThrottled
15
- } from "./chunk-4ARHWX5G.js";
15
+ } from "./chunk-6YDLG6FR.js";
16
16
  import {
17
17
  CONFIG_FIELDS,
18
18
  LANGUAGE_OPTIONS,
@@ -54,7 +54,7 @@ import {
54
54
  targetExists,
55
55
  tmuxAvailable,
56
56
  verifyServerLaunch
57
- } from "./chunk-HHNMES47.js";
57
+ } from "./chunk-BQQ37O7I.js";
58
58
  import "./chunk-Q3WWQP2R.js";
59
59
 
60
60
  // src/surfaces/webui/server.ts
@@ -456,7 +456,8 @@ var STATIC_ROUTES = {
456
456
  "/xterm.css": { file: "xterm.css", type: "text/css; charset=utf-8" },
457
457
  "/xterm.js": { file: "xterm.js", type: "text/javascript; charset=utf-8" },
458
458
  "/addon-fit.js": { file: "addon-fit.js", type: "text/javascript; charset=utf-8" },
459
- "/brand-duck.json": { file: "brand-duck.json", type: "application/json; charset=utf-8" }
459
+ "/brand-duck.json": { file: "brand-duck.json", type: "application/json; charset=utf-8" },
460
+ "/favicon.png": { file: "favicon.png", type: "image/png" }
460
461
  };
461
462
  function errMessage(err) {
462
463
  return err instanceof Error ? err.message : String(err);
@@ -677,7 +678,8 @@ function updateConfigAction(body) {
677
678
  if (body[field.key] !== void 0) patch[field.key] = body[field.key];
678
679
  }
679
680
  if (Object.keys(patch).length === 0) throw new Error("no config fields to set");
680
- return { config: setConfigValues(patch).global };
681
+ setConfigValues(patch);
682
+ return configPayload();
681
683
  }
682
684
  function presetsPayload() {
683
685
  return { presets: listPresets() };
@@ -753,6 +755,7 @@ async function handleRequest(req, res, ctx) {
753
755
  ...buildWebState(),
754
756
  providers: listWebProviders(),
755
757
  language: webLanguagePayload(),
758
+ web_theme: loadConfig().global.web_theme,
756
759
  version: REEVESAGENTS_VERSION
757
760
  });
758
761
  return;
@@ -1022,4 +1025,4 @@ async function startWebServer(options = {}) {
1022
1025
  export {
1023
1026
  startWebServer
1024
1027
  };
1025
- //# sourceMappingURL=server-GJTDNSX7.js.map
1028
+ //# sourceMappingURL=server-3JMAMPN2.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  installSkills,
4
4
  skillsStatus
5
- } from "./chunk-CR6PKNNA.js";
5
+ } from "./chunk-QIHT27ZG.js";
6
6
  import {
7
7
  REEVESAGENTS_VERSION,
8
8
  createRunApproval,
@@ -13,7 +13,7 @@ import {
13
13
  sweepAgentsThrottled,
14
14
  sweepOrphanSessions,
15
15
  sweepOrphanSessionsThrottled
16
- } from "./chunk-4ARHWX5G.js";
16
+ } from "./chunk-6YDLG6FR.js";
17
17
  import {
18
18
  ALLOWED_KEYS,
19
19
  BIN,
@@ -28,6 +28,7 @@ import {
28
28
  deleteRunHistory,
29
29
  detach,
30
30
  detectAvailable,
31
+ detectToolStatuses,
31
32
  findAgent,
32
33
  hostStatus,
33
34
  interrupt,
@@ -51,7 +52,7 @@ import {
51
52
  startRunFromPreset,
52
53
  startRunWithHead,
53
54
  stopRun
54
- } from "./chunk-HHNMES47.js";
55
+ } from "./chunk-BQQ37O7I.js";
55
56
  import "./chunk-Q3WWQP2R.js";
56
57
 
57
58
  // src/surfaces/mcp/server.ts
@@ -331,6 +332,12 @@ var TOOLS = [
331
332
  inputSchema: { type: "object", properties: {} },
332
333
  handler: () => ok(buildProviderCatalog())
333
334
  },
335
+ {
336
+ name: "list_tools",
337
+ description: "List the helper tool CLIs on this machine (Perplexity, Google Colab, Hugging Face, Ollama): what each is for, whether it is installed, and its state (signed in, or reachable for Ollama), plus an example command and a docs link. They are not spawn providers; run them from your own shell.",
338
+ inputSchema: { type: "object", properties: {} },
339
+ handler: () => ok(detectToolStatuses())
340
+ },
334
341
  {
335
342
  name: "request_approval",
336
343
  description: "Ask for approval before a risky action. Creates a pending approval that a human or another agent clears with resolve_approval, and returns it with its approval_id.",
@@ -495,7 +502,8 @@ var TOOLS = [
495
502
  ready_delay_ms: { type: "number", description: "Delay before the startup prompt is injected." },
496
503
  max_lifetime_ms: { type: "number", description: "Auto-reap any agent older than this many ms on the next sweep. 0 disables lifetime reaping." },
497
504
  default_permissions: { type: "string", enum: ["ask", "skip"], description: "Permission mode used when a spawn omits one." },
498
- language: { type: "string", description: "UI language code for the TUI and web UI, e.g. en, tr." }
505
+ language: { type: "string", description: "UI language code for the TUI and web UI, e.g. en, tr." },
506
+ web_theme: { type: "string", enum: ["dark", "light"], description: "Web UI appearance." }
499
507
  }
500
508
  },
501
509
  handler: (a) => {
@@ -719,4 +727,4 @@ export {
719
727
  sessionRunIsLive,
720
728
  startAgentMcpServer
721
729
  };
722
- //# sourceMappingURL=server-5NKGREUJ.js.map
730
+ //# sourceMappingURL=server-MXMN3MW7.js.map
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  closeTuiWebServer,
4
4
  startWebFromTui
5
- } from "./chunk-5K4BBZMS.js";
5
+ } from "./chunk-NHTL5RJP.js";
6
6
  export {
7
7
  closeTuiWebServer,
8
8
  startWebFromTui
9
9
  };
10
- //# sourceMappingURL=tui-launch-XYYH3XEY.js.map
10
+ //# sourceMappingURL=tui-launch-5IIO4JND.js.map
package/dist/web/app.css CHANGED
@@ -55,6 +55,47 @@
55
55
  --topbar-h: 58px;
56
56
  }
57
57
 
58
+ :root[data-theme="light"] {
59
+ color-scheme: light;
60
+ --bg: #f4f7fb;
61
+ --bg-raised: #ffffff;
62
+ --panel: #ffffff;
63
+ --panel-2: #f1f5f9;
64
+ --panel-3: #e6edf4;
65
+ --terminal: #f7f9fc;
66
+ --border: #c4d0dc;
67
+ --border-soft: #d8e1ea;
68
+ --border-faint: #e7edf3;
69
+ --text: #1b2835;
70
+ --dim: #46596a;
71
+ --muted: #5d7182;
72
+ --faint: #718393;
73
+ --accent: #1763aa;
74
+ --accent-ink: #ffffff;
75
+ --accent-soft: #dcecfb;
76
+ --warm: #93630e;
77
+ --teal: #20776f;
78
+ --rose: #a83e68;
79
+ --violet: #694aa0;
80
+ --ok: #357343;
81
+ --warn: #93630e;
82
+ --error: #b43b37;
83
+ --shadow-soft: 0 16px 42px rgba(37, 57, 77, 0.12);
84
+ --shadow-tight: 0 8px 24px rgba(37, 57, 77, 0.1);
85
+ }
86
+
87
+ :root[data-theme="light"] .stage-head {
88
+ background: rgba(255, 255, 255, 0.82);
89
+ }
90
+
91
+ :root[data-theme="light"] .stage-overlay {
92
+ background: linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(247, 249, 252, 0.9));
93
+ }
94
+
95
+ :root[data-theme="light"] .mcp-host-row {
96
+ background: var(--panel-2);
97
+ }
98
+
58
99
  * { box-sizing: border-box; }
59
100
 
60
101
  html,
package/dist/web/app.js CHANGED
@@ -6,17 +6,29 @@
6
6
  (() => {
7
7
  'use strict'
8
8
 
9
- const TERM_THEME = {
10
- background: '#15191f',
11
- foreground: '#ece7dc',
12
- cursor: '#7eb8f5',
13
- selectionBackground: '#3a4b5f',
14
- black: '#15191f', brightBlack: '#817b70',
15
- red: '#d56a60', brightRed: '#d56a60',
16
- green: '#83a36f', brightGreen: '#83a36f',
17
- yellow: '#d7a84f', brightYellow: '#d7a84f',
18
- blue: '#7eb8f5', brightBlue: '#7eb8f5',
19
- white: '#ece7dc', brightWhite: '#ffffff',
9
+ const TERM_THEMES = {
10
+ dark: {
11
+ background: '#15191f',
12
+ foreground: '#ece7dc',
13
+ cursor: '#7eb8f5',
14
+ selectionBackground: '#3a4b5f',
15
+ black: '#15191f', brightBlack: '#817b70',
16
+ red: '#d56a60', brightRed: '#d56a60',
17
+ green: '#83a36f', brightGreen: '#83a36f',
18
+ yellow: '#d7a84f', brightYellow: '#d7a84f',
19
+ blue: '#7eb8f5', brightBlue: '#7eb8f5',
20
+ white: '#ece7dc', brightWhite: '#ffffff',
21
+ },
22
+ light: {
23
+ background: '#f7f9fc', foreground: '#25313d', cursor: '#1763aa',
24
+ selectionBackground: '#bfd8f1',
25
+ black: '#25313d', brightBlack: '#687987',
26
+ red: '#b43b37', brightRed: '#c44b45',
27
+ green: '#367342', brightGreen: '#448b50',
28
+ yellow: '#916009', brightYellow: '#a67311',
29
+ blue: '#1763aa', brightBlue: '#287ac3',
30
+ white: '#5d6874', brightWhite: '#334252',
31
+ },
20
32
  }
21
33
 
22
34
  const WEB_EN = {
@@ -152,6 +164,8 @@
152
164
  'web.mcpAttachAllError': 'Could not attach all: {{message}}',
153
165
  'web.mcpLoadError': 'Could not load MCP hosts: {{message}}',
154
166
  'web.config': 'Config',
167
+ 'web.themeDark': 'Dark',
168
+ 'web.themeLight': 'Light',
155
169
  'web.presets': 'Presets',
156
170
  'web.doctor': 'Doctor',
157
171
  'web.about': 'About',
@@ -287,6 +301,7 @@
287
301
  let providers = []
288
302
  let appVersion = ''
289
303
  let language = 'en'
304
+ let webTheme = 'dark'
290
305
  let languages = []
291
306
  let messages = WEB_EN
292
307
  let welcomeChecked = false
@@ -337,6 +352,7 @@
337
352
  approvals = data.approvals || []
338
353
  appVersion = data.version || ''
339
354
  applyLanguage(data.language)
355
+ applyTheme(data.web_theme)
340
356
  renderProviders()
341
357
  renderSidebar()
342
358
  reconcileCreateDialog()
@@ -1216,6 +1232,12 @@
1216
1232
  session = null
1217
1233
  }
1218
1234
 
1235
+ function applyTheme(value) {
1236
+ webTheme = value === 'light' ? 'light' : 'dark'
1237
+ document.documentElement.dataset.theme = webTheme
1238
+ if (session) session.term.options.theme = TERM_THEMES[webTheme]
1239
+ }
1240
+
1219
1241
  function attach(id) {
1220
1242
  if (session && session.id === id) return
1221
1243
  const found = findAgent(id)
@@ -1237,7 +1259,7 @@
1237
1259
  fontFamily: 'ui-monospace, "SF Mono", Menlo, monospace',
1238
1260
  fontSize: 13,
1239
1261
  cursorBlink: true,
1240
- theme: TERM_THEME,
1262
+ theme: TERM_THEMES[webTheme],
1241
1263
  scrollback: 5000,
1242
1264
  })
1243
1265
  const fit = new FitAddon.FitAddon()
@@ -1903,6 +1925,7 @@
1903
1925
  try {
1904
1926
  const payload = await api('GET', '/api/config')
1905
1927
  renderConfigFields(payload)
1928
+ applyTheme(payload.config.web_theme)
1906
1929
  } catch (err) {
1907
1930
  el.configList.textContent = ''
1908
1931
  el.configError.hidden = false
@@ -1921,16 +1944,19 @@
1921
1944
  label.className = 'field-label'
1922
1945
  label.textContent = field.label
1923
1946
  row.appendChild(label)
1924
- if (field.kind === 'permissions') {
1947
+ if (field.kind === 'permissions' || field.kind === 'web-theme') {
1925
1948
  const select = document.createElement('select')
1926
1949
  select.dataset.key = field.key
1927
- for (const value of ['ask', 'skip']) {
1950
+ const values = field.kind === 'web-theme' ? ['dark', 'light'] : ['ask', 'skip']
1951
+ for (const value of values) {
1928
1952
  const opt = document.createElement('option')
1929
1953
  opt.value = value
1930
- opt.textContent = value === 'ask' ? t('web.askFirst') : t('web.skipPrompts')
1954
+ opt.textContent = field.kind === 'web-theme'
1955
+ ? t(value === 'light' ? 'web.themeLight' : 'web.themeDark')
1956
+ : t(value === 'ask' ? 'web.askFirst' : 'web.skipPrompts')
1931
1957
  select.appendChild(opt)
1932
1958
  }
1933
- select.value = config[field.key] === 'skip' ? 'skip' : 'ask'
1959
+ select.value = config[field.key] || values[0]
1934
1960
  row.appendChild(select)
1935
1961
  } else {
1936
1962
  const input = document.createElement('input')
@@ -1955,6 +1981,7 @@
1955
1981
  try {
1956
1982
  const payload = await api('POST', '/api/config', patch)
1957
1983
  renderConfigFields(payload)
1984
+ applyTheme(payload.config.web_theme)
1958
1985
  } catch (err) {
1959
1986
  el.configError.hidden = false
1960
1987
  el.configError.textContent = err.message
Binary file
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <meta name="color-scheme" content="dark" />
7
6
  <title>ReevesAgents web</title>
7
+ <link rel="icon" type="image/png" sizes="128x128" href="favicon.png" />
8
8
  <link rel="stylesheet" href="xterm.css" />
9
9
  <link rel="stylesheet" href="app.css" />
10
10
  </head>