Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: drop an unused export and test the classifier settings logic

The runtime list was exported but only its type was used, so the type is
now written out. The form's pure logic (draft, checks, request body,
change detection) gets tests under node's built-in runner, run by the
existing swarm-ui check.
This commit is contained in:
iris 2026-10-14 14:51:45 +02:00 • committed by mara
commit 93ae435287
4 changed files with 126 additions and 3 deletions

View file

@ -8,8 +8,7 @@ export type Effort = (typeof EFFORTS)[number];
/** Which runtime a classification runs on: the claude CLI on the Anthropic
* API key, or opencode on an ACP provider. */
export const RUNTIMES = ["api-key", "acp"] as const;
export type Runtime = (typeof RUNTIMES)[number];
export type Runtime = "api-key" | "acp";
/** What the provider charges, in USD per million tokens. A cache price left
* out counts as `input`. */