@bivy/bivy 0.16.25-staging.43 → 0.16.25-staging.44

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.
@@ -191,7 +191,7 @@
191
191
  "hidden": false,
192
192
  "supportTier": "supported",
193
193
  "certification": "release-tested",
194
- "testedVersion": "1.0.0",
194
+ "testedVersion": "1.0.41",
195
195
  "headlessFlags": [
196
196
  "--always-approve",
197
197
  "-p",
@@ -356,8 +356,11 @@ export const AGENT_PROFILES = {
356
356
  behaviors: { preflight: "grok", prepare: "grok-auth", nativeSessions: "grok" },
357
357
  command: "grok",
358
358
  packageName: "grok (curl -fsSL https://x.ai/cli/install.sh | bash)",
359
+ // Supported tier: Grok runs on the governed ACP path by default (per-tool
360
+ // Approve/Deny + native resume + live model state), the same bar Pi, Claude
361
+ // Code, Codex, and OpenCode clear. See `acp` below for the version fallback.
359
362
  supportTier: "supported",
360
- testedVersion: "1.0.0",
363
+ testedVersion: "1.0.41",
361
364
  authOwner: "mixed",
362
365
  blurb: "xAI's official Grok coding agent (Grok CLI) — SuperGrok/X subscription or API key.",
363
366
  // Official CLI: `grok -p "<prompt>"` (alias `--single`) runs one headless
@@ -414,6 +417,16 @@ export const AGENT_PROFILES = {
414
417
  // continued turn keeps the chosen effort. Override with BIVY_GROK_THINKING.
415
418
  thinking: { levels: ["low", "medium", "high", "xhigh"], default: "high", template: ["--reasoning-effort", "{level}"], insertAt: 0 },
416
419
  promptMode: "argv",
420
+ // `grok agent stdio` ("Run the agent over stdio") is a full ACP server
421
+ // (protocolVersion 1: session/new, session/prompt, session/request_permission,
422
+ // loadSession resume, live model state) — the governed ProtocolRuntime path
423
+ // that supersedes the `--always-approve` pipe above with real per-tool
424
+ // Approve/Deny. Validated against grok 1.0.41, so it is ON by default
425
+ // (`preferred`) — gated on the binary actually describing the `agent`
426
+ // subcommand ("Run Grok without the interactive UI" in `grok --help`), so an
427
+ // older CLI falls back to the pipe path rather than opening a dead session.
428
+ // Force the pipe path back with BIVY_GROK_ACP=0.
429
+ acp: { args: ["agent", "stdio"], helpToken: "without the interactive ui", preferred: true },
417
430
  install: {
418
431
  kind: "curl",
419
432
  display: "curl -fsSL https://x.ai/cli/install.sh | bash",
@@ -7,5 +7,6 @@ export const CERTIFICATION_MATRIX = {
7
7
  { id: "codex-approvals", status: "active", executionMode: "protocol", pinnedVersion: "0.156.1", capabilities: ["toolInterception", "modelSelection", "resume"] },
8
8
  { id: "pi", status: "active", executionMode: "protocol", pinnedVersion: "0.87.1", capabilities: ["toolInterception", "modelSelection", "resume"] },
9
9
  { id: "opencode", status: "active", executionMode: "protocol", pinnedVersion: "1.18.32", capabilities: ["toolInterception", "modelSelection", "resume"] },
10
+ { id: "grok", status: "active", executionMode: "protocol", pinnedVersion: "1.0.41", capabilities: ["toolInterception", "modelSelection", "resume"] },
10
11
  ]
11
12
  };
@@ -695,6 +695,19 @@ function acpRuntimeOptions(opts) {
695
695
  // ACP handshake doesn't carry them); a bare ACP agent has none.
696
696
  ...(slashCommands ? { slashCommands } : {}),
697
697
  ...(opts.credsDir ? { credentials: createCredentialStore(opts.credsDir) } : {}),
698
+ // Declared credential behaviors apply to the governed path exactly as they do
699
+ // to the pipe path: the preflight surfaces a clear no-credential error before
700
+ // the shim spawns, and Grok's prepare materializes `auth.json` from Bivy's
701
+ // vault (pinning GROK_HOME) so `grok agent stdio` starts authenticated.
702
+ ...(opts.behaviors?.preflight ? { preflight: PREFLIGHT_BEHAVIORS[opts.behaviors.preflight] } : {}),
703
+ ...(opts.behaviors?.prepare === "grok-auth" && opts.credsDir
704
+ ? {
705
+ prepare: async () => {
706
+ const home = await ensureGrokAuth(opts.credsDir);
707
+ return home ? { GROK_HOME: home } : {};
708
+ },
709
+ }
710
+ : {}),
698
711
  // OpenCode's own store is SQLite under $XDG_DATA_HOME, so an ACP-promoted
699
712
  // opencode can both read a resumed session's transcript back for history
700
713
  // preload (loadHistory), drop it on delete (deleteHistory), and — the fork
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bivy/bivy",
3
- "version": "0.16.25-staging.43",
3
+ "version": "0.16.25-staging.44",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "Run coding agents on machines you own. Open-source, self-hostable agent workspace.",