dsh-agent-toolkit 0.2.2 → 0.2.4
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 +109 -101
- package/lib/client.js.map +1 -1
- package/lib/index.js +156 -87
- 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
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"prompt": "_8wQUq_prompt",
|
|
71
|
+
"row": "_8wQUq_row",
|
|
72
72
|
"result": "_8wQUq_result",
|
|
73
73
|
"body": "_8wQUq_body",
|
|
74
|
-
"root": "_8wQUq_root",
|
|
75
74
|
"visuallyHidden": "_8wQUq_visuallyHidden",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
75
|
+
"childLink": "_8wQUq_childLink",
|
|
76
|
+
"chip": "_8wQUq_chip",
|
|
77
|
+
"root": "_8wQUq_root",
|
|
78
|
+
"summary": "_8wQUq_summary"
|
|
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
|
+
"rail": "VJWWsa_rail",
|
|
315
|
+
"trigger": "VJWWsa_trigger"
|
|
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
|
-
"
|
|
414
|
+
"readonlyId": "KsfSLW_readonlyId",
|
|
415
|
+
"listPane": "KsfSLW_listPane",
|
|
416
|
+
"agentRowActive": "KsfSLW_agentRowActive",
|
|
415
417
|
"agentDesc": "KsfSLW_agentDesc",
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"agentName": "KsfSLW_agentName",
|
|
419
|
-
"toolGroupSet": "KsfSLW_toolGroupSet",
|
|
420
|
-
"dialog": "KsfSLW_dialog",
|
|
418
|
+
"split": "KsfSLW_split",
|
|
419
|
+
"toolGrid": "KsfSLW_toolGrid",
|
|
421
420
|
"block": "KsfSLW_block",
|
|
422
|
-
"
|
|
423
|
-
"readonlyId": "KsfSLW_readonlyId",
|
|
424
|
-
"input": "KsfSLW_input",
|
|
425
|
-
"toolMode": "KsfSLW_toolMode",
|
|
421
|
+
"toolCheck": "KsfSLW_toolCheck",
|
|
426
422
|
"blockTitle": "KsfSLW_blockTitle",
|
|
427
423
|
"hint": "KsfSLW_hint",
|
|
424
|
+
"dangerButton": "KsfSLW_dangerButton",
|
|
425
|
+
"input": "KsfSLW_input",
|
|
426
|
+
"textarea": "KsfSLW_textarea",
|
|
427
|
+
"editorPane": "KsfSLW_editorPane",
|
|
428
|
+
"field": "KsfSLW_field",
|
|
429
|
+
"dialog": "KsfSLW_dialog",
|
|
430
|
+
"error": "KsfSLW_error",
|
|
431
|
+
"agentRow": "KsfSLW_agentRow",
|
|
432
|
+
"agentName": "KsfSLW_agentName",
|
|
433
|
+
"editor": "KsfSLW_editor",
|
|
434
|
+
"select": "KsfSLW_select",
|
|
428
435
|
"actions": "KsfSLW_actions",
|
|
429
|
-
"toolGrid": "KsfSLW_toolGrid",
|
|
430
436
|
"createButton": "KsfSLW_createButton",
|
|
431
|
-
"
|
|
432
|
-
"agentRowActive": "KsfSLW_agentRowActive",
|
|
433
|
-
"editor": "KsfSLW_editor",
|
|
434
|
-
"split": "KsfSLW_split",
|
|
435
|
-
"agentRow": "KsfSLW_agentRow",
|
|
437
|
+
"toolMode": "KsfSLW_toolMode",
|
|
436
438
|
"builtinBadge": "KsfSLW_builtinBadge",
|
|
437
|
-
"
|
|
438
|
-
"
|
|
439
|
-
"textarea": "KsfSLW_textarea",
|
|
440
|
-
"editorPane": "KsfSLW_editorPane"
|
|
439
|
+
"toolGroupSet": "KsfSLW_toolGroupSet",
|
|
440
|
+
"toolGroupTitle": "KsfSLW_toolGroupTitle"
|
|
441
441
|
};
|
|
442
442
|
//#endregion
|
|
443
443
|
//#region src/client/agents/AgentEditor.tsx
|
|
@@ -951,24 +951,24 @@ window.__ModuleLoader__.load({
|
|
|
951
951
|
document.head.appendChild(tag);
|
|
952
952
|
}
|
|
953
953
|
var prompt_module_css_default = {
|
|
954
|
-
"
|
|
955
|
-
"layerName": "VZk1fa_layerName",
|
|
956
|
-
"hint": "VZk1fa_hint",
|
|
957
|
-
"tabActive": "VZk1fa_tabActive",
|
|
954
|
+
"editor": "VZk1fa_editor",
|
|
958
955
|
"error": "VZk1fa_error",
|
|
959
|
-
"
|
|
960
|
-
"actions": "VZk1fa_actions",
|
|
956
|
+
"editorPane": "VZk1fa_editorPane",
|
|
961
957
|
"tab": "VZk1fa_tab",
|
|
962
|
-
"split": "VZk1fa_split",
|
|
963
|
-
"textarea": "VZk1fa_textarea",
|
|
964
|
-
"tabs": "VZk1fa_tabs",
|
|
965
|
-
"editor": "VZk1fa_editor",
|
|
966
|
-
"listPane": "VZk1fa_listPane",
|
|
967
|
-
"readonlyTag": "VZk1fa_readonlyTag",
|
|
968
958
|
"layerOrder": "VZk1fa_layerOrder",
|
|
969
|
-
"dialog": "VZk1fa_dialog",
|
|
970
959
|
"field": "VZk1fa_field",
|
|
971
|
-
"
|
|
960
|
+
"dialog": "VZk1fa_dialog",
|
|
961
|
+
"listPane": "VZk1fa_listPane",
|
|
962
|
+
"hint": "VZk1fa_hint",
|
|
963
|
+
"tabs": "VZk1fa_tabs",
|
|
964
|
+
"layerRow": "VZk1fa_layerRow",
|
|
965
|
+
"split": "VZk1fa_split",
|
|
966
|
+
"tabActive": "VZk1fa_tabActive",
|
|
967
|
+
"layerName": "VZk1fa_layerName",
|
|
968
|
+
"textarea": "VZk1fa_textarea",
|
|
969
|
+
"actions": "VZk1fa_actions",
|
|
970
|
+
"layerRowActive": "VZk1fa_layerRowActive",
|
|
971
|
+
"readonlyTag": "VZk1fa_readonlyTag"
|
|
972
972
|
};
|
|
973
973
|
//#endregion
|
|
974
974
|
//#region src/client/prompt/PromptLayersModal.tsx
|
|
@@ -1453,12 +1453,12 @@ window.__ModuleLoader__.load({
|
|
|
1453
1453
|
}
|
|
1454
1454
|
var chart_module_css_default = {
|
|
1455
1455
|
"swatchCached": "_8LXSJW_swatchCached",
|
|
1456
|
-
"tooltipTotal": "_8LXSJW_tooltipTotal",
|
|
1457
|
-
"tooltip": "_8LXSJW_tooltip",
|
|
1458
1456
|
"legend": "_8LXSJW_legend",
|
|
1459
|
-
"
|
|
1457
|
+
"swatchFresh": "_8LXSJW_swatchFresh",
|
|
1460
1458
|
"tooltipTitle": "_8LXSJW_tooltipTitle",
|
|
1461
|
-
"
|
|
1459
|
+
"tooltip": "_8LXSJW_tooltip",
|
|
1460
|
+
"tooltipTotal": "_8LXSJW_tooltipTotal",
|
|
1461
|
+
"chartTheme": "_8LXSJW_chartTheme"
|
|
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
|
|
@@ -1474,12 +1474,12 @@ window.__ModuleLoader__.load({
|
|
|
1474
1474
|
var ActivityHeatmap_module_css_default = {
|
|
1475
1475
|
"level2": "hjrYrq_level2",
|
|
1476
1476
|
"level4": "hjrYrq_level4",
|
|
1477
|
-
"level1": "hjrYrq_level1",
|
|
1478
1477
|
"level0": "hjrYrq_level0",
|
|
1479
1478
|
"grid": "hjrYrq_grid",
|
|
1480
|
-
"
|
|
1479
|
+
"months": "hjrYrq_months",
|
|
1481
1480
|
"week": "hjrYrq_week",
|
|
1482
|
-
"
|
|
1481
|
+
"level3": "hjrYrq_level3",
|
|
1482
|
+
"level1": "hjrYrq_level1"
|
|
1483
1483
|
};
|
|
1484
1484
|
//#endregion
|
|
1485
1485
|
//#region ../usage/src/client/usage/ActivityHeatmap.tsx
|
|
@@ -52516,19 +52516,19 @@ ${te.current.stack}
|
|
|
52516
52516
|
document.head.appendChild(tag);
|
|
52517
52517
|
}
|
|
52518
52518
|
var UsageModal_module_css_default = {
|
|
52519
|
-
"
|
|
52520
|
-
"row": "MODeXa_row",
|
|
52521
|
-
"pager": "MODeXa_pager",
|
|
52522
|
-
"tab": "MODeXa_tab",
|
|
52523
|
-
"tabs": "MODeXa_tabs",
|
|
52519
|
+
"dialog": "MODeXa_dialog",
|
|
52524
52520
|
"dateLabel": "MODeXa_dateLabel",
|
|
52525
|
-
"
|
|
52521
|
+
"pagerButton": "MODeXa_pagerButton",
|
|
52522
|
+
"compaction": "MODeXa_compaction",
|
|
52523
|
+
"tabActive": "MODeXa_tabActive",
|
|
52526
52524
|
"rowName": "MODeXa_rowName",
|
|
52527
|
-
"
|
|
52528
|
-
"
|
|
52525
|
+
"sectionTitle": "MODeXa_sectionTitle",
|
|
52526
|
+
"tabs": "MODeXa_tabs",
|
|
52527
|
+
"row": "MODeXa_row",
|
|
52529
52528
|
"total": "MODeXa_total",
|
|
52530
|
-
"
|
|
52531
|
-
"
|
|
52529
|
+
"rowCalls": "MODeXa_rowCalls",
|
|
52530
|
+
"pager": "MODeXa_pager",
|
|
52531
|
+
"tab": "MODeXa_tab"
|
|
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
|
-
"stepSeparator": "vTbXga_stepSeparator",
|
|
55157
|
-
"formActions": "vTbXga_formActions",
|
|
55158
|
-
"field": "vTbXga_field",
|
|
55159
55156
|
"botRow": "vTbXga_botRow",
|
|
55160
|
-
"tabs": "vTbXga_tabs",
|
|
55161
|
-
"step": "vTbXga_step",
|
|
55162
|
-
"createButton": "vTbXga_createButton",
|
|
55163
55157
|
"tabActive": "vTbXga_tabActive",
|
|
55164
|
-
"textarea": "vTbXga_textarea",
|
|
55165
|
-
"select": "vTbXga_select",
|
|
55166
|
-
"channelBadge": "vTbXga_channelBadge",
|
|
55167
|
-
"status": "vTbXga_status",
|
|
55168
|
-
"stepActive": "vTbXga_stepActive",
|
|
55169
|
-
"input": "vTbXga_input",
|
|
55170
|
-
"scanSection": "vTbXga_scanSection",
|
|
55171
55158
|
"dialog": "vTbXga_dialog",
|
|
55172
|
-
"groupTitle": "vTbXga_groupTitle",
|
|
55173
55159
|
"error": "vTbXga_error",
|
|
55174
|
-
"steps": "vTbXga_steps",
|
|
55175
55160
|
"group": "vTbXga_group",
|
|
55161
|
+
"createButton": "vTbXga_createButton",
|
|
55162
|
+
"tabs": "vTbXga_tabs",
|
|
55163
|
+
"stepSeparator": "vTbXga_stepSeparator",
|
|
55164
|
+
"stepActive": "vTbXga_stepActive",
|
|
55165
|
+
"hint": "vTbXga_hint",
|
|
55176
55166
|
"botName": "vTbXga_botName",
|
|
55177
|
-
"
|
|
55167
|
+
"select": "vTbXga_select",
|
|
55168
|
+
"channelBadge": "vTbXga_channelBadge",
|
|
55169
|
+
"scanSection": "vTbXga_scanSection",
|
|
55170
|
+
"textarea": "vTbXga_textarea",
|
|
55171
|
+
"steps": "vTbXga_steps",
|
|
55172
|
+
"field": "vTbXga_field",
|
|
55173
|
+
"formActions": "vTbXga_formActions",
|
|
55174
|
+
"tab": "vTbXga_tab",
|
|
55175
|
+
"step": "vTbXga_step",
|
|
55176
|
+
"groupTitle": "vTbXga_groupTitle",
|
|
55177
|
+
"input": "vTbXga_input",
|
|
55178
|
+
"status": "vTbXga_status"
|
|
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
|
"当前应用:",
|