feat(cli): scaffold CLI package with commander

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ty
2026-03-22 14:40:58 +08:00
committed by BeilunYang
parent 0c096f6c9f
commit 5b7ba3e924
5 changed files with 70 additions and 0 deletions

2
packages/cli/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
node_modules/
dist/

19
packages/cli/package.json Normal file
View File

@@ -0,0 +1,19 @@
{
"name": "moemail-cli",
"version": "0.1.0",
"description": "Agent-first CLI for MoeMail temporary email service",
"type": "module",
"bin": {
"moemail": "dist/index.js"
},
"scripts": {
"build": "bun build ./src/index.ts --outdir ./dist --target=node",
"dev": "bun run ./src/index.ts"
},
"files": ["dist"],
"keywords": ["email", "temporary", "cli", "agent", "ai"],
"license": "MIT",
"dependencies": {
"commander": "^12.0.0"
}
}

23
packages/cli/pnpm-lock.yaml generated Normal file
View File

@@ -0,0 +1,23 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
dependencies:
commander:
specifier: ^12.0.0
version: 12.1.0
packages:
commander@12.1.0:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
snapshots:
commander@12.1.0: {}

12
packages/cli/src/index.ts Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env node
import { Command } from "commander";
const program = new Command();
program
.name("moemail")
.description("MoeMail CLI — Agent-friendly temporary email tool")
.version("0.1.0")
.option("--json", "output as JSON");
program.parse();

View File

@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"esModuleInterop": true,
"strict": true,
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"skipLibCheck": true
},
"include": ["src"]
}