Skip to content

Commit a07145e

Browse files
committed
fix(ci): restore validation on issue branch
1 parent 25fedfe commit a07145e

2 files changed

Lines changed: 4 additions & 50 deletions

File tree

packages/app/tests/docker-git/core-templates.test.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/lib/src/usecases/auth-grok-oauth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ const buildDockerGrokAuthSpec = (
4141
})
4242

4343
/**
44-
* Builds the Docker CLI argument vector for the standard interactive Grok login flow.
44+
* Builds the Docker CLI argument vector for the official Grok device-code login flow.
4545
*
4646
* @param spec Docker auth container paths, image, working directory, and environment bindings.
47-
* @returns Immutable Docker argument vector ending with `grok login`.
47+
* @returns Immutable Docker argument vector ending with `grok login --device-auth`.
4848
* @pure true
4949
* @effect none; CORE argument builder only transforms immutable input data.
5050
* @invariant every non-empty environment binding is emitted as an adjacent `-e` argument pair.
5151
* @precondition spec.hostPath and spec.containerPath identify the selected Grok auth account directory.
52-
* @postcondition returned args execute the standard Grok CLI browser login flow.
52+
* @postcondition returned args execute the official headless Grok login mode documented by xAI.
5353
* @complexity O(n) time / O(n) space, where n is spec.env.length.
5454
* @throws Never - invalid process execution is represented by callers through typed Effect errors.
5555
*/
@@ -73,7 +73,7 @@ export const buildDockerGrokAuthArgs = (spec: DockerGrokAuthSpec): ReadonlyArray
7373
}
7474
base.push("-e", trimmed)
7575
}
76-
return [...base, spec.image, "grok", "login"]
76+
return [...base, spec.image, "grok", "login", "--device-auth"]
7777
}
7878

7979
const grokAuthPermissionScript = [

0 commit comments

Comments
 (0)