dew_core library

Classes

CommandRegistry
Holds the DewCommands registered by feature packages.
CompletionCommand
Shell completion helpers.
DewCommand
Base class for all Dew CLI commands.
DewConfig
Thin wrapper around the raw project YAML.
DewInitHook
Creates the initial .project/ scaffold for dew init.
DewInitOptions
Options passed to every DewInitHook during dew init.
InitCommand
McpTool
A single tool exposed to an MCP client.
McpToolProvider
Implement this interface to expose tools to the MCP server without needing a CLI command (e.g. a background service or data source).
ProjectContext
Locates the nearest project root and exposes the parsed DewConfig.
ProjectDirs
Path helper for well-known directories under a project root.

Mixins

DewToolCommand
Mixin that makes a DewCommand also act as an MCP tool.

Functions

schemaFromArgParser(ArgParser parser) Map<String, dynamic>
Derives a JSON Schema object from an ArgParser's declared options.

Typedefs

McpToolHandler = Future<String> Function(Map<String, dynamic> args)