@shun-js/aibaiban-server 1.5.3 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/aibaiban-server",
3
- "version": "1.5.3",
3
+ "version": "1.6.1",
4
4
  "description": "aibaiban.com server",
5
5
  "keywords": [
6
6
  "ai aibaiban"
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org/"
48
48
  },
49
- "gitHead": "fb413890378e12377b7bb2ec6d1be28a3f273ecb"
49
+ "gitHead": "df9bd4fd25f5f18535907210e9806cc243f0035c"
50
50
  }
@@ -53,7 +53,13 @@ exports.drawCC = async (req, res) => {
53
53
  const duration = Date.now() - startTime;
54
54
 
55
55
  // 解析 Claude Code 返回结果:[MERMAID]、[CLEAR_AND_MERMAID]、[REPLY]、[IRRELEVANT] 前缀
56
- const trimmed = result.trim();
56
+ // 先剥离可能的外层包裹(反引号/代码块),防止 startsWith 匹配失败
57
+ let cleaned = result.trim();
58
+ cleaned = cleaned
59
+ .replace(/^```(?:mermaid)?\s*\n?/, "")
60
+ .replace(/\n?```\s*$/, "");
61
+ cleaned = cleaned.replace(/^`/, "").replace(/`$/, "");
62
+ const trimmed = cleaned.trim();
57
63
 
58
64
  if (trimmed.startsWith("[CLEAR_AND_MERMAID]")) {
59
65
  const code = trimmed.slice("[CLEAR_AND_MERMAID]".length).trim();
package/views/index.html CHANGED
@@ -138,41 +138,15 @@
138
138
  })(window, document, "clarity", "script", "t5b230u2zp");
139
139
  }
140
140
  </script>
141
- <script
142
- type="module"
143
- crossorigin
144
- src="https://static-small.vincentqiao.com/aibaiban/static/index-D89TXKDd.js"
145
- ></script>
146
- <link
147
- rel="modulepreload"
148
- crossorigin
149
- href="https://static-small.vincentqiao.com/aibaiban/static/chunks/react-vendor-CaiCwcf5.js"
150
- />
151
- <link
152
- rel="modulepreload"
153
- crossorigin
154
- href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-base-Bw-zHZ23.js"
155
- />
156
- <link
157
- rel="modulepreload"
158
- crossorigin
159
- href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-icons-0xce1A8M.js"
160
- />
161
- <link
162
- rel="modulepreload"
163
- crossorigin
164
- href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-x-CG94EGr-.js"
165
- />
166
- <link
167
- rel="modulepreload"
168
- crossorigin
169
- href="https://static-small.vincentqiao.com/aibaiban/static/chunks/excalidraw-Wk86LfeS.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-bYg-CWhF.js"></script>
142
+ <link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/rolldown-runtime-B6MXp3OO.js">
143
+ <link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-base-Bzl6tbEJ.js">
144
+ <link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/excalidraw-Cin38yEx.js">
145
+ <link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-icons-DkLwgdk4.js">
146
+ <link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/antd-x-CBklR3d5.js">
147
+ <link rel="modulepreload" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/chunks/react-vendor-BY7043bK.js">
148
+ <link rel="stylesheet" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/styles/excalidraw-zPMCoP0U.css">
149
+ <link rel="stylesheet" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/styles/index-TZrNw7dA.css">
176
150
  </head>
177
151
  <body>
178
152
  <div id="root"></div>