@liumir/lmcode 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -108586,7 +108586,7 @@ function errorMessage(error) {
|
|
|
108586
108586
|
//#endregion
|
|
108587
108587
|
//#region src/cli/commands.ts
|
|
108588
108588
|
function createProgram(version, onMain, onMigrate, onPluginNodeRunner = () => {}, onStreamJson = () => {}, onChannelSetup = () => {}) {
|
|
108589
|
-
const program = new Command("lm").description("下一代智能体的起点").argument("[prompt...]", "一次性提示文本(等同于 -p,可放在选项之后;多词请用引号包裹)").version(version, "-V, --version").allowUnknownOption(false).configureHelp({ helpWidth: 100 }).helpOption("-h, --help", "显示帮助。").addHelpText("after", "\n文档: https://
|
|
108589
|
+
const program = new Command("lm").description("下一代智能体的起点").argument("[prompt...]", "一次性提示文本(等同于 -p,可放在选项之后;多词请用引号包裹)").version(version, "-V, --version").allowUnknownOption(false).configureHelp({ helpWidth: 100 }).helpOption("-h, --help", "显示帮助。").addHelpText("after", "\n文档: https://github.com/Lyin01/LMcode-cli\n");
|
|
108590
108590
|
program.addOption(new Option("-S, --session [id]", "恢复会话。带 ID:恢复该会话。不带 ID:交互式选择。").argParser((val) => val === true ? "" : val)).addOption(new Option("-r, --resume [id]").hideHelp().argParser((val) => val === true ? "" : val)).option("-C, --continue", "继续当前工作目录的上一个会话。", false).option("-y, --yolo", "自动批准所有操作。", false).option("--auto", "以自动权限模式启动。", false).addOption(new Option("-m, --model <model>", "本次调用使用的 LLM 模型别名。默认使用 config.toml 中的 default_model。")).addOption(new Option("-p, --prompt [prompt]", "非交互式运行一条提示并打印响应。提示文本也可作为末尾位置参数给出。")).addOption(new Option("--output-format <format>", "提示模式的输出格式。默认为 text。").choices(["text", "stream-json"])).addOption(new Option("--skills-dir <dir>", "从该目录加载技能,而不是自动发现的用户和项目目录。可多次指定。").argParser((value, previous) => [...previous ?? [], value]).default([])).addOption(new Option("--yes").hideHelp().default(false)).addOption(new Option("--auto-approve").hideHelp().default(false)).option("--plan", "以计划模式启动。", false);
|
|
108591
108591
|
registerExportCommand(program);
|
|
108592
108592
|
registerMigrateCommand(program, onMigrate);
|
package/dist/main.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
|
|
|
6
6
|
import "./suppress-sqlite-warning-C2VB0doZ.mjs";
|
|
7
7
|
//#region src/main.ts
|
|
8
8
|
try {
|
|
9
|
-
(await import("./app-
|
|
9
|
+
(await import("./app-BIa2QGC2.mjs")).main();
|
|
10
10
|
} catch (error) {
|
|
11
11
|
process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
|
|
12
12
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liumir/lmcode",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "A terminal-native AI agent for builders",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "liumir",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
55
55
|
"@types/semver": "^7.7.0",
|
|
56
56
|
"tsx": "^4.21.0",
|
|
57
|
-
"@lmcode-cli/config": "^0.7.3",
|
|
58
57
|
"@lmcode-cli/agent-core": "^0.7.3",
|
|
59
|
-
"@lmcode/memory": "0.7.3",
|
|
60
58
|
"@lmcode-cli/lmcode-sdk": "^0.7.3",
|
|
59
|
+
"@lmcode-cli/config": "^0.7.3",
|
|
60
|
+
"@lmcode/memory": "0.7.3",
|
|
61
61
|
"@lmcode-cli/migration-legacy": "^0.7.3"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|