@aibridge/cli 0.0.1 → 0.0.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/dist/cli.mjs +1 -1
- package/dist/{context-BLjTHa41.mjs → context-BgY0Re1f.mjs} +7 -7
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
- package/src/commands/quota/impl.ts +3 -3
- package/src/driver.ts +3 -3
- package/src/drivers.ts +4 -4
- package/src/quotaPreflight.test.ts +2 -2
- package/src/quotaPreflight.ts +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -4,13 +4,13 @@ import { appendFileSync, closeSync, copyFileSync, existsSync, mkdirSync, mkdtemp
|
|
|
4
4
|
import { homedir, tmpdir } from "node:os";
|
|
5
5
|
import { isAbsolute, join, resolve } from "node:path";
|
|
6
6
|
import { isNotFound, runCaptured } from "@aibridge/proc";
|
|
7
|
-
import * as agy from "@aibridge/agy";
|
|
8
|
-
import { fetchAgyQuota, findModelQuota } from "@aibridge/agy";
|
|
9
|
-
import * as claude from "@aibridge/claude";
|
|
10
|
-
import { fetchClaudeQuota } from "@aibridge/claude";
|
|
11
|
-
import * as codex from "@aibridge/codex";
|
|
12
|
-
import { fetchCodexQuota } from "@aibridge/codex";
|
|
13
|
-
import * as grok from "@aibridge/grok";
|
|
7
|
+
import * as agy from "@aibridge/driver-agy";
|
|
8
|
+
import { fetchAgyQuota, findModelQuota } from "@aibridge/driver-agy";
|
|
9
|
+
import * as claude from "@aibridge/driver-claude";
|
|
10
|
+
import { fetchClaudeQuota } from "@aibridge/driver-claude";
|
|
11
|
+
import * as codex from "@aibridge/driver-codex";
|
|
12
|
+
import { fetchCodexQuota } from "@aibridge/driver-codex";
|
|
13
|
+
import * as grok from "@aibridge/driver-grok";
|
|
14
14
|
import { randomBytes } from "node:crypto";
|
|
15
15
|
//#region src/models.ts
|
|
16
16
|
const MODELS = {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandContext } from "@stricli/core";
|
|
2
|
-
import { AgyQuotaSnapshot } from "@aibridge/agy";
|
|
3
|
-
import { ClaudeQuotaSnapshot } from "@aibridge/claude";
|
|
4
|
-
import { CodexQuotaSnapshot } from "@aibridge/codex";
|
|
2
|
+
import { AgyQuotaSnapshot } from "@aibridge/driver-agy";
|
|
3
|
+
import { ClaudeQuotaSnapshot } from "@aibridge/driver-claude";
|
|
4
|
+
import { CodexQuotaSnapshot } from "@aibridge/driver-codex";
|
|
5
5
|
//#region src/context.d.ts
|
|
6
6
|
interface LocalContext extends CommandContext {
|
|
7
7
|
/** Full Node process — satisfies stricli WritableStreams + exitCode/env/cwd used by impls. */
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as listModelHelpLines, S as formatUnknownModelError, T as supportsImageGen, _ as DEFAULT_IMPLEMENTER, a as readRunLogs, b as backendModelId, c as evaluateCodexPreflight, d as renderPreflightRefusal, f as delegate, g as DEFAULT_IMAGE_GEN, h as positiveIntSeconds, i as listRuns, l as preflightCodex, m as nonEmptyPrompt, n as app, o as startRun, p as getDriver, r as runCli, s as evaluateAgyPreflight, t as buildContext, u as preflightModel, v as DEFAULT_MODEL, w as resolveModel, x as formatImageGenModelError, y as MODELS } from "./context-
|
|
1
|
+
import { C as listModelHelpLines, S as formatUnknownModelError, T as supportsImageGen, _ as DEFAULT_IMPLEMENTER, a as readRunLogs, b as backendModelId, c as evaluateCodexPreflight, d as renderPreflightRefusal, f as delegate, g as DEFAULT_IMAGE_GEN, h as positiveIntSeconds, i as listRuns, l as preflightCodex, m as nonEmptyPrompt, n as app, o as startRun, p as getDriver, r as runCli, s as evaluateAgyPreflight, t as buildContext, u as preflightModel, v as DEFAULT_MODEL, w as resolveModel, x as formatImageGenModelError, y as MODELS } from "./context-BgY0Re1f.mjs";
|
|
2
2
|
export { DEFAULT_IMAGE_GEN, DEFAULT_IMPLEMENTER, DEFAULT_MODEL, MODELS, app, backendModelId, buildContext, delegate, evaluateAgyPreflight, evaluateCodexPreflight, formatImageGenModelError, formatUnknownModelError, getDriver, listModelHelpLines, listRuns, nonEmptyPrompt, positiveIntSeconds, preflightCodex, preflightModel, readRunLogs, renderPreflightRefusal, resolveModel, runCli, startRun, supportsImageGen };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aibridge/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "CLI that bridges tasks to non-Claude AI CLIs (plan / implement / review / subagent / image-gen)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/ycmjason/aibridge.git",
|
|
17
17
|
"directory": "packages/cli"
|
|
18
18
|
},
|
|
19
|
-
"homepage": "https://github.com/
|
|
19
|
+
"homepage": "https://github.com/ycmjason/aibridge#readme",
|
|
20
20
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/ycmjason/aibridge/issues"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@stricli/core": "1.3.0",
|
|
38
|
-
"@aibridge/proc": "0.0.
|
|
39
|
-
"@aibridge/
|
|
40
|
-
"@aibridge/
|
|
41
|
-
"@aibridge/
|
|
42
|
-
"@aibridge/
|
|
38
|
+
"@aibridge/proc": "0.0.2",
|
|
39
|
+
"@aibridge/driver-agy": "0.0.2",
|
|
40
|
+
"@aibridge/driver-grok": "0.0.2",
|
|
41
|
+
"@aibridge/driver-codex": "0.0.2",
|
|
42
|
+
"@aibridge/driver-claude": "0.0.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsdown": "0.22.14"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AgyQuotaSnapshot, fetchAgyQuota } from '@aibridge/agy';
|
|
2
|
-
import { type ClaudeQuotaSnapshot, fetchClaudeQuota } from '@aibridge/claude';
|
|
3
|
-
import { type CodexQuotaSnapshot, fetchCodexQuota } from '@aibridge/codex';
|
|
1
|
+
import { type AgyQuotaSnapshot, fetchAgyQuota } from '@aibridge/driver-agy';
|
|
2
|
+
import { type ClaudeQuotaSnapshot, fetchClaudeQuota } from '@aibridge/driver-claude';
|
|
3
|
+
import { type CodexQuotaSnapshot, fetchCodexQuota } from '@aibridge/driver-codex';
|
|
4
4
|
import type { LocalContext } from '../../context.ts';
|
|
5
5
|
|
|
6
6
|
export interface QuotaFlags {
|
package/src/driver.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AgyQuotaSnapshot } from '@aibridge/agy';
|
|
2
|
-
import type { ClaudeQuotaSnapshot } from '@aibridge/claude';
|
|
3
|
-
import type { CodexQuotaSnapshot } from '@aibridge/codex';
|
|
1
|
+
import type { AgyQuotaSnapshot } from '@aibridge/driver-agy';
|
|
2
|
+
import type { ClaudeQuotaSnapshot } from '@aibridge/driver-claude';
|
|
3
|
+
import type { CodexQuotaSnapshot } from '@aibridge/driver-codex';
|
|
4
4
|
import type { Effort } from './models.ts';
|
|
5
5
|
|
|
6
6
|
export type Availability =
|
package/src/drivers.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as agy from '@aibridge/agy';
|
|
2
|
-
import * as claude from '@aibridge/claude';
|
|
3
|
-
import * as codex from '@aibridge/codex';
|
|
4
|
-
import * as grok from '@aibridge/grok';
|
|
1
|
+
import * as agy from '@aibridge/driver-agy';
|
|
2
|
+
import * as claude from '@aibridge/driver-claude';
|
|
3
|
+
import * as codex from '@aibridge/driver-codex';
|
|
4
|
+
import * as grok from '@aibridge/driver-grok';
|
|
5
5
|
import type { AgentCliDriver } from './driver.ts';
|
|
6
6
|
import type { Backend } from './models.ts';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import assert from 'node:assert/strict';
|
|
2
|
-
import type { AgyQuotaSnapshot } from '@aibridge/agy';
|
|
3
|
-
import type { CodexQuotaSnapshot } from '@aibridge/codex';
|
|
2
|
+
import type { AgyQuotaSnapshot } from '@aibridge/driver-agy';
|
|
3
|
+
import type { CodexQuotaSnapshot } from '@aibridge/driver-codex';
|
|
4
4
|
import { test } from 'vitest';
|
|
5
5
|
import { evaluateAgyPreflight, evaluateCodexPreflight } from './quotaPreflight.ts';
|
|
6
6
|
|
package/src/quotaPreflight.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AgyQuotaSnapshot, fetchAgyQuota, findModelQuota } from '@aibridge/agy';
|
|
2
|
-
import { type CodexQuotaSnapshot, fetchCodexQuota } from '@aibridge/codex';
|
|
1
|
+
import { type AgyQuotaSnapshot, fetchAgyQuota, findModelQuota } from '@aibridge/driver-agy';
|
|
2
|
+
import { type CodexQuotaSnapshot, fetchCodexQuota } from '@aibridge/driver-codex';
|
|
3
3
|
import { backendModelId, type ResolvedModel } from './models.ts';
|
|
4
4
|
|
|
5
5
|
export type PreflightVerdict =
|