π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π fix(cli): move verify vocabulary to @lobechat/const/verify (#17195)
Arvin Xudf94e19ef211
diff --git a/apps/cli/package.json b/apps/cli/package.jsonindex cecbb2cf0d7..f7db4d7fedc 100644--- a/apps/cli/package.json+++ b/apps/cli/package.json@@ -1,6 +1,6 @@{"name": "@lobehub/cli",- "version": "0.0.40",+ "version": "0.0.42","type": "module","bin": {"lh": "./dist/index.js",@@ -29,6 +29,7 @@},"devDependencies": {"@lobechat/agent-gateway-client": "workspace:*",+ "@lobechat/const": "workspace:*","@lobechat/device-control": "workspace:*","@lobechat/device-gateway-client": "workspace:*","@lobechat/device-identity": "workspace:*",diff --git a/apps/cli/src/commands/verify.ts b/apps/cli/src/commands/verify.tsindex 26b2334b256..b70f0f5d628 100644--- a/apps/cli/src/commands/verify.ts+++ b/apps/cli/src/commands/verify.ts@@ -2,8 +2,12 @@ import { execFileSync } from 'node:child_process';import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';import path from 'node:path';-import type { VerifyRunOrigin, VerifySurface } from '@lobechat/types';-import { normalizeVerifySurface, verifyEvidenceTypes, verifySurfaces } from '@lobechat/types';+import type { VerifyRunOrigin, VerifySurface } from '@lobechat/const/verify';+import {+ normalizeVerifySurface,+ verifyEvidenceTypes,+ verifySurfaces,+} from '@lobechat/const/verify';import type { Command } from 'commander';import pc from 'picocolors';diff --git a/apps/server/src/routers/lambda/verify.ts b/apps/server/src/routers/lambda/verify.tsindex 2bb92115933..a3f0f87daea 100644--- a/apps/server/src/routers/lambda/verify.ts+++ b/apps/server/src/routers/lambda/verify.ts@@ -1,6 +1,6 @@import { VerifySkill } from '@lobechat/builtin-skills';+import { normalizeVerifySurface, verifySurfaces } from '@lobechat/const/verify';import type { VerifyCheckItem } from '@lobechat/types';-import { normalizeVerifySurface, verifySurfaces } from '@lobechat/types';import { TRPCError } from '@trpc/server';import { asc, eq } from 'drizzle-orm';import { z } from 'zod';diff --git a/apps/server/src/services/verify/repairService.ts b/apps/server/src/services/verify/repairService.tsindex 81133ecd5d2..1b0d8cc4836 100644--- a/apps/server/src/services/verify/repairService.ts+++ b/apps/server/src/services/verify/repairService.ts@@ -1,5 +1,5 @@+import { DEFAULT_MAX_REPAIR_ROUNDS } from '@lobechat/const/verify';import type { VerifyCheckItem, VerifyRunMetadata } from '@lobechat/types';-import { DEFAULT_MAX_REPAIR_ROUNDS } from '@lobechat/types';import debug from 'debug';import { AgentOperationModel } from '@/database/models/agentOperation';diff --git a/packages/builtin-tool-lobe-delivery-checker/src/client/Portal/RubricConfig.tsx b/packages/builtin-tool-lobe-delivery-checker/src/client/Portal/RubricConfig.tsxindex a872e567291..92a5d755bd9 100644--- a/packages/builtin-tool-lobe-delivery-checker/src/client/Portal/RubricConfig.tsx+++ b/packages/builtin-tool-lobe-delivery-checker/src/client/Portal/RubricConfig.tsx@@ -1,6 +1,6 @@'use client';-import { DEFAULT_MAX_REPAIR_ROUNDS } from '@lobechat/types';+import { DEFAULT_MAX_REPAIR_ROUNDS } from '@lobechat/const/verify';import { Flexbox, Icon, Input, InputNumber } from '@lobehub/ui';import { createStaticStyles } from 'antd-style';import { RefreshCw, Type } from 'lucide-react';diff --git a/packages/const/package.json b/packages/const/package.jsonindex a60d1966a83..09641cd2827 100644--- a/packages/const/package.json+++ b/packages/const/package.json@@ -9,6 +9,7 @@"./hotkeys": "./src/hotkeys.ts","./rbac": "./src/rbac.ts","./url": "./src/url.ts",+ "./verify": "./src/verify.ts","./visualRef": "./src/visualRef.ts"},"main": "./src/index.ts",diff --git a/packages/const/src/verify.test.ts b/packages/const/src/verify.test.tsnew file mode 100644index 00000000000..30f27eafd77--- /dev/null+++ b/packages/const/src/verify.test.ts@@ -0,0 +1,78 @@+import type {+ VerifierType,+ VerifyCheckResultStatus,+ VerifyEvidenceCapturedBy,+ VerifyEvidenceType,+ VerifyOnFailStrategy,+ VerifyRunOrigin as VerifyRunOriginType,+ VerifyRunScenario,+ VerifyRunSource,+ VerifyRunStatus,+ VerifySurface,+ VerifyUserDecision,+ VerifyVerdict,+} from '@lobechat/types';+import { describe, expect, expectTypeOf, it } from 'vitest';++import type {+ verifierTypes,+ verifyCheckResultStatuses,+ verifyEvidenceCapturedBy,+ verifyEvidenceTypes,+ verifyOnFailStrategies,+ VerifyRunOrigin,+ verifyRunScenarios,+ verifyRunSources,+ verifyRunStatuses,+ verifySurfaces,+ verifyUserDecisions,+ verifyVerdicts,+} from './verify';+import { normalizeVerifySurface } from './verify';++/**+ * `@lobechat/types` declares these unions independently β it cannot import them+ * from here, because it must stay free of a dependency on `@lobechat/const`+ * (which already type-imports from it). These assertions are what stops the two+ * hand-maintained sides from drifting: adding a member on one side only is a+ * type error, caught by `bun run check --type`, not a silent divergence.+ */+describe('verify vocabulary', () => {+ it('matches the unions declared in @lobechat/types', () => {+ expectTypeOf<(typeof verifierTypes)[number]>().toEqualTypeOf<VerifierType>();+ expectTypeOf<(typeof verifyOnFailStrategies)[number]>().toEqualTypeOf<VerifyOnFailStrategy>();+ expectTypeOf<+ (typeof verifyCheckResultStatuses)[number]+ >().toEqualTypeOf<VerifyCheckResultStatus>();+ expectTypeOf<(typeof verifyVerdicts)[number]>().toEqualTypeOf<VerifyVerdict>();+ expectTypeOf<(typeof verifyUserDecisions)[number]>().toEqualTypeOf<VerifyUserDecision>();+ expectTypeOf<(typeof verifyRunStatuses)[number]>().toEqualTypeOf<VerifyRunStatus>();+ expectTypeOf<(typeof verifyRunSources)[number]>().toEqualTypeOf<VerifyRunSource>();+ expectTypeOf<(typeof verifyRunScenarios)[number]>().toEqualTypeOf<VerifyRunScenario>();+ expectTypeOf<(typeof verifySurfaces)[number]>().toEqualTypeOf<VerifySurface>();+ expectTypeOf<(typeof verifyEvidenceTypes)[number]>().toEqualTypeOf<VerifyEvidenceType>();+ expectTypeOf<+ (typeof verifyEvidenceCapturedBy)[number]+ >().toEqualTypeOf<VerifyEvidenceCapturedBy>();+ expectTypeOf<VerifyRunOrigin>().toEqualTypeOf<VerifyRunOriginType>();+ });+});++describe('normalizeVerifySurface', () => {+ it('accepts a canonical surface, case- and space-insensitively', () => {+ expect(normalizeVerifySurface('cli')).toBe('cli');+ expect(normalizeVerifySurface(' Desktop ')).toBe('desktop');+ });++ it('resolves the unambiguous historical spellings', () => {+ expect(normalizeVerifySurface('electron')).toBe('desktop');+ expect(normalizeVerifySurface('browser')).toBe('web');+ expect(normalizeVerifySurface('ios')).toBe('mobile');+ });++ it('rejects a test kind β those name what was run, not where', () => {+ expect(normalizeVerifySurface('unit')).toBeNull();+ expect(normalizeVerifySurface('backend')).toBeNull();+ expect(normalizeVerifySurface('packaged build')).toBeNull();+ });+});diff --git a/packages/const/src/verify.ts b/packages/const/src/verify.tsnew file mode 100644index 00000000000..3bab8477da2--- /dev/null+++ b/packages/const/src/verify.ts@@ -0,0 +1,161 @@+/**+ * Verify vocabulary β the runtime closed sets every layer agrees on (schema,+ * server, CLI, store, UI), plus the small shapes that travel with them.+ *+ * Deliberately kept here rather than in `@lobechat/types`: these are runtime+ * values, and `@lobechat/types` is replaced by a hand-written stub inside the+ * isolated desktop workspace (`apps/desktop/stubs/types`), so a value imported+ * from it is unreachable for members of that workspace β `@lobehub/cli` among+ * them. This module imports nothing, so it resolves from every workspace.+ *+ * `packages/types/src/verify.ts` declares the same unions independently (it must+ * not depend on `@lobechat/const`) and owns the domain model built on top of them+ * β plan items, Toulmin narrative, evidence, reports. The two sides are pinned+ * together by `./verify.test.ts`, which fails the type-check on any drift.+ */++/**+ * How a single criterion is judged.+ * - program: run a deterministic command / script+ * - agent: spawn a sub agent_operations to investigate+ * - llm: call generateObject and let an LLM judge produce a Toulmin verdict+ */+export const verifierTypes = ['program', 'agent', 'llm'] as const;+export type VerifierType = (typeof verifierTypes)[number];++/** What to do when a check item fails. */+export const verifyOnFailStrategies = ['manual', 'auto_repair'] as const;+export type VerifyOnFailStrategy = (typeof verifyOnFailStrategies)[number];++/**+ * Lifecycle of a single check result.+ * - errored: the verifier could not run (infra / startup failure) β NOT a+ * delivery judgment. Kept distinct from `failed` so a broken verifier never+ * reads as a rejected delivery and never seeds an auto-repair round.+ */+export const verifyCheckResultStatuses = [+ 'pending',+ 'running',+ 'passed',+ 'failed',+ 'errored',+ 'skipped',+] as const;+export type VerifyCheckResultStatus = (typeof verifyCheckResultStatuses)[number];++/** Toulmin Claim β the verifier's judgement. */+export const verifyVerdicts = ['passed', 'failed', 'uncertain'] as const;+export type VerifyVerdict = (typeof verifyVerdicts)[number];++/** Human feedback on a result, feeding the data flywheel. */+export const verifyUserDecisions = ['accepted', 'rejected', 'overridden'] as const;+export type VerifyUserDecision = (typeof verifyUserDecisions)[number];++/**+ * Denormalized rollup of a verification session's pipeline state β mirrors the+ * legacy `agent_operations.verify_status` set so the two stay interchangeable+ * while results/reports migrate from being operation-anchored to run-anchored.+ */+export const verifyRunStatuses = [+ 'unverified',+ 'planned',+ 'verifying',+ 'passed',+ 'failed',+ // At least one required check errored (verifier couldn't run) and none+ // genuinely failed β verification is inconclusive, not a rejected delivery.+ 'errored',+ 'repairing',+ 'delivered',+] as const;+export type VerifyRunStatus = (typeof verifyRunStatuses)[number];++/**+ * What produced a verification session.+ * - agent: verifying a real Agent Run (`verify_runs.operation_id` set)+ * - agent-testing: a standalone session ingested from the agent-testing harness+ * (no Agent Run β `operation_id` is null)+ */+export const verifyRunSources = ['agent', 'agent-testing'] as const;+export type VerifyRunSource = (typeof verifyRunSources)[number];++/**+ * The kind of thing a verification session checks. Orthogonal to `source` (which+ * records what *produced* the run): `scenario` drives how the report renders its+ * scope header and scenario-specific detail. Open-ended β new scenarios add a+ * value here plus their own `VerifyRunContext` shape.+ * - coding: verifying a software change (branch / commit / surfaces under test).+ */+export const verifyRunScenarios = ['coding'] as const;+export type VerifyRunScenario = (typeof verifyRunScenarios)[number];++/**+ * The product surface a check was exercised on β *where* it ran, never *what+ * kind* of test it was. `unit` / `backend` / `type-check` are test kinds and do+ * not belong here; a backend change verified through the CLI has surface `cli`.+ *+ * A closed set on purpose: free-form surfaces drifted into 76 distinct values+ * (long prose, runtime modes, tool names), which no viewer can render as a+ * legible badge. Runtime detail ("packaged build", "CDP dev instance") belongs+ * on the plan item's `method`, not here.+ */+export const verifySurfaces = ['web', 'desktop', 'cli', 'mobile', 'bot'] as const;+export type VerifySurface = (typeof verifySurfaces)[number];++/**+ * Historical spellings that name a surface in this set. Only unambiguous+ * synonyms β anything else is a rejected value, not a guess.+ */+const VERIFY_SURFACE_ALIASES: Record<string, VerifySurface> = {+ android: 'mobile',+ browser: 'web',+ electron: 'desktop',+ ios: 'mobile',+ terminal: 'cli',+};++/** Canonical surface for a raw value, or null when it names no known surface. */+export const normalizeVerifySurface = (value: string): VerifySurface | null => {+ const key = value.trim().toLowerCase();+ if ((verifySurfaces as readonly string[]).includes(key)) return key as VerifySurface;+ return VERIFY_SURFACE_ALIASES[key] ?? null;+};++/** The medium of a captured evidence artifact. */+export const verifyEvidenceTypes = [+ 'screenshot',+ 'gif',+ 'video',+ 'text',+ 'dom_snapshot',+ 'transcript',+] as const;+export type VerifyEvidenceType = (typeof verifyEvidenceTypes)[number];++/** Who / what captured an evidence artifact (provenance). */+export const verifyEvidenceCapturedBy = [+ 'agent-browser',+ 'cdp',+ 'cli',+ 'program',+ 'llm_judge',+] as const;+export type VerifyEvidenceCapturedBy = (typeof verifyEvidenceCapturedBy)[number];++/** Default cap on automatic repair rounds when a rubric doesn't override it. */+export const DEFAULT_MAX_REPAIR_ROUNDS = 3;++/**+ * The LobeHub conversation an ingested report was authored in. Lets the report+ * link back to (and later resume) the agent session that produced it. Lives here+ * because the CLI authors it (from the child env the runtime echoes in) before+ * any other layer sees it.+ */+export interface VerifyRunOrigin {+ /** The agent that ran the verification. */+ agentId?: string;+ /** The agent operation (one execution) that produced the report. */+ operationId?: string;+ /** The topic to reopen to continue from this report. */+ topicId?: string;+}diff --git a/packages/database/src/schemas/agentOperations.ts b/packages/database/src/schemas/agentOperations.tsindex bb4f07aac37..0e780c872f3 100644--- a/packages/database/src/schemas/agentOperations.ts+++ b/packages/database/src/schemas/agentOperations.ts@@ -1,5 +1,5 @@+import { verifyRunStatuses } from '@lobechat/const/verify';import type { VerifyCheckItem } from '@lobechat/types';-import { verifyRunStatuses } from '@lobechat/types';import { boolean, index, integer, jsonb, pgTable, text } from 'drizzle-orm/pg-core';import { amountNumeric, timestamps, timestamptz } from './_helpers';@@ -84,7 +84,7 @@ export const agentOperations = pgTable(// longer read or written by the verify pipeline and are dropped in a later// cleanup migration.// Denormalized rollup of the verify (delivery checker) state. Shares the- // single `verifyRunStatuses` set from `@lobechat/types` so it can't drift+ // single `verifyRunStatuses` set from `@lobechat/const/verify` so it can't drift// from `verify_runs.status`./** @deprecated read from verify_runs.status */verifyStatus: text('verify_status', { enum: verifyRunStatuses }),diff --git a/packages/database/src/schemas/verify.ts b/packages/database/src/schemas/verify.tsindex 7dd097939ec..36dc6d17192 100644--- a/packages/database/src/schemas/verify.ts+++ b/packages/database/src/schemas/verify.ts@@ -1,11 +1,3 @@-import type {- ToulminVerdict,- VerifyCheckItem,- VerifyRubricConfig,- VerifyRunContext,- VerifyRunMetadata,- VerifyRunScenario,-} from '@lobechat/types';import {verifierTypes,verifyCheckResultStatuses,@@ -16,6 +8,14 @@ import {verifyRunStatuses,verifyUserDecisions,verifyVerdicts,+} from '@lobechat/const/verify';+import type {+ ToulminVerdict,+ VerifyCheckItem,+ VerifyRubricConfig,+ VerifyRunContext,+ VerifyRunMetadata,+ VerifyRunScenario,} from '@lobechat/types';import {boolean,diff --git a/packages/types/src/verify.ts b/packages/types/src/verify.tsindex 69214a0ad43..47cc609bd17 100644--- a/packages/types/src/verify.ts+++ b/packages/types/src/verify.ts@@ -3,6 +3,15 @@* shape, Toulmin narrative, and rubric run-policy config. Kept here (not in the* DB schema) so every layer β schema, services, store, UI β depends on one* source of truth without reaching into the database package.+ *+ * The unions below are declared here, and their runtime counterparts (the `as+ * const` arrays a schema or a `<Select>` iterates) live in+ * `@lobechat/const/verify`. The duplication is deliberate: this package is+ * replaced by a hand-written stub inside the isolated desktop workspace, so a+ * runtime value exported from here is unreachable for members of that workspace+ * (`@lobehub/cli`), while `@lobechat/types` must stay dependency-free of+ * `@lobechat/const`. `packages/const/src/verify.test.ts` fails the type-check the+ * moment the two sides drift apart.*//**@@ -11,12 +20,10 @@* - agent: spawn a sub agent_operations to investigate* - llm: call generateObject and let an LLM judge produce a Toulmin verdict*/-export const verifierTypes = ['program', 'agent', 'llm'] as const;-export type VerifierType = (typeof verifierTypes)[number];+export type VerifierType = 'program' | 'agent' | 'llm';/** What to do when a check item fails. */-export const verifyOnFailStrategies = ['manual', 'auto_repair'] as const;-export type VerifyOnFailStrategy = (typeof verifyOnFailStrategies)[number];+export type VerifyOnFailStrategy = 'manual' | 'auto_repair';/*** Lifecycle of a single check result.@@ -24,42 +31,32 @@ export type VerifyOnFailStrategy = (typeof verifyOnFailStrategies)[number];* delivery judgment. Kept distinct from `failed` so a broken verifier never* reads as a rejected delivery and never seeds an auto-repair round.*/-export const verifyCheckResultStatuses = [- 'pending',- 'running',- 'passed',- 'failed',- 'errored',- 'skipped',-] as const;-export type VerifyCheckResultStatus = (typeof verifyCheckResultStatuses)[number];+export type VerifyCheckResultStatus =+ 'pending' | 'running' | 'passed' | 'failed' | 'errored' | 'skipped';/** Toulmin Claim β the verifier's judgement. */-export const verifyVerdicts = ['passed', 'failed', 'uncertain'] as const;-export type VerifyVerdict = (typeof verifyVerdicts)[number];+export type VerifyVerdict = 'passed' | 'failed' | 'uncertain';/** Human feedback on a result, feeding the data flywheel. */-export const verifyUserDecisions = ['accepted', 'rejected', 'overridden'] as const;-export type VerifyUserDecision = (typeof verifyUserDecisions)[number];+export type VerifyUserDecision = 'accepted' | 'rejected' | 'overridden';/*** Denormalized rollup of a verification session's pipeline state β mirrors the* legacy `agent_operations.verify_status` set so the two stay interchangeable* while results/reports migrate from being operation-anchored to run-anchored.+ *+ * `errored`: at least one required check errored (verifier couldn't run) and none+ * genuinely failed β verification is inconclusive, not a rejected delivery.*/-export const verifyRunStatuses = [- 'unverified',- 'planned',- 'verifying',- 'passed',- 'failed',- // At least one required check errored (verifier couldn't run) and none- // genuinely failed β verification is inconclusive, not a rejected delivery.- 'errored',- 'repairing',- 'delivered',-] as const;-export type VerifyRunStatus = (typeof verifyRunStatuses)[number];+export type VerifyRunStatus =+ | 'unverified'+ | 'planned'+ | 'verifying'+ | 'passed'+ | 'failed'+ | 'errored'+ | 'repairing'+ | 'delivered';/*** What produced a verification session.@@ -67,8 +64,7 @@ export type VerifyRunStatus = (typeof verifyRunStatuses)[number];* - agent-testing: a standalone session ingested from the agent-testing harness* (no Agent Run β `operation_id` is null)*/-export const verifyRunSources = ['agent', 'agent-testing'] as const;-export type VerifyRunSource = (typeof verifyRunSources)[number];+export type VerifyRunSource = 'agent' | 'agent-testing';/*** The kind of thing a verification session checks. Orthogonal to `source` (which@@ -77,8 +73,7 @@ export type VerifyRunSource = (typeof verifyRunSources)[number];* value here plus their own {@link VerifyRunContext} shape.* - coding: verifying a software change (branch / commit / surfaces under test).*/-export const verifyRunScenarios = ['coding'] as const;-export type VerifyRunScenario = (typeof verifyRunScenarios)[number];+export type VerifyRunScenario = 'coding';/*** The product surface a check was exercised on β *where* it ran, never *what@@ -90,27 +85,27 @@ export type VerifyRunScenario = (typeof verifyRunScenarios)[number];* legible badge. Runtime detail ("packaged build", "CDP dev instance") belongs* on the plan item's `method`, not here.*/-export const verifySurfaces = ['web', 'desktop', 'cli', 'mobile', 'bot'] as const;-export type VerifySurface = (typeof verifySurfaces)[number];+export type VerifySurface = 'web' | 'desktop' | 'cli' | 'mobile' | 'bot';++/** The medium of a captured evidence artifact. */+export type VerifyEvidenceType =+ 'screenshot' | 'gif' | 'video' | 'text' | 'dom_snapshot' | 'transcript';++/** Who / what captured an evidence artifact (provenance). */+export type VerifyEvidenceCapturedBy = 'agent-browser' | 'cdp' | 'cli' | 'program' | 'llm_judge';/**- * Historical spellings that name a surface in this set. Only unambiguous- * synonyms β anything else is a rejected value, not a guess.+ * The LobeHub conversation an ingested report was authored in. Lets the report+ * link back to (and later resume) the agent session that produced it.*/-const VERIFY_SURFACE_ALIASES: Record<string, VerifySurface> = {- android: 'mobile',- browser: 'web',- electron: 'desktop',- ios: 'mobile',- terminal: 'cli',-};--/** Canonical surface for a raw value, or null when it names no known surface. */-export const normalizeVerifySurface = (value: string): VerifySurface | null => {- const key = value.trim().toLowerCase();- if ((verifySurfaces as readonly string[]).includes(key)) return key as VerifySurface;- return VERIFY_SURFACE_ALIASES[key] ?? null;-};+export interface VerifyRunOrigin {+ /** The agent that ran the verification. */+ agentId?: string;+ /** The agent operation (one execution) that produced the report. */+ operationId?: string;+ /** The topic to reopen to continue from this report. */+ topicId?: string;+}/*** Coding-scenario scope: where the code under test came from and how it ran.@@ -189,9 +184,6 @@ export interface VerifyInteractionCost {waitSeconds: number;}-/** Default cap on automatic repair rounds when a rubric doesn't override it. */-export const DEFAULT_MAX_REPAIR_ROUNDS = 3;-/*** Run-policy knobs for a rubric β applied to every run that mounts it. Lives in* one bag (not columns) so new policy switches can be added without a migration.@@ -205,19 +197,6 @@ export interface VerifyRubricConfig {maxRepairRounds?: number;}-/**- * The LobeHub conversation an ingested report was authored in. Lets the report- * link back to (and later resume) the agent session that produced it.- */-export interface VerifyRunOrigin {- /** The agent that ran the verification. */- agentId?: string;- /** The agent operation (one execution) that produced the report. */- operationId?: string;- /** The topic to reopen to continue from this report. */- topicId?: string;-}-/*** Generic per-run extension bag (`verify_runs.metadata`) β cross-scenario knobs* we don't model as columns. Kept open so new policy switches don't require a@@ -317,27 +296,6 @@ export interface ToulminVerdict {// Evidence β first-class artifacts a verifier produces (screenshots, logs, β¦)// ============================================-/** The medium of a captured evidence artifact. */-export const verifyEvidenceTypes = [- 'screenshot',- 'gif',- 'video',- 'text',- 'dom_snapshot',- 'transcript',-] as const;-export type VerifyEvidenceType = (typeof verifyEvidenceTypes)[number];--/** Who / what captured an evidence artifact (provenance). */-export const verifyEvidenceCapturedBy = [- 'agent-browser',- 'cdp',- 'cli',- 'program',- 'llm_judge',-] as const;-export type VerifyEvidenceCapturedBy = (typeof verifyEvidenceCapturedBy)[number];-/*** Declares that a criterion is evidence-driven: it cannot pass on the* deliverable text alone β the run must capture and upload an artifact of eachdiff --git a/src/features/AgentTasks/AgentTaskDetail/VerifyCriterionModal/VerifyCriterionForm.tsx b/src/features/AgentTasks/AgentTaskDetail/VerifyCriterionModal/VerifyCriterionForm.tsxindex 394bb26d8a4..9d56c7a062a 100644--- a/src/features/AgentTasks/AgentTaskDetail/VerifyCriterionModal/VerifyCriterionForm.tsx+++ b/src/features/AgentTasks/AgentTaskDetail/VerifyCriterionModal/VerifyCriterionForm.tsx@@ -1,6 +1,6 @@'use client';-import { type VerifierType, verifierTypes } from '@lobechat/types';+import { type VerifierType, verifierTypes } from '@lobechat/const/verify';import { Flexbox, Input, Text, TextArea } from '@lobehub/ui';import { Button, Select, Switch, useModalContext } from '@lobehub/ui/base-ui';import { useMemo, useState } from 'react';diff --git a/src/features/Verify/utils.ts b/src/features/Verify/utils.tsindex 13576594de9..fe02c48e0cd 100644--- a/src/features/Verify/utils.ts+++ b/src/features/Verify/utils.ts@@ -1,5 +1,5 @@-import type { VerifyCheckItem, VerifyCodingScope, VerifySurface } from '@lobechat/types';-import { normalizeVerifySurface } from '@lobechat/types';+import { normalizeVerifySurface, type VerifySurface } from '@lobechat/const/verify';+import type { VerifyCheckItem, VerifyCodingScope } from '@lobechat/types';import type { VerifyStatus } from '@/database/models/agentOperation';import type { VerifyCheckResultItem } from '@/database/schemas/verify';