@dysonic/dy-cli-core
v1.0.8
Published
Core package providing shared command contracts, execution abstractions, and helper utilities for dy-cli
Readme
@dysonic/dy-cli-core
Architecture
flowchart LR
commands["cmd-* packages"] --> abstractions["AbstractCommand / AbstractTask"]
commands --> helpers["helpers and adapters"]
commands --> contracts["interfaces and errors"]
helpers --> resolver["project resolver"]
helpers --> manager["package manager adapter"]@dysonic/dy-cli-core is the shared foundation package for dy-cli.
It provides:
- command abstractions
- external config contracts
- shared helpers
- error models
- base classes such as
AbstractCommandandAbstractTask
For the Chinese version, see README_ZH.md.
Role
This package does not implement concrete business commands. It provides the shared infrastructure used by:
createaddbuildtestpublish
Main Contents
src/commandscommand base classes such asAbstractCommandsrc/taskstask base classes such asAbstractTasksrc/interfacesconfig contracts fordy.config.tsand command config typessrc/helpersconfig loading, path resolution, logging, and shared utilitiessrc/errorsDyCliErrorand unified error codes
Public Surface
This package mainly exposes two kinds of capabilities:
runtime abstractions such as
AbstractCommandandAbstractTaskconfig definition helpers such as
defineConfig(...)
Typical Usage
Projects use this package for dy.config.ts typing:
import { defineConfig } from '@dysonic/dy-cli-core';
export default defineConfig({
commands: {},
});