@aibridge/driver-agy 0.8.0 → 0.9.1

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/README.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # @aibridge/driver-agy
2
2
 
3
- Antigravity (`agy`) CLI driver for [aibridge](https://github.com/ycmjason/aibridge): build print-mode invocations, probe availability, run delegated tasks (including the answer-file capture protocol), and read Antigravity quota windows.
3
+ Driver for the Antigravity (`agy`) CLI. It builds print-mode commands, checks
4
+ availability, runs delegated tasks, captures answer files, and reads quota
5
+ windows.
4
6
 
5
7
  ```ts
6
8
  import { probe, run, fetchAgyQuota } from '@aibridge/driver-agy';
7
9
  ```
8
10
 
9
- Requires the `agy` CLI on `PATH` and authed. Part of the [aibridge](https://github.com/ycmjason/aibridge) monorepo — the agent skill + CLI that lets coding agents drive models from other providers.
11
+ Requires an authenticated `agy` CLI on `PATH`. Part of the
12
+ [aibridge](https://github.com/ycmjason/aibridge) monorepo.
10
13
 
11
14
  [MIT](https://github.com/ycmjason/aibridge/blob/main/LICENSE)
package/dist/index.mjs CHANGED
@@ -160,7 +160,7 @@ function findModelQuota(snapshot, labelOrId) {
160
160
  }
161
161
  //#endregion
162
162
  //#region src/probe.ts
163
- const INSTALL_HINT$1 = "Install the Antigravity CLI and sign in.";
163
+ const INSTALL_HINT = "Install the Antigravity CLI and sign in.";
164
164
  async function probe(run = runCaptured) {
165
165
  try {
166
166
  const res = await run("agy", ["--version"], { timeoutMs: 1e4 });
@@ -175,12 +175,12 @@ async function probe(run = runCaptured) {
175
175
  };
176
176
  return {
177
177
  ok: false,
178
- error: `aibridge: "agy" returned no version output. ${INSTALL_HINT$1}`
178
+ error: `aibridge: "agy" returned no version output. ${INSTALL_HINT}`
179
179
  };
180
180
  } catch (err) {
181
181
  if (isNotFound(err)) return {
182
182
  ok: false,
183
- error: `aibridge: "agy" not found on PATH. ${INSTALL_HINT$1}`
183
+ error: `aibridge: "agy" not found on PATH. ${INSTALL_HINT}`
184
184
  };
185
185
  return {
186
186
  ok: false,
@@ -314,7 +314,6 @@ function mtime(path) {
314
314
  //#endregion
315
315
  //#region src/run.ts
316
316
  const NOISE_RE = /^Shell cwd was reset[^\n]*$/gm;
317
- const INSTALL_HINT = "Install the Antigravity CLI and sign in.";
318
317
  function clean(s) {
319
318
  return stripAnsi(s).replace(NOISE_RE, "").trim();
320
319
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibridge/driver-agy",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Antigravity (agy) CLI driver for aibridge",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@aibridge/proc": "0.8.0"
35
+ "@aibridge/proc": "0.9.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "tsdown": "0.22.14"
package/src/probe.ts CHANGED
@@ -4,7 +4,7 @@ export type Availability =
4
4
  | { readonly ok: true; readonly version: string }
5
5
  | { readonly ok: false; readonly error: string };
6
6
 
7
- const INSTALL_HINT = 'Install the Antigravity CLI and sign in.';
7
+ export const INSTALL_HINT = 'Install the Antigravity CLI and sign in.';
8
8
 
9
9
  export async function probe(run: typeof runCaptured = runCaptured): Promise<Availability> {
10
10
  try {
package/src/run.ts CHANGED
@@ -3,6 +3,7 @@ import { tmpdir } from 'node:os';
3
3
  import { join } from 'node:path';
4
4
  import { isNotFound, type RunResult, runCaptured, stripAnsi } from '@aibridge/proc';
5
5
  import { buildAgyPrintArgs } from './agy.ts';
6
+ import { INSTALL_HINT } from './probe.ts';
6
7
 
7
8
  export interface DelegationTask {
8
9
  readonly prompt: string;
@@ -26,7 +27,6 @@ export type DelegationResult =
26
27
  };
27
28
 
28
29
  const NOISE_RE = /^Shell cwd was reset[^\n]*$/gm;
29
- const INSTALL_HINT = 'Install the Antigravity CLI and sign in.';
30
30
 
31
31
  function clean(s: string): string {
32
32
  return stripAnsi(s).replace(NOISE_RE, '').trim();