@shun-js/aibaiban-server 1.4.5 → 1.4.7
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/package.json +3 -3
- package/server/service/CCService.js +14 -2
- package/views/index.html +7 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shun-js/aibaiban-server",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "aibaiban.com server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai aibaiban"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"app.js"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"
|
|
25
|
+
"copy": "cp -r ./static/index.html ./views/index.html",
|
|
26
26
|
"upload": "qcos fo ../../configs/aibaiban-web.json ./static aibaiban/static"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "7e59281de342c1f234c8e688e2cfa89df85ad175"
|
|
50
50
|
}
|
|
@@ -52,10 +52,22 @@ exports.drawCC = async (req, res) => {
|
|
|
52
52
|
clearInterval(keepalive);
|
|
53
53
|
const duration = Date.now() - startTime;
|
|
54
54
|
|
|
55
|
-
// 解析 Claude Code 返回结果:[MERMAID]、[REPLY]、[IRRELEVANT] 前缀
|
|
55
|
+
// 解析 Claude Code 返回结果:[MERMAID]、[CLEAR_AND_MERMAID]、[REPLY]、[IRRELEVANT] 前缀
|
|
56
56
|
const trimmed = result.trim();
|
|
57
57
|
|
|
58
|
-
if (trimmed.startsWith("[
|
|
58
|
+
if (trimmed.startsWith("[CLEAR_AND_MERMAID]")) {
|
|
59
|
+
const code = trimmed.slice("[CLEAR_AND_MERMAID]".length).trim();
|
|
60
|
+
req.logger.info(
|
|
61
|
+
methodName,
|
|
62
|
+
"clear_and_mermaid",
|
|
63
|
+
code.length,
|
|
64
|
+
`${duration}ms`,
|
|
65
|
+
);
|
|
66
|
+
chatFeishuMsg(req, `cc-clear-mermaid-${code.length}chars`);
|
|
67
|
+
res.streaming(
|
|
68
|
+
`data: ${JSON.stringify({ type: "clear_and_mermaid", code, duration })}\n\n`,
|
|
69
|
+
);
|
|
70
|
+
} else if (trimmed.startsWith("[MERMAID]")) {
|
|
59
71
|
const code = trimmed.slice("[MERMAID]".length).trim();
|
|
60
72
|
req.logger.info(methodName, "mermaid", code.length, `${duration}ms`);
|
|
61
73
|
chatFeishuMsg(req, `cc-mermaid-${code.length}chars`);
|
package/views/index.html
CHANGED
|
@@ -138,41 +138,13 @@
|
|
|
138
138
|
})(window, document, "clarity", "script", "t5b230u2zp");
|
|
139
139
|
}
|
|
140
140
|
</script>
|
|
141
|
-
<script
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<link
|
|
147
|
-
|
|
148
|
-
crossorigin
|
|
149
|
-
href="https://static-small.vincentqiao.com/aibaiban/static/chunks/react-vendor-zXWpQZWf.js"
|
|
150
|
-
/>
|
|
151
|
-
<link
|
|
152
|
-
rel="modulepreload"
|
|
153
|
-
crossorigin
|
|
154
|
-
href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-base-BkT6tJ3N.js"
|
|
155
|
-
/>
|
|
156
|
-
<link
|
|
157
|
-
rel="modulepreload"
|
|
158
|
-
crossorigin
|
|
159
|
-
href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-icons-BHztfKZ4.js"
|
|
160
|
-
/>
|
|
161
|
-
<link
|
|
162
|
-
rel="modulepreload"
|
|
163
|
-
crossorigin
|
|
164
|
-
href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-x-xgDJhrnl.js"
|
|
165
|
-
/>
|
|
166
|
-
<link
|
|
167
|
-
rel="modulepreload"
|
|
168
|
-
crossorigin
|
|
169
|
-
href="https://static-small.vincentqiao.com/aibaiban/static/chunks/excalidraw-CaLPmsCY.js"
|
|
170
|
-
/>
|
|
171
|
-
<link
|
|
172
|
-
rel="stylesheet"
|
|
173
|
-
crossorigin
|
|
174
|
-
href="https://static-small.vincentqiao.com/aibaiban/static/styles/index-TZrNw7dA.css"
|
|
175
|
-
/>
|
|
141
|
+
<script type="module" crossorigin src="https://static-small.vincentqiao.com/aibaiban/static/index-C6Q1FD2P.js"></script>
|
|
142
|
+
<link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/react-vendor-CaiCwcf5.js">
|
|
143
|
+
<link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-base-Bw-zHZ23.js">
|
|
144
|
+
<link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-icons-0xce1A8M.js">
|
|
145
|
+
<link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-x-CG94EGr-.js">
|
|
146
|
+
<link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/excalidraw-ChdwYzjY.js">
|
|
147
|
+
<link rel="stylesheet" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/styles/index-TZrNw7dA.css">
|
|
176
148
|
</head>
|
|
177
149
|
<body>
|
|
178
150
|
<div id="root"></div>
|