fix: fix imports

This commit is contained in:
2026-04-02 15:36:32 +08:00
parent bd9569992b
commit 4f49599527
8 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { type ParseError } from 'inline-schema';
import type { Command, CommandSchema } from './types.js';
import type { Command, CommandSchema } from './types';
function validateCommandCore(command: Command, schema: CommandSchema): string[] {
const errors: string[] = [];
+2 -2
View File
@@ -1,5 +1,5 @@
import type { Command, CommandSchema } from './types.js';
import { applyCommandSchema } from './command-validate.js';
import type { Command, CommandSchema } from './types';
import { applyCommandSchema } from './command-validate';
export function parseCommand(input: string): Command;
export function parseCommand(input: string, schema: CommandSchema): Command;
+5 -5
View File
@@ -1,8 +1,8 @@
import type { Command, CommandSchema } from './types.js';
import type {CommandResult, CommandRunner, CommandRunnerContext, PromptEvent} from './command-runner.js';
import { parseCommand } from './command-parse.js';
import { applyCommandSchema } from './command-validate.js';
import { parseCommandSchema } from './schema-parse.js';
import type { Command, CommandSchema } from './types';
import type {CommandResult, CommandRunner, CommandRunnerContext, PromptEvent} from './command-runner';
import { parseCommand } from './command-parse';
import { applyCommandSchema } from './command-validate';
import { parseCommandSchema } from './schema-parse';
import {AsyncQueue} from "../async-queue";
export type CommandRegistry<TContext> = Map<string, CommandRunner<TContext, unknown>>;
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Command, CommandSchema } from './types.js';
import type { Command, CommandSchema } from './types';
export type PromptEvent = {
schema: CommandSchema;
+4 -4
View File
@@ -1,7 +1,7 @@
import type { Command, CommandSchema } from './types.js';
import { parseCommand } from './command-parse.js';
import { parseCommandSchema } from './schema-parse.js';
import { applyCommandSchema as applyCommandSchemaCore } from './command-apply.js';
import type { Command, CommandSchema } from './types';
import { parseCommand } from './command-parse';
import { parseCommandSchema } from './schema-parse';
import { applyCommandSchema as applyCommandSchemaCore } from './command-apply';
export { applyCommandSchemaCore as applyCommandSchema };
+1 -1
View File
@@ -1,5 +1,5 @@
import { defineSchema, type ParsedSchema } from 'inline-schema';
import type { CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema, ParsedOptionResult } from './types.js';
import type { CommandSchema, ParsedOptionResult } from './types';
export function parseCommandSchema(schemaStr: string, name?: string): CommandSchema {
const schema: CommandSchema = {