mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
b2ca78512f
- define the Command Pack API and integrate pack loading into the CLI runtime - add product-specific package, command prefix, and credential access policies - add plugin install, link, list, and remove commands - add validation, tests, documentation, and generated command references
21 lines
790 B
TypeScript
21 lines
790 B
TypeScript
import { createCli } from "bailian-cli-runtime";
|
|
import { commands } from "./commands.ts";
|
|
import { commandPackPolicy } from "./command-pack-policy.ts";
|
|
import pkg from "../package.json" with { type: "json" };
|
|
|
|
const quickStartTasks = [
|
|
"Help me generate a set of Amazon e-commerce main images for baseball caps (white background + lifestyle shots + model wear shots)",
|
|
"Help me generate a 3-minute humorous crosstalk audio clip",
|
|
"Help me generate a Little Red Riding Hood picture-book PDF (with illustrations)",
|
|
"Help me analyze this video and write a Xiaohongshu-style post",
|
|
] as const;
|
|
|
|
void createCli(commands, {
|
|
binName: "bl",
|
|
version: pkg.version,
|
|
clientName: "bailian-cli",
|
|
npmPackage: "bailian-cli",
|
|
quickStartTasks,
|
|
commandPacks: commandPackPolicy,
|
|
}).run();
|