@liumir/lmcode 0.8.1 → 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 +1 -1
- package/dist/{app-BIa2QGC2.mjs → app-D3VgN9ia.mjs} +32 -6
- package/dist/main.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img width="
|
|
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">
|
|
@@ -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 = [
|
|
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-
|
|
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);
|