Skip to content

Commit 30245eb

Browse files
committed
refactor(mcp): import the shared constSchema in the wait family
1 parent a6e05f8 commit 30245eb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/commands/capture/wait.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { AppError } from '@agent-device/kernel/errors';
99
import { isValidSelectorExpression } from '@agent-device/selectors';
1010
import {
1111
booleanField,
12+
constSchema,
1213
enumField,
1314
integerField,
1415
numberSchema,
@@ -34,10 +35,6 @@ import { absenceCaptureOptionError } from '@agent-device/selectors/absence-obser
3435

3536
const WAIT_COMMAND_NAME = 'wait';
3637

37-
function constSchema(value: string): JsonSchema {
38-
return { type: 'string', const: value };
39-
}
40-
4138
/**
4239
* This family's advertised MCP `outputSchema`, keyed by daemon command name and projected into
4340
* the command map by `src/mcp/command-output-schemas.ts`. Non-strict like every other entry: no

0 commit comments

Comments
 (0)