dsh-folia 4.26.0-pre.71 → 4.26.0-pre.73
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/lib/client.js +4 -40
- package/package.json +3 -3
package/README.md
CHANGED
package/lib/client.js
CHANGED
|
@@ -917,6 +917,7 @@ window.__ModuleLoader__.load({
|
|
|
917
917
|
"对话": "Chat",
|
|
918
918
|
"可选工作能力(已安装才可用)": "Optional work capabilities (installed only)",
|
|
919
919
|
"能力": "Capabilities",
|
|
920
|
+
"工作": "Work",
|
|
920
921
|
"麦克风测试": "Microphone test",
|
|
921
922
|
"测试麦克风": "Test microphone",
|
|
922
923
|
"录音中…": "Recording…",
|
|
@@ -964,7 +965,6 @@ window.__ModuleLoader__.load({
|
|
|
964
965
|
"工作能力": "Work",
|
|
965
966
|
"娱乐": "Fun",
|
|
966
967
|
"详情": "Details",
|
|
967
|
-
"预览图来自作者仓库": "Preview from the author's repository",
|
|
968
968
|
"收起": "Collapse",
|
|
969
969
|
"复制安装命令": "Copy install command",
|
|
970
970
|
"已复制": "Copied",
|
|
@@ -1019,7 +1019,7 @@ window.__ModuleLoader__.load({
|
|
|
1019
1019
|
"Grok": "Grok",
|
|
1020
1020
|
"Kimi": "Kimi",
|
|
1021
1021
|
"Qwen": "Qwen",
|
|
1022
|
-
"
|
|
1022
|
+
"dshAI": "dshAI",
|
|
1023
1023
|
"…": "…",
|
|
1024
1024
|
// 开机动画:已开启但无选片时的提示(4.8.2)
|
|
1025
1025
|
"已开启,但还没有选片 —— 下载一条后点「使用」": "Enabled, but no clip is selected yet — download one, then press Use",
|
|
@@ -21842,33 +21842,12 @@ window.__ModuleLoader__.load({
|
|
|
21842
21842
|
const CAP_META = { fontSize: '11px', opacity: 0.6, marginTop: '2px', wordBreak: 'break-all' };
|
|
21843
21843
|
|
|
21844
21844
|
/** 作者仓库预览占位块:固定 120px 高,图片失败时仍占位(不塌、不露裂图)。 */
|
|
21845
|
-
const CAP_PREVIEW_BOX = {
|
|
21846
|
-
width: '100%',
|
|
21847
|
-
height: '120px',
|
|
21848
|
-
overflow: 'hidden',
|
|
21849
|
-
borderRadius: '8px',
|
|
21850
|
-
background: 'rgba(255,255,255,0.06)',
|
|
21851
|
-
};
|
|
21852
|
-
const CAP_PREVIEW_IMG = { width: '100%', height: '120px', objectFit: 'cover', display: 'block' };
|
|
21853
21845
|
|
|
21854
|
-
|
|
21855
|
-
* 从能力条目的 `source` 推作者仓库的 OG 预览图:
|
|
21856
|
-
* https://github.com/<owner>/<repo>[/tree/...] → https://opengraph.githubassets.com/1/<owner>/<repo>
|
|
21857
|
-
* 非 GitHub 来源(npm / 其它)返回空串 —— 调用方据此整块不渲染,保持原布局。
|
|
21858
|
-
* 不新增 catalog 字段,也不发起额外抓取:OG 图由 GitHub 自己生成。
|
|
21859
|
-
*/
|
|
21860
|
-
function capPreviewUrl(source) {
|
|
21861
|
-
const m = String(source || '').match(/^https?:\/\/(?:www\.)?github\.com\/([^/?#]+)\/([^/?#]+)/i);
|
|
21862
|
-
if (!m) return '';
|
|
21863
|
-
const repo = m[2].replace(/\.git$/i, '');
|
|
21864
|
-
if (!m[1] || !repo) return '';
|
|
21865
|
-
return 'https://opengraph.githubassets.com/1/' + m[1] + '/' + repo;
|
|
21866
|
-
}
|
|
21846
|
+
|
|
21867
21847
|
|
|
21868
21848
|
function CapabilityCard({ item }) {
|
|
21869
21849
|
const [open, setOpen] = React.useState(false);
|
|
21870
21850
|
const [copied, setCopied] = React.useState(false);
|
|
21871
|
-
const [previewFailed, setPreviewFailed] = React.useState(false);
|
|
21872
21851
|
const copy = () => {
|
|
21873
21852
|
const text = String(item.command || '');
|
|
21874
21853
|
try {
|
|
@@ -21908,21 +21887,6 @@ window.__ModuleLoader__.load({
|
|
|
21908
21887
|
const body = [head];
|
|
21909
21888
|
if (open) {
|
|
21910
21889
|
const line = (k, v) => React.createElement('div', { key: k, className: 'we-picker__hint', style: { marginTop: '4px' } }, v);
|
|
21911
|
-
const previewUrl = capPreviewUrl(item.source);
|
|
21912
|
-
if (previewUrl) {
|
|
21913
|
-
body.push(React.createElement('div', { key: 'preview', style: { marginTop: '8px' } },
|
|
21914
|
-
React.createElement('div', { style: CAP_PREVIEW_BOX },
|
|
21915
|
-
previewFailed ? null : React.createElement('img', {
|
|
21916
|
-
src: previewUrl,
|
|
21917
|
-
alt: item.name,
|
|
21918
|
-
loading: 'lazy',
|
|
21919
|
-
style: CAP_PREVIEW_IMG,
|
|
21920
|
-
onError: () => setPreviewFailed(true),
|
|
21921
|
-
})),
|
|
21922
|
-
React.createElement('div', {
|
|
21923
|
-
className: 'we-picker__hint', style: { marginTop: '4px' },
|
|
21924
|
-
}, weT('预览图来自作者仓库'))));
|
|
21925
|
-
}
|
|
21926
21890
|
body.push(React.createElement('div', { key: 'd-title', style: { marginTop: '8px', fontSize: '12px', fontWeight: 600 } }, weT('详情')));
|
|
21927
21891
|
body.push(line('desc', item.authorDesc || item.summary || ''));
|
|
21928
21892
|
body.push(React.createElement('div', { key: 'u-title', style: { marginTop: '8px', fontSize: '12px', fontWeight: 600 } }, weT('如何使用')));
|
|
@@ -44755,7 +44719,7 @@ window.__ModuleLoader__.load({
|
|
|
44755
44719
|
qwen: { get label() { return weT("Qwen"); }, img: ROPE_IMG_QWEN, w: 64, h: 80 },
|
|
44756
44720
|
// ── 本仓自有形象(fork):`folia` —— 顺序必须与 settings-schema 的 `ROPE_FORM_VALUES` 一致
|
|
44757
44721
|
// (test/verify-presets.mjs 断言两张表的键序逐字相同)。源图 350×384 ⇒ 64 宽时高 70。──
|
|
44758
|
-
folia: { get label() { return weT("
|
|
44722
|
+
folia: { get label() { return weT("dshAI"); }, img: ROPE_IMG_FOLIA, w: 64, h: 70 },
|
|
44759
44723
|
};
|
|
44760
44724
|
|
|
44761
44725
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-folia",
|
|
3
|
-
"displayName": "
|
|
4
|
-
"version": "4.26.0-pre.
|
|
5
|
-
"description": "
|
|
3
|
+
"displayName": "dshAI · 壁纸引擎与 AI 桌宠",
|
|
4
|
+
"version": "4.26.0-pre.73",
|
|
5
|
+
"description": "dshAI:壁纸引擎 + AI 桌宠语音助手 + 多人设角色卡 + 皮肤/开机动画 + 能力市场,一站式桌面伴侣。",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=22.12.0",
|