@deepseek-ai/dsh-client-ui-subagent 0.0.1-rc.1 → 0.0.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +20 -20
- package/package.json +22 -22
package/lib/client.js
CHANGED
|
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
|
|
|
9
9
|
let _deepseek_ai_dsh_client_runtime_client = require("@deepseek-ai/dsh-client-runtime/client");
|
|
10
10
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
11
11
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-subagent/src/client/SubagentCatalogAction.module.css.mjs
|
|
12
|
-
const css$1 = ".h8S2Va_root{position:relative}.h8S2Va_trigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:3px;padding:3px 2px;font-size:12px;line-height:18px;display:inline-flex}.h8S2Va_count{margin:0 5px}.h8S2Va_activitySlot{flex:none;width:10px;height:10px;display:inline-flex}.h8S2Va_trigger:hover,.h8S2Va_trigger:focus-visible{color:var(--dsw-alias-label-secondary)}.h8S2Va_trigger svg{transition:transform .12s}.h8S2Va_triggerOpen{transform:rotate(180deg)}.h8S2Va_menu{z-index:100;box-sizing:border-box;
|
|
12
|
+
const css$1 = ".h8S2Va_root{position:relative}.h8S2Va_trigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:3px;padding:3px 2px;font-size:12px;line-height:18px;display:inline-flex}.h8S2Va_count{margin:0 5px}.h8S2Va_activitySlot{flex:none;width:10px;height:10px;display:inline-flex}.h8S2Va_trigger:hover,.h8S2Va_trigger:focus-visible{color:var(--dsw-alias-label-secondary)}.h8S2Va_trigger svg{transition:transform .12s}.h8S2Va_triggerOpen{transform:rotate(180deg)}.h8S2Va_menu{z-index:100;box-sizing:border-box;background:var(--dsw-specific-menu);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);width:336px;max-width:min(400px,100vw - 32px);max-height:min(560px,100vh - 140px);box-shadow:var(--dsw-shadow-lv3);border-radius:12px;flex-direction:column;padding:4px;display:flex;position:absolute;top:calc(100% + 5px);left:0;overflow:auto}.h8S2Va_node{min-width:0;position:relative}.h8S2Va_menu>.h8S2Va_node{margin-left:-3px}.h8S2Va_row{box-sizing:border-box;width:100%;min-height:50px;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;outline:none;align-items:flex-start;gap:8px;padding:7px 8px 7px 11px;font-size:13px;line-height:18px;display:flex;position:relative}.h8S2Va_row:hover>.h8S2Va_clickarea,.h8S2Va_row:focus-visible>.h8S2Va_clickarea{background:var(--dsw-alias-interactive-bg-hover)}.h8S2Va_clickarea{box-sizing:border-box;border-radius:8px;flex:1;align-self:stretch;align-items:flex-start;gap:8px;min-width:0;margin:-7px -8px;padding:7px 8px;display:flex}.h8S2Va_row>[data-state],.h8S2Va_clickarea>[data-state]{margin-top:4px}.h8S2Va_disabled{color:var(--dsw-alias-label-dimmed);cursor:not-allowed}.h8S2Va_disabled:hover{background:0 0}.h8S2Va_loadingRow{cursor:default}.h8S2Va_disclosure,.h8S2Va_disclosureSpace{flex:none;width:14px;height:18px}.h8S2Va_disclosure{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;transition:transform .12s;display:inline-flex}.h8S2Va_disclosure:hover{color:var(--dsw-alias-label-primary)}.h8S2Va_disclosureOpen{transform:rotate(90deg)}.h8S2Va_content{flex-direction:column;flex:1;min-width:0;display:flex}.h8S2Va_label,.h8S2Va_summary{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.h8S2Va_label{color:inherit;font-weight:400}.h8S2Va_summary,.h8S2Va_metrics{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.h8S2Va_metrics{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;flex:none;grid-template-rows:18px 16px;display:grid}.h8S2Va_metricToken{grid-row:1;line-height:18px}.h8S2Va_metricDuration{grid-row:2}.h8S2Va_children{margin-left:18px;padding-left:4px;position:relative}.h8S2Va_children:before,.h8S2Va_children>.h8S2Va_node:before{content:\"\";border-left:1px solid var(--dsw-alias-border-l2);position:absolute;left:0}.h8S2Va_children:before{height:26px;top:-26px}.h8S2Va_children[aria-busy=true]:before{content:none}.h8S2Va_children>.h8S2Va_node:before{top:0;bottom:0;left:-4px}.h8S2Va_children>.h8S2Va_node:last-child:before{height:17px;bottom:auto}.h8S2Va_children>.h8S2Va_node>.h8S2Va_row:before{content:\"\";border-top:1px solid var(--dsw-alias-border-l2);width:14px;position:absolute;top:16px;left:-4px}.h8S2Va_notice,.h8S2Va_error{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.h8S2Va_error{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:12px;display:flex}.h8S2Va_refresh{color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;align-items:center;gap:4px;padding:4px 6px;display:inline-flex}.h8S2Va_refresh:hover{background:var(--dsw-alias-interactive-bg-hover)}";
|
|
13
13
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-subagent/SubagentCatalogAction.module.css";
|
|
14
14
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
15
15
|
const tag = document.createElement("style");
|
|
@@ -19,30 +19,30 @@ window.__ModuleLoader__.load({
|
|
|
19
19
|
document.head.appendChild(tag);
|
|
20
20
|
}
|
|
21
21
|
var SubagentCatalogAction_module_css_default = {
|
|
22
|
-
"
|
|
23
|
-
"triggerOpen": "h8S2Va_triggerOpen",
|
|
22
|
+
"activitySlot": "h8S2Va_activitySlot",
|
|
24
23
|
"content": "h8S2Va_content",
|
|
25
|
-
"
|
|
26
|
-
"trigger": "h8S2Va_trigger",
|
|
27
|
-
"row": "h8S2Va_row",
|
|
28
|
-
"metrics": "h8S2Va_metrics",
|
|
29
|
-
"loadingRow": "h8S2Va_loadingRow",
|
|
24
|
+
"metricDuration": "h8S2Va_metricDuration",
|
|
30
25
|
"metricToken": "h8S2Va_metricToken",
|
|
31
|
-
"
|
|
26
|
+
"count": "h8S2Va_count",
|
|
32
27
|
"clickarea": "h8S2Va_clickarea",
|
|
33
|
-
"
|
|
28
|
+
"loadingRow": "h8S2Va_loadingRow",
|
|
29
|
+
"disclosureOpen": "h8S2Va_disclosureOpen",
|
|
30
|
+
"label": "h8S2Va_label",
|
|
31
|
+
"metrics": "h8S2Va_metrics",
|
|
32
|
+
"notice": "h8S2Va_notice",
|
|
34
33
|
"error": "h8S2Va_error",
|
|
35
|
-
"
|
|
36
|
-
"metricDuration": "h8S2Va_metricDuration",
|
|
37
|
-
"root": "h8S2Va_root",
|
|
38
|
-
"disclosureSpace": "h8S2Va_disclosureSpace",
|
|
34
|
+
"summary": "h8S2Va_summary",
|
|
39
35
|
"node": "h8S2Va_node",
|
|
36
|
+
"root": "h8S2Va_root",
|
|
37
|
+
"triggerOpen": "h8S2Va_triggerOpen",
|
|
38
|
+
"trigger": "h8S2Va_trigger",
|
|
40
39
|
"menu": "h8S2Va_menu",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
40
|
+
"children": "h8S2Va_children",
|
|
41
|
+
"disclosureSpace": "h8S2Va_disclosureSpace",
|
|
42
|
+
"refresh": "h8S2Va_refresh",
|
|
43
|
+
"disabled": "h8S2Va_disabled",
|
|
44
|
+
"disclosure": "h8S2Va_disclosure",
|
|
45
|
+
"row": "h8S2Va_row"
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region lib/types/client/SubagentCatalogAction.js
|
|
@@ -430,7 +430,7 @@ window.__ModuleLoader__.load({
|
|
|
430
430
|
for (const parentSessionId of observedCatalogs.current) setCatalogOpenRef.current(parentSessionId, false);
|
|
431
431
|
observedCatalogs.current.clear();
|
|
432
432
|
}, []);
|
|
433
|
-
const visible = presentedCatalog !== void 0 && (presentedCatalog.state
|
|
433
|
+
const visible = presentedCatalog !== void 0 && (presentedCatalog.state === "error" || presentedCatalog.entries.length > 0 || descendantCount > 0);
|
|
434
434
|
(0, react.useEffect)(() => {
|
|
435
435
|
if (visible || !open) return;
|
|
436
436
|
setOpen(false);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-subagent",
|
|
3
3
|
"description": "Subagent conversation catalog, continuation routing UI, and '@' reference source",
|
|
4
|
-
"version": "0.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted"
|
|
7
7
|
},
|
|
@@ -46,30 +46,30 @@
|
|
|
46
46
|
"react": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.
|
|
50
|
-
"@deepseek-ai/dsh-client-
|
|
51
|
-
"@deepseek-ai/dsh-client-ui-
|
|
52
|
-
"@deepseek-ai/dsh-client-
|
|
53
|
-
"@deepseek-ai/dsh-client-ui-
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/
|
|
58
|
-
"@deepseek-ai/
|
|
49
|
+
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.2",
|
|
50
|
+
"@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-client-ui-slash": "^0.0.1-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-subagent": "^0.0.1-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-token-meter": "^0.0.1-rc.2",
|
|
57
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "~18.3.1",
|
|
62
|
-
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.
|
|
63
|
-
"@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.
|
|
64
|
-
"@deepseek-ai/dsh-client-
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-
|
|
67
|
-
"@deepseek-ai/dsh-client-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/dsh-
|
|
71
|
-
"@deepseek-ai/
|
|
72
|
-
"@deepseek-ai/
|
|
62
|
+
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-slash": "^0.0.1-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-test-runtime": "^0.0.1-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-subagent": "^0.0.1-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-token-meter": "^0.0.1-rc.2",
|
|
72
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
75
75
|
"lib/index.js",
|