@sparkelf/dsh-dataops-managed 0.3.7 → 0.3.9
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/lib/client.js +212 -128
- package/lib/client.js.map +1 -1
- package/lib/types/client/locales.d.ts +2 -0
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -107,24 +107,24 @@ window.__ModuleLoader__.load({
|
|
|
107
107
|
document.head.appendChild(tag);
|
|
108
108
|
}
|
|
109
109
|
var ManagedDataOpsSection_module_css_default = {
|
|
110
|
-
"
|
|
110
|
+
"description": "_2dqzjG_description",
|
|
111
111
|
"modelId": "_2dqzjG_modelId",
|
|
112
|
+
"modelListDescription": "_2dqzjG_modelListDescription",
|
|
113
|
+
"details": "_2dqzjG_details",
|
|
114
|
+
"section": "_2dqzjG_section",
|
|
112
115
|
"modelDescription": "_2dqzjG_modelDescription",
|
|
116
|
+
"switch": "_2dqzjG_switch",
|
|
117
|
+
"modelRow": "_2dqzjG_modelRow",
|
|
118
|
+
"brandingCopy": "_2dqzjG_brandingCopy",
|
|
119
|
+
"title": "_2dqzjG_title",
|
|
113
120
|
"detailRow": "_2dqzjG_detailRow",
|
|
114
|
-
"
|
|
115
|
-
"section": "_2dqzjG_section",
|
|
121
|
+
"brandingRow": "_2dqzjG_brandingRow",
|
|
116
122
|
"modelTitle": "_2dqzjG_modelTitle",
|
|
117
123
|
"modelListTitle": "_2dqzjG_modelListTitle",
|
|
118
|
-
"details": "_2dqzjG_details",
|
|
119
|
-
"switch": "_2dqzjG_switch",
|
|
120
124
|
"statusRow": "_2dqzjG_statusRow",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"modelPanel": "_2dqzjG_modelPanel"
|
|
124
|
-
"description": "_2dqzjG_description",
|
|
125
|
-
"brandingRow": "_2dqzjG_brandingRow",
|
|
126
|
-
"modelRow": "_2dqzjG_modelRow",
|
|
127
|
-
"brandingCopy": "_2dqzjG_brandingCopy"
|
|
125
|
+
"modelList": "_2dqzjG_modelList",
|
|
126
|
+
"modelAction": "_2dqzjG_modelAction",
|
|
127
|
+
"modelPanel": "_2dqzjG_modelPanel"
|
|
128
128
|
};
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/client/ManagedDataOpsSection.tsx
|
|
@@ -405,7 +405,7 @@ window.__ModuleLoader__.load({
|
|
|
405
405
|
}
|
|
406
406
|
//#endregion
|
|
407
407
|
//#region \0dsh-css:/root/projects/dsh-plugins-plus/packages/dataops-managed/src/client/SkillPlazaSection.module.css.mjs
|
|
408
|
-
const css$1 = "._9FdZvq_section{border-
|
|
408
|
+
const css$1 = "._9FdZvq_section{box-sizing:border-box;flex-direction:column;width:100%;max-width:960px;margin:40px auto 0;display:flex}._9FdZvq_head{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}._9FdZvq_title{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;margin:0;font-size:15px;font-weight:500;line-height:22px;display:flex}._9FdZvq_titleIcon{color:var(--dsw-alias-brand-primary);display:inline-flex}._9FdZvq_intro{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px;line-height:20px}._9FdZvq_toolbar{align-items:center;gap:8px;margin-bottom:12px;display:flex}._9FdZvq_searchWrap{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:10px;flex:1;align-items:center;gap:6px;min-width:0;height:36px;padding:0 12px;display:flex}._9FdZvq_searchWrap:focus-within{border-color:var(--dsw-alias-state-business-primary)}._9FdZvq_searchIcon{color:var(--dsw-alias-label-tertiary);flex:none;display:inline-flex}._9FdZvq_search{min-width:0;color:var(--dsw-alias-label-primary);background:0 0;border:none;outline:none;flex:1;font-size:13px}._9FdZvq_search::placeholder{color:var(--dsw-alias-label-tertiary)}._9FdZvq_tagBar{flex-wrap:wrap;gap:6px;margin-bottom:4px;display:flex}._9FdZvq_notice{color:var(--dsw-alias-state-business-primary);margin:4px 0 0;font-size:12px;line-height:18px}._9FdZvq_cards{margin:0;padding:0;list-style:none}._9FdZvq_card{border-radius:12px;min-width:0;margin:0 -8px}._9FdZvq_card:hover{background:var(--dsw-alias-interactive-bg-hover)}._9FdZvq_cardHead{align-items:center;gap:14px;padding:8px;display:flex}._9FdZvq_cardIcon{border:.5px solid var(--dsw-alias-border-l3);width:48px;height:48px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;justify-content:center;align-items:center;display:inline-flex}._9FdZvq_cardMain{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}._9FdZvq_cardTitle{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:8px;font-size:14px;font-weight:500;line-height:20px;display:flex;overflow:hidden}._9FdZvq_mine{flex:none}._9FdZvq_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:18px;display:-webkit-box;overflow:hidden}._9FdZvq_cardMarks{flex-wrap:wrap;gap:6px;margin-top:2px;display:flex}._9FdZvq_cardEnd{flex:none;align-items:center;gap:4px;display:flex}._9FdZvq_empty{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:28px 16px 32px;display:flex}._9FdZvq_emptyIcon{border:.5px solid var(--dsw-alias-border-l3);width:56px;height:56px;color:var(--dsw-alias-label-tertiary);border-radius:14px;justify-content:center;align-items:center;display:inline-flex}._9FdZvq_emptyText{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:20px}";
|
|
409
409
|
const tagId$1 = "@sparkelf/dsh-dataops-managed/SkillPlazaSection.module.css";
|
|
410
410
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
411
411
|
const tag = document.createElement("style");
|
|
@@ -415,26 +415,96 @@ window.__ModuleLoader__.load({
|
|
|
415
415
|
document.head.appendChild(tag);
|
|
416
416
|
}
|
|
417
417
|
var SkillPlazaSection_module_css_default = {
|
|
418
|
+
"section": "_9FdZvq_section",
|
|
419
|
+
"titleIcon": "_9FdZvq_titleIcon",
|
|
420
|
+
"searchIcon": "_9FdZvq_searchIcon",
|
|
421
|
+
"notice": "_9FdZvq_notice",
|
|
422
|
+
"cardMain": "_9FdZvq_cardMain",
|
|
418
423
|
"cardDesc": "_9FdZvq_cardDesc",
|
|
419
|
-
"tags": "_9FdZvq_tags",
|
|
420
|
-
"title": "_9FdZvq_title",
|
|
421
424
|
"cardHead": "_9FdZvq_cardHead",
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"section": "_9FdZvq_section",
|
|
425
|
+
"toolbar": "_9FdZvq_toolbar",
|
|
426
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
425
427
|
"card": "_9FdZvq_card",
|
|
426
|
-
"
|
|
428
|
+
"cards": "_9FdZvq_cards",
|
|
429
|
+
"searchWrap": "_9FdZvq_searchWrap",
|
|
430
|
+
"head": "_9FdZvq_head",
|
|
431
|
+
"tagBar": "_9FdZvq_tagBar",
|
|
432
|
+
"cardEnd": "_9FdZvq_cardEnd",
|
|
433
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
434
|
+
"cardIcon": "_9FdZvq_cardIcon",
|
|
435
|
+
"empty": "_9FdZvq_empty",
|
|
436
|
+
"emptyText": "_9FdZvq_emptyText",
|
|
437
|
+
"title": "_9FdZvq_title",
|
|
427
438
|
"search": "_9FdZvq_search",
|
|
428
439
|
"intro": "_9FdZvq_intro",
|
|
429
|
-
"
|
|
430
|
-
"
|
|
431
|
-
"tagSelect": "_9FdZvq_tagSelect",
|
|
432
|
-
"mine": "_9FdZvq_mine",
|
|
433
|
-
"filters": "_9FdZvq_filters"
|
|
440
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
441
|
+
"mine": "_9FdZvq_mine"
|
|
434
442
|
};
|
|
435
443
|
//#endregion
|
|
436
444
|
//#region src/client/SkillPlazaSection.tsx
|
|
437
445
|
/**
|
|
446
|
+
* One plaza row, laid out like the skill center's own rows so the section reads as part of the
|
|
447
|
+
* page rather than a panel bolted onto it.
|
|
448
|
+
* @param props - the row's skill, its actions, and the dictionary resolver.
|
|
449
|
+
* @returns the rendered row.
|
|
450
|
+
*/
|
|
451
|
+
function PlazaRow({ skill, busy, onInstall, onUnshare, t }) {
|
|
452
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
453
|
+
className: SkillPlazaSection_module_css_default.card,
|
|
454
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
455
|
+
className: SkillPlazaSection_module_css_default.cardHead,
|
|
456
|
+
children: [
|
|
457
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
458
|
+
className: SkillPlazaSection_module_css_default.cardIcon,
|
|
459
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSkillOutlineRegular, { size: 22 })
|
|
460
|
+
}),
|
|
461
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
462
|
+
className: SkillPlazaSection_module_css_default.cardMain,
|
|
463
|
+
children: [
|
|
464
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
465
|
+
className: SkillPlazaSection_module_css_default.cardTitle,
|
|
466
|
+
children: [skill.name, skill.sharedByMe ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
467
|
+
tone: "info",
|
|
468
|
+
className: SkillPlazaSection_module_css_default.mine,
|
|
469
|
+
children: t("plazaMine")
|
|
470
|
+
}) : null]
|
|
471
|
+
}),
|
|
472
|
+
skill.description === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
473
|
+
className: SkillPlazaSection_module_css_default.cardDesc,
|
|
474
|
+
children: skill.description
|
|
475
|
+
}),
|
|
476
|
+
skill.tags.length === 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
477
|
+
className: SkillPlazaSection_module_css_default.cardMarks,
|
|
478
|
+
children: skill.tags.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
479
|
+
tone: "quiet",
|
|
480
|
+
children: item
|
|
481
|
+
}, item))
|
|
482
|
+
})
|
|
483
|
+
]
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
486
|
+
className: SkillPlazaSection_module_css_default.cardEnd,
|
|
487
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
488
|
+
variant: "outline",
|
|
489
|
+
size: "sm",
|
|
490
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconDownloadOutlineRegular, { size: 16 }),
|
|
491
|
+
disabled: busy,
|
|
492
|
+
onClick: onInstall,
|
|
493
|
+
children: t("plazaInstall")
|
|
494
|
+
}), skill.sharedByMe ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
495
|
+
variant: "ghost",
|
|
496
|
+
size: "sm",
|
|
497
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular, { size: 16 }),
|
|
498
|
+
disabled: busy,
|
|
499
|
+
onClick: onUnshare,
|
|
500
|
+
children: t("plazaUnshare")
|
|
501
|
+
}) : null]
|
|
502
|
+
})
|
|
503
|
+
]
|
|
504
|
+
})
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
438
508
|
* Browse, share, and install skills other users published.
|
|
439
509
|
*
|
|
440
510
|
* The section appears only where this plugin is installed: the skill center renders the slot,
|
|
@@ -489,126 +559,136 @@ window.__ModuleLoader__.load({
|
|
|
489
559
|
}, [refresh, t]);
|
|
490
560
|
if (t === void 0) return null;
|
|
491
561
|
if (state.kind === "loading") return null;
|
|
492
|
-
|
|
493
|
-
className: SkillPlazaSection_module_css_default.
|
|
494
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
562
|
+
const head = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
563
|
+
className: SkillPlazaSection_module_css_default.head,
|
|
564
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", {
|
|
495
565
|
className: SkillPlazaSection_module_css_default.title,
|
|
496
|
-
children:
|
|
566
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
567
|
+
className: SkillPlazaSection_module_css_default.titleIcon,
|
|
568
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSparkleRegular, { size: 18 })
|
|
569
|
+
}), t("plazaTitle")]
|
|
497
570
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
571
|
+
className: SkillPlazaSection_module_css_default.intro,
|
|
572
|
+
children: t("plazaIntro")
|
|
573
|
+
})]
|
|
574
|
+
});
|
|
575
|
+
if (state.kind === "unavailable") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
576
|
+
className: SkillPlazaSection_module_css_default.section,
|
|
577
|
+
children: [head, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
498
578
|
className: SkillPlazaSection_module_css_default.intro,
|
|
499
579
|
children: t("plazaUnavailable")
|
|
500
580
|
})]
|
|
501
581
|
});
|
|
502
582
|
if (state.kind === "failed") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
503
583
|
className: SkillPlazaSection_module_css_default.section,
|
|
504
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
505
|
-
className: SkillPlazaSection_module_css_default.
|
|
506
|
-
children: t("plazaTitle")
|
|
507
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
508
|
-
className: SkillPlazaSection_module_css_default.intro,
|
|
584
|
+
children: [head, /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
585
|
+
className: SkillPlazaSection_module_css_default.empty,
|
|
509
586
|
role: "alert",
|
|
510
|
-
children:
|
|
587
|
+
children: [
|
|
588
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
589
|
+
className: SkillPlazaSection_module_css_default.emptyIcon,
|
|
590
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSkillOutlineRegular, { size: 28 })
|
|
591
|
+
}),
|
|
592
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
593
|
+
className: SkillPlazaSection_module_css_default.emptyText,
|
|
594
|
+
children: t("plazaLoadFailed")
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
597
|
+
variant: "outline",
|
|
598
|
+
size: "sm",
|
|
599
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, { size: 16 }),
|
|
600
|
+
onClick: () => {
|
|
601
|
+
refresh();
|
|
602
|
+
},
|
|
603
|
+
children: t("plazaRetry")
|
|
604
|
+
})
|
|
605
|
+
]
|
|
511
606
|
})]
|
|
512
607
|
});
|
|
513
608
|
const { listing } = state;
|
|
514
609
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
515
610
|
className: SkillPlazaSection_module_css_default.section,
|
|
516
611
|
children: [
|
|
517
|
-
|
|
518
|
-
className: SkillPlazaSection_module_css_default.title,
|
|
519
|
-
children: t("plazaTitle")
|
|
520
|
-
}),
|
|
521
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
522
|
-
className: SkillPlazaSection_module_css_default.intro,
|
|
523
|
-
children: t("plazaIntro")
|
|
524
|
-
}),
|
|
612
|
+
head,
|
|
525
613
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
526
|
-
className: SkillPlazaSection_module_css_default.
|
|
527
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
528
|
-
className: SkillPlazaSection_module_css_default.
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
614
|
+
className: SkillPlazaSection_module_css_default.toolbar,
|
|
615
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
616
|
+
className: SkillPlazaSection_module_css_default.searchWrap,
|
|
617
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
618
|
+
className: SkillPlazaSection_module_css_default.searchIcon,
|
|
619
|
+
"aria-hidden": "true",
|
|
620
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSearchOutlineRegular, { size: 16 })
|
|
621
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
622
|
+
className: SkillPlazaSection_module_css_default.search,
|
|
623
|
+
placeholder: t("plazaSearch"),
|
|
624
|
+
value: query,
|
|
625
|
+
onChange: (event) => {
|
|
626
|
+
const next = event.target.value;
|
|
627
|
+
setQuery(next);
|
|
628
|
+
refresh(tag, next);
|
|
629
|
+
}
|
|
630
|
+
})]
|
|
631
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
632
|
+
variant: "ghost",
|
|
633
|
+
size: "sm",
|
|
634
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, { size: 16 }),
|
|
635
|
+
"aria-label": t("plazaRefresh"),
|
|
636
|
+
disabled: busy,
|
|
637
|
+
onClick: () => {
|
|
638
|
+
refresh();
|
|
533
639
|
}
|
|
534
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
535
|
-
className: SkillPlazaSection_module_css_default.tagSelect,
|
|
536
|
-
"aria-label": t("plazaTagFilter"),
|
|
537
|
-
value: tag,
|
|
538
|
-
onChange: (event) => {
|
|
539
|
-
setTag(event.target.value);
|
|
540
|
-
refresh(event.target.value, query);
|
|
541
|
-
},
|
|
542
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
543
|
-
value: "",
|
|
544
|
-
children: t("plazaAllTags")
|
|
545
|
-
}), listing.tags.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
546
|
-
value: item,
|
|
547
|
-
children: item
|
|
548
|
-
}, item))]
|
|
549
640
|
})]
|
|
550
641
|
}),
|
|
642
|
+
listing.tags.length === 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
643
|
+
className: SkillPlazaSection_module_css_default.tagBar,
|
|
644
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Pill, {
|
|
645
|
+
active: tag === "",
|
|
646
|
+
onClick: () => {
|
|
647
|
+
setTag("");
|
|
648
|
+
refresh("", query);
|
|
649
|
+
},
|
|
650
|
+
children: t("plazaAllTags")
|
|
651
|
+
}), listing.tags.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Pill, {
|
|
652
|
+
active: tag === item,
|
|
653
|
+
onClick: () => {
|
|
654
|
+
setTag(item);
|
|
655
|
+
refresh(item, query);
|
|
656
|
+
},
|
|
657
|
+
children: item
|
|
658
|
+
}, item))]
|
|
659
|
+
}),
|
|
551
660
|
notice === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
552
661
|
className: SkillPlazaSection_module_css_default.notice,
|
|
553
662
|
children: notice
|
|
554
663
|
}),
|
|
555
|
-
listing.skills.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.
|
|
556
|
-
className: SkillPlazaSection_module_css_default.
|
|
557
|
-
children:
|
|
664
|
+
listing.skills.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
665
|
+
className: SkillPlazaSection_module_css_default.empty,
|
|
666
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
667
|
+
className: SkillPlazaSection_module_css_default.emptyIcon,
|
|
668
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconShareOutlineRegular, { size: 28 })
|
|
669
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
670
|
+
className: SkillPlazaSection_module_css_default.emptyText,
|
|
671
|
+
children: t("plazaEmpty")
|
|
672
|
+
})]
|
|
558
673
|
}) : null,
|
|
559
674
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
560
675
|
className: SkillPlazaSection_module_css_default.cards,
|
|
561
|
-
children: listing.skills.map((skill) => /* @__PURE__ */ (0, react_jsx_runtime.
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}),
|
|
578
|
-
skill.tags.length === 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
579
|
-
className: SkillPlazaSection_module_css_default.tags,
|
|
580
|
-
children: skill.tags.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
581
|
-
className: SkillPlazaSection_module_css_default.tag,
|
|
582
|
-
children: item
|
|
583
|
-
}, item))
|
|
584
|
-
}),
|
|
585
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
586
|
-
className: SkillPlazaSection_module_css_default.cardActions,
|
|
587
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
588
|
-
variant: "primary",
|
|
589
|
-
size: "sm",
|
|
590
|
-
disabled: busy,
|
|
591
|
-
onClick: () => {
|
|
592
|
-
act({
|
|
593
|
-
action: "install",
|
|
594
|
-
id: skill.id
|
|
595
|
-
}, t("plazaInstalled"));
|
|
596
|
-
},
|
|
597
|
-
children: t("plazaInstall")
|
|
598
|
-
}), skill.sharedByMe ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
599
|
-
variant: "outline",
|
|
600
|
-
size: "sm",
|
|
601
|
-
disabled: busy,
|
|
602
|
-
onClick: () => {
|
|
603
|
-
act({
|
|
604
|
-
action: "unshare",
|
|
605
|
-
id: skill.id
|
|
606
|
-
}, t("plazaUnshared"));
|
|
607
|
-
},
|
|
608
|
-
children: t("plazaUnshare")
|
|
609
|
-
}) : null]
|
|
610
|
-
})
|
|
611
|
-
]
|
|
676
|
+
children: listing.skills.map((skill) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlazaRow, {
|
|
677
|
+
skill,
|
|
678
|
+
busy,
|
|
679
|
+
t,
|
|
680
|
+
onInstall: () => {
|
|
681
|
+
act({
|
|
682
|
+
action: "install",
|
|
683
|
+
id: skill.id
|
|
684
|
+
}, t("plazaInstalled"));
|
|
685
|
+
},
|
|
686
|
+
onUnshare: () => {
|
|
687
|
+
act({
|
|
688
|
+
action: "unshare",
|
|
689
|
+
id: skill.id
|
|
690
|
+
}, t("plazaUnshared"));
|
|
691
|
+
}
|
|
612
692
|
}, skill.id))
|
|
613
693
|
})
|
|
614
694
|
]
|
|
@@ -626,18 +706,18 @@ window.__ModuleLoader__.load({
|
|
|
626
706
|
document.head.appendChild(tag);
|
|
627
707
|
}
|
|
628
708
|
var WanxiangBrand_module_css_default = {
|
|
629
|
-
"unit-left": "s0HPxG_unit-left",
|
|
630
|
-
"animatedMark": "s0HPxG_animatedMark",
|
|
631
709
|
"harness": "s0HPxG_harness",
|
|
632
710
|
"unit-right": "s0HPxG_unit-right",
|
|
633
|
-
"unit-core": "s0HPxG_unit-core",
|
|
634
|
-
"unitLeft": "s0HPxG_unitLeft",
|
|
635
|
-
"unitRight": "s0HPxG_unitRight",
|
|
636
711
|
"sidebarName": "s0HPxG_sidebarName",
|
|
637
|
-
"unitTop": "s0HPxG_unitTop",
|
|
638
712
|
"mark": "s0HPxG_mark",
|
|
639
|
-
"
|
|
640
|
-
"
|
|
713
|
+
"unit-core": "s0HPxG_unit-core",
|
|
714
|
+
"unitTop": "s0HPxG_unitTop",
|
|
715
|
+
"animatedMark": "s0HPxG_animatedMark",
|
|
716
|
+
"unit-top": "s0HPxG_unit-top",
|
|
717
|
+
"unitRight": "s0HPxG_unitRight",
|
|
718
|
+
"unit-left": "s0HPxG_unit-left",
|
|
719
|
+
"unitLeft": "s0HPxG_unitLeft",
|
|
720
|
+
"unitCore": "s0HPxG_unitCore"
|
|
641
721
|
};
|
|
642
722
|
//#endregion
|
|
643
723
|
//#region src/client/WanxiangBrand.tsx
|
|
@@ -953,7 +1033,9 @@ window.__ModuleLoader__.load({
|
|
|
953
1033
|
plazaEmpty: "No skills have been shared yet.",
|
|
954
1034
|
plazaUnavailable: "The skill plaza is available once this workspace is connected to DataOps.",
|
|
955
1035
|
plazaLoadFailed: "The skill plaza could not be loaded. Try again.",
|
|
956
|
-
plazaActionFailed: "The action could not be completed. Try again."
|
|
1036
|
+
plazaActionFailed: "The action could not be completed. Try again.",
|
|
1037
|
+
plazaRetry: "Try again",
|
|
1038
|
+
plazaRefresh: "Refresh"
|
|
957
1039
|
};
|
|
958
1040
|
/** Chinese managed DataOps Settings copy. */
|
|
959
1041
|
const zh = {
|
|
@@ -999,7 +1081,9 @@ window.__ModuleLoader__.load({
|
|
|
999
1081
|
plazaEmpty: "还没有人共享技能。",
|
|
1000
1082
|
plazaUnavailable: "工作区接入 DataOps 后即可使用技能广场。",
|
|
1001
1083
|
plazaLoadFailed: "技能广场加载失败,请重试。",
|
|
1002
|
-
plazaActionFailed: "操作未完成,请重试。"
|
|
1084
|
+
plazaActionFailed: "操作未完成,请重试。",
|
|
1085
|
+
plazaRetry: "重试",
|
|
1086
|
+
plazaRefresh: "刷新"
|
|
1003
1087
|
};
|
|
1004
1088
|
//#endregion
|
|
1005
1089
|
//#region src/client/index.ts
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["useSyncExternalStore","styles","StateDot","useState","useCallback","useState","useCallback","styles","Button","css"],"sources":["../src/client/brand-store.ts","../src/client/model-sync-client.ts","../src/client/ManagedDataOpsSection.tsx","../src/client/skill-plaza-client.ts","../src/client/SkillPlazaSection.tsx","../src/client/WanxiangBrand.tsx","../src/client/install-branding.tsx","../src/client/locales.ts","../src/client/index.ts"],"sourcesContent":["/** Persisted client preference for the managed DataOps shell identity. */\nexport interface WanxiangBrandPreference {\n enabled: boolean\n}\n\n/** Stable local preference key shared by Settings and brand-slot registration. */\nexport const WANXIANG_BRAND_PREFERENCE_KEY = 'dsh.dataops.wanxiangBrand'\n\nfunction initialPreference(): WanxiangBrandPreference {\n if (typeof localStorage === 'undefined') return { enabled: true }\n try {\n const value = JSON.parse(localStorage.getItem(WANXIANG_BRAND_PREFERENCE_KEY) ?? 'null') as unknown\n return typeof value === 'object' && value !== null && 'enabled' in value\n && typeof (value as { enabled?: unknown }).enabled === 'boolean'\n ? { enabled: (value as { enabled: boolean }).enabled }\n : { enabled: true }\n } catch {\n return { enabled: true }\n }\n}\n\nlet preference = initialPreference()\nconst listeners = new Set<() => void>()\n\n/** Observable preference compatible with React's useSyncExternalStore. */\nexport const wanxiangBrandPreference = {\n getSnapshot: (): WanxiangBrandPreference => preference,\n subscribe: (listener: () => void): (() => void) => {\n listeners.add(listener)\n return () => { listeners.delete(listener) }\n },\n}\n\n/** Toggle the Wanxiang shell identity from the DataOps Settings section. */\nexport function setWanxiangBrandEnabled(enabled: boolean): void {\n if (preference.enabled === enabled) return\n preference = { enabled }\n if (typeof localStorage !== 'undefined') {\n try {\n localStorage.setItem(WANXIANG_BRAND_PREFERENCE_KEY, JSON.stringify(preference))\n } catch {\n // Storage failure must not block an in-memory preference change.\n }\n }\n for (const listener of listeners) listener()\n}\n","/** Same-origin model-sync calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for model sharing. */\nexport const MODEL_SYNC_PATH = '/integrations/dataops/model-sync'\n\n/** One model this workspace holds, and whether it is offered to other users. */\nexport interface ModelSyncModel {\n /** Model id as the settings document stores it. */\n id: string\n /** Whether other users may use it. */\n shared: boolean\n}\n\n/** Model sharing as this workspace currently stands. */\nexport interface ModelSyncStatus {\n /** Whether this workspace follows a publisher. */\n followState: 'following' | 'detached'\n /** Whether an administrator currently shares models. */\n publisherSharing: boolean\n /** How many models this workspace adopts from the publisher. */\n adoptedCount: number\n /** Model ids kept private. */\n privateModelIds: string[]\n /** Publication time, when one is sharing. */\n publishedAt: string | null\n /** Whether the current user may change what this workspace shares. */\n canPublish: boolean\n /** Models this workspace holds. */\n models: ModelSyncModel[]\n}\n\n/** Narrow a response body to the status shape, rejecting anything else. */\nfunction asStatus(value: unknown): ModelSyncStatus | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const record = value as Record<string, unknown>\n if (record.followState !== 'following' && record.followState !== 'detached') return null\n return {\n followState: record.followState,\n publisherSharing: record.publisherSharing === true,\n adoptedCount: typeof record.adoptedCount === 'number' ? record.adoptedCount : 0,\n privateModelIds: Array.isArray(record.privateModelIds)\n ? record.privateModelIds.filter((id): id is string => typeof id === 'string')\n : [],\n publishedAt: typeof record.publishedAt === 'string' ? record.publishedAt : null,\n canPublish: record.canPublish === true,\n models: Array.isArray(record.models)\n ? record.models.flatMap((entry) => {\n if (typeof entry !== 'object' || entry === null) return []\n const model = entry as Record<string, unknown>\n return typeof model.id === 'string' ? [{ id: model.id, shared: model.shared === true }] : []\n })\n : [],\n }\n}\n\n/**\n * Read the current model sharing state.\n * @returns The status, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchModelSyncStatus(): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync status failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n\n/**\n * Change what this workspace shares.\n * @param body - Action and its parameters.\n * @returns The status after the change, or null when the plugin is not active.\n */\nexport async function postModelSyncAction(body: Record<string, unknown>): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync action failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n","import { useCallback, useEffect, useState, useSyncExternalStore } from 'react'\nimport { StateDot } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { setWanxiangBrandEnabled, wanxiangBrandPreference } from './brand-store.ts'\nimport { MODEL_SYNC_PATH, fetchModelSyncStatus, postModelSyncAction } from './model-sync-client.ts'\nimport type { ModelSyncStatus } from './model-sync-client.ts'\nimport styles from './ManagedDataOpsSection.module.css'\n\n/** Values injected by the DSH Settings slot. */\nexport interface ManagedDataOpsSectionInjected {\n /** Translate one managed DataOps Settings message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the managed DataOps Settings section. */\nexport type ManagedDataOpsSectionProps = Partial<InjectFace<ManagedDataOpsSectionInjected>>\n\n/**\n * Explain the DataOps-managed JWT and permission owner, and share model configuration.\n * @param props - Settings slot injection values.\n * @returns The localized managed DataOps section, or nothing before injection.\n */\nexport function ManagedDataOpsSection(props: ManagedDataOpsSectionProps) {\n const { t } = props\n const branding = useSyncExternalStore(\n wanxiangBrandPreference.subscribe,\n wanxiangBrandPreference.getSnapshot,\n wanxiangBrandPreference.getSnapshot,\n )\n if (t === undefined) return null\n\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('title')}</h2>\n <div className={styles.statusRow}>\n <StateDot state=\"done\" />\n <strong>{t('managed')}</strong>\n </div>\n <p className={styles.description}>{t('description')}</p>\n <div className={styles.brandingRow}>\n <div className={styles.brandingCopy}>\n <strong>{t('brandingTitle')}</strong>\n <span>{t('brandingDescription')}</span>\n </div>\n <button\n type=\"button\"\n className={styles.switch}\n role=\"switch\"\n aria-label={t('brandingToggle')}\n aria-checked={branding.enabled}\n data-checked={branding.enabled}\n onClick={() => { setWanxiangBrandEnabled(!branding.enabled) }}\n >\n <span />\n </button>\n </div>\n <ModelSharing t={t} />\n <dl className={styles.details}>\n <div className={styles.detailRow}>\n <dt>{t('identityLabel')}</dt>\n <dd>{t('identityValue')}</dd>\n </div>\n <div className={styles.detailRow}>\n <dt>{t('toolsLabel')}</dt>\n <dd>{t('toolsValue')}</dd>\n </div>\n </dl>\n </section>\n )\n}\n\n/** What the sharing panel knows about this workspace. */\ntype SharingState =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; status: ModelSyncStatus }\n | { kind: 'failed' }\n\n/**\n * Share this workspace's models, and choose which of them other users may use.\n *\n * The panel shows the sharing control to an administrator alone, and tells every other user\n * which configuration their workspace is using, including how to stop following it. Nothing\n * here decides permissions: DataOps reports who may publish.\n * @param props - Translate function from the section.\n * @returns The sharing panel.\n */\nfunction ModelSharing({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<SharingState>({ kind: 'loading' })\n const [busy, setBusy] = useState(false)\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchModelSyncStatus()\n setState(status === null ? { kind: 'unavailable' } : { kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const act = useCallback(async (body: Record<string, unknown>) => {\n setBusy(true)\n try {\n const status = await postModelSyncAction(body)\n if (status !== null) setState({ kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [])\n\n if (state.kind === 'loading') return null\n if (state.kind === 'unavailable') {\n return (\n <div className={styles.modelPanel}>\n <h3 className={styles.modelTitle}>{t('modelsTitle')}</h3>\n <p className={styles.modelDescription}>{t('modelsUnavailable')}</p>\n </div>\n )\n }\n if (state.kind === 'failed') {\n return (\n <div className={styles.modelPanel}>\n <h3 className={styles.modelTitle}>{t('modelsTitle')}</h3>\n <p className={styles.modelDescription} role=\"alert\">{t('loadFailed')}</p>\n </div>\n )\n }\n\n const { status } = state\n const following = status.followState === 'following'\n return (\n <div className={styles.modelPanel}>\n <h3 className={styles.modelTitle}>{t('modelsTitle')}</h3>\n <p className={styles.modelDescription}>{t('modelsDescription')}</p>\n\n {status.canPublish ? (\n <>\n <div className={styles.brandingRow}>\n <div className={styles.brandingCopy}>\n <strong>{t('syncTitle')}</strong>\n <span>{t('syncDescription')}</span>\n </div>\n <button\n type=\"button\"\n className={styles.switch}\n role=\"switch\"\n aria-label={t('syncToggle')}\n aria-checked={status.publisherSharing}\n data-checked={status.publisherSharing}\n disabled={busy}\n onClick={() => { void act({ action: 'publish', sharingEnabled: !status.publisherSharing }) }}\n >\n <span />\n </button>\n </div>\n {status.publisherSharing && status.models.length > 0 ? (\n <div className={styles.modelList}>\n <strong className={styles.modelListTitle}>{t('modelsListTitle')}</strong>\n <span className={styles.modelListDescription}>{t('modelsListDescription')}</span>\n {status.models.map((model) => (\n <div className={styles.modelRow} key={model.id}>\n <code className={styles.modelId}>{model.id}</code>\n <button\n type=\"button\"\n className={styles.switch}\n role=\"switch\"\n aria-label={t('modelShareLabel') + ': ' + model.id}\n aria-checked={model.shared}\n data-checked={model.shared}\n disabled={busy}\n onClick={() => {\n const next = model.shared\n ? [...status.privateModelIds, model.id]\n : status.privateModelIds.filter((id) => id !== model.id)\n void act({ action: 'private-models', privateModelIds: next, sharingEnabled: true })\n }}\n >\n <span />\n </button>\n </div>\n ))}\n </div>\n ) : null}\n {status.publisherSharing && status.models.length === 0 ? (\n <p className={styles.modelDescription}>{t('modelsEmpty')}</p>\n ) : null}\n </>\n ) : (\n <div className={styles.brandingRow}>\n <div className={styles.brandingCopy}>\n <strong>{following ? t('followTitle') : t('detachedTitle')}</strong>\n <span>{following && !status.publisherSharing ? t('noPublisher') : (following ? t('followDescription') : t('detachedDescription'))}</span>\n </div>\n {following ? null : (\n <button\n type=\"button\"\n className={styles.modelAction}\n disabled={busy}\n onClick={() => { void act({ action: 'resume' }) }}\n >\n {busy ? t('resuming') : t('resume')}\n </button>\n )}\n </div>\n )}\n </div>\n )\n}\n\n/** Re-exported so the settings entry can be discovered from the section alone. */\nexport { MODEL_SYNC_PATH }\n","/** Same-origin skill plaza calls from the DataOps skill center section. */\n\n/** Route the plugin's Host half serves for the plaza. */\nexport const SKILL_PLAZA_PATH = '/integrations/dataops/skill-plaza'\n\n/** One plaza entry as the section reads it. */\nexport interface PlazaSkill {\n id: number\n name: string\n description?: string\n instruction: string\n tags: string[]\n sharedByMe: boolean\n updatedAt: string\n}\n\n/** The plaza listing and the tags in use. */\nexport interface PlazaListing {\n skills: PlazaSkill[]\n tags: string[]\n}\n\n/** Narrow an unknown value to a plaza entry. */\nfunction asSkill(value: unknown): PlazaSkill | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n if (typeof row.id !== 'number' || typeof row.name !== 'string') return null\n return {\n id: row.id,\n name: row.name,\n description: typeof row.description === 'string' ? row.description : undefined,\n instruction: typeof row.instruction === 'string' ? row.instruction : '',\n tags: Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : [],\n sharedByMe: row.sharedByMe === true,\n updatedAt: typeof row.updatedAt === 'string' ? row.updatedAt : '',\n }\n}\n\n/** Narrow an unknown value to the listing. */\nfunction asListing(value: unknown): PlazaListing | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n const skills = Array.isArray(row.skills) ? row.skills.flatMap((entry) => asSkill(entry) ?? []) : []\n const tags = Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : []\n return { skills, tags }\n}\n\n/**\n * Read the plaza.\n * @param filter - Optional tag and text filters.\n * @returns The listing, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchPlaza(filter: { tag?: string; query?: string } = {}): Promise<PlazaListing | null> {\n const params = new URLSearchParams()\n if (filter.tag !== undefined && filter.tag !== '') params.set('tag', filter.tag)\n if (filter.query !== undefined && filter.query !== '') params.set('q', filter.query)\n const suffix = params.size === 0 ? '' : '?' + params.toString()\n const response = await fetch(SKILL_PLAZA_PATH + suffix, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza read failed with HTTP ' + String(response.status))\n return asListing(await response.json())\n}\n\n/**\n * Change the plaza.\n * @param body - Action and its parameters.\n * @returns The parsed reply, or null when the plugin is not active.\n */\nexport async function postPlazaAction(body: Record<string, unknown>): Promise<unknown> {\n const response = await fetch(SKILL_PLAZA_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza action failed with HTTP ' + String(response.status))\n return await response.json()\n}\n","import { useCallback, useEffect, useState } from 'react'\nimport type { ReactNode } from 'react'\nimport { Button } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { fetchPlaza, postPlazaAction, type PlazaListing, type PlazaSkill } from './skill-plaza-client.ts'\nimport styles from './SkillPlazaSection.module.css'\n\n/** Values the skill center passes to a contributed section. */\nexport interface SkillPlazaSectionInjected {\n /** Translate one DataOps plaza message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the plaza section. */\nexport type SkillPlazaSectionProps = Partial<InjectFace<SkillPlazaSectionInjected>>\n\n/** What the section currently knows. */\ntype PlazaState =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; listing: PlazaListing }\n | { kind: 'failed' }\n\n/**\n * Browse, share, and install skills other users published.\n *\n * The section appears only where this plugin is installed: the skill center renders the slot,\n * and an empty slot renders nothing. Every action goes through this plugin's Host route, so a\n * workspace without DataOps never reaches these calls.\n * @param props - Skill center injection values.\n * @returns The plaza section, or nothing before injection.\n */\nexport function SkillPlazaSection(props: SkillPlazaSectionProps): ReactNode {\n const { t } = props\n const [state, setState] = useState<PlazaState>({ kind: 'loading' })\n const [tag, setTag] = useState('')\n const [query, setQuery] = useState('')\n const [busy, setBusy] = useState(false)\n const [notice, setNotice] = useState<string | null>(null)\n\n const load = useCallback(async (filter: { tag?: string; query?: string }) => {\n try {\n const listing = await fetchPlaza(filter)\n setState(listing === null ? { kind: 'unavailable' } : { kind: 'ready', listing })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void load({}) }, [load])\n\n const refresh = useCallback(async (nextTag = tag, nextQuery = query) => {\n await load({ tag: nextTag, query: nextQuery })\n }, [load, tag, query])\n\n const act = useCallback(async (body: Record<string, unknown>, message: string) => {\n setBusy(true)\n setNotice(null)\n try {\n await postPlazaAction(body)\n setNotice(message)\n await refresh()\n } catch {\n setNotice(t === undefined ? null : t('plazaActionFailed'))\n } finally {\n setBusy(false)\n }\n }, [refresh, t])\n\n if (t === undefined) return null\n if (state.kind === 'loading') return null\n if (state.kind === 'unavailable') {\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('plazaTitle')}</h2>\n <p className={styles.intro}>{t('plazaUnavailable')}</p>\n </section>\n )\n }\n if (state.kind === 'failed') {\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('plazaTitle')}</h2>\n <p className={styles.intro} role=\"alert\">{t('plazaLoadFailed')}</p>\n </section>\n )\n }\n\n const { listing } = state\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('plazaTitle')}</h2>\n <p className={styles.intro}>{t('plazaIntro')}</p>\n\n <div className={styles.filters}>\n <input\n className={styles.search}\n placeholder={t('plazaSearch')}\n value={query}\n onChange={(event) => { setQuery(event.target.value) }}\n />\n <select\n className={styles.tagSelect}\n aria-label={t('plazaTagFilter')}\n value={tag}\n onChange={(event) => {\n setTag(event.target.value)\n void refresh(event.target.value, query)\n }}\n >\n <option value=\"\">{t('plazaAllTags')}</option>\n {listing.tags.map((item) => <option key={item} value={item}>{item}</option>)}\n </select>\n </div>\n\n {notice === null ? null : <p className={styles.notice}>{notice}</p>}\n\n {listing.skills.length === 0 ? <p className={styles.intro}>{t('plazaEmpty')}</p> : null}\n <ul className={styles.cards}>\n {listing.skills.map((skill) => (\n <li className={styles.card} key={skill.id}>\n <div className={styles.cardHead}>\n <strong className={styles.cardName}>{skill.name}</strong>\n {skill.sharedByMe ? <span className={styles.mine}>{t('plazaMine')}</span> : null}\n </div>\n {skill.description === undefined ? null : <p className={styles.cardDesc}>{skill.description}</p>}\n {skill.tags.length === 0 ? null : (\n <div className={styles.tags}>\n {skill.tags.map((item) => <span className={styles.tag} key={item}>{item}</span>)}\n </div>\n )}\n <div className={styles.cardActions}>\n <Button\n variant=\"primary\"\n size=\"sm\"\n disabled={busy}\n onClick={() => { void act({ action: 'install', id: skill.id }, t('plazaInstalled')) }}\n >\n {t('plazaInstall')}\n </Button>\n {skill.sharedByMe ? (\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={busy}\n onClick={() => { void act({ action: 'unshare', id: skill.id }, t('plazaUnshared')) }}\n >\n {t('plazaUnshare')}\n </Button>\n ) : null}\n </div>\n </li>\n ))}\n </ul>\n </section>\n )\n}\n\n/** Re-exported so the registration site reads the route from one place. */\nexport { SKILL_PLAZA_PATH } from './skill-plaza-client.ts'\n","import type { CSSProperties } from 'react'\nimport css from './WanxiangBrand.module.css'\n\nconst WORDMARK_VIEWBOX = \"1.64 115.64 5927.36 933.38\"\nconst WORDMARK_RATIO = 5927.36 / 933.38\nconst WORDMARK_PATHS = [\n {\n \"d\": \"M62 765V691H333C326 434 312 123 34 -24C53 -38 77 -62 89 -82C287 28 361 217 390 414H767C752 147 735 37 705 9C693 -2 681 -4 657 -3C631 -3 558 -3 483 4C498 -17 508 -48 509 -70C578 -74 648 -75 686 -72C724 -70 749 -62 772 -36C811 5 829 126 846 450C847 460 847 487 847 487H399C406 556 409 625 411 691H939V765Z\",\n \"transform\": \"translate(0.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M546 474H850V300H546ZM546 542V710H850V542ZM546 231H850V57H546ZM473 781V-73H546V-12H850V-70H926V781ZM214 840V626H52V554H205C170 416 99 258 29 175C41 157 60 127 68 107C122 176 175 287 214 402V-79H287V378C325 329 370 267 389 234L435 295C413 322 322 429 287 464V554H430V626H287V840Z\",\n \"transform\": \"translate(1002.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M443 821C425 782 393 723 368 688L417 664C443 697 477 747 506 793ZM88 793C114 751 141 696 150 661L207 686C198 722 171 776 143 815ZM410 260C387 208 355 164 317 126C279 145 240 164 203 180C217 204 233 231 247 260ZM110 153C159 134 214 109 264 83C200 37 123 5 41 -14C54 -28 70 -54 77 -72C169 -47 254 -8 326 50C359 30 389 11 412 -6L460 43C437 59 408 77 375 95C428 152 470 222 495 309L454 326L442 323H278L300 375L233 387C226 367 216 345 206 323H70V260H175C154 220 131 183 110 153ZM257 841V654H50V592H234C186 527 109 465 39 435C54 421 71 395 80 378C141 411 207 467 257 526V404H327V540C375 505 436 458 461 435L503 489C479 506 391 562 342 592H531V654H327V841ZM629 832C604 656 559 488 481 383C497 373 526 349 538 337C564 374 586 418 606 467C628 369 657 278 694 199C638 104 560 31 451 -22C465 -37 486 -67 493 -83C595 -28 672 41 731 129C781 44 843 -24 921 -71C933 -52 955 -26 972 -12C888 33 822 106 771 198C824 301 858 426 880 576H948V646H663C677 702 689 761 698 821ZM809 576C793 461 769 361 733 276C695 366 667 468 648 576Z\",\n \"transform\": \"translate(2004.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M484 238V-81H550V-40H858V-77H927V238H734V362H958V427H734V537H923V796H395V494C395 335 386 117 282 -37C299 -45 330 -67 344 -79C427 43 455 213 464 362H663V238ZM468 731H851V603H468ZM468 537H663V427H467L468 494ZM550 22V174H858V22ZM167 839V638H42V568H167V349C115 333 67 319 29 309L49 235L167 273V14C167 0 162 -4 150 -4C138 -5 99 -5 56 -4C65 -24 75 -55 77 -73C140 -74 179 -71 203 -59C228 -48 237 -27 237 14V296L352 334L341 403L237 370V568H350V638H237V839Z\",\n \"transform\": \"translate(3006.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M174 630C213 556 252 459 266 399L337 424C323 482 282 578 242 650ZM755 655C730 582 684 480 646 417L711 396C750 456 797 552 834 633ZM52 348V273H459V-79H537V273H949V348H537V698H893V773H105V698H459V348Z\",\n \"transform\": \"translate(4008.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M179 342V-79H255V-25H741V-77H821V342ZM255 48V270H741V48ZM126 426C165 441 224 443 800 474C825 443 846 414 861 388L925 434C873 518 756 641 658 727L599 687C647 644 699 591 745 540L231 516C320 598 410 701 490 811L415 844C336 720 219 593 183 559C149 526 124 505 101 500C110 480 122 442 126 426Z\",\n \"transform\": \"translate(5010.00 940.00) scale(0.96000 -0.94000)\"\n }\n] as const\nconst HARNESS_PATHS = [\n {\n \"d\": \"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n }\n] as const\n\ninterface MarkProps {\n size: number\n className?: string | undefined\n}\n\nfunction classes(...values: Array<string | undefined>): string {\n return values.filter(Boolean).join(' ')\n}\n\nfunction Cube({ transform, className }: { transform: string; className: string }) {\n return (\n <g transform={transform}>\n <g className={className} stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinejoin=\"round\">\n <path d=\"M12 0 24 7 12 14 0 7 12 0Z\" fill=\"none\" />\n <path d=\"M0 7 12 14v16L0 23V7Z\" fill=\"currentColor\" />\n <path d=\"M12 14 24 7v16L12 30V14Z\" fill=\"currentColor\" fillOpacity=\".18\" />\n </g>\n </g>\n )\n}\n\n/** Four linked data units; its ink follows the host surface through currentColor. */\nexport function WanxiangMark({ size, className, animated = false }: MarkProps & { animated?: boolean }) {\n return (\n <svg\n width={size}\n height={(size * 58) / 54}\n className={classes(css.mark, animated ? css.animatedMark : undefined, className)}\n viewBox=\"0 0 54 58\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n <Cube className={css.unitTop} transform=\"translate(15 0)\" />\n <Cube className={css.unitLeft} transform=\"translate(0 16)\" />\n <Cube className={css.unitRight} transform=\"translate(30 16)\" />\n <Cube className={css.unitCore} transform=\"translate(15 27)\" />\n </svg>\n )\n}\n\n/** Approved rounded-Heiti artwork, stored as paths with no runtime font dependency. */\nexport function WanxiangWordmark({ height, accessible = false, className }: {\n height: number\n accessible?: boolean\n className?: string | undefined\n}) {\n const accessibility = accessible\n ? { role: 'img', 'aria-label': '万相数据平台' }\n : { 'aria-hidden': true }\n return (\n <svg\n width={height * WORDMARK_RATIO}\n height={height}\n className={className}\n viewBox={WORDMARK_VIEWBOX}\n {...accessibility}\n >\n <g\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\"42\"\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n paintOrder=\"stroke fill\"\n >\n {WORDMARK_PATHS.map(path => <path key={path.transform} d={path.d} transform={path.transform} />)}\n </g>\n </svg>\n )\n}\n\n/** Exact HARNESS badge artwork extracted from the current DSH BrandWordmark. */\nexport function HarnessBadge({ height = 14 }: { height?: number }) {\n const style = { '--dsw-alias-label-primary-inverted': 'var(--dsw-alias-bg-base)' } as CSSProperties\n return (\n <svg\n width={(height * 53) / 15.5}\n height={height}\n className={css.harness}\n viewBox=\"129 5 53 15.5\"\n style={style}\n aria-hidden=\"true\"\n >\n <rect x=\"129.348\" y=\"5.5\" width=\"52\" height=\"14\" rx=\"2\" fill=\"currentColor\" />\n {HARNESS_PATHS.map((path, index) => <path key={index} d={path.d} fill={path.fill} />)}\n </svg>\n )\n}\n\n/** Expanded-sidebar brand name plus the unchanged official HARNESS badge. */\nexport function WanxiangSidebarName() {\n return <span className={css.sidebarName}><WanxiangWordmark height={16} /><HarnessBadge height={14} /></span>\n}\n\n/** Welcome-page logo with four-unit hover motion. */\nexport function WanxiangHeroMark({ size, className }: MarkProps) {\n return <WanxiangMark size={size} className={className} animated />\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport { wanxiangBrandPreference } from './brand-store.ts'\nimport {\n WanxiangHeroMark,\n WanxiangMark,\n WanxiangSidebarName,\n} from './WanxiangBrand.tsx'\n\nconst BRAND_TITLE = '万相数据平台 Harness'\nconst SLOT_PRIORITY = -100\nconst FAVICON_ID = 'dataops-wanxiang-favicon'\nconst FAVICON_SVG = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 54 58\"><style>:root{color:#1b1b1d}@media(prefers-color-scheme:dark){:root{color:#f7f7f8}}</style><g transform=\"translate(15 0)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(0 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(30 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(15 27)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g></svg>`\n\n\nfunction registerWanxiangSlots(ctx: ClientContext): () => void {\n return ctx.slots.inject('sidebar.brand.mark', () =>\n ctx.slots.inject('sidebar.brand.name', () =>\n ctx.slots.inject('conversation.hero.brand.mark', function* () {\n yield ctx.slots.register({\n name: 'sidebar.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangMark)\n yield ctx.slots.register({\n name: 'sidebar.brand.name',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangSidebarName)\n yield ctx.slots.register({\n name: 'conversation.hero.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangHeroMark)\n })))\n}\n\nfunction installFavicon(): HTMLLinkElement {\n const existing = document.getElementById(FAVICON_ID)\n if (existing instanceof HTMLLinkElement) return existing\n const link = document.createElement('link')\n link.id = FAVICON_ID\n link.rel = 'icon'\n link.type = 'image/svg+xml'\n link.href = `data:image/svg+xml,${encodeURIComponent(FAVICON_SVG)}`\n document.head.append(link)\n return link\n}\n\n/** Keep shell slots, browser title, and favicon on the same persisted preference. */\nexport function installWanxiangBranding(ctx: ClientContext): void {\n const originalTitle = document.title\n let disposeSlots: (() => void) | undefined\n let favicon: HTMLLinkElement | undefined\n let titleObserver: MutationObserver | undefined\n\n const stopTitleObserver = (): void => {\n titleObserver?.disconnect()\n titleObserver = undefined\n }\n const keepBrandTitle = (): void => {\n if (document.title !== BRAND_TITLE) document.title = BRAND_TITLE\n if (titleObserver !== undefined) return\n titleObserver = new MutationObserver(() => {\n if (wanxiangBrandPreference.getSnapshot().enabled && document.title !== BRAND_TITLE) {\n document.title = BRAND_TITLE\n }\n })\n titleObserver.observe(document.head, { childList: true, subtree: true, characterData: true })\n }\n\n const synchronize = (): void => {\n const enabled = wanxiangBrandPreference.getSnapshot().enabled\n if (enabled) {\n disposeSlots ??= registerWanxiangSlots(ctx)\n favicon ??= installFavicon()\n keepBrandTitle()\n document.documentElement.dataset.dataopsBrand = 'wanxiang'\n return\n }\n disposeSlots?.()\n disposeSlots = undefined\n favicon?.remove()\n favicon = undefined\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n\n ctx.effect(() => {\n synchronize()\n const unsubscribe = wanxiangBrandPreference.subscribe(synchronize)\n return () => {\n unsubscribe()\n disposeSlots?.()\n favicon?.remove()\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n }, 'dataops-managed: Wanxiang shell branding')\n}\n","/** English managed DataOps Settings copy. */\nexport const en = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: 'Managed by this DataOps workspace',\n description: 'DSH uses your current DataOps session JWT. DataOps applies its role and resource permissions to every tool request.',\n identityLabel: 'Identity and permissions',\n identityValue: 'Current DataOps JWT',\n toolsLabel: 'DataOps tools',\n toolsValue: 'Authorized by DataOps on every request',\n brandingTitle: 'Apply Wanxiang branding',\n brandingDescription: 'Use the Wanxiang Data Platform identity in navigation, the New Session welcome view, browser title, and favicon.',\n brandingToggle: 'Apply Wanxiang branding',\n modelsTitle: 'Model configuration',\n modelsDescription: 'Share the models configured here with other users, and choose which of them they may use.',\n modelsUnavailable: 'Model configuration is unavailable until this workspace is connected to DataOps.',\n syncTitle: 'Share models with other users',\n syncDescription: 'Other users who have not configured their own models get the models configured here.',\n syncToggle: 'Share models with other users',\n followTitle: 'Using the shared model configuration',\n followDescription: 'The models shared by an administrator are available here. Change them and this workspace keeps your version instead.',\n detachedTitle: 'Using your own model configuration',\n detachedDescription: 'This workspace keeps the models configured here and no longer follows the shared configuration.',\n resume: 'Use the shared configuration again',\n resuming: 'Switching…',\n noPublisher: 'No administrator is sharing models right now.',\n modelsListTitle: 'Models other users may use',\n modelsListDescription: 'A model turned off here stays available in this workspace and is not offered to other users.',\n modelShareLabel: 'Available to other users',\n modelsEmpty: 'No models are configured in this workspace yet. Add them in Models settings first.',\n loadFailed: 'The model configuration could not be loaded. Try again.',\n plazaTitle: 'Skill plaza',\n plazaIntro: 'Skills other users shared. Install one to use it in this workspace, or share a skill of your own.',\n plazaSearch: 'Search skills',\n plazaTagFilter: 'Filter by tag',\n plazaAllTags: 'All tags',\n plazaMine: 'Shared by me',\n plazaInstall: 'Install',\n plazaInstalled: 'Installed. It is now in your skill list.',\n plazaUnshare: 'Stop sharing',\n plazaUnshared: 'Removed from the plaza. Users who installed it keep their copy.',\n plazaEmpty: 'No skills have been shared yet.',\n plazaUnavailable: 'The skill plaza is available once this workspace is connected to DataOps.',\n plazaLoadFailed: 'The skill plaza could not be loaded. Try again.',\n plazaActionFailed: 'The action could not be completed. Try again.',\n} as const\n\n/** Stable key set shared by every managed DataOps locale. */\nexport type ManagedDataOpsKey = keyof typeof en\n\n/** Chinese managed DataOps Settings copy. */\nexport const zh: Record<ManagedDataOpsKey, string> = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: '由当前 DataOps 工作区托管',\n description: 'DSH 使用当前 DataOps 会话 JWT;DataOps 对每次工具请求应用角色与资源权限。',\n identityLabel: '身份与权限',\n identityValue: '当前 DataOps JWT',\n toolsLabel: 'DataOps 工具',\n toolsValue: '每次请求均由 DataOps 授权',\n brandingTitle: '应用万相品牌',\n brandingDescription: '在导航、新会话欢迎页、浏览器标题和图标中使用万相数据平台品牌。',\n brandingToggle: '应用万相品牌',\n modelsTitle: '模型配置共享',\n modelsDescription: '把这里配置的模型共享给其他用户,并决定他们可以使用其中哪些。',\n modelsUnavailable: '工作区接入 DataOps 后即可使用模型配置共享。',\n syncTitle: '共享模型给其他用户',\n syncDescription: '尚未自己配置过模型的用户,会获得这里配置的模型。',\n syncToggle: '共享模型给其他用户',\n followTitle: '正在使用共享的模型配置',\n followDescription: '管理员共享的模型已可在此使用;你修改后会保留自己的版本。',\n detachedTitle: '正在使用自己的模型配置',\n detachedDescription: '本工作区保留自己配置的模型,不再跟随共享配置。',\n resume: '重新使用共享配置',\n resuming: '切换中…',\n noPublisher: '当前没有管理员共享模型。',\n modelsListTitle: '其他用户可使用的模型',\n modelsListDescription: '在这里关闭的模型,本工作区仍可使用,只是不提供给其他用户。',\n modelShareLabel: '提供给其他用户使用',\n modelsEmpty: '本工作区还没有配置模型,请先在模型设置中添加。',\n loadFailed: '模型配置加载失败,请重试。',\n plazaTitle: '技能广场',\n plazaIntro: '其他用户共享的技能。装载后即可在本工作区使用,也可以把自己的技能共享出去。',\n plazaSearch: '搜索技能',\n plazaTagFilter: '按标签筛选',\n plazaAllTags: '全部标签',\n plazaMine: '我共享的',\n plazaInstall: '装载',\n plazaInstalled: '已装载,可在技能列表中使用。',\n plazaUnshare: '取消共享',\n plazaUnshared: '已从广场移除;已装载的用户保留其副本。',\n plazaEmpty: '还没有人共享技能。',\n plazaUnavailable: '工作区接入 DataOps 后即可使用技能广场。',\n plazaLoadFailed: '技能广场加载失败,请重试。',\n plazaActionFailed: '操作未完成,请重试。',\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\n// Type-only: pulls the skill center's slot declaration so this plugin can contribute to it.\nimport type {} from '@sparkelf/dsh-client-ui-skill-center/client'\nimport { ManagedDataOpsSection } from './ManagedDataOpsSection.tsx'\nimport { SkillPlazaSection } from './SkillPlazaSection.tsx'\nimport { installWanxiangBranding } from './install-branding.tsx'\nimport type { ManagedDataOpsSectionInjected } from './ManagedDataOpsSection.tsx'\nimport { en, zh, type ManagedDataOpsKey } from './locales.ts'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'settings.dataops-managed': ManagedDataOpsKey\n }\n}\n\nconst NS = 'settings.dataops-managed'\nconst AUTH_UPDATED_MESSAGE = 'dataops-auth-updated'\nconst MANAGED_AUTH_PATH = '/integrations/dataops/managed-auth'\n\n/** Required client services for the managed DataOps Settings section. */\nexport const inject = ['slots', 'locale']\n\n/**\n * Register localized managed DataOps Settings navigation and content.\n * @param ctx - DSH client context with locale and settings slots.\n */\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dataops-managed: settings copy')\n installWanxiangBranding(ctx)\n const t = ctx.locale.bind(NS) as ManagedDataOpsSectionInjected['t']\n ctx.slots.inject('settings.section', () => ctx.slots.register({\n name: 'settings.section',\n id: 'dataops',\n order: 25,\n label: () => t('nav'),\n inject: () => ({ t }),\n }, ManagedDataOpsSection))\n\n /**\n * The skill plaza, contributed to the skill center page.\n *\n * The skill center declares the slot and renders whatever it holds; a profile without this\n * plugin leaves it empty, which is what keeps the plaza out of a deployment that never\n * installed DataOps.\n */\n ctx.slots.inject('skill-center.section', () => ctx.slots.register({\n name: 'skill-center.section',\n id: 'dataops-plaza',\n order: 10,\n inject: () => ({ t }),\n }, SkillPlazaSection))\n\n const synchronizeJwt = async (): Promise<void> => {\n const response = await fetch(new URL(MANAGED_AUTH_PATH, window.location.origin), {\n method: 'POST',\n credentials: 'same-origin',\n })\n if (!response.ok) throw new Error(`DataOps managed JWT synchronization failed with HTTP ${String(response.status)}`)\n }\n const onMessage = (event: MessageEvent<unknown>): void => {\n if (event.source !== window.parent\n || (event.data as { type?: unknown } | null)?.type !== AUTH_UPDATED_MESSAGE) return\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n }\n ctx.effect(() => {\n window.addEventListener('message', onMessage)\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n return () => window.removeEventListener('message', onMessage)\n }, 'dataops-managed: JWT synchronization')\n}\n"],"mappings":";;;;;;;;;;;EAMA,MAAa,gCAAgC;EAE7C,SAAS,oBAA6C;GACpD,IAAI,OAAO,iBAAiB,aAAa,OAAO,EAAE,SAAS,KAAK;GAChE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mCAAmC,KAAK,CAAC;IAC5F,aAAa,OAAO,oBAAoB,WAAW,SAAS;GAC9D,GAAG,sCAAsC;EAC3C"}
|
|
1
|
+
{"version":3,"file":"client.js","names":["useSyncExternalStore","styles","StateDot","useState","useCallback","styles","IconSkillOutlineRegular","Tag","Button","IconDownloadOutlineRegular","IconTrashOutlineRegular","useState","useCallback","IconSparkleRegular","IconRefreshOutlineRegular","IconSearchOutlineRegular","Pill","IconShareOutlineRegular","css"],"sources":["../src/client/brand-store.ts","../src/client/model-sync-client.ts","../src/client/ManagedDataOpsSection.tsx","../src/client/skill-plaza-client.ts","../src/client/SkillPlazaSection.tsx","../src/client/WanxiangBrand.tsx","../src/client/install-branding.tsx","../src/client/locales.ts","../src/client/index.ts"],"sourcesContent":["/** Persisted client preference for the managed DataOps shell identity. */\nexport interface WanxiangBrandPreference {\n enabled: boolean\n}\n\n/** Stable local preference key shared by Settings and brand-slot registration. */\nexport const WANXIANG_BRAND_PREFERENCE_KEY = 'dsh.dataops.wanxiangBrand'\n\nfunction initialPreference(): WanxiangBrandPreference {\n if (typeof localStorage === 'undefined') return { enabled: true }\n try {\n const value = JSON.parse(localStorage.getItem(WANXIANG_BRAND_PREFERENCE_KEY) ?? 'null') as unknown\n return typeof value === 'object' && value !== null && 'enabled' in value\n && typeof (value as { enabled?: unknown }).enabled === 'boolean'\n ? { enabled: (value as { enabled: boolean }).enabled }\n : { enabled: true }\n } catch {\n return { enabled: true }\n }\n}\n\nlet preference = initialPreference()\nconst listeners = new Set<() => void>()\n\n/** Observable preference compatible with React's useSyncExternalStore. */\nexport const wanxiangBrandPreference = {\n getSnapshot: (): WanxiangBrandPreference => preference,\n subscribe: (listener: () => void): (() => void) => {\n listeners.add(listener)\n return () => { listeners.delete(listener) }\n },\n}\n\n/** Toggle the Wanxiang shell identity from the DataOps Settings section. */\nexport function setWanxiangBrandEnabled(enabled: boolean): void {\n if (preference.enabled === enabled) return\n preference = { enabled }\n if (typeof localStorage !== 'undefined') {\n try {\n localStorage.setItem(WANXIANG_BRAND_PREFERENCE_KEY, JSON.stringify(preference))\n } catch {\n // Storage failure must not block an in-memory preference change.\n }\n }\n for (const listener of listeners) listener()\n}\n","/** Same-origin model-sync calls from the DataOps settings surface. */\n\n/** Route the plugin's Host half serves for model sharing. */\nexport const MODEL_SYNC_PATH = '/integrations/dataops/model-sync'\n\n/** One model this workspace holds, and whether it is offered to other users. */\nexport interface ModelSyncModel {\n /** Model id as the settings document stores it. */\n id: string\n /** Whether other users may use it. */\n shared: boolean\n}\n\n/** Model sharing as this workspace currently stands. */\nexport interface ModelSyncStatus {\n /** Whether this workspace follows a publisher. */\n followState: 'following' | 'detached'\n /** Whether an administrator currently shares models. */\n publisherSharing: boolean\n /** How many models this workspace adopts from the publisher. */\n adoptedCount: number\n /** Model ids kept private. */\n privateModelIds: string[]\n /** Publication time, when one is sharing. */\n publishedAt: string | null\n /** Whether the current user may change what this workspace shares. */\n canPublish: boolean\n /** Models this workspace holds. */\n models: ModelSyncModel[]\n}\n\n/** Narrow a response body to the status shape, rejecting anything else. */\nfunction asStatus(value: unknown): ModelSyncStatus | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const record = value as Record<string, unknown>\n if (record.followState !== 'following' && record.followState !== 'detached') return null\n return {\n followState: record.followState,\n publisherSharing: record.publisherSharing === true,\n adoptedCount: typeof record.adoptedCount === 'number' ? record.adoptedCount : 0,\n privateModelIds: Array.isArray(record.privateModelIds)\n ? record.privateModelIds.filter((id): id is string => typeof id === 'string')\n : [],\n publishedAt: typeof record.publishedAt === 'string' ? record.publishedAt : null,\n canPublish: record.canPublish === true,\n models: Array.isArray(record.models)\n ? record.models.flatMap((entry) => {\n if (typeof entry !== 'object' || entry === null) return []\n const model = entry as Record<string, unknown>\n return typeof model.id === 'string' ? [{ id: model.id, shared: model.shared === true }] : []\n })\n : [],\n }\n}\n\n/**\n * Read the current model sharing state.\n * @returns The status, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchModelSyncStatus(): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync status failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n\n/**\n * Change what this workspace shares.\n * @param body - Action and its parameters.\n * @returns The status after the change, or null when the plugin is not active.\n */\nexport async function postModelSyncAction(body: Record<string, unknown>): Promise<ModelSyncStatus | null> {\n const response = await fetch(MODEL_SYNC_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('model sync action failed with HTTP ' + String(response.status))\n return asStatus(await response.json())\n}\n","import { useCallback, useEffect, useState, useSyncExternalStore } from 'react'\nimport { StateDot } from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { setWanxiangBrandEnabled, wanxiangBrandPreference } from './brand-store.ts'\nimport { MODEL_SYNC_PATH, fetchModelSyncStatus, postModelSyncAction } from './model-sync-client.ts'\nimport type { ModelSyncStatus } from './model-sync-client.ts'\nimport styles from './ManagedDataOpsSection.module.css'\n\n/** Values injected by the DSH Settings slot. */\nexport interface ManagedDataOpsSectionInjected {\n /** Translate one managed DataOps Settings message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the managed DataOps Settings section. */\nexport type ManagedDataOpsSectionProps = Partial<InjectFace<ManagedDataOpsSectionInjected>>\n\n/**\n * Explain the DataOps-managed JWT and permission owner, and share model configuration.\n * @param props - Settings slot injection values.\n * @returns The localized managed DataOps section, or nothing before injection.\n */\nexport function ManagedDataOpsSection(props: ManagedDataOpsSectionProps) {\n const { t } = props\n const branding = useSyncExternalStore(\n wanxiangBrandPreference.subscribe,\n wanxiangBrandPreference.getSnapshot,\n wanxiangBrandPreference.getSnapshot,\n )\n if (t === undefined) return null\n\n return (\n <section className={styles.section}>\n <h2 className={styles.title}>{t('title')}</h2>\n <div className={styles.statusRow}>\n <StateDot state=\"done\" />\n <strong>{t('managed')}</strong>\n </div>\n <p className={styles.description}>{t('description')}</p>\n <div className={styles.brandingRow}>\n <div className={styles.brandingCopy}>\n <strong>{t('brandingTitle')}</strong>\n <span>{t('brandingDescription')}</span>\n </div>\n <button\n type=\"button\"\n className={styles.switch}\n role=\"switch\"\n aria-label={t('brandingToggle')}\n aria-checked={branding.enabled}\n data-checked={branding.enabled}\n onClick={() => { setWanxiangBrandEnabled(!branding.enabled) }}\n >\n <span />\n </button>\n </div>\n <ModelSharing t={t} />\n <dl className={styles.details}>\n <div className={styles.detailRow}>\n <dt>{t('identityLabel')}</dt>\n <dd>{t('identityValue')}</dd>\n </div>\n <div className={styles.detailRow}>\n <dt>{t('toolsLabel')}</dt>\n <dd>{t('toolsValue')}</dd>\n </div>\n </dl>\n </section>\n )\n}\n\n/** What the sharing panel knows about this workspace. */\ntype SharingState =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; status: ModelSyncStatus }\n | { kind: 'failed' }\n\n/**\n * Share this workspace's models, and choose which of them other users may use.\n *\n * The panel shows the sharing control to an administrator alone, and tells every other user\n * which configuration their workspace is using, including how to stop following it. Nothing\n * here decides permissions: DataOps reports who may publish.\n * @param props - Translate function from the section.\n * @returns The sharing panel.\n */\nfunction ModelSharing({ t }: { t: (key: keyof typeof en) => string }) {\n const [state, setState] = useState<SharingState>({ kind: 'loading' })\n const [busy, setBusy] = useState(false)\n\n const refresh = useCallback(async () => {\n try {\n const status = await fetchModelSyncStatus()\n setState(status === null ? { kind: 'unavailable' } : { kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void refresh() }, [refresh])\n\n const act = useCallback(async (body: Record<string, unknown>) => {\n setBusy(true)\n try {\n const status = await postModelSyncAction(body)\n if (status !== null) setState({ kind: 'ready', status })\n } catch {\n setState({ kind: 'failed' })\n } finally {\n setBusy(false)\n }\n }, [])\n\n if (state.kind === 'loading') return null\n if (state.kind === 'unavailable') {\n return (\n <div className={styles.modelPanel}>\n <h3 className={styles.modelTitle}>{t('modelsTitle')}</h3>\n <p className={styles.modelDescription}>{t('modelsUnavailable')}</p>\n </div>\n )\n }\n if (state.kind === 'failed') {\n return (\n <div className={styles.modelPanel}>\n <h3 className={styles.modelTitle}>{t('modelsTitle')}</h3>\n <p className={styles.modelDescription} role=\"alert\">{t('loadFailed')}</p>\n </div>\n )\n }\n\n const { status } = state\n const following = status.followState === 'following'\n return (\n <div className={styles.modelPanel}>\n <h3 className={styles.modelTitle}>{t('modelsTitle')}</h3>\n <p className={styles.modelDescription}>{t('modelsDescription')}</p>\n\n {status.canPublish ? (\n <>\n <div className={styles.brandingRow}>\n <div className={styles.brandingCopy}>\n <strong>{t('syncTitle')}</strong>\n <span>{t('syncDescription')}</span>\n </div>\n <button\n type=\"button\"\n className={styles.switch}\n role=\"switch\"\n aria-label={t('syncToggle')}\n aria-checked={status.publisherSharing}\n data-checked={status.publisherSharing}\n disabled={busy}\n onClick={() => { void act({ action: 'publish', sharingEnabled: !status.publisherSharing }) }}\n >\n <span />\n </button>\n </div>\n {status.publisherSharing && status.models.length > 0 ? (\n <div className={styles.modelList}>\n <strong className={styles.modelListTitle}>{t('modelsListTitle')}</strong>\n <span className={styles.modelListDescription}>{t('modelsListDescription')}</span>\n {status.models.map((model) => (\n <div className={styles.modelRow} key={model.id}>\n <code className={styles.modelId}>{model.id}</code>\n <button\n type=\"button\"\n className={styles.switch}\n role=\"switch\"\n aria-label={t('modelShareLabel') + ': ' + model.id}\n aria-checked={model.shared}\n data-checked={model.shared}\n disabled={busy}\n onClick={() => {\n const next = model.shared\n ? [...status.privateModelIds, model.id]\n : status.privateModelIds.filter((id) => id !== model.id)\n void act({ action: 'private-models', privateModelIds: next, sharingEnabled: true })\n }}\n >\n <span />\n </button>\n </div>\n ))}\n </div>\n ) : null}\n {status.publisherSharing && status.models.length === 0 ? (\n <p className={styles.modelDescription}>{t('modelsEmpty')}</p>\n ) : null}\n </>\n ) : (\n <div className={styles.brandingRow}>\n <div className={styles.brandingCopy}>\n <strong>{following ? t('followTitle') : t('detachedTitle')}</strong>\n <span>{following && !status.publisherSharing ? t('noPublisher') : (following ? t('followDescription') : t('detachedDescription'))}</span>\n </div>\n {following ? null : (\n <button\n type=\"button\"\n className={styles.modelAction}\n disabled={busy}\n onClick={() => { void act({ action: 'resume' }) }}\n >\n {busy ? t('resuming') : t('resume')}\n </button>\n )}\n </div>\n )}\n </div>\n )\n}\n\n/** Re-exported so the settings entry can be discovered from the section alone. */\nexport { MODEL_SYNC_PATH }\n","/** Same-origin skill plaza calls from the DataOps skill center section. */\n\n/** Route the plugin's Host half serves for the plaza. */\nexport const SKILL_PLAZA_PATH = '/integrations/dataops/skill-plaza'\n\n/** One plaza entry as the section reads it. */\nexport interface PlazaSkill {\n id: number\n name: string\n description?: string\n instruction: string\n tags: string[]\n sharedByMe: boolean\n updatedAt: string\n}\n\n/** The plaza listing and the tags in use. */\nexport interface PlazaListing {\n skills: PlazaSkill[]\n tags: string[]\n}\n\n/** Narrow an unknown value to a plaza entry. */\nfunction asSkill(value: unknown): PlazaSkill | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n if (typeof row.id !== 'number' || typeof row.name !== 'string') return null\n return {\n id: row.id,\n name: row.name,\n description: typeof row.description === 'string' ? row.description : undefined,\n instruction: typeof row.instruction === 'string' ? row.instruction : '',\n tags: Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : [],\n sharedByMe: row.sharedByMe === true,\n updatedAt: typeof row.updatedAt === 'string' ? row.updatedAt : '',\n }\n}\n\n/** Narrow an unknown value to the listing. */\nfunction asListing(value: unknown): PlazaListing | null {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) return null\n const row = value as Record<string, unknown>\n const skills = Array.isArray(row.skills) ? row.skills.flatMap((entry) => asSkill(entry) ?? []) : []\n const tags = Array.isArray(row.tags) ? row.tags.filter((tag): tag is string => typeof tag === 'string') : []\n return { skills, tags }\n}\n\n/**\n * Read the plaza.\n * @param filter - Optional tag and text filters.\n * @returns The listing, or null when this workspace is not connected to DataOps.\n */\nexport async function fetchPlaza(filter: { tag?: string; query?: string } = {}): Promise<PlazaListing | null> {\n const params = new URLSearchParams()\n if (filter.tag !== undefined && filter.tag !== '') params.set('tag', filter.tag)\n if (filter.query !== undefined && filter.query !== '') params.set('q', filter.query)\n const suffix = params.size === 0 ? '' : '?' + params.toString()\n const response = await fetch(SKILL_PLAZA_PATH + suffix, { headers: { accept: 'application/json' } })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza read failed with HTTP ' + String(response.status))\n return asListing(await response.json())\n}\n\n/**\n * Change the plaza.\n * @param body - Action and its parameters.\n * @returns The parsed reply, or null when the plugin is not active.\n */\nexport async function postPlazaAction(body: Record<string, unknown>): Promise<unknown> {\n const response = await fetch(SKILL_PLAZA_PATH, {\n method: 'POST',\n headers: { 'content-type': 'application/json', accept: 'application/json' },\n body: JSON.stringify(body),\n })\n if (response.status === 503) return null\n if (!response.ok) throw new Error('skill plaza action failed with HTTP ' + String(response.status))\n return await response.json()\n}\n","import { useCallback, useEffect, useState } from 'react'\nimport type { ReactNode } from 'react'\nimport {\n Button,\n IconDownloadOutlineRegular,\n IconRefreshOutlineRegular,\n IconSearchOutlineRegular,\n IconShareOutlineRegular,\n IconSkillOutlineRegular,\n IconSparkleRegular,\n IconTrashOutlineRegular,\n Pill,\n Tag,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { InjectFace } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { en } from './locales.ts'\nimport { fetchPlaza, postPlazaAction, type PlazaListing, type PlazaSkill } from './skill-plaza-client.ts'\nimport styles from './SkillPlazaSection.module.css'\n\n/** Values the skill center passes to a contributed section. */\nexport interface SkillPlazaSectionInjected {\n /** Translate one DataOps plaza message key. */\n t: (key: keyof typeof en) => string\n}\n\n/** Props accepted by the plaza section. */\nexport type SkillPlazaSectionProps = Partial<InjectFace<SkillPlazaSectionInjected>>\n\n/** What the section currently knows. */\ntype PlazaState =\n | { kind: 'loading' }\n | { kind: 'unavailable' }\n | { kind: 'ready'; listing: PlazaListing }\n | { kind: 'failed' }\n\n/**\n * One plaza row, laid out like the skill center's own rows so the section reads as part of the\n * page rather than a panel bolted onto it.\n * @param props - the row's skill, its actions, and the dictionary resolver.\n * @returns the rendered row.\n */\nfunction PlazaRow({ skill, busy, onInstall, onUnshare, t }: {\n skill: PlazaSkill\n busy: boolean\n onInstall: () => void\n onUnshare: () => void\n t: (key: keyof typeof en) => string\n}): ReactNode {\n return (\n <li className={styles.card}>\n <div className={styles.cardHead}>\n <span className={styles.cardIcon}><IconSkillOutlineRegular size={22} /></span>\n <div className={styles.cardMain}>\n <div className={styles.cardTitle}>\n {skill.name}\n {skill.sharedByMe ? <Tag tone=\"info\" className={styles.mine}>{t('plazaMine')}</Tag> : null}\n </div>\n {skill.description === undefined ? null : (\n <div className={styles.cardDesc}>{skill.description}</div>\n )}\n {skill.tags.length === 0 ? null : (\n <div className={styles.cardMarks}>\n {skill.tags.map((item) => <Tag tone=\"quiet\" key={item}>{item}</Tag>)}\n </div>\n )}\n </div>\n <div className={styles.cardEnd}>\n <Button\n variant=\"outline\"\n size=\"sm\"\n icon={<IconDownloadOutlineRegular size={16} />}\n disabled={busy}\n onClick={onInstall}\n >\n {t('plazaInstall')}\n </Button>\n {skill.sharedByMe ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<IconTrashOutlineRegular size={16} />}\n disabled={busy}\n onClick={onUnshare}\n >\n {t('plazaUnshare')}\n </Button>\n ) : null}\n </div>\n </div>\n </li>\n )\n}\n\n/**\n * Browse, share, and install skills other users published.\n *\n * The section appears only where this plugin is installed: the skill center renders the slot,\n * and an empty slot renders nothing. Every action goes through this plugin's Host route, so a\n * workspace without DataOps never reaches these calls.\n * @param props - Skill center injection values.\n * @returns The plaza section, or nothing before injection.\n */\nexport function SkillPlazaSection(props: SkillPlazaSectionProps): ReactNode {\n const { t } = props\n const [state, setState] = useState<PlazaState>({ kind: 'loading' })\n const [tag, setTag] = useState('')\n const [query, setQuery] = useState('')\n const [busy, setBusy] = useState(false)\n const [notice, setNotice] = useState<string | null>(null)\n\n const load = useCallback(async (filter: { tag?: string; query?: string }) => {\n try {\n const listing = await fetchPlaza(filter)\n setState(listing === null ? { kind: 'unavailable' } : { kind: 'ready', listing })\n } catch {\n setState({ kind: 'failed' })\n }\n }, [])\n\n useEffect(() => { void load({}) }, [load])\n\n const refresh = useCallback(async (nextTag = tag, nextQuery = query) => {\n await load({ tag: nextTag, query: nextQuery })\n }, [load, tag, query])\n\n const act = useCallback(async (body: Record<string, unknown>, message: string) => {\n setBusy(true)\n setNotice(null)\n try {\n await postPlazaAction(body)\n setNotice(message)\n await refresh()\n } catch {\n setNotice(t === undefined ? null : t('plazaActionFailed'))\n } finally {\n setBusy(false)\n }\n }, [refresh, t])\n\n if (t === undefined) return null\n if (state.kind === 'loading') return null\n\n // The section names itself once; the states below swap only what sits under the heading.\n const head = (\n <div className={styles.head}>\n <h2 className={styles.title}>\n <span className={styles.titleIcon}><IconSparkleRegular size={18} /></span>\n {t('plazaTitle')}\n </h2>\n <p className={styles.intro}>{t('plazaIntro')}</p>\n </div>\n )\n\n if (state.kind === 'unavailable') {\n return <section className={styles.section}>{head}<p className={styles.intro}>{t('plazaUnavailable')}</p></section>\n }\n if (state.kind === 'failed') {\n return (\n <section className={styles.section}>\n {head}\n <div className={styles.empty} role=\"alert\">\n <span className={styles.emptyIcon}><IconSkillOutlineRegular size={28} /></span>\n <p className={styles.emptyText}>{t('plazaLoadFailed')}</p>\n <Button variant=\"outline\" size=\"sm\" icon={<IconRefreshOutlineRegular size={16} />} onClick={() => { void refresh() }}>\n {t('plazaRetry')}\n </Button>\n </div>\n </section>\n )\n }\n\n const { listing } = state\n return (\n <section className={styles.section}>\n {head}\n\n <div className={styles.toolbar}>\n <div className={styles.searchWrap}>\n <span className={styles.searchIcon} aria-hidden=\"true\"><IconSearchOutlineRegular size={16} /></span>\n <input\n className={styles.search}\n placeholder={t('plazaSearch')}\n value={query}\n onChange={(event) => {\n const next = event.target.value\n setQuery(next)\n void refresh(tag, next)\n }}\n />\n </div>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n icon={<IconRefreshOutlineRegular size={16} />}\n aria-label={t('plazaRefresh')}\n disabled={busy}\n onClick={() => { void refresh() }}\n />\n </div>\n\n {listing.tags.length === 0 ? null : (\n <div className={styles.tagBar}>\n <Pill active={tag === ''} onClick={() => { setTag(''); void refresh('', query) }}>{t('plazaAllTags')}</Pill>\n {listing.tags.map((item) => (\n <Pill key={item} active={tag === item} onClick={() => { setTag(item); void refresh(item, query) }}>\n {item}\n </Pill>\n ))}\n </div>\n )}\n\n {notice === null ? null : <p className={styles.notice}>{notice}</p>}\n\n {listing.skills.length === 0 ? (\n <div className={styles.empty}>\n <span className={styles.emptyIcon}><IconShareOutlineRegular size={28} /></span>\n <p className={styles.emptyText}>{t('plazaEmpty')}</p>\n </div>\n ) : null}\n\n <ul className={styles.cards}>\n {listing.skills.map((skill) => (\n <PlazaRow\n key={skill.id}\n skill={skill}\n busy={busy}\n t={t}\n onInstall={() => { void act({ action: 'install', id: skill.id }, t('plazaInstalled')) }}\n onUnshare={() => { void act({ action: 'unshare', id: skill.id }, t('plazaUnshared')) }}\n />\n ))}\n </ul>\n </section>\n )\n}\n\n/** Re-exported so the registration site reads the route from one place. */\nexport { SKILL_PLAZA_PATH } from './skill-plaza-client.ts'\n","import type { CSSProperties } from 'react'\nimport css from './WanxiangBrand.module.css'\n\nconst WORDMARK_VIEWBOX = \"1.64 115.64 5927.36 933.38\"\nconst WORDMARK_RATIO = 5927.36 / 933.38\nconst WORDMARK_PATHS = [\n {\n \"d\": \"M62 765V691H333C326 434 312 123 34 -24C53 -38 77 -62 89 -82C287 28 361 217 390 414H767C752 147 735 37 705 9C693 -2 681 -4 657 -3C631 -3 558 -3 483 4C498 -17 508 -48 509 -70C578 -74 648 -75 686 -72C724 -70 749 -62 772 -36C811 5 829 126 846 450C847 460 847 487 847 487H399C406 556 409 625 411 691H939V765Z\",\n \"transform\": \"translate(0.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M546 474H850V300H546ZM546 542V710H850V542ZM546 231H850V57H546ZM473 781V-73H546V-12H850V-70H926V781ZM214 840V626H52V554H205C170 416 99 258 29 175C41 157 60 127 68 107C122 176 175 287 214 402V-79H287V378C325 329 370 267 389 234L435 295C413 322 322 429 287 464V554H430V626H287V840Z\",\n \"transform\": \"translate(1002.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M443 821C425 782 393 723 368 688L417 664C443 697 477 747 506 793ZM88 793C114 751 141 696 150 661L207 686C198 722 171 776 143 815ZM410 260C387 208 355 164 317 126C279 145 240 164 203 180C217 204 233 231 247 260ZM110 153C159 134 214 109 264 83C200 37 123 5 41 -14C54 -28 70 -54 77 -72C169 -47 254 -8 326 50C359 30 389 11 412 -6L460 43C437 59 408 77 375 95C428 152 470 222 495 309L454 326L442 323H278L300 375L233 387C226 367 216 345 206 323H70V260H175C154 220 131 183 110 153ZM257 841V654H50V592H234C186 527 109 465 39 435C54 421 71 395 80 378C141 411 207 467 257 526V404H327V540C375 505 436 458 461 435L503 489C479 506 391 562 342 592H531V654H327V841ZM629 832C604 656 559 488 481 383C497 373 526 349 538 337C564 374 586 418 606 467C628 369 657 278 694 199C638 104 560 31 451 -22C465 -37 486 -67 493 -83C595 -28 672 41 731 129C781 44 843 -24 921 -71C933 -52 955 -26 972 -12C888 33 822 106 771 198C824 301 858 426 880 576H948V646H663C677 702 689 761 698 821ZM809 576C793 461 769 361 733 276C695 366 667 468 648 576Z\",\n \"transform\": \"translate(2004.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M484 238V-81H550V-40H858V-77H927V238H734V362H958V427H734V537H923V796H395V494C395 335 386 117 282 -37C299 -45 330 -67 344 -79C427 43 455 213 464 362H663V238ZM468 731H851V603H468ZM468 537H663V427H467L468 494ZM550 22V174H858V22ZM167 839V638H42V568H167V349C115 333 67 319 29 309L49 235L167 273V14C167 0 162 -4 150 -4C138 -5 99 -5 56 -4C65 -24 75 -55 77 -73C140 -74 179 -71 203 -59C228 -48 237 -27 237 14V296L352 334L341 403L237 370V568H350V638H237V839Z\",\n \"transform\": \"translate(3006.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M174 630C213 556 252 459 266 399L337 424C323 482 282 578 242 650ZM755 655C730 582 684 480 646 417L711 396C750 456 797 552 834 633ZM52 348V273H459V-79H537V273H949V348H537V698H893V773H105V698H459V348Z\",\n \"transform\": \"translate(4008.00 940.00) scale(0.96000 -0.94000)\"\n },\n {\n \"d\": \"M179 342V-79H255V-25H741V-77H821V342ZM255 48V270H741V48ZM126 426C165 441 224 443 800 474C825 443 846 414 861 388L925 434C873 518 756 641 658 727L599 687C647 644 699 591 745 540L231 516C320 598 410 701 490 811L415 844C336 720 219 593 183 559C149 526 124 505 101 500C110 480 122 442 126 426Z\",\n \"transform\": \"translate(5010.00 940.00) scale(0.96000 -0.94000)\"\n }\n] as const\nconst HARNESS_PATHS = [\n {\n \"d\": \"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n },\n {\n \"d\": \"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z\",\n \"fill\": \"var(--dsw-alias-label-primary-inverted)\"\n }\n] as const\n\ninterface MarkProps {\n size: number\n className?: string | undefined\n}\n\nfunction classes(...values: Array<string | undefined>): string {\n return values.filter(Boolean).join(' ')\n}\n\nfunction Cube({ transform, className }: { transform: string; className: string }) {\n return (\n <g transform={transform}>\n <g className={className} stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinejoin=\"round\">\n <path d=\"M12 0 24 7 12 14 0 7 12 0Z\" fill=\"none\" />\n <path d=\"M0 7 12 14v16L0 23V7Z\" fill=\"currentColor\" />\n <path d=\"M12 14 24 7v16L12 30V14Z\" fill=\"currentColor\" fillOpacity=\".18\" />\n </g>\n </g>\n )\n}\n\n/** Four linked data units; its ink follows the host surface through currentColor. */\nexport function WanxiangMark({ size, className, animated = false }: MarkProps & { animated?: boolean }) {\n return (\n <svg\n width={size}\n height={(size * 58) / 54}\n className={classes(css.mark, animated ? css.animatedMark : undefined, className)}\n viewBox=\"0 0 54 58\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n <Cube className={css.unitTop} transform=\"translate(15 0)\" />\n <Cube className={css.unitLeft} transform=\"translate(0 16)\" />\n <Cube className={css.unitRight} transform=\"translate(30 16)\" />\n <Cube className={css.unitCore} transform=\"translate(15 27)\" />\n </svg>\n )\n}\n\n/** Approved rounded-Heiti artwork, stored as paths with no runtime font dependency. */\nexport function WanxiangWordmark({ height, accessible = false, className }: {\n height: number\n accessible?: boolean\n className?: string | undefined\n}) {\n const accessibility = accessible\n ? { role: 'img', 'aria-label': '万相数据平台' }\n : { 'aria-hidden': true }\n return (\n <svg\n width={height * WORDMARK_RATIO}\n height={height}\n className={className}\n viewBox={WORDMARK_VIEWBOX}\n {...accessibility}\n >\n <g\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\"42\"\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n paintOrder=\"stroke fill\"\n >\n {WORDMARK_PATHS.map(path => <path key={path.transform} d={path.d} transform={path.transform} />)}\n </g>\n </svg>\n )\n}\n\n/** Exact HARNESS badge artwork extracted from the current DSH BrandWordmark. */\nexport function HarnessBadge({ height = 14 }: { height?: number }) {\n const style = { '--dsw-alias-label-primary-inverted': 'var(--dsw-alias-bg-base)' } as CSSProperties\n return (\n <svg\n width={(height * 53) / 15.5}\n height={height}\n className={css.harness}\n viewBox=\"129 5 53 15.5\"\n style={style}\n aria-hidden=\"true\"\n >\n <rect x=\"129.348\" y=\"5.5\" width=\"52\" height=\"14\" rx=\"2\" fill=\"currentColor\" />\n {HARNESS_PATHS.map((path, index) => <path key={index} d={path.d} fill={path.fill} />)}\n </svg>\n )\n}\n\n/** Expanded-sidebar brand name plus the unchanged official HARNESS badge. */\nexport function WanxiangSidebarName() {\n return <span className={css.sidebarName}><WanxiangWordmark height={16} /><HarnessBadge height={14} /></span>\n}\n\n/** Welcome-page logo with four-unit hover motion. */\nexport function WanxiangHeroMark({ size, className }: MarkProps) {\n return <WanxiangMark size={size} className={className} animated />\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'\nimport { wanxiangBrandPreference } from './brand-store.ts'\nimport {\n WanxiangHeroMark,\n WanxiangMark,\n WanxiangSidebarName,\n} from './WanxiangBrand.tsx'\n\nconst BRAND_TITLE = '万相数据平台 Harness'\nconst SLOT_PRIORITY = -100\nconst FAVICON_ID = 'dataops-wanxiang-favicon'\nconst FAVICON_SVG = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 54 58\"><style>:root{color:#1b1b1d}@media(prefers-color-scheme:dark){:root{color:#f7f7f8}}</style><g transform=\"translate(15 0)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(0 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(30 16)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g><g transform=\"translate(15 27)\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linejoin=\"round\"><path d=\"M12 0 24 7 12 14 0 7Z\" fill=\"none\"/><path d=\"M0 7 12 14v16L0 23Z\" fill=\"currentColor\"/><path d=\"M12 14 24 7v16L12 30Z\" fill=\"currentColor\" fill-opacity=\".18\"/></g></svg>`\n\n\nfunction registerWanxiangSlots(ctx: ClientContext): () => void {\n return ctx.slots.inject('sidebar.brand.mark', () =>\n ctx.slots.inject('sidebar.brand.name', () =>\n ctx.slots.inject('conversation.hero.brand.mark', function* () {\n yield ctx.slots.register({\n name: 'sidebar.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangMark)\n yield ctx.slots.register({\n name: 'sidebar.brand.name',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangSidebarName)\n yield ctx.slots.register({\n name: 'conversation.hero.brand.mark',\n priority: SLOT_PRIORITY,\n registrant: 'dataops-managed',\n }, WanxiangHeroMark)\n })))\n}\n\nfunction installFavicon(): HTMLLinkElement {\n const existing = document.getElementById(FAVICON_ID)\n if (existing instanceof HTMLLinkElement) return existing\n const link = document.createElement('link')\n link.id = FAVICON_ID\n link.rel = 'icon'\n link.type = 'image/svg+xml'\n link.href = `data:image/svg+xml,${encodeURIComponent(FAVICON_SVG)}`\n document.head.append(link)\n return link\n}\n\n/** Keep shell slots, browser title, and favicon on the same persisted preference. */\nexport function installWanxiangBranding(ctx: ClientContext): void {\n const originalTitle = document.title\n let disposeSlots: (() => void) | undefined\n let favicon: HTMLLinkElement | undefined\n let titleObserver: MutationObserver | undefined\n\n const stopTitleObserver = (): void => {\n titleObserver?.disconnect()\n titleObserver = undefined\n }\n const keepBrandTitle = (): void => {\n if (document.title !== BRAND_TITLE) document.title = BRAND_TITLE\n if (titleObserver !== undefined) return\n titleObserver = new MutationObserver(() => {\n if (wanxiangBrandPreference.getSnapshot().enabled && document.title !== BRAND_TITLE) {\n document.title = BRAND_TITLE\n }\n })\n titleObserver.observe(document.head, { childList: true, subtree: true, characterData: true })\n }\n\n const synchronize = (): void => {\n const enabled = wanxiangBrandPreference.getSnapshot().enabled\n if (enabled) {\n disposeSlots ??= registerWanxiangSlots(ctx)\n favicon ??= installFavicon()\n keepBrandTitle()\n document.documentElement.dataset.dataopsBrand = 'wanxiang'\n return\n }\n disposeSlots?.()\n disposeSlots = undefined\n favicon?.remove()\n favicon = undefined\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n\n ctx.effect(() => {\n synchronize()\n const unsubscribe = wanxiangBrandPreference.subscribe(synchronize)\n return () => {\n unsubscribe()\n disposeSlots?.()\n favicon?.remove()\n stopTitleObserver()\n document.title = originalTitle\n delete document.documentElement.dataset.dataopsBrand\n }\n }, 'dataops-managed: Wanxiang shell branding')\n}\n","/** English managed DataOps Settings copy. */\nexport const en = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: 'Managed by this DataOps workspace',\n description: 'DSH uses your current DataOps session JWT. DataOps applies its role and resource permissions to every tool request.',\n identityLabel: 'Identity and permissions',\n identityValue: 'Current DataOps JWT',\n toolsLabel: 'DataOps tools',\n toolsValue: 'Authorized by DataOps on every request',\n brandingTitle: 'Apply Wanxiang branding',\n brandingDescription: 'Use the Wanxiang Data Platform identity in navigation, the New Session welcome view, browser title, and favicon.',\n brandingToggle: 'Apply Wanxiang branding',\n modelsTitle: 'Model configuration',\n modelsDescription: 'Share the models configured here with other users, and choose which of them they may use.',\n modelsUnavailable: 'Model configuration is unavailable until this workspace is connected to DataOps.',\n syncTitle: 'Share models with other users',\n syncDescription: 'Other users who have not configured their own models get the models configured here.',\n syncToggle: 'Share models with other users',\n followTitle: 'Using the shared model configuration',\n followDescription: 'The models shared by an administrator are available here. Change them and this workspace keeps your version instead.',\n detachedTitle: 'Using your own model configuration',\n detachedDescription: 'This workspace keeps the models configured here and no longer follows the shared configuration.',\n resume: 'Use the shared configuration again',\n resuming: 'Switching…',\n noPublisher: 'No administrator is sharing models right now.',\n modelsListTitle: 'Models other users may use',\n modelsListDescription: 'A model turned off here stays available in this workspace and is not offered to other users.',\n modelShareLabel: 'Available to other users',\n modelsEmpty: 'No models are configured in this workspace yet. Add them in Models settings first.',\n loadFailed: 'The model configuration could not be loaded. Try again.',\n plazaTitle: 'Skill plaza',\n plazaIntro: 'Skills other users shared. Install one to use it in this workspace, or share a skill of your own.',\n plazaSearch: 'Search skills',\n plazaTagFilter: 'Filter by tag',\n plazaAllTags: 'All tags',\n plazaMine: 'Shared by me',\n plazaInstall: 'Install',\n plazaInstalled: 'Installed. It is now in your skill list.',\n plazaUnshare: 'Stop sharing',\n plazaUnshared: 'Removed from the plaza. Users who installed it keep their copy.',\n plazaEmpty: 'No skills have been shared yet.',\n plazaUnavailable: 'The skill plaza is available once this workspace is connected to DataOps.',\n plazaLoadFailed: 'The skill plaza could not be loaded. Try again.',\n plazaActionFailed: 'The action could not be completed. Try again.',\n plazaRetry: 'Try again',\n plazaRefresh: 'Refresh',\n} as const\n\n/** Stable key set shared by every managed DataOps locale. */\nexport type ManagedDataOpsKey = keyof typeof en\n\n/** Chinese managed DataOps Settings copy. */\nexport const zh: Record<ManagedDataOpsKey, string> = {\n nav: 'DataOps',\n title: 'DataOps',\n managed: '由当前 DataOps 工作区托管',\n description: 'DSH 使用当前 DataOps 会话 JWT;DataOps 对每次工具请求应用角色与资源权限。',\n identityLabel: '身份与权限',\n identityValue: '当前 DataOps JWT',\n toolsLabel: 'DataOps 工具',\n toolsValue: '每次请求均由 DataOps 授权',\n brandingTitle: '应用万相品牌',\n brandingDescription: '在导航、新会话欢迎页、浏览器标题和图标中使用万相数据平台品牌。',\n brandingToggle: '应用万相品牌',\n modelsTitle: '模型配置共享',\n modelsDescription: '把这里配置的模型共享给其他用户,并决定他们可以使用其中哪些。',\n modelsUnavailable: '工作区接入 DataOps 后即可使用模型配置共享。',\n syncTitle: '共享模型给其他用户',\n syncDescription: '尚未自己配置过模型的用户,会获得这里配置的模型。',\n syncToggle: '共享模型给其他用户',\n followTitle: '正在使用共享的模型配置',\n followDescription: '管理员共享的模型已可在此使用;你修改后会保留自己的版本。',\n detachedTitle: '正在使用自己的模型配置',\n detachedDescription: '本工作区保留自己配置的模型,不再跟随共享配置。',\n resume: '重新使用共享配置',\n resuming: '切换中…',\n noPublisher: '当前没有管理员共享模型。',\n modelsListTitle: '其他用户可使用的模型',\n modelsListDescription: '在这里关闭的模型,本工作区仍可使用,只是不提供给其他用户。',\n modelShareLabel: '提供给其他用户使用',\n modelsEmpty: '本工作区还没有配置模型,请先在模型设置中添加。',\n loadFailed: '模型配置加载失败,请重试。',\n plazaTitle: '技能广场',\n plazaIntro: '其他用户共享的技能。装载后即可在本工作区使用,也可以把自己的技能共享出去。',\n plazaSearch: '搜索技能',\n plazaTagFilter: '按标签筛选',\n plazaAllTags: '全部标签',\n plazaMine: '我共享的',\n plazaInstall: '装载',\n plazaInstalled: '已装载,可在技能列表中使用。',\n plazaUnshare: '取消共享',\n plazaUnshared: '已从广场移除;已装载的用户保留其副本。',\n plazaEmpty: '还没有人共享技能。',\n plazaUnavailable: '工作区接入 DataOps 后即可使用技能广场。',\n plazaLoadFailed: '技能广场加载失败,请重试。',\n plazaActionFailed: '操作未完成,请重试。',\n plazaRetry: '重试',\n plazaRefresh: '刷新',\n}\n","import type { Context as ClientContext } from '@deepseek-ai/cordis'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-settings/client'\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\n// Type-only: pulls the skill center's slot declaration so this plugin can contribute to it.\nimport type {} from '@sparkelf/dsh-client-ui-skill-center/client'\nimport { ManagedDataOpsSection } from './ManagedDataOpsSection.tsx'\nimport { SkillPlazaSection } from './SkillPlazaSection.tsx'\nimport { installWanxiangBranding } from './install-branding.tsx'\nimport type { ManagedDataOpsSectionInjected } from './ManagedDataOpsSection.tsx'\nimport { en, zh, type ManagedDataOpsKey } from './locales.ts'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n 'settings.dataops-managed': ManagedDataOpsKey\n }\n}\n\nconst NS = 'settings.dataops-managed'\nconst AUTH_UPDATED_MESSAGE = 'dataops-auth-updated'\nconst MANAGED_AUTH_PATH = '/integrations/dataops/managed-auth'\n\n/** Required client services for the managed DataOps Settings section. */\nexport const inject = ['slots', 'locale']\n\n/**\n * Register localized managed DataOps Settings navigation and content.\n * @param ctx - DSH client context with locale and settings slots.\n */\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dataops-managed: settings copy')\n installWanxiangBranding(ctx)\n const t = ctx.locale.bind(NS) as ManagedDataOpsSectionInjected['t']\n ctx.slots.inject('settings.section', () => ctx.slots.register({\n name: 'settings.section',\n id: 'dataops',\n order: 25,\n label: () => t('nav'),\n inject: () => ({ t }),\n }, ManagedDataOpsSection))\n\n /**\n * The skill plaza, contributed to the skill center page.\n *\n * The skill center declares the slot and renders whatever it holds; a profile without this\n * plugin leaves it empty, which is what keeps the plaza out of a deployment that never\n * installed DataOps.\n */\n ctx.slots.inject('skill-center.section', () => ctx.slots.register({\n name: 'skill-center.section',\n id: 'dataops-plaza',\n order: 10,\n inject: () => ({ t }),\n }, SkillPlazaSection))\n\n const synchronizeJwt = async (): Promise<void> => {\n const response = await fetch(new URL(MANAGED_AUTH_PATH, window.location.origin), {\n method: 'POST',\n credentials: 'same-origin',\n })\n if (!response.ok) throw new Error(`DataOps managed JWT synchronization failed with HTTP ${String(response.status)}`)\n }\n const onMessage = (event: MessageEvent<unknown>): void => {\n if (event.source !== window.parent\n || (event.data as { type?: unknown } | null)?.type !== AUTH_UPDATED_MESSAGE) return\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n }\n ctx.effect(() => {\n window.addEventListener('message', onMessage)\n void synchronizeJwt().catch(error => console.error('dataops-managed.jwt_sync_failed', error))\n return () => window.removeEventListener('message', onMessage)\n }, 'dataops-managed: JWT synchronization')\n}\n"],"mappings":";;;;;;;;;;;EAMA,MAAa,gCAAgC;EAE7C,SAAS,oBAA6C;GACpD,IAAI,OAAO,iBAAiB,aAAa,OAAO,EAAE,SAAS,KAAK;GAChE,IAAI;IACF,MAAM,QAAQ,KAAK,MAAM,aAAa,QAAA,2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AI,MAAM,OAAO,0BAA0B,IAAI,MAAM,SAAS;IAC5D,MAAM;IACN,IAAI;IACJ,OAAO;IACP,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,EAAE;GACrB,GAAG,qBAAqB,CAAC;;;;;;;;GASzB,IAAI,MAAM,OAAO,8BAA8B,IAAI,MAAM,SAAS;IAChE,MAAM;IACN,IAAI;IACJ,OAAO;IACP,eAAe,EAAE,EAAE;GACrB,GAAG,iBAAiB,CAAC;GAErB,MAAM,iBAAiB,YAA2B;IAChD,MAAM,WAAW,MAAM,MAAM,IAAI,IAAI,mBAAmB,OAAO,SAAS,MAAM,GAAG;KAC/E,QAAQ;KACR,aAAa;IACf,CAAC;IACD,IAAI,CAAC,SAAS,IAAI,MAAM,IAAI,MAAM,wDAAwD,OAAO,SAAS,MAAM,GAAG;GACrH;GACA,MAAM,aAAa,UAAuC;IACxD,IAAI,MAAM,WAAW,OAAO,UACtB,MAAM,MAAoC,SAAS,sBAAsB;IAC/E,eAAoB,CAAC,CAAC,OAAM,UAAS,QAAQ,MAAM,mCAAmC,KAAK,CAAC;GAC9F;GACA,IAAI,aAAa;IACf,OAAO,iBAAiB,WAAW,SAAS;IAC5C,eAAoB,CAAC,CAAC,OAAM,UAAS,QAAQ,MAAM,mCAAmC,KAAK,CAAC;IAC5F,aAAa,OAAO,oBAAoB,WAAW,SAAS;GAC9D,GAAG,sCAAsC;EAC3C"}
|
|
@@ -43,6 +43,8 @@ export declare const en: {
|
|
|
43
43
|
readonly plazaUnavailable: "The skill plaza is available once this workspace is connected to DataOps.";
|
|
44
44
|
readonly plazaLoadFailed: "The skill plaza could not be loaded. Try again.";
|
|
45
45
|
readonly plazaActionFailed: "The action could not be completed. Try again.";
|
|
46
|
+
readonly plazaRetry: "Try again";
|
|
47
|
+
readonly plazaRefresh: "Refresh";
|
|
46
48
|
};
|
|
47
49
|
/** Stable key set shared by every managed DataOps locale. */
|
|
48
50
|
export type ManagedDataOpsKey = keyof typeof en;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkelf/dsh-dataops-managed",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "DataOps JWT intake and credential-backed MCP tools for managed DeepSeek Harness workspaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@deepseek-ai/cordis": "4.0.4",
|
|
82
82
|
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2",
|
|
83
83
|
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
|
|
85
85
|
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
|
|
86
86
|
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
|
|
87
87
|
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.7-rc.2",
|