Skip to content

Commit c6c6834

Browse files
committed
refactor(mcp): import the shared constSchema in the push management family
1 parent 71768b1 commit c6c6834

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/commands/management/push.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
import type { CliReader, DaemonWriter } from '../cli-grammar/types.ts';
1616
import type { JsonSchema } from '../command-contract.ts';
1717
import {
18+
constSchema,
1819
jsonSchemaField,
1920
looseObjectField,
2021
looseObjectSchema,
@@ -28,10 +29,6 @@ import {
2829
import { defineCommandFacet } from '../family/types.ts';
2930
import { defineFieldCommandMetadata } from '../field-command-contract.ts';
3031

31-
function constSchema(value: string): JsonSchema {
32-
return { type: 'string', const: value };
33-
}
34-
3532
/**
3633
* This family's advertised MCP `outputSchema`s, keyed by daemon command name and projected into
3734
* the command map by `src/mcp/command-output-schemas.ts`. Non-strict like every other entry: no

0 commit comments

Comments
 (0)