Move chat runtime labels into domain

This commit is contained in:
murashit 2026-06-22 17:14:20 +09:00
parent 98ec2aa6a3
commit d6214bbdc1
8 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@ import {
type SlashCommandSubcommandDefinition,
} from "../composer/slash-commands";
import type { MessageStreamAuditFact, MessageStreamNoticeSection } from "../../domain/message-stream/items";
import { modelOverrideMessage, reasoningEffortOverrideMessage } from "../../presentation/runtime/messages";
import { modelOverrideMessage, reasoningEffortOverrideMessage } from "../../domain/runtime/labels";
const DEFAULT_RUNTIME_SETTING_ALIASES = new Set(["default", "reset", "clear", "off"]);

View file

@ -12,7 +12,7 @@ import type { RuntimeSnapshot } from "../../domain/runtime/snapshot";
import { nextCollaborationMode, type CollaborationModeSelection, type RequestedFastMode } from "../../domain/runtime/intent";
import type { ChatAction, ChatState } from "../state/root-reducer";
import type { ChatStateStore } from "../state/store";
import { modelOverrideMessage, reasoningEffortOverrideMessage } from "../../presentation/runtime/messages";
import { modelOverrideMessage, reasoningEffortOverrideMessage } from "../../domain/runtime/labels";
interface ApplyPendingThreadSettingsResult {
ok: boolean;

View file

@ -1,5 +1,5 @@
import type { ReasoningEffort } from "../../../../domain/catalog/metadata";
import type { CollaborationModeSelection } from "../../domain/runtime/intent";
import type { CollaborationModeSelection } from "./intent";
export function compactReasoningEffortLabel(effort: ReasoningEffort | null): string {
if (!effort) return "default";

View file

@ -55,7 +55,7 @@ import { normalizeExplicitThreadName, type Thread } from "../../../domain/thread
import type { SharedServerMetadata } from "../../../domain/server/metadata";
import type { ConnectionWorkTracker } from "../../../shared/lifecycle/connection-work";
import { archiveExportSettings } from "../../threads/archive-export-settings";
import { collaborationModeLabel as formatCollaborationModeLabel } from "../presentation/runtime/messages";
import { collaborationModeLabel as formatCollaborationModeLabel } from "../domain/runtime/labels";
import {
effortStatusLines as buildEffortStatusLines,
modelStatusLines as buildModelStatusLines,

View file

@ -10,7 +10,7 @@ import {
supportedReasoningEfforts,
} from "../../domain/runtime/effective";
import { contextSummary } from "../../presentation/runtime/status";
import { compactReasoningEffortLabel } from "../../presentation/runtime/messages";
import { compactReasoningEffortLabel } from "../../domain/runtime/labels";
import { sortedModelMetadata } from "../../../../domain/catalog/metadata";
import type { ReasoningEffort } from "../../../../domain/catalog/metadata";
import type { RuntimeSnapshot } from "../../domain/runtime/snapshot";

View file

@ -9,7 +9,7 @@ import {
supportedReasoningEfforts,
} from "../../domain/runtime/effective";
import type { RuntimeSnapshot } from "../../domain/runtime/snapshot";
import { pendingRuntimeSettingLabel, serviceTierLabel as formatServiceTierLabel } from "./messages";
import { pendingRuntimeSettingLabel, serviceTierLabel as formatServiceTierLabel } from "../../domain/runtime/labels";
export interface ContextSummary {
label: string;

View file

@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { collaborationModeLabel } from "../../src/features/chat/presentation/runtime/messages";
import { collaborationModeLabel } from "../../src/features/chat/domain/runtime/labels";
import { nextCollaborationMode } from "../../src/features/chat/domain/runtime/intent";
describe("runtime collaboration mode", () => {

View file

@ -7,7 +7,7 @@ import {
compactReasoningEffortLabel,
modelOverrideMessage,
reasoningEffortOverrideMessage,
} from "../../src/features/chat/presentation/runtime/messages";
} from "../../src/features/chat/domain/runtime/labels";
import {
autoReviewActive,
currentModel,