dsh-agent-toolkit 0.2.1 → 0.2.3
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 +106 -98
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +16 -0
- package/lib/index.js +288 -79
- package/lib/index.js.map +1 -1
- package/package.json +7 -1
package/lib/client.js
CHANGED
|
@@ -67,15 +67,15 @@ window.__ModuleLoader__.load({
|
|
|
67
67
|
document.head.appendChild(tag);
|
|
68
68
|
}
|
|
69
69
|
var delegate_card_module_css_default = {
|
|
70
|
-
"
|
|
70
|
+
"result": "_8wQUq_result",
|
|
71
|
+
"chip": "_8wQUq_chip",
|
|
71
72
|
"summary": "_8wQUq_summary",
|
|
72
73
|
"childLink": "_8wQUq_childLink",
|
|
73
|
-
"result": "_8wQUq_result",
|
|
74
74
|
"prompt": "_8wQUq_prompt",
|
|
75
|
+
"row": "_8wQUq_row",
|
|
75
76
|
"body": "_8wQUq_body",
|
|
76
|
-
"
|
|
77
|
-
"visuallyHidden": "_8wQUq_visuallyHidden"
|
|
78
|
-
"root": "_8wQUq_root"
|
|
77
|
+
"root": "_8wQUq_root",
|
|
78
|
+
"visuallyHidden": "_8wQUq_visuallyHidden"
|
|
79
79
|
};
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/client/delegate/delegate-card.tsx
|
|
@@ -311,8 +311,8 @@ window.__ModuleLoader__.load({
|
|
|
311
311
|
document.head.appendChild(tag);
|
|
312
312
|
}
|
|
313
313
|
var entry_module_css_default$1 = {
|
|
314
|
-
"
|
|
315
|
-
"
|
|
314
|
+
"trigger": "VJWWsa_trigger",
|
|
315
|
+
"rail": "VJWWsa_rail"
|
|
316
316
|
};
|
|
317
317
|
//#endregion
|
|
318
318
|
//#region src/client/shared/entry.tsx
|
|
@@ -411,33 +411,33 @@ window.__ModuleLoader__.load({
|
|
|
411
411
|
document.head.appendChild(tag);
|
|
412
412
|
}
|
|
413
413
|
var agents_module_css_default = {
|
|
414
|
-
"
|
|
415
|
-
"textarea": "KsfSLW_textarea",
|
|
416
|
-
"toolGroupSet": "KsfSLW_toolGroupSet",
|
|
414
|
+
"error": "KsfSLW_error",
|
|
417
415
|
"builtinBadge": "KsfSLW_builtinBadge",
|
|
418
416
|
"actions": "KsfSLW_actions",
|
|
419
|
-
"hint": "KsfSLW_hint",
|
|
420
|
-
"toolCheck": "KsfSLW_toolCheck",
|
|
421
|
-
"dialog": "KsfSLW_dialog",
|
|
422
|
-
"agentRowActive": "KsfSLW_agentRowActive",
|
|
423
|
-
"agentName": "KsfSLW_agentName",
|
|
424
|
-
"agentDesc": "KsfSLW_agentDesc",
|
|
425
417
|
"field": "KsfSLW_field",
|
|
426
418
|
"listPane": "KsfSLW_listPane",
|
|
427
|
-
"
|
|
428
|
-
"block": "KsfSLW_block",
|
|
429
|
-
"blockTitle": "KsfSLW_blockTitle",
|
|
419
|
+
"toolMode": "KsfSLW_toolMode",
|
|
430
420
|
"select": "KsfSLW_select",
|
|
431
|
-
"readonlyId": "KsfSLW_readonlyId",
|
|
432
421
|
"toolGrid": "KsfSLW_toolGrid",
|
|
422
|
+
"split": "KsfSLW_split",
|
|
423
|
+
"block": "KsfSLW_block",
|
|
424
|
+
"toolGroupTitle": "KsfSLW_toolGroupTitle",
|
|
425
|
+
"agentDesc": "KsfSLW_agentDesc",
|
|
426
|
+
"readonlyId": "KsfSLW_readonlyId",
|
|
433
427
|
"dangerButton": "KsfSLW_dangerButton",
|
|
434
|
-
"
|
|
428
|
+
"textarea": "KsfSLW_textarea",
|
|
429
|
+
"toolGroupSet": "KsfSLW_toolGroupSet",
|
|
430
|
+
"editor": "KsfSLW_editor",
|
|
435
431
|
"input": "KsfSLW_input",
|
|
436
|
-
"
|
|
437
|
-
"
|
|
432
|
+
"blockTitle": "KsfSLW_blockTitle",
|
|
433
|
+
"agentRow": "KsfSLW_agentRow",
|
|
434
|
+
"agentName": "KsfSLW_agentName",
|
|
435
|
+
"toolCheck": "KsfSLW_toolCheck",
|
|
436
|
+
"hint": "KsfSLW_hint",
|
|
437
|
+
"createButton": "KsfSLW_createButton",
|
|
438
|
+
"agentRowActive": "KsfSLW_agentRowActive",
|
|
438
439
|
"editorPane": "KsfSLW_editorPane",
|
|
439
|
-
"
|
|
440
|
-
"split": "KsfSLW_split"
|
|
440
|
+
"dialog": "KsfSLW_dialog"
|
|
441
441
|
};
|
|
442
442
|
//#endregion
|
|
443
443
|
//#region src/client/agents/AgentEditor.tsx
|
|
@@ -951,23 +951,23 @@ window.__ModuleLoader__.load({
|
|
|
951
951
|
document.head.appendChild(tag);
|
|
952
952
|
}
|
|
953
953
|
var prompt_module_css_default = {
|
|
954
|
-
"
|
|
955
|
-
"
|
|
956
|
-
"tabActive": "VZk1fa_tabActive",
|
|
957
|
-
"hint": "VZk1fa_hint",
|
|
958
|
-
"editorPane": "VZk1fa_editorPane",
|
|
959
|
-
"layerRowActive": "VZk1fa_layerRowActive",
|
|
954
|
+
"field": "VZk1fa_field",
|
|
955
|
+
"tab": "VZk1fa_tab",
|
|
960
956
|
"textarea": "VZk1fa_textarea",
|
|
961
|
-
"
|
|
957
|
+
"hint": "VZk1fa_hint",
|
|
958
|
+
"layerOrder": "VZk1fa_layerOrder",
|
|
962
959
|
"layerRow": "VZk1fa_layerRow",
|
|
963
|
-
"layerName": "VZk1fa_layerName",
|
|
964
960
|
"tabs": "VZk1fa_tabs",
|
|
965
|
-
"
|
|
966
|
-
"
|
|
967
|
-
"tab": "VZk1fa_tab",
|
|
961
|
+
"actions": "VZk1fa_actions",
|
|
962
|
+
"tabActive": "VZk1fa_tabActive",
|
|
968
963
|
"listPane": "VZk1fa_listPane",
|
|
969
|
-
"
|
|
964
|
+
"layerRowActive": "VZk1fa_layerRowActive",
|
|
965
|
+
"dialog": "VZk1fa_dialog",
|
|
970
966
|
"split": "VZk1fa_split",
|
|
967
|
+
"readonlyTag": "VZk1fa_readonlyTag",
|
|
968
|
+
"editorPane": "VZk1fa_editorPane",
|
|
969
|
+
"error": "VZk1fa_error",
|
|
970
|
+
"layerName": "VZk1fa_layerName",
|
|
971
971
|
"editor": "VZk1fa_editor"
|
|
972
972
|
};
|
|
973
973
|
//#endregion
|
|
@@ -1310,8 +1310,8 @@ window.__ModuleLoader__.load({
|
|
|
1310
1310
|
document.head.appendChild(tag);
|
|
1311
1311
|
}
|
|
1312
1312
|
var entry_module_css_default = {
|
|
1313
|
-
"
|
|
1314
|
-
"
|
|
1313
|
+
"rail": "QVHFVG_rail",
|
|
1314
|
+
"trigger": "QVHFVG_trigger"
|
|
1315
1315
|
};
|
|
1316
1316
|
//#endregion
|
|
1317
1317
|
//#region ../usage/src/client/shared/entry.tsx
|
|
@@ -1452,13 +1452,13 @@ window.__ModuleLoader__.load({
|
|
|
1452
1452
|
document.head.appendChild(tag);
|
|
1453
1453
|
}
|
|
1454
1454
|
var chart_module_css_default = {
|
|
1455
|
-
"
|
|
1456
|
-
"tooltipTotal": "_8LXSJW_tooltipTotal",
|
|
1455
|
+
"chartTheme": "_8LXSJW_chartTheme",
|
|
1457
1456
|
"swatchCached": "_8LXSJW_swatchCached",
|
|
1457
|
+
"swatchFresh": "_8LXSJW_swatchFresh",
|
|
1458
1458
|
"tooltipTitle": "_8LXSJW_tooltipTitle",
|
|
1459
|
-
"chartTheme": "_8LXSJW_chartTheme",
|
|
1460
1459
|
"legend": "_8LXSJW_legend",
|
|
1461
|
-
"
|
|
1460
|
+
"tooltip": "_8LXSJW_tooltip",
|
|
1461
|
+
"tooltipTotal": "_8LXSJW_tooltipTotal"
|
|
1462
1462
|
};
|
|
1463
1463
|
//#endregion
|
|
1464
1464
|
//#region \0dsh-css:D:\work\github\dsh\dsh-agent-toolkit\packages\usage\src\client\usage\ActivityHeatmap.module.css.mjs
|
|
@@ -1472,13 +1472,13 @@ window.__ModuleLoader__.load({
|
|
|
1472
1472
|
document.head.appendChild(tag);
|
|
1473
1473
|
}
|
|
1474
1474
|
var ActivityHeatmap_module_css_default = {
|
|
1475
|
-
"level2": "hjrYrq_level2",
|
|
1476
|
-
"level1": "hjrYrq_level1",
|
|
1477
1475
|
"level0": "hjrYrq_level0",
|
|
1478
1476
|
"months": "hjrYrq_months",
|
|
1479
|
-
"grid": "hjrYrq_grid",
|
|
1480
|
-
"level4": "hjrYrq_level4",
|
|
1481
1477
|
"level3": "hjrYrq_level3",
|
|
1478
|
+
"level2": "hjrYrq_level2",
|
|
1479
|
+
"level4": "hjrYrq_level4",
|
|
1480
|
+
"level1": "hjrYrq_level1",
|
|
1481
|
+
"grid": "hjrYrq_grid",
|
|
1482
1482
|
"week": "hjrYrq_week"
|
|
1483
1483
|
};
|
|
1484
1484
|
//#endregion
|
|
@@ -52516,19 +52516,19 @@ ${te.current.stack}
|
|
|
52516
52516
|
document.head.appendChild(tag);
|
|
52517
52517
|
}
|
|
52518
52518
|
var UsageModal_module_css_default = {
|
|
52519
|
+
"row": "MODeXa_row",
|
|
52520
|
+
"dateLabel": "MODeXa_dateLabel",
|
|
52519
52521
|
"pager": "MODeXa_pager",
|
|
52520
|
-
"total": "MODeXa_total",
|
|
52521
52522
|
"tab": "MODeXa_tab",
|
|
52522
|
-
"dateLabel": "MODeXa_dateLabel",
|
|
52523
|
-
"row": "MODeXa_row",
|
|
52524
|
-
"tabs": "MODeXa_tabs",
|
|
52525
|
-
"dialog": "MODeXa_dialog",
|
|
52526
52523
|
"rowName": "MODeXa_rowName",
|
|
52527
|
-
"rowCalls": "MODeXa_rowCalls",
|
|
52528
52524
|
"compaction": "MODeXa_compaction",
|
|
52529
|
-
"pagerButton": "MODeXa_pagerButton",
|
|
52530
52525
|
"tabActive": "MODeXa_tabActive",
|
|
52531
|
-
"sectionTitle": "MODeXa_sectionTitle"
|
|
52526
|
+
"sectionTitle": "MODeXa_sectionTitle",
|
|
52527
|
+
"rowCalls": "MODeXa_rowCalls",
|
|
52528
|
+
"dialog": "MODeXa_dialog",
|
|
52529
|
+
"pagerButton": "MODeXa_pagerButton",
|
|
52530
|
+
"tabs": "MODeXa_tabs",
|
|
52531
|
+
"total": "MODeXa_total"
|
|
52532
52532
|
};
|
|
52533
52533
|
//#endregion
|
|
52534
52534
|
//#region ../usage/src/client/usage/UsageModal.tsx
|
|
@@ -55143,7 +55143,7 @@ ${te.current.stack}
|
|
|
55143
55143
|
return SvgRenderer.render(data, opts);
|
|
55144
55144
|
});
|
|
55145
55145
|
})))();
|
|
55146
|
-
const css = ".vTbXga_dialog{width:560px}.vTbXga_group{margin-bottom:12px}.vTbXga_groupTitle{opacity:.6;word-break:break-all;margin:0 0 4px;font-size:12px}.vTbXga_botRow{border:1px solid var(--dsw-alias-border-l2);cursor:pointer;width:100%;font:inherit;color:inherit;text-align:left;background:0 0;border-radius:6px;align-items:center;gap:8px;margin-bottom:4px;padding:8px 10px;display:flex}.vTbXga_botRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.vTbXga_botName{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.vTbXga_channelBadge{flex:none}.vTbXga_status{color:var(--dsw-alias-label-tertiary);flex:none;align-items:center;gap:6px;font-size:12px;line-height:18px;display:inline-flex}.vTbXga_createButton{margin-top:8px}.vTbXga_field{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;margin:0 0 12px;font-size:13px;line-height:20px;display:flex}.vTbXga_input{box-sizing:border-box;width:100%}.vTbXga_select,.vTbXga_textarea{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);width:100%;color:var(--dsw-alias-label-primary);font:inherit;border-radius:12px;font-size:14px;line-height:22px}.vTbXga_select{height:32px;padding:0 8px}.vTbXga_textarea{resize:vertical;padding:4px 8px}.vTbXga_select:focus,.vTbXga_textarea:focus{border-color:var(--dsw-alias-brand-primary);outline:none}.vTbXga_steps{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin:0 0 16px;font-size:13px;line-height:20px;display:flex}.vTbXga_step{color:var(--dsw-alias-label-tertiary)}.vTbXga_stepActive{color:var(--dsw-alias-label-primary);font-weight:600}.vTbXga_stepSeparator{color:var(--dsw-alias-label-tertiary)}.vTbXga_tabs{background:var(--dsw-alias-bg-layer-2);border-radius:12px;gap:2px;margin-bottom:12px;padding:3px;display:inline-flex}.vTbXga_tab{height:28px;color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:9px;padding:0 12px;font-size:13px;line-height:28px}.vTbXga_tabActive{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.vTbXga_scanSection{margin:0 0 12px}.vTbXga_error{color:var(--dsw-alias-state-error-primary);margin:0 0 12px;font-size:12px;line-height:18px}.vTbXga_formActions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}";
|
|
55146
|
+
const css = ".vTbXga_dialog{width:560px}.vTbXga_group{margin-bottom:12px}.vTbXga_groupTitle{opacity:.6;word-break:break-all;margin:0 0 4px;font-size:12px}.vTbXga_botRow{border:1px solid var(--dsw-alias-border-l2);cursor:pointer;width:100%;font:inherit;color:inherit;text-align:left;background:0 0;border-radius:6px;align-items:center;gap:8px;margin-bottom:4px;padding:8px 10px;display:flex}.vTbXga_botRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.vTbXga_botName{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.vTbXga_channelBadge{flex:none}.vTbXga_status{color:var(--dsw-alias-label-tertiary);flex:none;align-items:center;gap:6px;font-size:12px;line-height:18px;display:inline-flex}.vTbXga_createButton{margin-top:8px}.vTbXga_field{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:6px;margin:0 0 12px;font-size:13px;line-height:20px;display:flex}.vTbXga_input{box-sizing:border-box;width:100%}.vTbXga_select,.vTbXga_textarea{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);width:100%;color:var(--dsw-alias-label-primary);font:inherit;border-radius:12px;font-size:14px;line-height:22px}.vTbXga_select{height:32px;padding:0 8px}.vTbXga_textarea{resize:vertical;padding:4px 8px}.vTbXga_select:focus,.vTbXga_textarea:focus{border-color:var(--dsw-alias-brand-primary);outline:none}.vTbXga_steps{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin:0 0 16px;font-size:13px;line-height:20px;display:flex}.vTbXga_step{color:var(--dsw-alias-label-tertiary)}.vTbXga_stepActive{color:var(--dsw-alias-label-primary);font-weight:600}.vTbXga_stepSeparator{color:var(--dsw-alias-label-tertiary)}.vTbXga_tabs{background:var(--dsw-alias-bg-layer-2);border-radius:12px;gap:2px;margin-bottom:12px;padding:3px;display:inline-flex}.vTbXga_tab{height:28px;color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:9px;padding:0 12px;font-size:13px;line-height:28px}.vTbXga_tabActive{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.vTbXga_scanSection{margin:0 0 12px}.vTbXga_error{color:var(--dsw-alias-state-error-primary);margin:0 0 12px;font-size:12px;line-height:18px}.vTbXga_hint{color:var(--dsw-alias-label-tertiary);margin:0 0 12px;font-size:12px;line-height:18px}.vTbXga_formActions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}";
|
|
55147
55147
|
const tagId = "dsh-agent-toolkit/bots.module.css-2ed59f26";
|
|
55148
55148
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
55149
55149
|
const tag = document.createElement("style");
|
|
@@ -55153,28 +55153,29 @@ ${te.current.stack}
|
|
|
55153
55153
|
document.head.appendChild(tag);
|
|
55154
55154
|
}
|
|
55155
55155
|
var bots_module_css_default = {
|
|
55156
|
-
"dialog": "vTbXga_dialog",
|
|
55157
|
-
"textarea": "vTbXga_textarea",
|
|
55158
|
-
"botRow": "vTbXga_botRow",
|
|
55159
|
-
"botName": "vTbXga_botName",
|
|
55160
|
-
"channelBadge": "vTbXga_channelBadge",
|
|
55161
|
-
"stepActive": "vTbXga_stepActive",
|
|
55162
55156
|
"tabActive": "vTbXga_tabActive",
|
|
55163
|
-
"
|
|
55157
|
+
"botRow": "vTbXga_botRow",
|
|
55164
55158
|
"step": "vTbXga_step",
|
|
55165
|
-
"
|
|
55166
|
-
"error": "vTbXga_error",
|
|
55167
|
-
"formActions": "vTbXga_formActions",
|
|
55168
|
-
"scanSection": "vTbXga_scanSection",
|
|
55169
|
-
"field": "vTbXga_field",
|
|
55170
|
-
"steps": "vTbXga_steps",
|
|
55171
|
-
"stepSeparator": "vTbXga_stepSeparator",
|
|
55172
|
-
"input": "vTbXga_input",
|
|
55159
|
+
"tabs": "vTbXga_tabs",
|
|
55173
55160
|
"select": "vTbXga_select",
|
|
55161
|
+
"hint": "vTbXga_hint",
|
|
55162
|
+
"channelBadge": "vTbXga_channelBadge",
|
|
55174
55163
|
"groupTitle": "vTbXga_groupTitle",
|
|
55175
|
-
"
|
|
55164
|
+
"field": "vTbXga_field",
|
|
55165
|
+
"formActions": "vTbXga_formActions",
|
|
55176
55166
|
"createButton": "vTbXga_createButton",
|
|
55177
|
-
"
|
|
55167
|
+
"tab": "vTbXga_tab",
|
|
55168
|
+
"status": "vTbXga_status",
|
|
55169
|
+
"stepActive": "vTbXga_stepActive",
|
|
55170
|
+
"group": "vTbXga_group",
|
|
55171
|
+
"input": "vTbXga_input",
|
|
55172
|
+
"scanSection": "vTbXga_scanSection",
|
|
55173
|
+
"error": "vTbXga_error",
|
|
55174
|
+
"stepSeparator": "vTbXga_stepSeparator",
|
|
55175
|
+
"dialog": "vTbXga_dialog",
|
|
55176
|
+
"steps": "vTbXga_steps",
|
|
55177
|
+
"botName": "vTbXga_botName",
|
|
55178
|
+
"textarea": "vTbXga_textarea"
|
|
55178
55179
|
};
|
|
55179
55180
|
//#endregion
|
|
55180
55181
|
//#region src/client/bots/BotForm.tsx
|
|
@@ -55527,12 +55528,12 @@ ${te.current.stack}
|
|
|
55527
55528
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("canvas", { ref: canvasRef }),
|
|
55528
55529
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: "等待扫码确认…" }),
|
|
55529
55530
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", { children: [
|
|
55530
|
-
"
|
|
55531
|
+
"(或用飞书打开:",
|
|
55531
55532
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
55532
55533
|
href: scan.url,
|
|
55533
55534
|
target: "_blank",
|
|
55534
55535
|
rel: "noopener noreferrer",
|
|
55535
|
-
children:
|
|
55536
|
+
children: "点击链接"
|
|
55536
55537
|
}),
|
|
55537
55538
|
")"
|
|
55538
55539
|
] })
|
|
@@ -55554,29 +55555,36 @@ ${te.current.stack}
|
|
|
55554
55555
|
children: "重试"
|
|
55555
55556
|
})
|
|
55556
55557
|
] })
|
|
55557
|
-
] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
55558
|
-
|
|
55559
|
-
|
|
55560
|
-
|
|
55561
|
-
|
|
55562
|
-
|
|
55563
|
-
|
|
55564
|
-
|
|
55565
|
-
|
|
55566
|
-
|
|
55567
|
-
|
|
55568
|
-
|
|
55569
|
-
|
|
55570
|
-
|
|
55571
|
-
|
|
55572
|
-
|
|
55573
|
-
|
|
55574
|
-
|
|
55575
|
-
|
|
55576
|
-
|
|
55577
|
-
|
|
55578
|
-
|
|
55579
|
-
|
|
55558
|
+
] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
55559
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
55560
|
+
className: bots_module_css_default.field,
|
|
55561
|
+
children: ["App ID", /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
55562
|
+
value: appId,
|
|
55563
|
+
onChange: (e) => {
|
|
55564
|
+
setAppId(e.target.value);
|
|
55565
|
+
},
|
|
55566
|
+
"aria-label": "App ID",
|
|
55567
|
+
placeholder: "cli_…",
|
|
55568
|
+
className: bots_module_css_default.input
|
|
55569
|
+
})]
|
|
55570
|
+
}),
|
|
55571
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
55572
|
+
className: bots_module_css_default.field,
|
|
55573
|
+
children: ["App Secret", /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
55574
|
+
type: "password",
|
|
55575
|
+
value: appSecret,
|
|
55576
|
+
onChange: (e) => {
|
|
55577
|
+
setAppSecret(e.target.value);
|
|
55578
|
+
},
|
|
55579
|
+
"aria-label": "App Secret",
|
|
55580
|
+
className: bots_module_css_default.input
|
|
55581
|
+
})]
|
|
55582
|
+
}),
|
|
55583
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
55584
|
+
className: bots_module_css_default.hint,
|
|
55585
|
+
children: "需自备应用并开通:机器人能力、im:message、im:message:send_as_bot、cardkit:card:write、contact:user.base:readonly,并订阅 im.message.receive_v1 事件(长连接方式)"
|
|
55586
|
+
})
|
|
55587
|
+
] })]
|
|
55580
55588
|
}),
|
|
55581
55589
|
editing && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", { children: [
|
|
55582
55590
|
"当前应用:",
|