@shgroup/dsh-serenity-hooks 1.51.0 → 1.51.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/assets/diagram/DejaVuSans.ttf +0 -0
- package/assets/diagram/LICENSE-DejaVu.txt +78 -0
- package/assets/diagram/LICENSE-OFL-1.1.txt +155 -0
- package/assets/diagram/NotoSans-Regular.ttf +0 -0
- package/assets/diagram/PROVENANCE.md +80 -21
- package/dsh.plugin.json +1 -1
- package/lib/client.js +220 -8
- package/lib/diagram/fonts.d.ts +40 -0
- package/lib/diagram/rasterize.d.ts +13 -6
- package/lib/index.js +222 -98
- package/lib/{settings-section-cq0eUSd-.js → settings-section-xHABl8nk.js} +5 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ dsh plugin --profile web add link:$(pwd)/hooks/dsh-serenity-hooks
|
|
|
80
80
|
| `container_admin` | 机务舱:管理子角色、管理小工具注册表、查看全部配置 | 定义"子角色"、注册新小工具、改配置时 |
|
|
81
81
|
| `im-bridge` | 给 IM 联系人发消息(目前是微信):发文本、发文件、查已配置联系人、查通道状态。每次成功发送自动进工作区的消息记录 | 想让 AI 主动给家人/同事发消息(见 §6.6)。**只在工作区配了微信桥时才出现**,且只能发本工作区的消息 |
|
|
82
82
|
| `acc-diag` | ACC 运行态诊断:一次调用出全报告——当前有多少会话活着、各自属于哪个工作区、唤醒时钟的武装态与 tick 次数、唤醒登记表的每一条(含状态 / 投递结果 / 补跑窗口) | **ACC 维护者专用**。**默认对所有工作区隐藏**,只有在工作区配置里点名(`exclusiveTools`)才出现 |
|
|
83
|
-
| `diagram` | 画图:AI 给一段**标签式源码**(`<diagram>` 根 + `<rect>` / `<arrow>` / `<text>` / `<color>` / `<legend>`),插件**在进程内**把它画成 PNG
|
|
83
|
+
| `diagram` | 画图:AI 给一段**标签式源码**(`<diagram>` 根 + `<rect>` / `<arrow>` / `<text>` / `<color>` / `<legend>`),插件**在进程内**把它画成 PNG 并**贴进对话**(**在「会话」与「轨迹」两个视图里都内联显示**、可回看、可被后续轮次引用)——**不启浏览器、不截图、正常路径不落文件**。坐标 = **画布像素、y 向下**(`domain="x0,y0,x1,y1"` 可选);写错的图元**逐条报错并跳过**,其余照画。自带四项体检(块重叠 / 标签溢出 / 悬空端点 / 线压字),**只告警不拦图** | 想把关系图/示意图直接放进对话时。**实验性 demo,默认关**:关着的时候这个工具**根本不注册**(AI 看不到它,不占上下文);开关在设置面板「工具」组,**拨动即时生效**(不必重启)。中英文与常用符号(`①` `⇒` `→` `★`)都能画,是因为**三个字型随插件内置**(汉字 + 拉丁 + 符号,合计约 5 MB) |
|
|
84
84
|
|
|
85
85
|
> **改过名**(旧名已彻底停用,没有兼容别名):下面每组的箭头链是**逐个发布版本**的名字,**末项才是今名**——`cc_fs` → `container_fs` · `cc_git` → `container_git` · `session`+`session_rebuild` → `logbook`(v1.30/1.31)→ `trajectory`(v1.32)→ **`container_trajectory`**(v1.34,今名) · `acc_kit` → `dashboard` · `acc_msm` → `msm`(执行)+ `container_admin`(管理)· `eap`/`neat`/`cce` → `praxis` · `skiff_admin` → `container_admin role` · `autopilot-trajectory` → `trajectory`(v1.32)→ **`container_trajectory`**(v1.34,今名)。老会话里看到旧名,**一律取所在那一组的末项**。
|
|
86
86
|
|
|
Binary file
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
|
+
Upstream-Name: DejaVu fonts
|
|
3
|
+
Upstream-Author: Stepan Roh <src@users.sourceforge.net> (original author),
|
|
4
|
+
see /usr/share/doc/fonts-dejavu-core/AUTHORS for full list
|
|
5
|
+
Source: https://dejavu-fonts.github.io/
|
|
6
|
+
|
|
7
|
+
Files: *
|
|
8
|
+
Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
|
|
9
|
+
Bitstream Vera is a trademark of Bitstream, Inc.
|
|
10
|
+
DejaVu changes are in public domain.
|
|
11
|
+
License: bitstream-vera
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of the fonts accompanying this license ("Fonts") and associated
|
|
14
|
+
documentation files (the "Font Software"), to reproduce and distribute the
|
|
15
|
+
Font Software, including without limitation the rights to use, copy, merge,
|
|
16
|
+
publish, distribute, and/or sell copies of the Font Software, and to permit
|
|
17
|
+
persons to whom the Font Software is furnished to do so, subject to the
|
|
18
|
+
following conditions:
|
|
19
|
+
.
|
|
20
|
+
The above copyright and trademark notices and this permission notice shall
|
|
21
|
+
be included in all copies of one or more of the Font Software typefaces.
|
|
22
|
+
.
|
|
23
|
+
The Font Software may be modified, altered, or added to, and in particular
|
|
24
|
+
the designs of glyphs or characters in the Fonts may be modified and
|
|
25
|
+
additional glyphs or characters may be added to the Fonts, only if the fonts
|
|
26
|
+
are renamed to names not containing either the words "Bitstream" or the word
|
|
27
|
+
"Vera".
|
|
28
|
+
.
|
|
29
|
+
This License becomes null and void to the extent applicable to Fonts or Font
|
|
30
|
+
Software that has been modified and is distributed under the "Bitstream
|
|
31
|
+
Vera" names.
|
|
32
|
+
.
|
|
33
|
+
The Font Software may be sold as part of a larger software package but no
|
|
34
|
+
copy of one or more of the Font Software typefaces may be sold by itself.
|
|
35
|
+
.
|
|
36
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
37
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
|
38
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
|
39
|
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
|
40
|
+
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
|
|
41
|
+
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
|
42
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
43
|
+
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
|
|
44
|
+
FONT SOFTWARE.
|
|
45
|
+
.
|
|
46
|
+
Except as contained in this notice, the names of Gnome, the Gnome
|
|
47
|
+
Foundation, and Bitstream Inc., shall not be used in advertising or
|
|
48
|
+
otherwise to promote the sale, use or other dealings in this Font Software
|
|
49
|
+
without prior written authorization from the Gnome Foundation or Bitstream
|
|
50
|
+
Inc., respectively. For further information, contact: fonts at gnome dot
|
|
51
|
+
org.
|
|
52
|
+
|
|
53
|
+
Files: debian/*
|
|
54
|
+
Copyright: (C) 2005-2006 Peter Cernak <pce@users.sourceforge.net>
|
|
55
|
+
(C) 2006-2011 Davide Viti <zinosat@tiscali.it>
|
|
56
|
+
(C) 2011-2013 Christian Perrier <bubulle@debian.org>
|
|
57
|
+
(C) 2013 Fabian Greffrath <fabian+debian@greffrath.com>
|
|
58
|
+
License: GPL-2+
|
|
59
|
+
This program is free software; you can redistribute it
|
|
60
|
+
and/or modify it under the terms of the GNU General Public
|
|
61
|
+
License as published by the Free Software Foundation; either
|
|
62
|
+
version 2 of the License, or (at your option) any later
|
|
63
|
+
version.
|
|
64
|
+
.
|
|
65
|
+
This program is distributed in the hope that it will be
|
|
66
|
+
useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
67
|
+
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
68
|
+
PURPOSE. See the GNU General Public License for more
|
|
69
|
+
details.
|
|
70
|
+
.
|
|
71
|
+
You should have received a copy of the GNU General Public
|
|
72
|
+
License along with this package; if not, write to the Free
|
|
73
|
+
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
74
|
+
Boston, MA 02110-1301 USA
|
|
75
|
+
.
|
|
76
|
+
On Debian systems, the full text of the GNU General Public
|
|
77
|
+
License version 2 can be found in the file
|
|
78
|
+
/usr/share/common-licenses/GPL-2'.
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
|
+
Upstream-Name: Noto
|
|
3
|
+
Upstream-Contact: https://github.com/googlei18n/noto-fonts/issues
|
|
4
|
+
http://groups.google.com/group/noto-font
|
|
5
|
+
Source: https://github.com/googlei18n/noto-fonts
|
|
6
|
+
|
|
7
|
+
Files: *
|
|
8
|
+
Copyright:
|
|
9
|
+
2010,2012-2020, Google Inc.
|
|
10
|
+
2015-2020, Google LLC.
|
|
11
|
+
License-Grant:
|
|
12
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
13
|
+
Version 1.1.
|
|
14
|
+
License: OFL-1.1
|
|
15
|
+
|
|
16
|
+
Files:
|
|
17
|
+
debian/*
|
|
18
|
+
Copyright:
|
|
19
|
+
2013-2020, Jonas Smedegaard <dr@jones.dk>
|
|
20
|
+
2020, Purism, SPC
|
|
21
|
+
2013, Vasudev Kamath <kamathvasudev@gmail.com>
|
|
22
|
+
License-Grant:
|
|
23
|
+
This program is free software;
|
|
24
|
+
you can redistribute it and/or modify it
|
|
25
|
+
under the terms of the GNU General Public License
|
|
26
|
+
as published by the Free Software Foundation;
|
|
27
|
+
either version 3, or (at your option) any later version.
|
|
28
|
+
License: GPL-3+
|
|
29
|
+
|
|
30
|
+
Files:
|
|
31
|
+
debian/NotoMono/NotoMono-Regular.ttf
|
|
32
|
+
Copyright:
|
|
33
|
+
2007, Google Inc.
|
|
34
|
+
License-Grant:
|
|
35
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
36
|
+
Version 1.1.
|
|
37
|
+
License: OFL-1.1
|
|
38
|
+
|
|
39
|
+
License: OFL-1.1
|
|
40
|
+
PREAMBLE
|
|
41
|
+
.
|
|
42
|
+
The goals of the Open Font License (OFL) are to stimulate
|
|
43
|
+
worldwide development of collaborative font projects,
|
|
44
|
+
to support the font creation efforts
|
|
45
|
+
of academic and linguistic communities,
|
|
46
|
+
and to provide a free and open framework
|
|
47
|
+
in which fonts may be shared and improved
|
|
48
|
+
in partnership with others.
|
|
49
|
+
.
|
|
50
|
+
The OFL allows the licensed fonts to be used, studied,
|
|
51
|
+
modified and redistributed freely
|
|
52
|
+
as long as they are not sold by themselves.
|
|
53
|
+
The fonts, including any derivative works,
|
|
54
|
+
can be bundled, embedded,
|
|
55
|
+
redistributed and/or sold with any software
|
|
56
|
+
provided that any reserved names are not used
|
|
57
|
+
by derivative works.
|
|
58
|
+
The fonts and derivatives, however,
|
|
59
|
+
cannot be released under any other type of license.
|
|
60
|
+
The requirement for fonts to remain under this license
|
|
61
|
+
does not apply to any document
|
|
62
|
+
created using the fonts or their derivatives.
|
|
63
|
+
.
|
|
64
|
+
DEFINITIONS
|
|
65
|
+
.
|
|
66
|
+
"Font Software" refers to the set of files
|
|
67
|
+
released by the Copyright Holder(s) under this license
|
|
68
|
+
and clearly marked as such.
|
|
69
|
+
This may include source files, build scripts and documentation.
|
|
70
|
+
.
|
|
71
|
+
"Reserved Font Name" refers to any names specified as such
|
|
72
|
+
after the copyright statement(s).
|
|
73
|
+
.
|
|
74
|
+
"Original Version" refers to the collection
|
|
75
|
+
of Font Software components
|
|
76
|
+
as distributed by the Copyright Holder(s).
|
|
77
|
+
.
|
|
78
|
+
"Modified Version" refers to any derivative
|
|
79
|
+
made by adding to, deleting, or substituting --
|
|
80
|
+
in part or in whole --
|
|
81
|
+
any of the components of the Original Version,
|
|
82
|
+
by changing formats
|
|
83
|
+
or by porting the Font Software to a new environment.
|
|
84
|
+
.
|
|
85
|
+
"Author" refers to any designer, engineer, programmer,
|
|
86
|
+
technical writer or other person
|
|
87
|
+
who contributed to the Font Software.
|
|
88
|
+
.
|
|
89
|
+
PERMISSION & CONDITIONS
|
|
90
|
+
.
|
|
91
|
+
Permission is hereby granted, free of charge,
|
|
92
|
+
to any person obtaining a copy of the Font Software,
|
|
93
|
+
to use, study, copy, merge, embed, modify, redistribute,
|
|
94
|
+
and sell modified and unmodified copies of the Font Software,
|
|
95
|
+
subject to the following conditions:
|
|
96
|
+
.
|
|
97
|
+
1) Neither the Font Software nor any of its individual components,
|
|
98
|
+
in Original or Modified Versions,
|
|
99
|
+
may be sold by itself.
|
|
100
|
+
.
|
|
101
|
+
2) Original or Modified Versions of the Font Software
|
|
102
|
+
may be bundled, redistributed and/or sold with any software,
|
|
103
|
+
provided that each copy contains the above copyright notice
|
|
104
|
+
and this license.
|
|
105
|
+
These can be included either as stand-alone text files,
|
|
106
|
+
human-readable headers or in the appropriate
|
|
107
|
+
machine-readable metadata fields within text or binary files
|
|
108
|
+
as long as those fields can be easily viewed by the user.
|
|
109
|
+
.
|
|
110
|
+
3) No Modified Version of the Font Software may use
|
|
111
|
+
the Reserved Font Name(s)
|
|
112
|
+
unless explicit written permission is granted
|
|
113
|
+
by the corresponding Copyright Holder.
|
|
114
|
+
This restriction only applies to the primary font name
|
|
115
|
+
as presented to the users.
|
|
116
|
+
.
|
|
117
|
+
4) The name(s) of the Copyright Holder(s)
|
|
118
|
+
or the Author(s) of the Font Software
|
|
119
|
+
shall not be used to promote,
|
|
120
|
+
endorse or advertise any Modified Version,
|
|
121
|
+
except to acknowledge the contribution(s)
|
|
122
|
+
of the Copyright Holder(s) and the Author(s)
|
|
123
|
+
or with their explicit written permission.
|
|
124
|
+
.
|
|
125
|
+
5) The Font Software,
|
|
126
|
+
modified or unmodified, in part or in whole,
|
|
127
|
+
must be distributed entirely under this license,
|
|
128
|
+
and must not be distributed under any other license.
|
|
129
|
+
The requirement for fonts to remain under this license
|
|
130
|
+
does not apply to any document
|
|
131
|
+
created using the Font Software.
|
|
132
|
+
.
|
|
133
|
+
TERMINATION
|
|
134
|
+
.
|
|
135
|
+
This license becomes null and void
|
|
136
|
+
if any of the above conditions are not met.
|
|
137
|
+
.
|
|
138
|
+
DISCLAIMER
|
|
139
|
+
.
|
|
140
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS",
|
|
141
|
+
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
142
|
+
INCLUDING BUT NOT LIMITED TO
|
|
143
|
+
ANY WARRANTIES OF MERCHANTABILITY,
|
|
144
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
145
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT.
|
|
146
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE
|
|
147
|
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
148
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT,
|
|
149
|
+
INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
|
150
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
151
|
+
ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
|
152
|
+
THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
153
|
+
|
|
154
|
+
License: GPL-3+
|
|
155
|
+
License-Reference: /usr/share/common-licenses/GPL-3
|
|
Binary file
|
|
@@ -1,30 +1,89 @@
|
|
|
1
|
+
# assets/diagram — 出图用的内置字型(**为什么必须随包分发**)
|
|
2
|
+
|
|
3
|
+
这三个字型是 `diagram` 工具在**光栅化**时必须喂给 resvg-wasm 的,原因是一次**实测**:
|
|
4
|
+
|
|
5
|
+
> 在 docker 里给容器装好中文字体(`fc-list` 认得它)之后,resvg-wasm 渲染中文**仍然得到空白画布**,
|
|
6
|
+
> 且 `loadSystemFonts: true|false` 两份 PNG **逐字节相同** ⇒ **wasm 对系统字体完全不可见**。
|
|
7
|
+
> 只有 `fontBuffers`(把字体字节直接递给它)才画得出字。
|
|
8
|
+
> ⇒ 顺带白拿一条:**输出与机器无关**(同一份内置字型 ⇒ 逐字节可复现)。
|
|
9
|
+
|
|
10
|
+
## 0. 三个字型各修好了什么(**每一个都由一张实测对照图证明**)
|
|
11
|
+
|
|
12
|
+
| 字型 | 覆盖 | 没有它会怎样(实测) |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `DroidSansFallbackFull.ttf` | 汉字 | 中文**全变方框** |
|
|
15
|
+
| `NotoSans-Regular.ttf` | 拉丁 | `diagram` / `parseDsl` 全变方框(Droid 是 **CJK 兜底字型**,**不含拉丁**) |
|
|
16
|
+
| `DejaVuSans.ttf` | 符号 | `① ② ③` / `⇒` / `→` 仍是方框(**前两个都没有这些字形**) |
|
|
17
|
+
|
|
18
|
+
🔴 **判据的教训**:起初的验收是"有字 vs 无字逐字节不同" —— 它只证明**有墨**,
|
|
19
|
+
**没证明墨是那个字**(方框也是墨)⇒ 拉丁全变方框时它**照样绿**。
|
|
20
|
+
⇒ 现在每条覆盖声明都配一条**点名字符集**的差分用例:**同长度不同字形必须出不同墨**。
|
|
21
|
+
|
|
22
|
+
## 1. `DroidSansFallbackFull.ttf`(汉字,3.8 MB,Apache-2.0)
|
|
23
|
+
|
|
24
|
+
```
|
|
1
25
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
26
|
Upstream-Name: Droid
|
|
3
27
|
Source: https://android.googlesource.com/platform/frameworks/base/
|
|
4
|
-
|
|
5
28
|
Files: *
|
|
6
29
|
Copyright: Copyright © 2006, 2007, 2008, 2009, 2010 Google Corp.
|
|
7
30
|
Droid is a trademark of Google Corp.
|
|
8
31
|
License: Apache-2
|
|
9
|
-
|
|
10
|
-
Files: debian/*
|
|
11
|
-
Copyright: Copyright © 2010, Simon Ochsenreither <simon@ochsenreither.de>
|
|
12
|
-
Copyright © 2011-2014 Christian Perrier <bubulle@debian.org>
|
|
13
|
-
Copyright © 2013-2014 Vasudev Kamath <kamathvasudev@gmail.com>
|
|
14
|
-
License: Apache-2
|
|
15
|
-
|
|
16
|
-
License: Apache-2
|
|
17
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
18
|
-
you may not use this file except in compliance with the License.
|
|
19
|
-
You may obtain a copy of the License at
|
|
20
|
-
.
|
|
21
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
-
.
|
|
23
|
-
Unless required by applicable law or agreed to in writing, software
|
|
24
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
25
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26
|
-
See the License for the specific language governing permissions and
|
|
27
|
-
limitations under the License.
|
|
28
|
-
.
|
|
29
32
|
On Debian systems, the complete text of the Apache License Version 2.0
|
|
30
33
|
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
取件处(本机):`/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf`(Debian `fonts-droid-fallback`)。
|
|
37
|
+
许可证全文随包:`LICENSE-Apache-2.0.txt`。
|
|
38
|
+
|
|
39
|
+
## 2. `NotoSans-Regular.ttf`(拉丁,500 KB,OFL-1.1)—— v1.51.1 新增
|
|
40
|
+
|
|
41
|
+
🔴 **为什么必须补第二个字型**:`DroidSansFallbackFull` 是**汉字兜底字型**(Android 当年把它与
|
|
42
|
+
`DroidSans.ttf` 配成一对),它**不含拉丁字母** ⇒ v1.51.0 只带它时,图里 `diagram` / `parseDsl` /
|
|
43
|
+
`·` 全部渲染成**方框**(owner 实测图上肉眼可见)。
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
47
|
+
Upstream-Name: Noto
|
|
48
|
+
Source: https://github.com/notofonts/noto-fonts
|
|
49
|
+
License: OFL-1.1
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
取件处(本机):`/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf`(Debian `fonts-noto-core`)。
|
|
53
|
+
许可证全文随包:`LICENSE-OFL-1.1.txt`(即该包的 Debian `copyright` 文件,内含 OFL-1.1 全文与出处)。
|
|
54
|
+
|
|
55
|
+
## 3. `DejaVuSans.ttf`(符号,742 KB)—— v1.51.1 续(D108)
|
|
56
|
+
|
|
57
|
+
🔴 **为什么还要第三个**:补完拉丁之后**再看了一眼真图**,发现 `① ② ③` 与 `⇒` / `→` **仍然是方框**
|
|
58
|
+
—— 前两个字型都没有这些字形(`DroidSansFallbackFull` 有汉字但没有象征符号;`NotoSans-Regular`
|
|
59
|
+
有拉丁与常用标点,但没有带圈数字与箭头)。而本仓自己的文档**满屏 `⇒`** ⇒ 图里出现它是常态。
|
|
60
|
+
|
|
61
|
+
**选型是量出来的**(各喂一个缓冲单独渲染一张对照图,肉眼看):
|
|
62
|
+
|
|
63
|
+
| 候选 | 结果 |
|
|
64
|
+
|---|---|
|
|
65
|
+
| `NotoSansSymbols2-Regular.ttf` | ❌ 只有 `▲ ● ★ ✓ ✗`;`①`/`⇒`/`→` 仍是方框 |
|
|
66
|
+
| `NotoSansSymbols-Regular.ttf` | ❌ 同上量级(未单独出图,覆盖面是 Symbols2 的子集方向) |
|
|
67
|
+
| `DejaVuSans.ttf` | ✅ **全覆盖**:`① ② ③ ⇒ → ← ▲ ● ★ ✓ ✗ ·— ≥ ≠ ×` |
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
71
|
+
Upstream-Name: DejaVu
|
|
72
|
+
Source: https://github.com/dejavu-fonts/dejavu-fonts
|
|
73
|
+
License: Bitstream-Vera
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
取件处(本机):`/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf`(Debian `fonts-dejavu-core`)。
|
|
77
|
+
许可证全文随包:`LICENSE-DejaVu.txt`(即该包的 Debian `copyright` 文件)。
|
|
78
|
+
|
|
79
|
+
## 4. 家族名与文件必须以同一份事实为准
|
|
80
|
+
|
|
81
|
+
家族名(`'Noto Sans'` / `'DejaVu Sans'` / `'Droid Sans Fallback'`)、资产路径与 SVG 家族栈的
|
|
82
|
+
**唯一真相源** = `src/diagram/fonts.ts`;`src/diagram/rasterize.ts` 负责按路径把字节读进来喂 wasm。
|
|
83
|
+
|
|
84
|
+
🔴 **家族名是量出来的**:三个名字取自各文件 `name` 表 `nameID=1`(平台 3 / UTF-16BE)。
|
|
85
|
+
必须这样量一次的原因:写错名字时 resvg 的**自动回退仍可能把字画出来**(**图上看不出来**)
|
|
86
|
+
⇒ "栈里的名字是对的"这件事只有直接读字体文件才能证明。
|
|
87
|
+
|
|
88
|
+
三个资产**都必须在 `package.json` 的 `files` 白名单里**,并被 `dsh-develop pack-check` 的
|
|
89
|
+
`required` 清单硬断言(漏了 = 装得上但画不出字,v1.26.15 事故同族)。
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-serenity-hooks",
|
|
3
|
-
"version": "1.51.
|
|
3
|
+
"version": "1.51.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——12 个工具(container_fs/container_trajectory/dashboard/container_git/msm/praxis/handyman/localstore/container_admin/im-bridge/acc-diag/diagram;后三个按配置条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 轨迹日志与原地重建 + 网页登录入口/微信桥/子角色/对外问答页/trajectory 唤醒注册表。适配 DSH 0.1.7-rc.1(deepseek-ai/deepseek-harness)。",
|
|
6
6
|
"engines": {
|