Make bot types an extension of the bot's kind
Coordinator and worker come from bots.kind; bot_types now only holds workspace_admin (was admin), each row naming its workspace, with no scope field. Rows from v0.2.8 and earlier are fixed at boot by migrateBotTypes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+6
-1
@@ -34,7 +34,7 @@ import type { HarnessKind } from "../dict/harness-dict";
|
||||
import type { HarnessProviderKind } from "../dict/harness-provider-dict";
|
||||
import type { EnvParadigm, KnownEnv, SecretRequestStatus } from "../dict/env-dict";
|
||||
import type { ContainerStatus } from "../dict/computer-dict";
|
||||
import type { BotFace, BotMessageReactionEmoji } from "../dict/bot-dict";
|
||||
import type { BotFace, BotKind, BotMessageReactionEmoji } from "../dict/bot-dict";
|
||||
import type { HarnessCallSettings, TokenUsageSummary } from "../harness/usage/types";
|
||||
import type { McpServerStatus, McpTransport } from "../dict/mcp-dict";
|
||||
import type { ExtensionProposalKind, ExtensionProposalStatus } from "../dict/extension-proposal-dict";
|
||||
@@ -2051,6 +2051,11 @@ export type TypeAssignmentMatrixType<
|
||||
|
||||
export type BotType = (typeof BotTypes)[number]["value"];
|
||||
|
||||
/**
|
||||
* What a bot is where it works: its kind, or a type it holds there.
|
||||
*/
|
||||
export type BotRole = BotKind | BotType;
|
||||
|
||||
export type BotPermission = (typeof BotPermissions)[number]["value"];
|
||||
|
||||
export type LoginFormObject = {
|
||||
|
||||
Reference in New Issue
Block a user