@lmctl-ai/lmctl 0.2.31 → 0.2.32
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/index.js +412 -407
- package/dist/cli/script.js +225 -224
- package/dist/providers/ratelimit/agy.d.ts +2 -1
- package/dist/providers/ratelimit/claude.d.ts +3 -2
- package/dist/providers/ratelimit/codex.d.ts +2 -1
- package/dist/providers/ratelimit/kimi.d.ts +3 -2
- package/dist/providers/ratelimit/schema.d.ts +12 -0
- package/dist/providers/ratelimit-readings.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type QuotaDiagnostics } from './schema.js';
|
|
1
2
|
type CommandResult = {
|
|
2
3
|
status: number | null;
|
|
3
4
|
stdout?: string;
|
|
@@ -17,5 +18,5 @@ export declare function _setAgyDepsForTests(deps: {
|
|
|
17
18
|
export declare function readAgy(options: {
|
|
18
19
|
timeoutSeconds: number;
|
|
19
20
|
env: NodeJS.ProcessEnv;
|
|
20
|
-
}): Promise<Record<string, unknown>>;
|
|
21
|
+
} & QuotaDiagnostics): Promise<Record<string, unknown>>;
|
|
21
22
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type QuotaDiagnostics } from './schema.js';
|
|
2
|
+
export interface ClaudeReadOptions extends QuotaDiagnostics {
|
|
2
3
|
timeoutSeconds: number;
|
|
3
4
|
env: NodeJS.ProcessEnv;
|
|
4
5
|
}
|
|
5
|
-
export declare function readClaude({ timeoutSeconds, env }: ClaudeReadOptions): Promise<Record<string, unknown>>;
|
|
6
|
+
export declare function readClaude({ timeoutSeconds, env, debug, onRawResponse }: ClaudeReadOptions): Promise<Record<string, unknown>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type QuotaDiagnostics } from './schema.js';
|
|
1
2
|
type JsonObject = Record<string, unknown>;
|
|
2
3
|
export declare function readCodex(options: {
|
|
3
4
|
timeoutSeconds: number;
|
|
4
5
|
env: NodeJS.ProcessEnv;
|
|
5
|
-
}): Promise<JsonObject>;
|
|
6
|
+
} & QuotaDiagnostics): Promise<JsonObject>;
|
|
6
7
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type QuotaDiagnostics } from './schema.js';
|
|
2
|
+
export interface KimiReadOptions extends QuotaDiagnostics {
|
|
2
3
|
timeoutSeconds: number;
|
|
3
4
|
env: NodeJS.ProcessEnv;
|
|
4
5
|
}
|
|
5
|
-
export declare function readKimi({ timeoutSeconds, env }: KimiReadOptions): Promise<Record<string, unknown>>;
|
|
6
|
+
export declare function readKimi({ timeoutSeconds, env, debug, onRawResponse }: KimiReadOptions): Promise<Record<string, unknown>>;
|
|
@@ -12,3 +12,15 @@ export declare function makeBucket(fields: Record<string, unknown>): Record<stri
|
|
|
12
12
|
export declare function makeReading(provider: string, status: string, fields?: Record<string, unknown>): Record<string, unknown>;
|
|
13
13
|
export declare function errorReading(provider: string, status: string, reason: string, detail?: unknown, source?: string, secrets?: Iterable<string | null | undefined>, retryAfterSeconds?: number | null): Record<string, unknown>;
|
|
14
14
|
export declare function parseRetryAfter(headers: Headers): number | null;
|
|
15
|
+
/** Quota responses only; never use for credentials or OAuth refresh bodies. */
|
|
16
|
+
export type RawQuotaDebug = (message: string) => void;
|
|
17
|
+
export interface RawQuotaResponse {
|
|
18
|
+
source: string;
|
|
19
|
+
http_status?: number;
|
|
20
|
+
text: string;
|
|
21
|
+
}
|
|
22
|
+
export interface QuotaDiagnostics {
|
|
23
|
+
debug?: RawQuotaDebug;
|
|
24
|
+
onRawResponse?: (response: RawQuotaResponse) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function captureQuota(options: QuotaDiagnostics, source: string, text: string, secrets?: Iterable<unknown>, httpStatus?: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmctl-ai/lmctl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
4
4
|
"description": "A provider-agnostic control plane for teams of AI coding agents — across providers, with independent review and durable memory.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://lmctl.com",
|