@agentprojectcontext/apx 1.37.0 → 1.38.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.
Files changed (68) hide show
  1. package/README.md +11 -0
  2. package/package.json +1 -1
  3. package/src/core/mascot.js +80 -80
  4. package/src/interfaces/web/dist/assets/index-CQc_5t8F.js +629 -0
  5. package/src/interfaces/web/dist/assets/index-CQc_5t8F.js.map +1 -0
  6. package/src/interfaces/web/dist/assets/{index-B6sYFQFa.css → index-hwxuTPcK.css} +1 -1
  7. package/src/interfaces/web/dist/index.html +2 -2
  8. package/src/interfaces/web/src/App.tsx +15 -24
  9. package/src/interfaces/web/src/components/ModelCombobox.tsx +1 -1
  10. package/src/interfaces/web/src/components/Roby.tsx +96 -0
  11. package/src/interfaces/web/src/components/TelegramChannelDialog.tsx +11 -11
  12. package/src/interfaces/web/src/components/TelegramSendDialog.tsx +5 -5
  13. package/src/interfaces/web/src/components/chat/MessageBubble.tsx +2 -2
  14. package/src/interfaces/web/src/components/chat/ModelPicker.tsx +5 -5
  15. package/src/interfaces/web/src/components/chat/ToolCall.tsx +23 -19
  16. package/src/interfaces/web/src/components/code/CodeArtifactsTab.tsx +10 -10
  17. package/src/interfaces/web/src/components/code/CodeContextTab.tsx +7 -7
  18. package/src/interfaces/web/src/components/code/CodeProjectPicker.tsx +3 -2
  19. package/src/interfaces/web/src/components/common/TabNav.tsx +3 -2
  20. package/src/interfaces/web/src/components/config/ConfigTabsEditor.tsx +3 -2
  21. package/src/interfaces/web/src/components/config/GlobalConfigEditor.tsx +2 -2
  22. package/src/interfaces/web/src/components/config/global-config-sections.ts +9 -9
  23. package/src/interfaces/web/src/components/config/project-config-sections.ts +61 -54
  24. package/src/interfaces/web/src/components/deck/DaemonCard.tsx +6 -5
  25. package/src/interfaces/web/src/components/inputs/KeyValueList.tsx +5 -4
  26. package/src/interfaces/web/src/components/inputs/VarTokenInput.tsx +3 -3
  27. package/src/interfaces/web/src/components/layout/ProjectSidebar.tsx +22 -9
  28. package/src/interfaces/web/src/components/settings/AdvancedPanel.tsx +1 -1
  29. package/src/interfaces/web/src/components/settings/AppearancePanel.tsx +1 -1
  30. package/src/interfaces/web/src/components/settings/DefaultRouterCard.tsx +14 -14
  31. package/src/interfaces/web/src/components/settings/DevicesPanel.tsx +3 -3
  32. package/src/interfaces/web/src/components/settings/EnginesPanel.tsx +7 -7
  33. package/src/interfaces/web/src/components/settings/IdentityPanel.tsx +2 -2
  34. package/src/interfaces/web/src/components/settings/MemoryPanel.tsx +37 -37
  35. package/src/interfaces/web/src/components/settings/SkillsInspectorPanel.tsx +44 -35
  36. package/src/interfaces/web/src/components/settings/SuperAgentPanel.tsx +5 -5
  37. package/src/interfaces/web/src/components/settings/TelegramChannelsPanel.tsx +3 -3
  38. package/src/interfaces/web/src/components/settings/TelegramContactsPanel.tsx +1 -1
  39. package/src/interfaces/web/src/components/settings/TelegramGlobalPanel.tsx +3 -3
  40. package/src/interfaces/web/src/components/settings/TelegramRolesPanel.tsx +1 -1
  41. package/src/interfaces/web/src/components/settings/providers/ProviderCard.tsx +6 -6
  42. package/src/interfaces/web/src/components/settings/providers/ProviderModal.tsx +36 -36
  43. package/src/interfaces/web/src/components/voice/VoiceProviderList.tsx +15 -14
  44. package/src/interfaces/web/src/components/voice/VoiceProviderModal.tsx +22 -22
  45. package/src/interfaces/web/src/components/voice/VoiceSttCard.tsx +18 -17
  46. package/src/interfaces/web/src/components/voice/VoiceTestCard.tsx +19 -18
  47. package/src/interfaces/web/src/hooks/useChat.ts +6 -5
  48. package/src/interfaces/web/src/i18n/en.ts +517 -1
  49. package/src/interfaces/web/src/i18n/es.ts +517 -1
  50. package/src/interfaces/web/src/i18n/index.ts +1 -1
  51. package/src/interfaces/web/src/lib/api/voice.ts +5 -5
  52. package/src/interfaces/web/src/screens/ProjectScreen.tsx +14 -1
  53. package/src/interfaces/web/src/screens/SettingsScreen.tsx +1 -1
  54. package/src/interfaces/web/src/screens/base/AgentDefaultsTab.tsx +8 -8
  55. package/src/interfaces/web/src/screens/base/ComingSoon.tsx +3 -2
  56. package/src/interfaces/web/src/screens/modules/CodeScreen.tsx +12 -12
  57. package/src/interfaces/web/src/screens/modules/DeckScreen.tsx +15 -15
  58. package/src/interfaces/web/src/screens/modules/DesktopScreen.tsx +37 -37
  59. package/src/interfaces/web/src/screens/modules/VoiceScreen.tsx +8 -8
  60. package/src/interfaces/web/src/screens/project/AgentBrainGraph.tsx +16 -10
  61. package/src/interfaces/web/src/screens/project/AgentDetailScreen.tsx +25 -24
  62. package/src/interfaces/web/src/screens/project/ChatTab.tsx +2 -2
  63. package/src/interfaces/web/src/screens/project/ConfigTab.tsx +3 -3
  64. package/src/interfaces/web/src/screens/project/McpsTab.tsx +6 -9
  65. package/src/interfaces/web/src/screens/project/RoutinesTab.tsx +66 -52
  66. package/src/interfaces/web/src/screens/project/TelegramTab.tsx +1 -1
  67. package/src/interfaces/web/dist/assets/index-DsADpObh.js +0 -633
  68. package/src/interfaces/web/dist/assets/index-DsADpObh.js.map +0 -1
@@ -5,38 +5,38 @@ export const GLOBAL_CONFIG_SECTIONS: ConfigSection[] = [
5
5
  {
6
6
  key: "daemon",
7
7
  label: "Daemon",
8
- description: "~/.apx/config.json. Config general APX.",
8
+ description: "~/.apx/config.json. General APX config.",
9
9
  fields: [
10
10
  { path: "port", label: "Port", kind: "number", placeholder: "7430" },
11
11
  { path: "host", label: "Host", placeholder: "127.0.0.1" },
12
12
  { path: "log_level", label: "Log level", placeholder: "info" },
13
- { path: "user.language", label: "Idioma", placeholder: "es" },
14
- { path: "user.locale", label: "Locale", placeholder: "es-AR" },
13
+ { path: "user.language", label: "Language", placeholder: "en" },
14
+ { path: "user.locale", label: "Locale", placeholder: "en-US" },
15
15
  { path: "user.timezone", label: "Timezone", placeholder: "America/Argentina/Salta" },
16
16
  ],
17
17
  },
18
18
  {
19
19
  key: "super-agent",
20
- label: "Super-agente",
20
+ label: "Super-agent",
21
21
  fields: [
22
- { path: "super_agent.enabled", label: "Super-agente habilitado", kind: "boolean" },
23
- { path: "super_agent.model", label: "Modelo", placeholder: "gemini:gemini-2.5-flash" },
22
+ { path: "super_agent.enabled", label: "Super-agent enabled", kind: "boolean" },
23
+ { path: "super_agent.model", label: "Model", placeholder: "gemini:gemini-2.5-flash" },
24
24
  {
25
25
  path: "super_agent.permission_mode",
26
26
  label: "Permission mode",
27
27
  kind: "select",
28
28
  options: PERMISSION_MODES.map((mode) => ({ value: mode, label: mode })),
29
29
  },
30
- { path: "super_agent.system", label: "Prompt extra", kind: "textarea" },
30
+ { path: "super_agent.system", label: "Extra prompt", kind: "textarea" },
31
31
  ],
32
32
  },
33
33
  {
34
34
  key: "telegram",
35
35
  label: "Telegram",
36
36
  fields: [
37
- { path: "telegram.enabled", label: "Polling habilitado", kind: "boolean" },
37
+ { path: "telegram.enabled", label: "Polling enabled", kind: "boolean" },
38
38
  { path: "telegram.poll_interval_ms", label: "Poll interval ms", kind: "number", placeholder: "1500" },
39
- { path: "telegram.respond_with_engine", label: "Responder con engine", kind: "boolean" },
39
+ { path: "telegram.respond_with_engine", label: "Respond with engine", kind: "boolean" },
40
40
  { path: "telegram.route_to_agent", label: "Route to agent", placeholder: "master" },
41
41
  { path: "telegram.channels.0.chat_id", label: "Default chat ID" },
42
42
  { path: "telegram.channels.0.bot_token", label: "Default bot token", kind: "password" },
@@ -1,58 +1,65 @@
1
1
  import type { ConfigSection } from "./ConfigTabsEditor";
2
2
  import { PERMISSION_MODES } from "../../constants";
3
+ import { t } from "../../i18n";
3
4
 
4
- export const PROJECT_OVERRIDE_SECTIONS: ConfigSection[] = [
5
- {
6
- key: "routing",
7
- label: "Overrides",
8
- description: ".apc/config.json. Sólo valores propios del proyecto; vacío hereda global/effective.",
9
- fields: [
10
- { path: "route_to_agent", label: "Route to agent", placeholder: "master" },
11
- { path: "super_agent.model", label: "Super-agent model" },
12
- {
13
- path: "super_agent.permission_mode",
14
- label: "Permission mode",
15
- kind: "select",
16
- options: PERMISSION_MODES.map((mode) => ({ value: mode, label: mode })),
17
- },
18
- { path: "super_agent.system", label: "Prompt extra", kind: "textarea" },
19
- ],
20
- },
21
- {
22
- key: "telegram",
23
- label: "Telegram",
24
- fields: [
25
- { path: "telegram.route_to_agent", label: "Route to agent" },
26
- { path: "telegram.chat_id", label: "Chat ID" },
27
- { path: "telegram.bot_token", label: "Bot token", kind: "password" },
28
- { path: "telegram.respond_with_engine", label: "Responder con engine", kind: "boolean" },
29
- ],
30
- },
31
- {
32
- key: "engines",
33
- label: "Engines",
34
- fields: [
35
- { path: "engines.ollama.base_url", label: "Ollama URL" },
36
- { path: "engines.anthropic.api_key", label: "Anthropic API key", kind: "password" },
37
- { path: "engines.openai.api_key", label: "OpenAI API key", kind: "password" },
38
- { path: "engines.groq.api_key", label: "Groq API key", kind: "password" },
39
- { path: "engines.openrouter.api_key", label: "OpenRouter API key", kind: "password" },
40
- { path: "engines.gemini.api_key", label: "Gemini API key", kind: "password" },
41
- ],
42
- },
43
- ];
5
+ // These are functions (not module-level consts) so t() runs per-render with the
6
+ // active locale — a frozen const would lock the strings to the locale at import.
7
+ export function projectOverrideSections(): ConfigSection[] {
8
+ return [
9
+ {
10
+ key: "routing",
11
+ label: t("settings_ui.cfg_overrides_label"),
12
+ description: t("settings_ui.cfg_overrides_desc"),
13
+ fields: [
14
+ { path: "route_to_agent", label: t("settings_ui.cfg_route_to_agent"), placeholder: "master" },
15
+ { path: "super_agent.model", label: t("settings_ui.cfg_super_agent_model") },
16
+ {
17
+ path: "super_agent.permission_mode",
18
+ label: t("settings_ui.cfg_permission_mode"),
19
+ kind: "select",
20
+ options: PERMISSION_MODES.map((mode) => ({ value: mode, label: mode })),
21
+ },
22
+ { path: "super_agent.system", label: t("settings_ui.cfg_extra_prompt"), kind: "textarea" },
23
+ ],
24
+ },
25
+ {
26
+ key: "telegram",
27
+ label: t("settings_ui.cfg_telegram_label"),
28
+ fields: [
29
+ { path: "telegram.route_to_agent", label: t("settings_ui.cfg_route_to_agent") },
30
+ { path: "telegram.chat_id", label: t("settings_ui.cfg_chat_id") },
31
+ { path: "telegram.bot_token", label: t("settings_ui.cfg_bot_token"), kind: "password" },
32
+ { path: "telegram.respond_with_engine", label: t("settings_ui.cfg_respond_with_engine"), kind: "boolean" },
33
+ ],
34
+ },
35
+ {
36
+ key: "engines",
37
+ label: t("settings_ui.cfg_engines_label"),
38
+ fields: [
39
+ { path: "engines.ollama.base_url", label: t("settings_ui.cfg_ollama_url") },
40
+ { path: "engines.anthropic.api_key", label: t("settings_ui.cfg_anthropic_key"), kind: "password" },
41
+ { path: "engines.openai.api_key", label: t("settings_ui.cfg_openai_key"), kind: "password" },
42
+ { path: "engines.groq.api_key", label: t("settings_ui.cfg_groq_key"), kind: "password" },
43
+ { path: "engines.openrouter.api_key", label: t("settings_ui.cfg_openrouter_key"), kind: "password" },
44
+ { path: "engines.gemini.api_key", label: t("settings_ui.cfg_gemini_key"), kind: "password" },
45
+ ],
46
+ },
47
+ ];
48
+ }
44
49
 
45
- export const APC_PROJECT_SECTIONS: ConfigSection[] = [
46
- {
47
- key: "identity",
48
- label: "Proyecto",
49
- description: ".apc/project.json. Metadata APC portable; no secrets, no runtime.",
50
- fields: [
51
- { path: "name", label: "Name" },
52
- { path: "version", label: "Version" },
53
- { path: "apf", label: "APC spec" },
54
- { path: "apx", label: "APX install state" },
55
- { path: "apx_id", label: "APX storage id" },
56
- ],
57
- },
58
- ];
50
+ export function apcProjectSections(): ConfigSection[] {
51
+ return [
52
+ {
53
+ key: "identity",
54
+ label: t("settings_ui.cfg_project_label"),
55
+ description: t("settings_ui.cfg_project_desc"),
56
+ fields: [
57
+ { path: "name", label: t("settings_ui.cfg_name") },
58
+ { path: "version", label: t("settings_ui.cfg_version") },
59
+ { path: "apf", label: t("settings_ui.cfg_apc_spec") },
60
+ { path: "apx", label: t("settings_ui.cfg_apx_install") },
61
+ { path: "apx_id", label: t("settings_ui.cfg_apx_storage_id") },
62
+ ],
63
+ },
64
+ ];
65
+ }
@@ -1,4 +1,5 @@
1
1
  import { Badge } from "../ui";
2
+ import { t } from "../../i18n";
2
3
  import type { DeckManifest } from "../../lib/api/deck";
3
4
 
4
5
  function uptimeHuman(s: number): string {
@@ -26,7 +27,7 @@ export function DaemonCard({ manifest }: DaemonCardProps) {
26
27
  </span>
27
28
  <div className="flex items-center gap-1.5">
28
29
  <span className="size-2 rounded-full bg-emerald-500" />
29
- <span className="text-muted-fg">activo · {uptimeHuman(d.uptime_s)}</span>
30
+ <span className="text-muted-fg">{t("modules_ui.deck_daemon_active", { uptime: uptimeHuman(d.uptime_s) })}</span>
30
31
  </div>
31
32
  </div>
32
33
 
@@ -36,7 +37,7 @@ export function DaemonCard({ manifest }: DaemonCardProps) {
36
37
  </span>
37
38
  <span className="text-muted-fg">·</span>
38
39
  <span className="text-muted-fg">
39
- iniciado{" "}
40
+ {t("modules_ui.deck_daemon_started")}{" "}
40
41
  {new Date(d.started_at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}
41
42
  </span>
42
43
  </div>
@@ -44,13 +45,13 @@ export function DaemonCard({ manifest }: DaemonCardProps) {
44
45
  {/* Safety summary */}
45
46
  <div className="mt-2.5 flex flex-wrap gap-1.5">
46
47
  {s.direct_shell === false && (
47
- <Badge tone="success">sin shell directo</Badge>
48
+ <Badge tone="success">{t("modules_ui.deck_safety_no_shell")}</Badge>
48
49
  )}
49
50
  {s.arbitrary_commands === false && (
50
- <Badge tone="success">comandos arbitrarios bloqueados</Badge>
51
+ <Badge tone="success">{t("modules_ui.deck_safety_no_arbitrary")}</Badge>
51
52
  )}
52
53
  {s.dangerous_actions_require_confirmation && (
53
- <Badge tone="info">acciones peligrosas requieren confirmación</Badge>
54
+ <Badge tone="info">{t("modules_ui.deck_safety_confirm")}</Badge>
54
55
  )}
55
56
  </div>
56
57
  </div>
@@ -1,6 +1,7 @@
1
1
  import { Plus, Trash2 } from "lucide-react";
2
2
  import { Button, Input } from "../ui";
3
3
  import { VarTokenInput } from "./VarTokenInput";
4
+ import { t } from "../../i18n";
4
5
 
5
6
  // Editable list of {key,value} pairs. Used for MCP env (stdio) and headers
6
7
  // (http). Values are run through VarTokenInput so `${var.X}` references
@@ -38,8 +39,8 @@ interface KeyValueListProps {
38
39
  export function KeyValueList({
39
40
  rows,
40
41
  onChange,
41
- keyPlaceholder = "KEY",
42
- valuePlaceholder = "value",
42
+ keyPlaceholder = t("shared_ui.kv_key_ph"),
43
+ valuePlaceholder = t("shared_ui.kv_value_ph"),
43
44
  varNames,
44
45
  onCreateVar,
45
46
  emptyLabel,
@@ -79,14 +80,14 @@ export function KeyValueList({
79
80
  size="sm"
80
81
  variant="ghost"
81
82
  onClick={() => remove(i)}
82
- aria-label="quitar fila"
83
+ aria-label={t("shared_ui.remove_row")}
83
84
  >
84
85
  <Trash2 size={13} />
85
86
  </Button>
86
87
  </div>
87
88
  ))}
88
89
  <Button type="button" size="sm" variant="ghost" onClick={add}>
89
- <Plus size={12} /> Agregar fila
90
+ <Plus size={12} /> {t("shared_ui.add_row")}
90
91
  </Button>
91
92
  </div>
92
93
  );
@@ -366,13 +366,13 @@ function VarPickerPopover({
366
366
  ref={inputRef}
367
367
  value={query}
368
368
  onChange={(e) => onQuery(e.target.value)}
369
- placeholder="buscar variable…"
369
+ placeholder={t("shared_ui.search_variable_ph")}
370
370
  className="w-full rounded bg-muted/40 px-2 py-1 text-xs font-mono outline-none"
371
371
  />
372
372
  </div>
373
373
  <ul className="max-h-44 overflow-auto p-1 text-xs">
374
374
  {varNames.length === 0 && (
375
- <li className="px-2 py-1.5 text-muted-foreground">sin coincidencias</li>
375
+ <li className="px-2 py-1.5 text-muted-foreground">{t("shared_ui.no_matches")}</li>
376
376
  )}
377
377
  {varNames.map((n) => (
378
378
  <li key={n}>
@@ -399,7 +399,7 @@ function VarPickerPopover({
399
399
  }}
400
400
  className="flex w-full items-center gap-1 rounded px-2 py-1.5 text-left text-xs hover:bg-muted/60"
401
401
  >
402
- <Plus size={12} /> Crear nueva variable…
402
+ <Plus size={12} /> {t("shared_ui.create_variable")}
403
403
  </button>
404
404
  </div>
405
405
  )}
@@ -3,7 +3,7 @@
3
3
  // projects column, finally add + settings. The default workspace (id=0) is
4
4
  // pinned first.
5
5
  import { useLocation } from "react-router-dom";
6
- import { Plus, Settings, Mic, Monitor, LayoutGrid, Terminal, Bot, type LucideIcon } from "lucide-react";
6
+ import { Plus, Settings, Mic, Monitor, LayoutGrid, Terminal, Bot, BookOpen, type LucideIcon } from "lucide-react";
7
7
  import { Logo } from "./Logo";
8
8
  import { ProjectAvatar } from "./ProjectAvatar";
9
9
  import { Tip } from "../ui/tip";
@@ -103,7 +103,7 @@ export function ProjectSidebar({ onSelect, onOpenRoby }: Props) {
103
103
  })}
104
104
 
105
105
  <ProjectAvatar
106
- label="Add"
106
+ label={t("nav.add_project")}
107
107
  isAdd
108
108
  testId="nav-add-project"
109
109
  icon={<Plus size={18} />}
@@ -114,7 +114,7 @@ export function ProjectSidebar({ onSelect, onOpenRoby }: Props) {
114
114
 
115
115
  <div className="flex-1" />
116
116
  <ProjectAvatar
117
- label="Settings"
117
+ label={t("nav.settings")}
118
118
  isSettings
119
119
  testId="nav-settings"
120
120
  icon={<Settings size={16} />}
@@ -122,6 +122,19 @@ export function ProjectSidebar({ onSelect, onOpenRoby }: Props) {
122
122
  onClick={() => onSelect("/settings")}
123
123
  title={t("nav.settings")}
124
124
  />
125
+ {/* Docs — opens the hosted documentation site in a new tab. */}
126
+ <Tip content={t("settings_ui.documentation")} side="right">
127
+ <a
128
+ href="https://agentprojectcontext.github.io/apx/docs/"
129
+ target="_blank"
130
+ rel="noopener noreferrer"
131
+ data-testid="nav-docs"
132
+ aria-label={t("settings_ui.documentation")}
133
+ className="mt-1 flex size-10 items-center justify-center rounded-xl border border-border/60 bg-muted/30 text-muted-fg transition-colors hover:bg-accent hover:text-foreground"
134
+ >
135
+ <BookOpen size={18} />
136
+ </a>
137
+ </Tip>
125
138
  {/* Roby launcher — subtle (not a loud floating bubble), pinned under the
126
139
  gear so it doesn't overlap the chat composer. */}
127
140
  <Tip content={t("superagent.talk", { persona })} side="right">
@@ -142,12 +155,12 @@ export function ProjectSidebar({ onSelect, onOpenRoby }: Props) {
142
155
  // Re-export for screens that still import projectKindLabel here.
143
156
  export function projectKindLabel(kind?: string): string {
144
157
  switch (kind) {
145
- case "personal": return "Personal";
146
- case "company": return "Company";
147
- case "app": return "App";
148
- case "software": return "Software";
149
- case "default": return "Default";
150
- case "other": return "Other";
158
+ case "personal": return t("settings_ui.kind_personal");
159
+ case "company": return t("settings_ui.kind_company");
160
+ case "app": return t("settings_ui.kind_app");
161
+ case "software": return t("settings_ui.kind_software");
162
+ case "default": return t("settings_ui.kind_default");
163
+ case "other": return t("settings_ui.kind_other");
151
164
  default: return t("nav.project");
152
165
  }
153
166
  }
@@ -11,7 +11,7 @@ export function AdvancedPanel() {
11
11
  const { health, isUp } = useDaemonStatus();
12
12
 
13
13
  const reload = async () => {
14
- try { await Admin.reload(); toast.success("Config recargada."); }
14
+ try { await Admin.reload(); toast.success(t("settings.advanced.reload_success")); }
15
15
  catch (e) { toast.error((e as Error).message); }
16
16
  };
17
17
 
@@ -53,7 +53,7 @@ export function AppearancePanel() {
53
53
  </Section>
54
54
 
55
55
  <Section title={t("settings.token")} description={t("settings.token_sub")}>
56
- <Field label="Bearer">
56
+ <Field label={t("settings_ui.bearer_label")}>
57
57
  <Input
58
58
  type="password"
59
59
  placeholder={getToken() ? t("settings.token_active") : t("settings.token_paste")}
@@ -55,7 +55,7 @@ function ProviderModelPicker({
55
55
  <UiSelect
56
56
  value={provider}
57
57
  onChange={setProvider}
58
- placeholder={providerInvalid ? `⚠ ${provider} (no existe)` : "— proveedor —"}
58
+ placeholder={providerInvalid ? t("router_panel.provider_not_found", { name: provider }) : t("router_panel.provider_ph")}
59
59
  options={providers.map((p) => ({ value: p.slug, label: p.slug, icon: ENGINE_ICONS[p.engine] }))}
60
60
  />
61
61
  <ModelCombobox
@@ -63,7 +63,7 @@ function ProviderModelPicker({
63
63
  onChange={setModel}
64
64
  options={modelOptions}
65
65
  invalid={providerInvalid}
66
- invalidHint={`El proveedor "${provider}" no está configurado.`}
66
+ invalidHint={t("router_panel.provider_not_configured", { name: provider })}
67
67
  />
68
68
  </div>
69
69
  );
@@ -119,7 +119,7 @@ export function DefaultRouterCard() {
119
119
  "super_agent.model_fallback.enabled": fallback.length > 0,
120
120
  "super_agent.model_fallback.models": fallback,
121
121
  });
122
- toast.success("Router guardado.");
122
+ toast.success(t("router_panel.saved_toast"));
123
123
  setSaved({ model, fallback });
124
124
  mutate();
125
125
  } catch (e) {
@@ -153,12 +153,12 @@ export function DefaultRouterCard() {
153
153
  return (
154
154
  <Section
155
155
  title={t("router_panel.title")}
156
- description="Un solo router general (sin casos por tarea). Elegí proveedor y modelo; si el activo falla, prueba la cadena de fallback en orden."
156
+ description={t("router_panel.description")}
157
157
  >
158
158
  <div className="space-y-4">
159
159
  {/* Resolution preview */}
160
160
  <div className="flex flex-wrap items-center gap-2 rounded-lg border border-border bg-muted/20 p-3">
161
- <Badge tone="success"><GitBranch size={11} /> default</Badge>
161
+ <Badge tone="success"><GitBranch size={11} /> {t("router_panel.badge_default")}</Badge>
162
162
  <span className={`font-mono text-xs ${!providerExists(model) && model ? "text-amber-400" : ""}`}>{model || "—"}</span>
163
163
  {fallback.map((m) => (
164
164
  <span key={m} className="flex items-center gap-2 text-muted-fg">
@@ -169,17 +169,17 @@ export function DefaultRouterCard() {
169
169
  </div>
170
170
 
171
171
  {providers.length === 0 ? (
172
- <p className="text-xs text-muted-fg">Agregá un proveedor abajo para poder elegir modelos.</p>
172
+ <p className="text-xs text-muted-fg">{t("router_panel.no_providers")}</p>
173
173
  ) : (
174
- <Field label="Modelo activo (default)" hint="Proveedor + modelo. Se guarda como provider:model.">
174
+ <Field label={t("router_panel.active_model_label")} hint={t("router_panel.active_model_hint")}>
175
175
  <ProviderModelPicker value={model} onChange={setModel} providers={providers} />
176
176
  </Field>
177
177
  )}
178
178
 
179
179
  <div className="rounded-lg border border-border bg-muted/20 p-3">
180
180
  <div className="mb-2">
181
- <div className="text-sm font-medium">Cadena de fallback</div>
182
- <div className="text-xs text-muted-fg">Si el modelo activo falla, prueba estos en orden. Click en uno para editarlo.</div>
181
+ <div className="text-sm font-medium">{t("router_panel.fallback_title")}</div>
182
+ <div className="text-xs text-muted-fg">{t("router_panel.fallback_desc")}</div>
183
183
  </div>
184
184
  <ul className="mb-3 space-y-1">
185
185
  {fallback.map((m, i) => {
@@ -200,7 +200,7 @@ export function DefaultRouterCard() {
200
200
  </button>
201
201
  )}
202
202
  {editing ? (
203
- <Button size="sm" variant="secondary" onClick={() => setEditIdx(null)}>listo</Button>
203
+ <Button size="sm" variant="secondary" onClick={() => setEditIdx(null)}>{t("router_panel.done")}</Button>
204
204
  ) : (
205
205
  <Button size="sm" variant="ghost" onClick={() => setEditIdx(i)}><Pencil size={12} /></Button>
206
206
  )}
@@ -211,21 +211,21 @@ export function DefaultRouterCard() {
211
211
  </li>
212
212
  );
213
213
  })}
214
- {fallback.length === 0 && <li className="text-xs text-muted-fg">Sin fallback configurado.</li>}
214
+ {fallback.length === 0 && <li className="text-xs text-muted-fg">{t("router_panel.fallback_empty")}</li>}
215
215
  </ul>
216
216
  {providers.length > 0 && (
217
217
  <div className="space-y-2">
218
- <div className="text-xs text-muted-fg">Agregar a la cadena</div>
218
+ <div className="text-xs text-muted-fg">{t("router_panel.add_to_chain")}</div>
219
219
  <ProviderModelPicker value={newFallback} onChange={setNewFallback} providers={providers} />
220
220
  <Button size="sm" variant="secondary" onClick={addFallback} disabled={!newFallback.includes(":") || newFallback.endsWith(":")}>
221
- <Plus size={13} /> Agregar a la cadena
221
+ <Plus size={13} /> {t("router_panel.add_to_chain")}
222
222
  </Button>
223
223
  </div>
224
224
  )}
225
225
  </div>
226
226
 
227
227
  <Button variant="primary" loading={busy} disabled={!dirty} onClick={submit}>
228
- {dirty ? "Guardar router" : "Guardado"}
228
+ {dirty ? t("router_panel.save") : t("router_panel.saved")}
229
229
  </Button>
230
230
  </div>
231
231
  </Section>
@@ -17,7 +17,7 @@ export function DevicesPanel() {
17
17
  if (!confirm(t("settings.devices_revoke_confirm", { id }))) return;
18
18
  try {
19
19
  await Pair.revoke(id);
20
- toast.success("Cliente revocado.");
20
+ toast.success(t("settings.devices_revoke_success"));
21
21
  mutate();
22
22
  } catch (e) {
23
23
  toast.error((e as Error).message);
@@ -46,9 +46,9 @@ export function DevicesPanel() {
46
46
  <Badge tone={c.kind === "web" ? "info" : c.kind === "deck" ? "success" : "muted"}>{c.kind}</Badge>
47
47
  <span className="font-mono text-xs text-muted-fg">…{c.token_suffix}</span>
48
48
  <span className="ml-auto text-xs text-muted-fg">
49
- visto: {c.last_seen ? new Date(c.last_seen).toLocaleString() : "nunca"}
49
+ {t("settings.devices_last_seen")} {c.last_seen ? new Date(c.last_seen).toLocaleString() : t("settings.devices_never")}
50
50
  </span>
51
- <Button size="sm" variant="destructive" onClick={() => revoke(c.id)}>Revocar</Button>
51
+ <Button size="sm" variant="destructive" onClick={() => revoke(c.id)}>{t("settings.devices_revoke")}</Button>
52
52
  </li>
53
53
  ))}
54
54
  </ul>
@@ -49,7 +49,7 @@ export function EnginesPanel() {
49
49
  // JSON mode: replace the whole engines.<slug> block with the parsed object.
50
50
  if (raw) {
51
51
  await patch({ [`engines.${provider.slug}`]: raw });
52
- toast.success("Provider guardado (JSON).");
52
+ toast.success(t("engines_panel.saved_json"));
53
53
  mutate();
54
54
  return;
55
55
  }
@@ -71,7 +71,7 @@ export function EnginesPanel() {
71
71
  if (apiKeyValue) set[`${base}.api_key`] = apiKeyValue;
72
72
 
73
73
  await patch(set, unset);
74
- toast.success("Provider guardado.");
74
+ toast.success(t("engines_panel.saved"));
75
75
  mutate();
76
76
  };
77
77
 
@@ -83,10 +83,10 @@ export function EnginesPanel() {
83
83
  };
84
84
 
85
85
  const remove = async (p: Provider) => {
86
- if (!confirm(`Borrar provider ${p.name || p.slug}?`)) return;
86
+ if (!confirm(t("engines_panel.delete_confirm", { name: p.name || p.slug }))) return;
87
87
  try {
88
88
  await patch(undefined, [`engines.${p.slug}`]);
89
- toast.success("Provider borrado.");
89
+ toast.success(t("engines_panel.deleted"));
90
90
  mutate();
91
91
  } catch (e) { toast.error((e as Error).message); }
92
92
  };
@@ -94,11 +94,11 @@ export function EnginesPanel() {
94
94
  return (
95
95
  <Section
96
96
  title={t("engines_panel.title")}
97
- description="Proveedores LLM (API). Cada provider usa un engine/adapter (openai, ollama, …) con su key y URL."
97
+ description={t("engines_panel.description")}
98
98
  action={<Button size="sm" variant="primary" onClick={openCreate}><Plus size={14} /> {t("engines_panel.new_btn")}</Button>}
99
99
  >
100
100
  {providers.length === 0 ? (
101
- <Empty>Sin providers. Agregá uno con el botón de arriba.</Empty>
101
+ <Empty>{t("engines_panel.empty")}</Empty>
102
102
  ) : (
103
103
  <div className="grid grid-cols-1 items-stretch gap-3 sm:grid-cols-2 lg:grid-cols-3">
104
104
  {providers.map((p) => (
@@ -110,7 +110,7 @@ export function EnginesPanel() {
110
110
  className="flex min-h-[120px] flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-border text-muted-fg transition-colors hover:border-muted-fg/60 hover:text-foreground"
111
111
  >
112
112
  <Plus size={20} />
113
- <span className="text-sm font-medium">Agregar provider</span>
113
+ <span className="text-sm font-medium">{t("engines_panel.add_card")}</span>
114
114
  </button>
115
115
  </div>
116
116
  )}
@@ -48,12 +48,12 @@ export function IdentityPanel() {
48
48
  options={LANGS.map((l) => ({ value: l, label: l }))}
49
49
  />
50
50
  </Field>
51
- <Field label={t("settings.identity.timezone")} hint="ej. America/Argentina/Buenos_Aires">
51
+ <Field label={t("settings.identity.timezone")} hint={t("settings.identity.timezone_hint")}>
52
52
  <Input value={draft.timezone || ""} onChange={(e) => setDraft({ ...draft, timezone: e.target.value })} />
53
53
  </Field>
54
54
  </div>
55
55
  <div className="mt-3">
56
- <Field label={t("settings.identity.owner_context")} hint="Quién sos, en qué trabajás, qué le interesa al agente saber de vos.">
56
+ <Field label={t("settings.identity.owner_context")} hint={t("settings.identity.owner_context_hint")}>
57
57
  <Textarea
58
58
  rows={3}
59
59
  value={draft.owner_context || ""}