@lwmxiaobei/xbcode 1.0.0 → 1.0.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.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -494,7 +494,7 @@ function getMessagePalette(kind) {
|
|
|
494
494
|
function WelcomePanel({ width, messages }) {
|
|
495
495
|
const contentWidth = Math.max(20, width - 4);
|
|
496
496
|
const authWarning = getProviderStartupAuthWarning();
|
|
497
|
-
return (_jsxs(Box, { borderStyle: "round", borderColor: "red", flexDirection: "column", marginBottom: 1, paddingX: 1, paddingY: 0, children: [_jsxs(Box, { justifyContent: "space-between", children: [_jsx(Text, { bold: true, color: "red", children: "xbcode" }), _jsxs(Text, { color: "gray", children: ["v", pkg.version] })] }), _jsxs(Box, { marginTop: 1, children: [_jsxs(Box, { width: "36%", flexDirection: "column", paddingRight: 2, children: [_jsxs(Text, { bold: true, children: ["Welcome back", currentResolved ? ` · ${currentResolved.providerName}` : ""] }), _jsx(Text, { color: "gray", children: ellipsize(WORKDIR, contentWidth) }), _jsx(Text, { children: " " }), _jsx(Text, { color: "red", children: " \u259F\u2588\u2588\u2599" }), _jsx(Text, { color: "red", children: "
|
|
497
|
+
return (_jsxs(Box, { borderStyle: "round", borderColor: "red", flexDirection: "column", marginBottom: 1, paddingX: 1, paddingY: 0, children: [_jsxs(Box, { justifyContent: "space-between", children: [_jsx(Text, { bold: true, color: "red", children: "xbcode" }), _jsxs(Text, { color: "gray", children: ["v", pkg.version] })] }), _jsxs(Box, { marginTop: 1, children: [_jsxs(Box, { width: "36%", flexDirection: "column", paddingRight: 2, children: [_jsxs(Text, { bold: true, children: ["Welcome back", currentResolved ? ` · ${currentResolved.providerName}` : ""] }), _jsx(Text, { color: "gray", children: ellipsize(WORKDIR, contentWidth) }), _jsx(Text, { children: " " }), _jsx(Text, { color: "red", children: " \u259F\u2599 \u259F\u2599" }), _jsx(Text, { color: "red", children: " \u259F\u2588\u2588\u2586\u2586\u2586\u2586\u2588\u2588\u2599" }), _jsx(Text, { color: "red", children: " \u2597\u259F\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2599\u2584\u2596" }), _jsx(Text, { color: "red", children: " \u259C\u2588\u2588\u2588\u2588\u2580\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u259B\u2580\u2584" }), _jsx(Text, { color: "red", children: " \u2580\u2580\u259C\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u259B\u2580" }), _jsx(Text, { color: "red", children: " \u258F \u258F \u258F" }), _jsx(Text, { children: " " }), _jsx(Text, { color: "gray", children: currentResolved ? `${currentResolved.model} · ${currentResolved.apiMode}` : "No model selected" })] }), _jsx(Box, { width: 1, children: _jsx(Text, { color: "red", children: "\u2502" }) }), _jsxs(Box, { flexGrow: 1, flexDirection: "column", paddingLeft: 2, children: [_jsx(Text, { bold: true, color: "red", children: "Tips for getting started" }), _jsxs(Text, { children: ["Run ", _jsx(Text, { color: "whiteBright", children: "/help" }), " to see commands, ", _jsx(Text, { color: "whiteBright", children: "/model" }), " to switch models."] }), _jsxs(Text, { children: ["Use ", _jsx(Text, { color: "whiteBright", children: "/new" }), " to reset, or ", _jsx(Text, { color: "whiteBright", children: "/resume" }), " to reopen a saved session."] }), authWarning
|
|
498
498
|
? _jsxs(Text, { color: "red", children: ["\u5F53\u524D provider ", authWarning, "\u3002\u8BF7\u5148\u914D\u7F6E API\uFF0C\u6216\u8005\u5B8C\u6210 /login\u3002"] })
|
|
499
499
|
: null] })] })] }));
|
|
500
500
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwmxiaobei/xbcode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Xbcode CLI agent",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/lwmxiaobei/
|
|
10
|
+
"url": "git+https://github.com/lwmxiaobei/xbcode.git"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://github.com/lwmxiaobei/
|
|
12
|
+
"homepage": "https://github.com/lwmxiaobei/xbcode#readme",
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/lwmxiaobei/
|
|
14
|
+
"url": "https://github.com/lwmxiaobei/xbcode/issues"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"proper-lockfile": "^4.1.2",
|
|
57
57
|
"react": "^19.2.4",
|
|
58
58
|
"undici": "^7.25.0",
|
|
59
|
-
"zod": "^
|
|
59
|
+
"zod": "^3.23.8"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^24.5.2",
|