mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Move chat runtime labels into domain
This commit is contained in:
parent
98ec2aa6a3
commit
d6214bbdc1
8 changed files with 8 additions and 8 deletions
|
|
@ -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"]);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue