agent-afk 5.319.6 → 5.320.0
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/agent/session/slot-route.d.ts +3 -0
- package/dist/cli/commands/doctor-slot-endpoints.d.ts +23 -0
- package/dist/cli.mjs +382 -382
- package/dist/index.mjs +188 -188
- package/dist/telegram.mjs +199 -199
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ModelSlots, type SlotName } from '../../agent/session/model-slots.js';
|
|
2
|
+
import type { Check } from './doctor-checks.js';
|
|
3
|
+
export declare const SLOT_PROBE_TIMEOUT_MS = 3000;
|
|
4
|
+
export interface SlotEndpointDeps {
|
|
5
|
+
bindings?: ModelSlots;
|
|
6
|
+
timeoutMs?: number;
|
|
7
|
+
fetchImpl?: typeof fetch;
|
|
8
|
+
isAnthropicRouted?: (slot: SlotName, bindings: ModelSlots) => Promise<boolean>;
|
|
9
|
+
routeOf?: (slot: SlotName, bindings: ModelSlots) => Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
export declare function sanitizeUrl(raw: string): string;
|
|
12
|
+
export declare function modelsUrl(baseUrl: string): string;
|
|
13
|
+
export type ProbeAuth = {
|
|
14
|
+
kind: 'slot-key';
|
|
15
|
+
key: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'no-slot-key';
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'unverified';
|
|
20
|
+
reason: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function planProbeAuth(binding: ModelSlots[SlotName], wireRoute: string): ProbeAuth;
|
|
23
|
+
export declare function checkSlotEndpoints(deps?: SlotEndpointDeps): Promise<Check[]>;
|