@duanz/pi-d-live 1.1.6 → 1.1.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.
Files changed (2) hide show
  1. package/index.ts +2 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -762,6 +762,8 @@ function rewrite(s: Sess, sid: string, text: string) {
762
762
  .split("\n")
763
763
  .map((line: string) =>
764
764
  line
765
+ // 模型偶尔在句首带个英文词(thinking / done 之类),去掉再入栏
766
+ .replace(/^[A-Za-z][A-Za-z\s]{1,12}(?=[\u4e00-\u9fa5])/, "")
765
767
  .replace(/^[-•*\d.、)\s]+/, "")
766
768
  .replace(/^["「『]|["」』]$/g, "")
767
769
  .trim(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duanz/pi-d-live",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "把模型思考与工具调用实时改写成内心独白,推到 pi-web 界面顶部浮层",
5
5
  "type": "module",
6
6
  "keywords": [