gigabuddy 0.8.0 → 0.8.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gigabuddy",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Command-line sign-in for Gigabuddy. Authenticates your machine and configures npm for @gigabuddy packages.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -72,11 +72,23 @@ export interface SetupRunner {
72
72
  runClaude(args: string[]): number | 'missing';
73
73
  /** Same for `codex`. */
74
74
  runCodex(args: string[]): number | 'missing';
75
+ /** The Codex version (`0.160.0`), or null when there is no Codex or it doesn't say. */
76
+ codexVersion(): string | null;
75
77
  /** `npm install -g @gigabuddy/agent@latest`, output to the user. Returns the exit code. */
76
78
  installAgent(): number;
77
79
  /** `gigabuddy-agent warm` (caches the door's tool menu). Exit code, or 'missing' when not on PATH. */
78
80
  warmAgent(): number | 'missing';
79
81
  }
82
+ /**
83
+ * The oldest Codex the plugin works in. Its prompt hook is an `mcp_tool` hook
84
+ * (it must reach the thread's own agent, which a `command` hook can't), and
85
+ * Codex parses those from 0.148.0. Older Codex rejects the plugin's whole
86
+ * hooks file: "unknown variant `mcp_tool`, expected one of `command`,
87
+ * `prompt`, `agent`" (checked against the released binaries, 2026-10-03).
88
+ */
89
+ export declare const MIN_CODEX_VERSION = "0.148.0";
90
+ /** True when `version` is at least `min` (dotted numbers; pre-release tags ignored). */
91
+ export declare function versionAtLeast(version: string, min: string): boolean;
80
92
  /**
81
93
  * `gigabuddy setup [claude|codex]` — put Gigabuddy into a coding agent without
82
94
  * the user knowing the plugin incantations. With no harness named, sets up