mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +00:00
feat: add Grok Build support (#1030)
* test: define Grok Build integration behavior * feat: add Grok Build agent integration * test: cover Grok permissions and resume paths * docs: add Grok Build setup guide * fix: scope Grok ACP discovery to session cwd * fix: align Grok permission UI semantics * docs: clarify Grok runner setup * test: require Grok create model and effort options * feat: add Grok create model and effort pickers * test: define Grok runtime parity behavior * feat: add Grok runtime ACP controls and discovery * fix: tighten Grok runtime controls * fix: suppress nonfatal Grok title quota errors * feat: support Grok Auto permission mode * feat: forward ACP native session titles for Grok * fix: guard Grok Windows shell arguments
This commit is contained in:
+10
-8
@@ -1090,13 +1090,15 @@ export function buildCliArgs(
|
||||
? 'codex'
|
||||
: agent === 'cursor'
|
||||
? 'cursor'
|
||||
: agent === 'kimi'
|
||||
? 'kimi'
|
||||
: agent === 'opencode'
|
||||
? 'opencode'
|
||||
: agent === 'pi'
|
||||
? 'pi'
|
||||
: 'claude';
|
||||
: agent === 'grok'
|
||||
? 'grok'
|
||||
: agent === 'kimi'
|
||||
? 'kimi'
|
||||
: agent === 'opencode'
|
||||
? 'opencode'
|
||||
: agent === 'pi'
|
||||
? 'pi'
|
||||
: 'claude';
|
||||
const args = [agentCommand];
|
||||
if (options.resumeSessionId) {
|
||||
if (agent === 'codex') {
|
||||
@@ -1114,7 +1116,7 @@ export function buildCliArgs(
|
||||
if (options.model) {
|
||||
args.push('--model', options.model);
|
||||
}
|
||||
if (options.effort && (agent === 'claude' || agent === 'pi')) {
|
||||
if (options.effort && (agent === 'claude' || agent === 'grok' || agent === 'pi')) {
|
||||
args.push('--effort', options.effort);
|
||||
}
|
||||
if (options.modelReasoningEffort && (agent === 'codex' || agent === 'opencode')) {
|
||||
|
||||
Reference in New Issue
Block a user