chenow9 and t8y2
d08189ba7d
feat(ai): add Grok CLI as a Desktop no-API-key provider
...
* feat(ai): add Grok CLI as a Desktop no-API-key provider
Add grok-cli alongside Codex/Claude Code/Pi, with path/env settings,
isolated MCP-scoped headless runs, model listing, and connection test.
* feat(ai): expose Grok CLI reasoning effort like Codex
Attach low/medium/high effort capabilities to Grok models for the
assistant effort menu, wire resolve_model_effort for grok-cli, and
use the monochrome Grok mark icon.
* i18n: add Grok CLI error messages for remaining locales
Fill grokCli* cliErrors strings in es, it, ja, ko, pt-BR, and zh-TW
to match en/zh-CN and satisfy i18n autofill CI.
* fix(ai): align Grok CLI headless with official Build flags
Address review feedback on PR #5494 :
- Use streaming-json + CliAgentJsonlDialect::GrokStreamingJson
- Switch permission to --always-approve and MCPTool(dbx__*) rules
- Prefer --effort over --reasoning-effort; keep --prompt-file
Verified with unit tests and a local headless e2e against grok 1.0.
* style(ai): fix rustfmt for Grok CLI provider files
* test(ai): fix Grok CLI entry in provider ordering spec
* fix(ai): harden grok CLI error wording and config schema
Add 'not signed in' to classify_grok_run_error and test_grok_connection
auth detection — real @xai-official/grok 1.0.0 emits this exact wording
on headless auth failure (verified against the shipped binary).
Remove invalid config.toml fields: permission_mode='always-approve'
(not a valid enum; auto-approve is driven by --always-approve flag) and
startup_timeout_sec/tool_timeout_sec/enabled_tools (not mcp_servers
schema fields per 'grok mcp add').
---------
Co-authored-by: t8y2 <1156263951@qq.com >
2026-08-10 10:54:27 +08:00
..
2026-07-04 13:53:52 +08:00
2026-07-14 17:12:21 +08:00
2026-08-03 23:09:11 +08:00
2026-07-06 14:41:39 +08:00
2026-07-04 13:53:52 +08:00
2026-07-31 21:17:57 +08:00
2026-07-29 04:27:07 +08:00
2026-08-10 01:06:44 +08:00
2026-07-22 13:43:39 +08:00
2026-08-07 17:06:03 +08:00
2026-07-28 21:37:55 +08:00
2026-07-22 13:43:39 +08:00
2026-07-31 21:17:57 +08:00
2026-08-05 11:15:35 +08:00
2026-07-28 11:56:23 +08:00
2026-07-04 13:53:52 +08:00
2026-07-07 15:39:10 +08:00
2026-07-08 19:31:19 +08:00
2026-07-11 08:55:51 +08:00
2026-07-12 10:02:27 +08:00
2026-07-04 13:53:52 +08:00
2026-07-22 23:52:14 +08:00
2026-08-09 20:13:18 +08:00
2026-07-04 13:53:52 +08:00
2026-08-05 01:09:59 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 13:53:52 +08:00
2026-07-20 00:52:31 +08:00
2026-07-14 12:54:07 +08:00
2026-08-03 16:57:26 +08:00
2026-07-09 09:53:01 +08:00
2026-07-29 19:21:56 +08:00
2026-07-04 13:53:52 +08:00
2026-07-16 18:42:33 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 12:19:56 +08:00
2026-07-14 01:27:40 +08:00
2026-07-16 15:38:06 +08:00
2026-08-06 23:16:12 +08:00
2026-07-01 19:41:34 +08:00
2026-07-21 17:11:58 +08:00
2026-07-25 08:46:12 +08:00
2026-08-05 23:15:53 +08:00
2026-08-09 18:05:23 +08:00
2026-07-28 23:18:12 +08:00
2026-07-28 11:28:02 +08:00
2026-08-06 23:16:12 +08:00
2026-08-07 13:48:10 +08:00
2026-08-07 13:44:13 +08:00
2026-08-06 23:16:12 +08:00
2026-07-04 13:53:52 +08:00
2026-07-15 18:06:08 +08:00
2026-07-24 14:11:18 +08:00
2026-07-27 11:15:18 +08:00
2026-08-09 19:35:25 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 13:53:52 +08:00
2026-07-16 15:20:41 +08:00
2026-07-08 09:45:28 +08:00
2026-07-31 02:01:46 +08:00
2026-07-10 16:10:54 +08:00
2026-07-27 20:00:58 +08:00
2026-07-31 16:27:06 +08:00
2026-07-04 13:53:52 +08:00
2026-08-10 10:28:29 +08:00
2026-07-17 18:51:33 +08:00
2026-08-02 22:46:12 +08:00
2026-07-29 22:37:05 +08:00
2026-08-05 01:09:59 +08:00
2026-07-29 18:43:32 +08:00
2026-08-05 09:47:26 +08:00
2026-08-03 16:57:26 +08:00
2026-07-16 22:52:10 +08:00
2026-08-09 13:57:42 +08:00
2026-07-18 21:40:08 +08:00
2026-07-04 13:53:52 +08:00
2026-06-30 09:14:44 +08:00
2026-07-29 18:43:32 +08:00
2026-08-07 15:57:45 +08:00
2026-08-05 09:40:01 +08:00
2026-07-09 11:11:45 +08:00
2026-08-09 14:14:08 +08:00
2026-08-02 10:08:36 +08:00
2026-08-05 13:05:26 +08:00
2026-07-17 00:15:12 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 13:53:52 +08:00
2026-07-30 03:12:02 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-08-03 16:05:57 +08:00
2026-07-31 14:51:25 +08:00
2026-07-17 18:51:33 +08:00
2026-07-16 18:21:01 +08:00
2026-07-30 19:03:09 +08:00
2026-07-16 18:21:01 +08:00
2026-07-04 13:53:52 +08:00
2026-08-03 19:18:52 +08:00
2026-08-01 19:56:36 +08:00
2026-07-24 23:50:50 +08:00
2026-07-22 19:10:23 +08:00
2026-07-16 16:31:15 +08:00
2026-08-06 17:09:15 +08:00
2026-07-27 18:55:37 +08:00
2026-07-04 13:53:52 +08:00
2026-08-03 16:05:57 +08:00
2026-07-14 01:24:10 +08:00
2026-08-06 20:13:59 +08:00
2026-08-06 20:13:59 +08:00
2026-07-04 13:53:52 +08:00
2026-08-03 16:05:57 +08:00
2026-07-06 17:17:33 +08:00
2026-07-07 12:43:07 +08:00
2026-07-07 12:43:07 +08:00
2026-07-04 13:53:52 +08:00
2026-07-27 16:11:53 +08:00
2026-07-28 21:11:59 +08:00
2026-07-04 13:53:52 +08:00
2026-07-29 02:40:45 +08:00
2026-07-22 12:22:01 +08:00
2026-07-04 13:53:52 +08:00
2026-07-08 13:23:21 +08:00
2026-08-07 13:54:37 +08:00
2026-07-04 13:53:52 +08:00
2026-08-03 14:25:45 +08:00
2026-08-06 23:16:12 +08:00
2026-08-09 18:05:23 +08:00
2026-08-03 21:29:24 +08:00
2026-07-04 13:53:52 +08:00
2026-08-04 00:46:12 +08:00
2026-07-05 12:09:24 +08:00
2026-07-05 12:09:24 +08:00
2026-07-04 13:53:52 +08:00
2026-08-02 09:00:00 +08:00
2026-07-04 13:53:52 +08:00
2026-08-08 11:36:57 +08:00
2026-07-04 13:53:52 +08:00
2026-08-09 15:51:04 +08:00
2026-07-09 11:41:22 +08:00
2026-08-06 23:15:17 +08:00
2026-07-20 11:03:08 +08:00
2026-07-26 11:20:05 +08:00
2026-07-30 03:12:02 +08:00
2026-07-20 15:36:34 +08:00
2026-07-21 23:14:42 +08:00
2026-07-04 13:53:52 +08:00
2026-07-29 18:42:01 +08:00
2026-07-20 23:29:18 +08:00
2026-08-06 23:16:12 +08:00
2026-08-06 23:16:12 +08:00
2026-07-29 02:10:06 +08:00
2026-07-04 13:53:52 +08:00
2026-08-03 16:05:57 +08:00
2026-08-05 01:02:21 +08:00
2026-07-22 13:43:39 +08:00
2026-08-06 20:10:44 +08:00
2026-07-15 20:53:22 +08:00
2026-07-04 13:53:52 +08:00
2026-08-07 15:18:32 +08:00
2026-07-24 15:50:49 +08:00
2026-08-07 15:18:32 +08:00
2026-08-07 15:18:32 +08:00
2026-08-09 19:19:15 +08:00
2026-08-09 13:57:42 +08:00
2026-07-09 18:59:12 +08:00
2026-07-04 13:53:52 +08:00
2026-07-22 23:11:22 +08:00
2026-07-22 23:11:22 +08:00
2026-07-27 14:40:31 +08:00
2026-07-27 14:40:31 +08:00
2026-07-22 23:11:22 +08:00
2026-07-22 11:42:47 +08:00
2026-07-24 09:32:30 +08:00
2026-07-31 03:16:05 +08:00
2026-08-03 16:05:57 +08:00
2026-07-04 13:53:52 +08:00
2026-08-05 23:58:32 +08:00
2026-07-31 21:17:57 +08:00
2026-08-06 16:32:39 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 13:53:52 +08:00
2026-07-10 13:16:07 +08:00
2026-07-29 21:27:37 +08:00
2026-08-10 10:54:27 +08:00
2026-07-28 11:28:02 +08:00
2026-07-04 13:53:52 +08:00
2026-08-06 00:39:05 +08:00
2026-07-14 18:10:52 +08:00
2026-08-02 18:13:31 +08:00
2026-07-14 18:10:52 +08:00
2026-07-14 19:03:27 +08:00
2026-07-04 13:53:52 +08:00
2026-07-31 14:39:58 +08:00
2026-07-04 13:53:52 +08:00
2026-07-13 16:12:54 +08:00
2026-07-04 13:53:52 +08:00
2026-08-07 03:24:25 +08:00
2026-08-07 13:43:42 +08:00
2026-08-06 00:55:24 +08:00
2026-07-06 17:24:56 +08:00
2026-07-30 20:45:34 +08:00
2026-08-06 14:45:25 +08:00
2026-07-04 13:53:52 +08:00
2026-07-16 22:52:10 +08:00
2026-08-06 02:11:02 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 13:53:52 +08:00
2026-08-07 03:24:25 +08:00
2026-08-07 03:24:25 +08:00
2026-07-30 12:32:23 +08:00
2026-07-15 19:29:27 +08:00
2026-08-10 01:11:25 +08:00
2026-07-04 13:53:52 +08:00
2026-07-28 21:25:30 +08:00
2026-08-06 23:16:35 +08:00
2026-07-07 00:02:34 +08:00
2026-07-30 18:41:56 +08:00
2026-07-22 15:50:43 +08:00
2026-07-15 21:18:57 +08:00
2026-08-02 09:33:02 +08:00
2026-08-08 10:44:21 +08:00
2026-07-04 13:53:52 +08:00
2026-08-08 18:28:11 +08:00
2026-07-16 17:00:55 +08:00
2026-07-04 13:53:52 +08:00
2026-07-04 13:53:52 +08:00
2026-07-15 18:05:30 +08:00
2026-07-09 09:52:45 +08:00
2026-07-07 00:26:56 +08:00
2026-07-14 11:04:45 +08:00
2026-07-04 13:53:52 +08:00
2026-07-29 21:07:11 +08:00
2026-08-07 15:31:44 +08:00
2026-08-05 23:58:11 +08:00
2026-07-16 15:20:03 +08:00
2026-07-15 13:00:38 +08:00
2026-07-04 13:53:52 +08:00
2026-07-23 13:57:14 +08:00
2026-07-17 00:10:46 +08:00
2026-07-23 21:51:43 +08:00
2026-08-05 23:58:11 +08:00
2026-08-08 11:13:42 +08:00
2026-07-04 13:53:52 +08:00
2026-08-09 01:27:23 +08:00
2026-07-24 15:50:49 +08:00
2026-08-07 02:40:49 +08:00
2026-07-09 18:30:29 +08:00
2026-07-04 13:53:52 +08:00
2026-08-08 10:38:16 +08:00
2026-07-04 13:53:52 +08:00
2026-07-06 17:17:33 +08:00
2026-07-30 16:03:32 +08:00
2026-07-21 18:45:02 +08:00
2026-07-31 23:15:11 +08:00
2026-08-06 16:32:39 +08:00
2026-07-02 18:50:01 +08:00
2026-07-30 19:03:09 +08:00
2026-07-04 13:53:52 +08:00
2026-07-31 19:45:37 +08:00