@liumir/lmcode 0.8.0 → 0.8.2

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img width="807" height="152" alt="LMcode" src="https://github.com/user-attachments/assets/b589a9a5-ad1e-420a-aee0-f86c7ee06873" />
2
+ <img width="120" height="120" alt="LMcode" src="https://raw.githubusercontent.com/Lyin01/LMcode-cli/main/assets/logo.svg" />
3
3
  </p>
4
4
 
5
5
  <p align="center">
@@ -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://lmcode.chat/\n");
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);
@@ -112524,11 +112524,31 @@ const WELCOME_SESSION_SLOTS = 3;
112524
112524
  const LEFT_COLUMN_WIDTH = 22;
112525
112525
  const MIN_BOX_WIDTH = 50;
112526
112526
  const LOGO_FRAMES = [
112527
- ["██▄▄▄██", "▐█▄▀▄█▌"],
112528
- ["██▄▄▄██", "▐▄▄▀▄▄▌"],
112529
- ["██▄▄▄██", "▐▄▀▄▄▄▌"],
112530
- ["██▄▄▄██", "▐▄▄▄▀▄▌"],
112531
- ["██▄▄▄██", "▐█▄▀▄█▌"]
112527
+ [
112528
+ " █▀█▀█ ██",
112529
+ " █ █ █ ██",
112530
+ " █ █ █ ██"
112531
+ ],
112532
+ [
112533
+ "█ █▀█▀█ ",
112534
+ "█ █ █ █ ",
112535
+ "█ █ █ █ "
112536
+ ],
112537
+ [
112538
+ "█ █▀█▀█ ██",
112539
+ "█ █ █ █ ██",
112540
+ "█ █ █ █ ██"
112541
+ ],
112542
+ [
112543
+ "█ █▀█▀█ ",
112544
+ "█ █ █ █ ",
112545
+ "█ █ █ █ "
112546
+ ],
112547
+ [
112548
+ "█ █▀█▀█ ██",
112549
+ "█ █ █ █ ██",
112550
+ "█ █ █ █ ██"
112551
+ ]
112532
112552
  ];
112533
112553
  function hexToRgb$2(hex) {
112534
112554
  return [
@@ -112671,7 +112691,11 @@ var WelcomeComponent = class {
112671
112691
  if (this.state.hasNewVersion && this.state.latestVersion !== null) versionValue = chalk.hex(this.colors.warning)(this.state.version) + " " + dim("(" + this.state.latestVersion + ")");
112672
112692
  else versionValue = this.state.version;
112673
112693
  const frame = LOGO_FRAMES[this.breatheTimer !== null ? Math.floor(this.breatheFrame / 24) % LOGO_FRAMES.length : 0];
112674
- const logo = [boxColor(frame[0]), boxColor(frame[1])];
112694
+ const logo = [
112695
+ boxColor(frame[0]),
112696
+ boxColor(frame[1]),
112697
+ boxColor(frame[2])
112698
+ ];
112675
112699
  const tipLines = [];
112676
112700
  for (const tip of WELCOME_TIPS) tipLines.push(` ${dim("•")} ${muted(tip)}`);
112677
112701
  const sessionLines = [];
@@ -112698,6 +112722,7 @@ var WelcomeComponent = class {
112698
112722
  "",
112699
112723
  centerText(logo[0], leftCol),
112700
112724
  centerText(logo[1], leftCol),
112725
+ centerText(logo[2], leftCol),
112701
112726
  "",
112702
112727
  centerText(dim(versionValue), leftCol),
112703
112728
  centerText(dim(modelValue), leftCol)
@@ -112713,6 +112738,7 @@ var WelcomeComponent = class {
112713
112738
  "",
112714
112739
  centerText(logo[0], leftCol),
112715
112740
  centerText(logo[1], leftCol),
112741
+ centerText(logo[2], leftCol),
112716
112742
  "",
112717
112743
  centerText(dim(versionValue), leftCol),
112718
112744
  centerText(dim(modelValue), leftCol),
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-BFWlhAlt.mjs")).main();
9
+ (await import("./app-D3VgN9ia.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.0",
3
+ "version": "0.8.2",
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": {