clickgo 7.3.1 → 7.4.0
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/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/cube.cgc +0 -0
- package/dist/control/objviewer.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/command/file.d.ts +87 -0
- package/dist/lib/command/runtime.d.ts +37 -0
- package/dist/lib/command/types.d.ts +161 -0
- package/dist/lib/command.d.ts +18 -151
- package/dist/lib/control.d.ts +24 -14
- package/dist/theme/cloud-dark.cgt +0 -0
- package/dist/theme/cloud.cgt +0 -0
- package/doc/clickgo-rag.md +656 -279
- package/package.json +4 -3
package/doc/clickgo-rag.md
CHANGED
|
@@ -219,6 +219,34 @@ export default class extends clickgo.form.AbstractForm {
|
|
|
219
219
|
|
|
220
220
|
`execute(this, name, args, { 'signal': signal })` 支持取消;执行回调通过第二个参数 `context.signal` 配合停止。取消不回滚已发生的修改,忽略 signal 的业务仍可继续,执行占用在回调实际结束后释放。context 包含 taskId、formId、panelId 和 source;source 的 user/agent 仅用于记录,不能作为授权凭据。
|
|
221
221
|
|
|
222
|
+
## 原生导出文件
|
|
223
|
+
|
|
224
|
+
应用将内置导出器生成的 Blob 交给 `context.createFile(blob, { fileName, mimeType? })`,再用 `success(data, [file])` 明确交付。框架不重新绘制文件,也不读取本机路径。示例使用文本,实际应用传入自己的 JPG、PDF 等成品 Blob:
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
clickgo.command.register(this, {
|
|
228
|
+
'name': 'document.export', 'description': 'Export the current document as text.',
|
|
229
|
+
'inputSchema': { 'type': 'object', 'additionalProperties': false },
|
|
230
|
+
'exposed': true,
|
|
231
|
+
'execute': (_args, context) => {
|
|
232
|
+
const blob = new Blob(['Example text\n'], { 'type': 'text/plain' });
|
|
233
|
+
const file = context.createFile(blob, { 'fileName': 'example.txt' });
|
|
234
|
+
return file === false ? clickgo.command.failure('export-failed', 'Could not retain the file')
|
|
235
|
+
: clickgo.command.success({ 'format': 'txt' }, [file]);
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
- 成功结果的 `files` 位于 `data` 外,不参与 `outputSchema` 校验。元数据包含文件名、MIME、原始字节数、有效期、URI、`readCommand` 和 `readChunkSize`;框架使用自己的快照,拒绝伪造、重复或跨 App 句柄。
|
|
241
|
+
- 文件保留 10 分钟,随所属 Panel、Form 或 App 销毁/`clear()` 释放。只允许执行中的 context 创建文件;失败、取消、无效输出或未放入结果的文件自动释放。私有命令的文件不会向代理公开。
|
|
242
|
+
- 每个 App 最多保留 8 份、合计 128 MiB,单文件最多 64 MiB;参数、容量或计时器不可用时 `createFile()` 返回 false,不自动淘汰尚未取走的文件。
|
|
243
|
+
- 应用可用 `releaseFile(this, fileId)` 主动释放旧缓存;Form/Panel 只能管理自身范围,App 可管理整个 App。释放不删除磁盘文件,客户端之后无法再读取该句柄。Demo 在新文件准备好后释放同 Form 的上一次导出,避免连续导出占满缓存。
|
|
244
|
+
- App 首次通过公开命令交付文件后,框架为该 App 自动注册保留命令名 `clickgo.file.read`;它不是 `clickgo.file` 库,也不会为每个 App 启动 MCP 服务。应用不能注册同名命令。JS 和 WebMCP 按元数据调用它,传 `fileId`、`offset`(默认 0)、`length`(默认 49152,最多 393216)读取;每段返回 `file`、`offset`、`nextOffset`、`encoding: base64`、`data`。逐段解码再拼接字节,直到 nextOffset 为 null,避免将二进制输出到对话。
|
|
245
|
+
- 文件按 `taskId + fileId` 隔离;`fileId` 使用 UUID,但不承担跨 App 授权。应用内 `command.execute(this, 'clickgo.file.read', args)` 从 this 取得 taskId;网页公开入口和外部 MCP 调用须提供目标 taskId。
|
|
246
|
+
- Native 的 HTTP/stdio MCP 将同一结果转换为标准 `resource_link`;客户端使用 `resources/read` 获取原文件。URI 为 `clickgo-file:///task/{taskId}/{fileId}`,不是可公网访问的下载地址;不支持资源读取的客户端仍可调用公开的分段命令。缺少浏览器下载事件不代表生成失败。
|
|
247
|
+
|
|
248
|
+
Demo 的 Library command → Export text file 演示完整流程。
|
|
249
|
+
|
|
222
250
|
## 浏览器代理与 WebMCP
|
|
223
251
|
|
|
224
252
|
框架自动发布 `window['clickgo']['command']`,不需要业务另建桥接文件,也不依赖 WebMCP。代理按以下顺序调用:
|
|
@@ -252,7 +280,11 @@ WebMCP 可用时框架自动发布公开命令,无需连接按钮。通过 `aw
|
|
|
252
280
|
| `publishedTaskIds` | 已完成工具发布的 App ID |
|
|
253
281
|
| `onWebMcpStatusChanged(status)` | Boot、App、Form 接收同一页面级状态,无 taskId、无需 root |
|
|
254
282
|
|
|
255
|
-
界面先读一次快照,再通过事件更新,无需轮询。事件不回放历史,App
|
|
283
|
+
界面先读一次快照,再通过事件更新,无需轮询。事件不回放历史,App 命令变化或发布失败不触发该事件。
|
|
284
|
+
|
|
285
|
+
公开命令注册或移除时框架自动同步,通常无需调用 `connectWebMcp(this)`。仅在发布失败需重试、主动撤销后需恢复,或浏览器稍后才提供 WebMCP 接口时调用;同一浏览器接口下保留已发布工具,只补齐缺失项,不重置 App 的命令或业务状态。发布失败返回 false。
|
|
286
|
+
|
|
287
|
+
`disconnectWebMcp(this)` 撤销当前 App 工具,不改变页面状态,之后注册公开命令仍会自动发布。WebMCP 不支持或发布失败时,网页 JS 入口仍可使用。
|
|
256
288
|
|
|
257
289
|
## 自动生成 AI 接入说明
|
|
258
290
|
|
|
@@ -1154,6 +1186,16 @@ cell 之间的间距,默认 0。
|
|
|
1154
1186
|
|
|
1155
1187
|
是否使用与 Tag 相同的朴素模式,默认 false。语义色和主题色使用柔和底色、对应文字色及边框;最终外观由主题决定。
|
|
1156
1188
|
|
|
1189
|
+
#### pulse
|
|
1190
|
+
|
|
1191
|
+
`boolean` | `string`
|
|
1192
|
+
|
|
1193
|
+
是否启用同色扩散光圈,默认 false。光圈随 `type` 的语义色或主题色变化,实心与朴素模式均支持;圆点、内容及布局尺寸不参与缩放。启用系统“减少动态效果”时显示静态光圈。
|
|
1194
|
+
|
|
1195
|
+
这是布尔开关;`string` 仅兼容 XML 属性传值,并非动画名称或多种效果的枚举。可用 `pulse` 开启,或用 `:pulse="online"` 绑定布尔状态。
|
|
1196
|
+
|
|
1197
|
+
光圈向组件外侧绘制,放在 Flow 等滚动容器内时需在滚动区域内部留出空间,避免被 overflow 裁切。
|
|
1198
|
+
|
|
1157
1199
|
#### sub
|
|
1158
1200
|
|
|
1159
1201
|
`boolean` | `string`
|
|
@@ -1179,6 +1221,8 @@ cell 之间的间距,默认 0。
|
|
|
1179
1221
|
```xml
|
|
1180
1222
|
<circle type="primary" size="xl">A</circle>
|
|
1181
1223
|
<circle type="cg" size="xl" plain>A</circle>
|
|
1224
|
+
<circle type="primary" pulse></circle>
|
|
1225
|
+
<circle type="cg" :pulse="online"></circle>
|
|
1182
1226
|
```
|
|
1183
1227
|
|
|
1184
1228
|
|
|
@@ -1292,48 +1336,34 @@ cell 之间的间距,默认 0。
|
|
|
1292
1336
|
## cube
|
|
1293
1337
|
---
|
|
1294
1338
|
|
|
1295
|
-
|
|
1339
|
+
独立的立方体设备标识,可用于列表、概览卡片或 Objviewer 节点的 icon 插槽。固定占位内以三个 SVG 平面构成三维立方体,按统一视点投影;不监听内容尺寸,也不参与父空间的连接与布局。
|
|
1296
1340
|
|
|
1297
|
-
|
|
1341
|
+
鼠标悬停时立方体向上和向前抬升并轻微转动,顶面与侧面的边随透视共同变化;顶面插槽、扫光同步跟随,落地阴影留在原处并变得柔和。外层占位和连线端点保持不变。动效由 CSS 三维面结构管理,无计时器或动画回调依赖;减少动态效果时保持静止立体姿态并关闭扫光,仅保留色彩反馈。
|
|
1298
1342
|
|
|
1299
|
-
|
|
1343
|
+
### 参数
|
|
1300
1344
|
|
|
1301
|
-
|
|
1345
|
+
#### type
|
|
1302
1346
|
|
|
1303
|
-
|
|
1347
|
+
`'default' | 'primary' | 'info' | 'warning' | 'danger' | 'cg'`,默认 `cg`。使用框架语义色和用户主题色,三面明度随主题表面变化。
|
|
1304
1348
|
|
|
1305
1349
|
#### size
|
|
1306
1350
|
|
|
1307
|
-
`'
|
|
1351
|
+
`'s' | 'm' | 'l' | 'xl'`,默认 `m`,固定占位分别为 `32 / 48 / 64 / 88px`。插槽不会撑大占位,请使用适当尺寸的 Icon 或简短文字。
|
|
1308
1352
|
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
### 事件
|
|
1312
|
-
|
|
1313
|
-
#### anistart
|
|
1314
|
-
|
|
1315
|
-
`() => void`
|
|
1316
|
-
|
|
1317
|
-
动画开始时触发。
|
|
1318
|
-
|
|
1319
|
-
#### aniend
|
|
1320
|
-
|
|
1321
|
-
`() => void`
|
|
1322
|
-
|
|
1323
|
-
动画结束时触发。
|
|
1324
|
-
|
|
1325
|
-
### 样式
|
|
1326
|
-
|
|
1327
|
-
使用 CSS 3D 变换实现立方体效果。顶面可通过插槽自定义内容。
|
|
1353
|
+
### 插槽
|
|
1328
1354
|
|
|
1329
|
-
|
|
1355
|
+
默认插槽显示在顶面中央。Cube 本身不承担选择或动画事件;点击与状态由外层 Button、列表项或 Objviewer-item 负责。
|
|
1330
1356
|
|
|
1331
1357
|
### 示例
|
|
1332
1358
|
|
|
1333
1359
|
```xml
|
|
1334
|
-
<cube
|
|
1360
|
+
<cube type="info" size="m"><icon name="cpu" size="s"></icon></cube>
|
|
1361
|
+
<objviewer-item node-id="server" variant="hub" label="Server" status="online">
|
|
1362
|
+
<template v-slot:icon><cube type="cg"><icon name="cpu" size="s"></icon></cube></template>
|
|
1363
|
+
</objviewer-item>
|
|
1335
1364
|
```
|
|
1336
1365
|
|
|
1366
|
+
|
|
1337
1367
|
## date
|
|
1338
1368
|
---
|
|
1339
1369
|
|
|
@@ -1351,7 +1381,7 @@ cell 之间的间距,默认 0。
|
|
|
1351
1381
|
|
|
1352
1382
|
`string[]` | `string`
|
|
1353
1383
|
|
|
1354
|
-
|
|
1384
|
+
禁用日期列表,date 模式使用 YYYYMMDD,month 模式使用 YYYYMM。
|
|
1355
1385
|
|
|
1356
1386
|
#### modelValue
|
|
1357
1387
|
|
|
@@ -1359,6 +1389,14 @@ cell 之间的间距,默认 0。
|
|
|
1359
1389
|
|
|
1360
1390
|
双向绑定,时间戳毫秒值。
|
|
1361
1391
|
|
|
1392
|
+
month 模式将值归一到所选时区的当月 1 日 00:00:00.000;外部传入日期也会归一并同步绑定值。固定 UTC 月初时传 `:tz="0"`,不依赖设备时区。
|
|
1393
|
+
|
|
1394
|
+
#### mode
|
|
1395
|
+
|
|
1396
|
+
`'date'` | `'month'`
|
|
1397
|
+
|
|
1398
|
+
选择粒度,默认 date。month 只显示年份和月份,不提供日格或时间选择,并忽略 date、time、hourminute 参数;zone 和 tz 仍按原有规则工作。
|
|
1399
|
+
|
|
1362
1400
|
#### tz
|
|
1363
1401
|
|
|
1364
1402
|
`number` | `string`
|
|
@@ -1381,13 +1419,13 @@ cell 之间的间距,默认 0。
|
|
|
1381
1419
|
|
|
1382
1420
|
`number` | `string`
|
|
1383
1421
|
|
|
1384
|
-
|
|
1422
|
+
可选开始时间,沿用 datepanel 的秒/毫秒约定;month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1385
1423
|
|
|
1386
1424
|
#### end
|
|
1387
1425
|
|
|
1388
1426
|
`number` | `string`
|
|
1389
1427
|
|
|
1390
|
-
|
|
1428
|
+
可选结束时间,沿用 datepanel 的秒/毫秒约定;month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1391
1429
|
|
|
1392
1430
|
#### date
|
|
1393
1431
|
|
|
@@ -1411,7 +1449,7 @@ cell 之间的间距,默认 0。
|
|
|
1411
1449
|
|
|
1412
1450
|
`boolean` | `string`
|
|
1413
1451
|
|
|
1414
|
-
|
|
1452
|
+
是否显示清空按钮,默认 true。
|
|
1415
1453
|
|
|
1416
1454
|
### 事件
|
|
1417
1455
|
|
|
@@ -1419,7 +1457,7 @@ cell 之间的间距,默认 0。
|
|
|
1419
1457
|
|
|
1420
1458
|
`(event: IDateChangedEvent) => void`
|
|
1421
1459
|
|
|
1422
|
-
值改变后触发,包含 `
|
|
1460
|
+
值改变后触发,包含 `before` 和 `value`。month 模式选中月份或清空时触发,归一化外部赋值不视为用户选择。
|
|
1423
1461
|
|
|
1424
1462
|
#### yearmonthchanged
|
|
1425
1463
|
|
|
@@ -1439,8 +1477,10 @@ cell 之间的间距,默认 0。
|
|
|
1439
1477
|
|
|
1440
1478
|
```xml
|
|
1441
1479
|
<date v-model="timestamp"></date>
|
|
1480
|
+
<date mode="month" v-model="monthTimestamp" :tz="0"></date>
|
|
1442
1481
|
```
|
|
1443
1482
|
|
|
1483
|
+
|
|
1444
1484
|
## datepanel
|
|
1445
1485
|
---
|
|
1446
1486
|
|
|
@@ -1464,7 +1504,7 @@ cell 之间的间距,默认 0。
|
|
|
1464
1504
|
|
|
1465
1505
|
`string[]` | `string`
|
|
1466
1506
|
|
|
1467
|
-
|
|
1507
|
+
禁用日期列表,date 模式使用 YYYYMMDD,month 模式使用 YYYYMM。
|
|
1468
1508
|
|
|
1469
1509
|
#### modelValue
|
|
1470
1510
|
|
|
@@ -1472,17 +1512,25 @@ cell 之间的间距,默认 0。
|
|
|
1472
1512
|
|
|
1473
1513
|
双向绑定,时间戳值(毫秒)。
|
|
1474
1514
|
|
|
1515
|
+
month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日期也会归一并同步绑定值。
|
|
1516
|
+
|
|
1517
|
+
#### mode
|
|
1518
|
+
|
|
1519
|
+
`'date'` | `'month'`
|
|
1520
|
+
|
|
1521
|
+
选择粒度,默认 date。month 使用年份导航和十二个月份按钮,隐藏日格与时间选择,忽略 time、hourminute、range 和 cursor。月份按钮复用全部内置语种的月份名称。
|
|
1522
|
+
|
|
1475
1523
|
#### start
|
|
1476
1524
|
|
|
1477
1525
|
`number` | `string`
|
|
1478
1526
|
|
|
1479
|
-
可选开始时间(秒/毫秒)。
|
|
1527
|
+
可选开始时间(秒/毫秒)。month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1480
1528
|
|
|
1481
1529
|
#### end
|
|
1482
1530
|
|
|
1483
1531
|
`number` | `string`
|
|
1484
1532
|
|
|
1485
|
-
可选结束时间(秒/毫秒)。
|
|
1533
|
+
可选结束时间(秒/毫秒)。month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1486
1534
|
|
|
1487
1535
|
#### tz
|
|
1488
1536
|
|
|
@@ -1562,7 +1610,7 @@ cell 之间的间距,默认 0。
|
|
|
1562
1610
|
|
|
1563
1611
|
`(event: IDatepanelSelectedEvent) => void`
|
|
1564
1612
|
|
|
1565
|
-
选中日期时触发。
|
|
1613
|
+
选中日期时触发。month 模式的 date 固定为 1,month 仍从 0 开始,time 为所选时区的月初毫秒时间戳。
|
|
1566
1614
|
|
|
1567
1615
|
#### range
|
|
1568
1616
|
|
|
@@ -1582,8 +1630,10 @@ cell 之间的间距,默认 0。
|
|
|
1582
1630
|
|
|
1583
1631
|
```xml
|
|
1584
1632
|
<datepanel v-model="timestamp" time></datepanel>
|
|
1633
|
+
<datepanel mode="month" v-model="monthTimestamp" :tz="0"></datepanel>
|
|
1585
1634
|
```
|
|
1586
1635
|
|
|
1636
|
+
|
|
1587
1637
|
## daterange
|
|
1588
1638
|
---
|
|
1589
1639
|
|
|
@@ -6192,121 +6242,142 @@ noVNC 远程桌面组件。
|
|
|
6192
6242
|
## objviewer
|
|
6193
6243
|
---
|
|
6194
6244
|
|
|
6195
|
-
|
|
6245
|
+
节点关系空间。以稳定 ID 声明节点与连接,自动布局和尺寸测量在控件内部完成;平移、滚轮、双指缩放和视口适应复用 Panzoom。不是 3D 场景或流程编辑器。
|
|
6196
6246
|
|
|
6197
6247
|
### 参数
|
|
6198
6248
|
|
|
6199
|
-
####
|
|
6249
|
+
#### edges
|
|
6200
6250
|
|
|
6201
|
-
`
|
|
6251
|
+
`clickgo.control.IObjviewerEdge[]`,默认 `[]`。每条连接含 `source`、`target` 节点 ID,可选 `label`、`status`(`default / online / warning / offline`)。端点不存在时暂不绘制,恢复节点后自动出现。状态与是否启用动画均由应用提供,不从端点猜测。
|
|
6202
6252
|
|
|
6203
|
-
|
|
6253
|
+
每条连接可独立设置动画:
|
|
6254
|
+
|
|
6255
|
+
- `animation`:`none / dash / dots`,默认 `none`;分别为静止连接、流动虚线、静止底线上的多个移动圆点。颜色跟随连接状态,选中关联节点时使用主题色。
|
|
6256
|
+
- `direction`:`forward / reverse / both`,默认 `forward`;分别沿 source → target、target → source、同时双向流动。仅改变动画,不交换节点关系或改变布局。
|
|
6257
|
+
- `duration`:周期秒数,默认 `3`,限制为 `0.25–60`;dots 为圆点走完整条路径的时间,dash 为虚线纹理的一个动画周期。
|
|
6258
|
+
- `dotCount`:dots 模式每个方向的圆点数,默认 `3`,取整并限制为 `1–8`。圆点均匀错开,双向时两组错开半个间隔。
|
|
6259
|
+
|
|
6260
|
+
路径随节点、容器与布局变化更新;减少动态效果时隐藏移动圆点并停止虚线动画,保留静止连接。
|
|
6261
|
+
|
|
6262
|
+
#### layout
|
|
6263
|
+
|
|
6264
|
+
`'auto' | 'radial' | 'tree' | 'manual'`,默认 `auto`。自动模式在 600px 以下容器改为紧凑纵排与侧边关系线,宽容器使用环形。显式 radial 固定环形,以节点的可视标识中心定位;tree 分层适合设备树和依赖概览;manual 使用各节点的 x/y。支持环、孤立节点与多个连通分量,不持续运行力模拟。非紧凑布局使用直线;中心节点的标识与说明共同决定端点,连线遇到说明时止于说明外缘,不穿字或局部绕行。不提供通用避障路由或端口编辑。
|
|
6265
|
+
|
|
6266
|
+
#### root
|
|
6267
|
+
|
|
6268
|
+
`string`,默认空。优先根节点 ID;未提供时优先无入边节点,再选择连接较多的节点。
|
|
6269
|
+
|
|
6270
|
+
#### gap
|
|
6271
|
+
|
|
6272
|
+
`number | string`,默认 `48`,环形和分层布局的最小间隔,单位 CSS 像素,限制为 `24–400`。紧凑模式的纵向间隔固定为 24px。
|
|
6204
6273
|
|
|
6205
6274
|
#### bg
|
|
6206
6275
|
|
|
6207
|
-
`'dot'
|
|
6276
|
+
`'none' | 'dot' | 'grid'`,默认 `none`。
|
|
6277
|
+
|
|
6278
|
+
#### modelValue
|
|
6208
6279
|
|
|
6209
|
-
|
|
6280
|
+
`string`,当前选中节点 ID,默认空,可用 v-model。移除选中节点时清空绑定,不触发 select。
|
|
6210
6281
|
|
|
6211
|
-
####
|
|
6282
|
+
#### disabled
|
|
6212
6283
|
|
|
6213
|
-
`
|
|
6284
|
+
`boolean | string`,默认 false,禁用视图手势、工具栏和节点选择。
|
|
6214
6285
|
|
|
6215
|
-
|
|
6286
|
+
#### label
|
|
6216
6287
|
|
|
6217
|
-
|
|
6288
|
+
`string`,空间无障碍名称,由应用提供本地化文案。
|
|
6218
6289
|
|
|
6219
|
-
|
|
6290
|
+
### 事件
|
|
6220
6291
|
|
|
6221
|
-
|
|
6292
|
+
#### select
|
|
6222
6293
|
|
|
6223
|
-
|
|
6294
|
+
`clickgo.control.IObjviewerSelectEvent`:`detail: {nodeId, label}`。点击、Enter 或空格激活不同的可操作节点时触发;重复选择不触发。控件不执行业务跳转。
|
|
6224
6295
|
|
|
6225
|
-
|
|
6296
|
+
### 方法
|
|
6226
6297
|
|
|
6227
|
-
|
|
6298
|
+
- `fit()`:恢复完整显示,之后随视口缩放继续适应。
|
|
6299
|
+
- `zoom(factor)`:围绕视口中心按相对比例缩放,如 `1.2`。用户缩放/平移后调整窗口保持当前比例和中心;内容边界变化重新适应。
|
|
6228
6300
|
|
|
6229
|
-
###
|
|
6301
|
+
### 插槽与尺寸
|
|
6230
6302
|
|
|
6231
|
-
|
|
6303
|
+
默认插槽仅放直属 objviewer-item,可用 v-for/v-if。节点 ID 必须非空且唯一;无效项隐藏,重复 ID 只使用第一项。`empty` 插槽自定义空态。
|
|
6232
6304
|
|
|
6233
|
-
|
|
6305
|
+
给容器明确高度或 flex 剩余空间;场景按真实节点尺寸及 48px 留白计算,不用屏幕坐标反推,也无需 addLine、动画回调或延时 refresh。首次完整显示,大图可通过工具栏/手势放大查看文字。0 大小或隐藏视口恢复后自动适应;减少动态效果时连接静止。
|
|
6234
6306
|
|
|
6235
6307
|
### 示例
|
|
6236
6308
|
|
|
6237
6309
|
```xml
|
|
6238
|
-
<objviewer>
|
|
6239
|
-
<objviewer-item label="
|
|
6310
|
+
<objviewer :edges="[{source: 'gateway', target: 'device', status: 'online', animation: 'dots', direction: 'both', duration: 3, dotCount: 3}]" root="gateway" v-model="selected" style="height:420px;">
|
|
6311
|
+
<objviewer-item node-id="gateway" variant="hub" label="Gateway" status="online" icon="cpu"></objviewer-item>
|
|
6312
|
+
<objviewer-item node-id="device" label="Device" description="Branch office" status="online"></objviewer-item>
|
|
6240
6313
|
</objviewer>
|
|
6241
6314
|
```
|
|
6242
6315
|
|
|
6316
|
+
|
|
6243
6317
|
## objviewer-item
|
|
6244
6318
|
---
|
|
6245
6319
|
|
|
6246
|
-
|
|
6320
|
+
Objviewer 的直属节点。节点自己显示内容和状态,父空间负责位置与连接;不再承担通用 Layout 的职责。
|
|
6247
6321
|
|
|
6248
6322
|
### 参数
|
|
6249
6323
|
|
|
6250
|
-
####
|
|
6251
|
-
|
|
6252
|
-
`string`
|
|
6324
|
+
#### nodeId
|
|
6253
6325
|
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
#### hover
|
|
6326
|
+
`string`,默认空,必填的稳定唯一 ID,用于连接和选择。不使用 ref 或 DOM 引用作为端点。
|
|
6257
6327
|
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
是否启用悬停效果,默认 false。
|
|
6328
|
+
#### label
|
|
6261
6329
|
|
|
6262
|
-
|
|
6330
|
+
`string`,名称,默认空,空时显示 nodeId。
|
|
6263
6331
|
|
|
6264
|
-
|
|
6332
|
+
#### description
|
|
6265
6333
|
|
|
6266
|
-
|
|
6334
|
+
`string`,辅助说明,默认空,可显示地址、位置、数量等。
|
|
6267
6335
|
|
|
6268
|
-
####
|
|
6336
|
+
#### icon
|
|
6269
6337
|
|
|
6270
|
-
`
|
|
6338
|
+
`string`,框架图标名称,默认空。hub 未提供时显示 cpu。
|
|
6271
6339
|
|
|
6272
|
-
|
|
6340
|
+
#### status
|
|
6273
6341
|
|
|
6274
|
-
|
|
6342
|
+
`'default' | 'online' | 'warning' | 'offline'`,默认 `default`。状态通过圆点与本地化文字共同表达,不只依靠颜色;语义色跟随主题。
|
|
6275
6343
|
|
|
6276
|
-
|
|
6344
|
+
#### statusLabel
|
|
6277
6345
|
|
|
6278
|
-
|
|
6346
|
+
`string`,默认空,覆盖状态文字,应用可用于“维护中”等业务状态说明。
|
|
6279
6347
|
|
|
6280
|
-
####
|
|
6348
|
+
#### variant
|
|
6281
6349
|
|
|
6282
|
-
`
|
|
6350
|
+
`'card' | 'hub'`,默认 `card`。卡片为 184px 宽、自然高度;中心节点为 144px 宽,含 72px 圆形标识。名称/描述自动换行,自定义内容的尺寸变化自动通知空间。父空间自动切换紧凑模式时优先展示名称和状态,辅助说明及卡片图标收起;完整说明保留在无障碍描述,应用也可根据选中 ID 显示详情。
|
|
6283
6351
|
|
|
6284
|
-
|
|
6352
|
+
#### pulse
|
|
6285
6353
|
|
|
6286
|
-
|
|
6354
|
+
`boolean | string`,默认 true,仅 online 状态显示 Circle 的同色光圈;减少动态效果时静止。
|
|
6287
6355
|
|
|
6288
|
-
|
|
6356
|
+
#### disabled
|
|
6289
6357
|
|
|
6290
|
-
|
|
6358
|
+
`boolean | string`,默认 false,禁止鼠标和键盘选择,状态与内容仍可见。
|
|
6291
6359
|
|
|
6292
|
-
####
|
|
6360
|
+
#### x
|
|
6293
6361
|
|
|
6294
|
-
`string`
|
|
6362
|
+
`number | string`,默认 `0`,manual 布局下的内容水平坐标。
|
|
6295
6363
|
|
|
6296
|
-
|
|
6364
|
+
#### y
|
|
6297
6365
|
|
|
6298
|
-
|
|
6366
|
+
`number | string`,默认 `0`,manual 布局下的内容垂直坐标。坐标可为负数,空间统一归一化并留白。
|
|
6299
6367
|
|
|
6300
|
-
|
|
6368
|
+
### 插槽
|
|
6301
6369
|
|
|
6302
|
-
|
|
6370
|
+
`icon` 自定义标识,可放 Icon、Cube 或图片;默认插槽在说明下增加内容。节点内独立按钮/输入不触发节点选择。选择事件由 Objviewer 统一发出。
|
|
6303
6371
|
|
|
6304
6372
|
### 示例
|
|
6305
6373
|
|
|
6306
6374
|
```xml
|
|
6307
|
-
<objviewer-item label="
|
|
6375
|
+
<objviewer-item node-id="worker" label="Background worker" status="warning" description="Queue waiting">
|
|
6376
|
+
<tag type="warning" plain size="xs">12 jobs</tag>
|
|
6377
|
+
</objviewer-item>
|
|
6308
6378
|
```
|
|
6309
6379
|
|
|
6380
|
+
|
|
6310
6381
|
## page
|
|
6311
6382
|
---
|
|
6312
6383
|
|
|
@@ -7535,6 +7606,14 @@ Enter/Space 请求切换一次展开状态;忽略持续按住时的重复事
|
|
|
7535
7606
|
|
|
7536
7607
|
禁用可点击项,默认 `false`;禁用时不参与 Tab 导航、不触发 `click`。
|
|
7537
7608
|
|
|
7609
|
+
### 事件
|
|
7610
|
+
|
|
7611
|
+
#### tap
|
|
7612
|
+
|
|
7613
|
+
`(event: MouseEvent | KeyboardEvent): void`
|
|
7614
|
+
|
|
7615
|
+
可点击项通过鼠标点击、Enter 按下或 Space 释放时触发,参数为原始事件。应用模板使用 `@click` 绑定,框架内部对应 `tap`;普通项或禁用项不触发。
|
|
7616
|
+
|
|
7538
7617
|
### 示例
|
|
7539
7618
|
|
|
7540
7619
|
```xml
|
|
@@ -10978,7 +11057,7 @@ lib/command/functions/clear.md
|
|
|
10978
11057
|
|
|
10979
11058
|
> **clear**(`current`): `void`
|
|
10980
11059
|
|
|
10981
|
-
Defined in: [lib/command.ts:
|
|
11060
|
+
Defined in: [lib/command.ts:89](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L89)
|
|
10982
11061
|
|
|
10983
11062
|
清理所属 Panel、Form 或整个任务的命令
|
|
10984
11063
|
|
|
@@ -11009,7 +11088,7 @@ lib/command/functions/clearOwner.md
|
|
|
11009
11088
|
|
|
11010
11089
|
> **clearOwner**(`taskId`, `formId?`, `panelId?`): `void`
|
|
11011
11090
|
|
|
11012
|
-
Defined in: [lib/command.ts:
|
|
11091
|
+
Defined in: [lib/command.ts:101](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L101)
|
|
11013
11092
|
|
|
11014
11093
|
**`Internal`**
|
|
11015
11094
|
|
|
@@ -11054,9 +11133,12 @@ lib/command/functions/connectWebMcp.md
|
|
|
11054
11133
|
|
|
11055
11134
|
> **connectWebMcp**(`current`): `Promise`\<`boolean`\>
|
|
11056
11135
|
|
|
11057
|
-
Defined in: [lib/command.ts:
|
|
11136
|
+
Defined in: [lib/command.ts:195](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L195)
|
|
11058
11137
|
|
|
11059
|
-
|
|
11138
|
+
手动将当前 App 已公开的命令发布到浏览器 WebMCP
|
|
11139
|
+
公开命令注册或移除时框架自动同步,通常无需调用。
|
|
11140
|
+
仅在发布失败需重试、主动撤销后需恢复,或浏览器稍后才提供 WebMCP 接口时调用。
|
|
11141
|
+
同一浏览器接口下保留已发布工具,只补齐缺失项;不重置 App 的命令或业务状态。
|
|
11060
11142
|
|
|
11061
11143
|
## Parameters
|
|
11062
11144
|
|
|
@@ -11070,7 +11152,7 @@ Defined in: [lib/command.ts:618](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11070
11152
|
|
|
11071
11153
|
`Promise`\<`boolean`\>
|
|
11072
11154
|
|
|
11073
|
-
|
|
11155
|
+
是否发布成功;浏览器不支持、App 已退出、发布中途撤销或注册失败时返回 false
|
|
11074
11156
|
|
|
11075
11157
|
lib/command/functions/createBridge.md
|
|
11076
11158
|
---
|
|
@@ -11085,7 +11167,7 @@ lib/command/functions/createBridge.md
|
|
|
11085
11167
|
|
|
11086
11168
|
> **createBridge**(`current`): [`IBridge`](../interfaces/IBridge.md)
|
|
11087
11169
|
|
|
11088
|
-
Defined in: [lib/command.ts:
|
|
11170
|
+
Defined in: [lib/command.ts:175](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L175)
|
|
11089
11171
|
|
|
11090
11172
|
创建绑定单个 App 的可复用代理接口,调用方无需反复传入 taskId
|
|
11091
11173
|
|
|
@@ -11116,7 +11198,7 @@ lib/command/functions/createPageBridge.md
|
|
|
11116
11198
|
|
|
11117
11199
|
> **createPageBridge**(): [`IPageBridge`](../interfaces/IPageBridge.md)
|
|
11118
11200
|
|
|
11119
|
-
Defined in: [lib/command.ts:
|
|
11201
|
+
Defined in: [lib/command.ts:183](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L183)
|
|
11120
11202
|
|
|
11121
11203
|
网页入口直接读取框架的任务及命令状态,无需应用或宿主重复发布与清理
|
|
11122
11204
|
|
|
@@ -11139,7 +11221,7 @@ lib/command/functions/disconnectWebMcp.md
|
|
|
11139
11221
|
|
|
11140
11222
|
> **disconnectWebMcp**(`current`): `void`
|
|
11141
11223
|
|
|
11142
|
-
Defined in: [lib/command.ts:
|
|
11224
|
+
Defined in: [lib/command.ts:204](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L204)
|
|
11143
11225
|
|
|
11144
11226
|
撤销当前 App 的 WebMCP 工具;不改变页面级接入状态,下次公开命令注册时自动发布
|
|
11145
11227
|
|
|
@@ -11168,9 +11250,9 @@ lib/command/functions/executeAgent.md
|
|
|
11168
11250
|
|
|
11169
11251
|
# Function: executeAgent()
|
|
11170
11252
|
|
|
11171
|
-
> **executeAgent**(`taskId`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)
|
|
11253
|
+
> **executeAgent**(`taskId`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)\>
|
|
11172
11254
|
|
|
11173
|
-
Defined in: [lib/command.ts:
|
|
11255
|
+
Defined in: [lib/command.ts:165](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L165)
|
|
11174
11256
|
|
|
11175
11257
|
代理直接按 taskId 执行公开命令,与界面共用校验和业务执行器
|
|
11176
11258
|
|
|
@@ -11204,7 +11286,7 @@ Defined in: [lib/command.ts:547](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11204
11286
|
|
|
11205
11287
|
## Returns
|
|
11206
11288
|
|
|
11207
|
-
`Promise`\<[`TResult`](../type-aliases/TResult.md)
|
|
11289
|
+
`Promise`\<[`TResult`](../type-aliases/TResult.md)\>
|
|
11208
11290
|
|
|
11209
11291
|
结构化结果;未公开或不存在的命令返回 not-found
|
|
11210
11292
|
|
|
@@ -11219,9 +11301,9 @@ lib/command/functions/execute.md
|
|
|
11219
11301
|
|
|
11220
11302
|
# Function: execute()
|
|
11221
11303
|
|
|
11222
|
-
> **execute**(`current`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)
|
|
11304
|
+
> **execute**(`current`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)\>
|
|
11223
11305
|
|
|
11224
|
-
Defined in: [lib/command.ts:
|
|
11306
|
+
Defined in: [lib/command.ts:152](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L152)
|
|
11225
11307
|
|
|
11226
11308
|
应用界面直接执行已注册的业务命令
|
|
11227
11309
|
|
|
@@ -11255,7 +11337,7 @@ Defined in: [lib/command.ts:534](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11255
11337
|
|
|
11256
11338
|
## Returns
|
|
11257
11339
|
|
|
11258
|
-
`Promise`\<[`TResult`](../type-aliases/TResult.md)
|
|
11340
|
+
`Promise`\<[`TResult`](../type-aliases/TResult.md)\>
|
|
11259
11341
|
|
|
11260
11342
|
业务结果
|
|
11261
11343
|
|
|
@@ -11272,7 +11354,7 @@ lib/command/functions/failure.md
|
|
|
11272
11354
|
|
|
11273
11355
|
> **failure**(`code`, `message`): [`TResult`](../type-aliases/TResult.md)\<`never`\>
|
|
11274
11356
|
|
|
11275
|
-
Defined in: [lib/command.ts:
|
|
11357
|
+
Defined in: [lib/command.ts:48](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L48)
|
|
11276
11358
|
|
|
11277
11359
|
构造业务失败结果,不抛异常
|
|
11278
11360
|
|
|
@@ -11309,7 +11391,7 @@ lib/command/functions/getAgentGuide.md
|
|
|
11309
11391
|
|
|
11310
11392
|
> **getAgentGuide**(`current?`, `options?`): `Promise`\<`string` \| `false` \| `null`\>
|
|
11311
11393
|
|
|
11312
|
-
Defined in: [lib/command.ts:
|
|
11394
|
+
Defined in: [lib/command.ts:139](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L139)
|
|
11313
11395
|
|
|
11314
11396
|
生成简短英文接入说明,不嵌入临时 App ID;代理通过接口实时发现
|
|
11315
11397
|
|
|
@@ -11346,7 +11428,7 @@ lib/command/functions/getAgentInfo.md
|
|
|
11346
11428
|
|
|
11347
11429
|
> **getAgentInfo**(`current?`, `options?`): `Promise`\<`false` \| [`IAgentInfo`](../interfaces/IAgentInfo.md) \| `null`\>
|
|
11348
11430
|
|
|
11349
|
-
Defined in: [lib/command.ts:
|
|
11431
|
+
Defined in: [lib/command.ts:128](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L128)
|
|
11350
11432
|
|
|
11351
11433
|
获取当前环境的统一接入信息,不另行维护命令清单或启用服务
|
|
11352
11434
|
|
|
@@ -11383,7 +11465,7 @@ lib/command/functions/init.md
|
|
|
11383
11465
|
|
|
11384
11466
|
> **init**(): `void`
|
|
11385
11467
|
|
|
11386
|
-
Defined in: [lib/command.ts:
|
|
11468
|
+
Defined in: [lib/command.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L28)
|
|
11387
11469
|
|
|
11388
11470
|
初始化页面级 WebMCP 接入状态,由框架在执行 Boot.main 前自动调用
|
|
11389
11471
|
|
|
@@ -11406,7 +11488,7 @@ lib/command/functions/list.md
|
|
|
11406
11488
|
|
|
11407
11489
|
> **list**(`current`): [`IInfo`](../interfaces/IInfo.md)[]
|
|
11408
11490
|
|
|
11409
|
-
Defined in: [lib/command.ts:
|
|
11491
|
+
Defined in: [lib/command.ts:110](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L110)
|
|
11410
11492
|
|
|
11411
11493
|
获取独立元数据和当前状态,不导出业务函数
|
|
11412
11494
|
|
|
@@ -11437,7 +11519,7 @@ lib/command/functions/listTasks.md
|
|
|
11437
11519
|
|
|
11438
11520
|
> **listTasks**(): `object`[]
|
|
11439
11521
|
|
|
11440
|
-
Defined in: [lib/command.ts:
|
|
11522
|
+
Defined in: [lib/command.ts:118](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L118)
|
|
11441
11523
|
|
|
11442
11524
|
获取仍可调用的 App 标识与名称,供网页及 Native 代理发现目标
|
|
11443
11525
|
|
|
@@ -11460,7 +11542,7 @@ lib/command/functions/register.md
|
|
|
11460
11542
|
|
|
11461
11543
|
> **register**\<`T`\>(`current`, `definition`): `boolean`
|
|
11462
11544
|
|
|
11463
|
-
Defined in: [lib/command.ts:
|
|
11545
|
+
Defined in: [lib/command.ts:68](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L68)
|
|
11464
11546
|
|
|
11465
11547
|
注册命令;重复名称、不支持的 schema 或已销毁的实例返回 false
|
|
11466
11548
|
|
|
@@ -11490,6 +11572,43 @@ Defined in: [lib/command.ts:254](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11490
11572
|
|
|
11491
11573
|
是否注册成功
|
|
11492
11574
|
|
|
11575
|
+
lib/command/functions/releaseFile.md
|
|
11576
|
+
---
|
|
11577
|
+
|
|
11578
|
+
[**Documents for clickgo**](../../../index.md)
|
|
11579
|
+
|
|
11580
|
+
***
|
|
11581
|
+
|
|
11582
|
+
[Documents for clickgo](../../../index.md) / [lib/command](../index.md) / releaseFile
|
|
11583
|
+
|
|
11584
|
+
# Function: releaseFile()
|
|
11585
|
+
|
|
11586
|
+
> **releaseFile**(`current`, `fileId`): `boolean`
|
|
11587
|
+
|
|
11588
|
+
Defined in: [lib/command.ts:58](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L58)
|
|
11589
|
+
|
|
11590
|
+
主动释放旧导出的缓存,释放后代理不能继续读取;不删除磁盘文件
|
|
11591
|
+
|
|
11592
|
+
## Parameters
|
|
11593
|
+
|
|
11594
|
+
### current
|
|
11595
|
+
|
|
11596
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
11597
|
+
|
|
11598
|
+
文件所属的 App/Form/Panel,Form/Panel 只能释放自身范围
|
|
11599
|
+
|
|
11600
|
+
### fileId
|
|
11601
|
+
|
|
11602
|
+
`string`
|
|
11603
|
+
|
|
11604
|
+
先前交付的文件标识
|
|
11605
|
+
|
|
11606
|
+
## Returns
|
|
11607
|
+
|
|
11608
|
+
`boolean`
|
|
11609
|
+
|
|
11610
|
+
是否找到并释放,已释放或不属于当前范围为 false
|
|
11611
|
+
|
|
11493
11612
|
lib/command/functions/showPalette.md
|
|
11494
11613
|
---
|
|
11495
11614
|
|
|
@@ -11540,9 +11659,9 @@ lib/command/functions/success.md
|
|
|
11540
11659
|
|
|
11541
11660
|
# Function: success()
|
|
11542
11661
|
|
|
11543
|
-
> **success**\<`T`\>(`data`): [`TResult`](../type-aliases/TResult.md)\<`T`\>
|
|
11662
|
+
> **success**\<`T`\>(`data`, `files?`): [`TResult`](../type-aliases/TResult.md)\<`T`\>
|
|
11544
11663
|
|
|
11545
|
-
Defined in: [lib/command.ts:
|
|
11664
|
+
Defined in: [lib/command.ts:38](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L38)
|
|
11546
11665
|
|
|
11547
11666
|
构造成功结果
|
|
11548
11667
|
|
|
@@ -11560,6 +11679,12 @@ Defined in: [lib/command.ts:193](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11560
11679
|
|
|
11561
11680
|
可跨入口传输的 JSON 数据
|
|
11562
11681
|
|
|
11682
|
+
### files?
|
|
11683
|
+
|
|
11684
|
+
[`IFileInfo`](../interfaces/IFileInfo.md)[]
|
|
11685
|
+
|
|
11686
|
+
本次命令明确交付的框架文件,可省略;不能传入其他 App 的文件
|
|
11687
|
+
|
|
11563
11688
|
## Returns
|
|
11564
11689
|
|
|
11565
11690
|
[`TResult`](../type-aliases/TResult.md)\<`T`\>
|
|
@@ -11579,7 +11704,7 @@ lib/command/functions/unregister.md
|
|
|
11579
11704
|
|
|
11580
11705
|
> **unregister**(`current`, `name`): `boolean`
|
|
11581
11706
|
|
|
11582
|
-
Defined in: [lib/command.ts:
|
|
11707
|
+
Defined in: [lib/command.ts:80](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L80)
|
|
11583
11708
|
|
|
11584
11709
|
取消尚在执行的命令并解除注册;取消是协作式,不回滚已产生的业务效果
|
|
11585
11710
|
|
|
@@ -11621,6 +11746,9 @@ lib/command/index.md
|
|
|
11621
11746
|
- [IBridge](interfaces/IBridge.md)
|
|
11622
11747
|
- [IContext](interfaces/IContext.md)
|
|
11623
11748
|
- [IDefinition](interfaces/IDefinition.md)
|
|
11749
|
+
- [IFileChunk](interfaces/IFileChunk.md)
|
|
11750
|
+
- [IFileInfo](interfaces/IFileInfo.md)
|
|
11751
|
+
- [IFileOptions](interfaces/IFileOptions.md)
|
|
11624
11752
|
- [IInfo](interfaces/IInfo.md)
|
|
11625
11753
|
- [IMetadata](interfaces/IMetadata.md)
|
|
11626
11754
|
- [IPageBridge](interfaces/IPageBridge.md)
|
|
@@ -11650,6 +11778,7 @@ lib/command/index.md
|
|
|
11650
11778
|
- [list](functions/list.md)
|
|
11651
11779
|
- [listTasks](functions/listTasks.md)
|
|
11652
11780
|
- [register](functions/register.md)
|
|
11781
|
+
- [releaseFile](functions/releaseFile.md)
|
|
11653
11782
|
- [showPalette](functions/showPalette.md)
|
|
11654
11783
|
- [success](functions/success.md)
|
|
11655
11784
|
- [unregister](functions/unregister.md)
|
|
@@ -11665,7 +11794,7 @@ lib/command/interfaces/IAgentInfo.md
|
|
|
11665
11794
|
|
|
11666
11795
|
# Interface: IAgentInfo
|
|
11667
11796
|
|
|
11668
|
-
Defined in: [lib/command.ts:
|
|
11797
|
+
Defined in: [lib/command/types.ts:134](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L134)
|
|
11669
11798
|
|
|
11670
11799
|
可展示或导出的接入信息;命令列表始终从对应入口实时查询
|
|
11671
11800
|
|
|
@@ -11675,7 +11804,7 @@ Defined in: [lib/command.ts:132](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11675
11804
|
|
|
11676
11805
|
> **apps**: `object`[]
|
|
11677
11806
|
|
|
11678
|
-
Defined in: [lib/command.ts:
|
|
11807
|
+
Defined in: [lib/command/types.ts:136](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L136)
|
|
11679
11808
|
|
|
11680
11809
|
#### id
|
|
11681
11810
|
|
|
@@ -11691,7 +11820,7 @@ Defined in: [lib/command.ts:134](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11691
11820
|
|
|
11692
11821
|
> **browser**: `object`
|
|
11693
11822
|
|
|
11694
|
-
Defined in: [lib/command.ts:
|
|
11823
|
+
Defined in: [lib/command/types.ts:138](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L138)
|
|
11695
11824
|
|
|
11696
11825
|
#### api
|
|
11697
11826
|
|
|
@@ -11707,7 +11836,7 @@ Defined in: [lib/command.ts:136](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11707
11836
|
|
|
11708
11837
|
> **http**: [`IMcpInfo`](../../native/interfaces/IMcpInfo.md) \| `null`
|
|
11709
11838
|
|
|
11710
|
-
Defined in: [lib/command.ts:
|
|
11839
|
+
Defined in: [lib/command/types.ts:150](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L150)
|
|
11711
11840
|
|
|
11712
11841
|
只有显式导出且通过 root 检查时才包含 HTTP 凭据
|
|
11713
11842
|
|
|
@@ -11717,7 +11846,7 @@ Defined in: [lib/command.ts:148](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11717
11846
|
|
|
11718
11847
|
> **native**: [`ICommandEntry`](../../native/interfaces/ICommandEntry.md) \| `null`
|
|
11719
11848
|
|
|
11720
|
-
Defined in: [lib/command.ts:
|
|
11849
|
+
Defined in: [lib/command/types.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L148)
|
|
11721
11850
|
|
|
11722
11851
|
***
|
|
11723
11852
|
|
|
@@ -11725,7 +11854,7 @@ Defined in: [lib/command.ts:146](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11725
11854
|
|
|
11726
11855
|
> **schemaVersion**: `1`
|
|
11727
11856
|
|
|
11728
|
-
Defined in: [lib/command.ts:
|
|
11857
|
+
Defined in: [lib/command/types.ts:135](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L135)
|
|
11729
11858
|
|
|
11730
11859
|
***
|
|
11731
11860
|
|
|
@@ -11733,7 +11862,7 @@ Defined in: [lib/command.ts:133](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11733
11862
|
|
|
11734
11863
|
> **targetTaskId**: `string` \| `null`
|
|
11735
11864
|
|
|
11736
|
-
Defined in: [lib/command.ts:
|
|
11865
|
+
Defined in: [lib/command/types.ts:137](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L137)
|
|
11737
11866
|
|
|
11738
11867
|
***
|
|
11739
11868
|
|
|
@@ -11741,7 +11870,7 @@ Defined in: [lib/command.ts:135](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11741
11870
|
|
|
11742
11871
|
> **webMcp**: `object`
|
|
11743
11872
|
|
|
11744
|
-
Defined in: [lib/command.ts:
|
|
11873
|
+
Defined in: [lib/command/types.ts:139](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L139)
|
|
11745
11874
|
|
|
11746
11875
|
#### publishedTaskIds
|
|
11747
11876
|
|
|
@@ -11776,7 +11905,7 @@ lib/command/interfaces/IAgentOptions.md
|
|
|
11776
11905
|
|
|
11777
11906
|
# Interface: IAgentOptions
|
|
11778
11907
|
|
|
11779
|
-
Defined in: [lib/command.ts:
|
|
11908
|
+
Defined in: [lib/command/types.ts:122](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L122)
|
|
11780
11909
|
|
|
11781
11910
|
统一接入说明的生成选项;默认不读取或包含 HTTP 凭据
|
|
11782
11911
|
|
|
@@ -11786,7 +11915,7 @@ Defined in: [lib/command.ts:120](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11786
11915
|
|
|
11787
11916
|
> `optional` **includeMcpCredentials?**: `boolean`
|
|
11788
11917
|
|
|
11789
|
-
Defined in: [lib/command.ts:
|
|
11918
|
+
Defined in: [lib/command/types.ts:124](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L124)
|
|
11790
11919
|
|
|
11791
11920
|
仅供应用主动导出 HTTP 连接设置,仍要求当前 App 已有 root 权限
|
|
11792
11921
|
|
|
@@ -11801,7 +11930,7 @@ lib/command/interfaces/IBridge.md
|
|
|
11801
11930
|
|
|
11802
11931
|
# Interface: IBridge
|
|
11803
11932
|
|
|
11804
|
-
Defined in: [lib/command.ts:
|
|
11933
|
+
Defined in: [lib/command/types.ts:105](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L105)
|
|
11805
11934
|
|
|
11806
11935
|
绑定一个应用实例,只能调用该实例明确公开的命令
|
|
11807
11936
|
|
|
@@ -11811,7 +11940,7 @@ Defined in: [lib/command.ts:103](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11811
11940
|
|
|
11812
11941
|
> **execute**: (`name`, `args?`, `options?`) => `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
|
|
11813
11942
|
|
|
11814
|
-
Defined in: [lib/command.ts:
|
|
11943
|
+
Defined in: [lib/command/types.ts:108](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L108)
|
|
11815
11944
|
|
|
11816
11945
|
#### Parameters
|
|
11817
11946
|
|
|
@@ -11839,7 +11968,7 @@ Defined in: [lib/command.ts:106](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11839
11968
|
|
|
11840
11969
|
> **list**: () => [`IInfo`](IInfo.md)[]
|
|
11841
11970
|
|
|
11842
|
-
Defined in: [lib/command.ts:
|
|
11971
|
+
Defined in: [lib/command/types.ts:107](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L107)
|
|
11843
11972
|
|
|
11844
11973
|
#### Returns
|
|
11845
11974
|
|
|
@@ -11851,7 +11980,7 @@ Defined in: [lib/command.ts:105](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
11851
11980
|
|
|
11852
11981
|
> **taskId**: `string`
|
|
11853
11982
|
|
|
11854
|
-
Defined in: [lib/command.ts:
|
|
11983
|
+
Defined in: [lib/command/types.ts:106](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L106)
|
|
11855
11984
|
|
|
11856
11985
|
lib/command/interfaces/IContext.md
|
|
11857
11986
|
---
|
|
@@ -11864,17 +11993,48 @@ lib/command/interfaces/IContext.md
|
|
|
11864
11993
|
|
|
11865
11994
|
# Interface: IContext
|
|
11866
11995
|
|
|
11867
|
-
Defined in: [lib/command.ts:
|
|
11996
|
+
Defined in: [lib/command/types.ts:45](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L45)
|
|
11868
11997
|
|
|
11869
11998
|
执行来源仅用于展示与记录,不是授权凭证
|
|
11870
11999
|
|
|
11871
12000
|
## Properties
|
|
11872
12001
|
|
|
12002
|
+
### createFile
|
|
12003
|
+
|
|
12004
|
+
> **createFile**: (`blob`, `options`) => `false` \| [`IFileInfo`](IFileInfo.md)
|
|
12005
|
+
|
|
12006
|
+
Defined in: [lib/command/types.ts:58](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L58)
|
|
12007
|
+
|
|
12008
|
+
保留已生成文件;用 success(data, [file]) 明确交付,不读取路径或重新生成
|
|
12009
|
+
|
|
12010
|
+
#### Parameters
|
|
12011
|
+
|
|
12012
|
+
##### blob
|
|
12013
|
+
|
|
12014
|
+
`Blob`
|
|
12015
|
+
|
|
12016
|
+
原文件,单份最多 64 MiB;每个 App 最多 8 份、合计 128 MiB
|
|
12017
|
+
|
|
12018
|
+
##### options
|
|
12019
|
+
|
|
12020
|
+
[`IFileOptions`](IFileOptions.md)
|
|
12021
|
+
|
|
12022
|
+
文件名及可选 MIME,默认使用 Blob.type 或 application/octet-stream
|
|
12023
|
+
|
|
12024
|
+
#### Returns
|
|
12025
|
+
|
|
12026
|
+
`false` \| [`IFileInfo`](IFileInfo.md)
|
|
12027
|
+
|
|
12028
|
+
十分钟有效的独立句柄,随所属范围销毁;参数/容量无效返回 false
|
|
12029
|
+
仅在本次执行中有效;失败、取消、无效输出及未交付的文件自动释放,私有命令不公开文件
|
|
12030
|
+
|
|
12031
|
+
***
|
|
12032
|
+
|
|
11873
12033
|
### formId
|
|
11874
12034
|
|
|
11875
12035
|
> **formId**: `string`
|
|
11876
12036
|
|
|
11877
|
-
Defined in: [lib/command.ts:
|
|
12037
|
+
Defined in: [lib/command/types.ts:47](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L47)
|
|
11878
12038
|
|
|
11879
12039
|
***
|
|
11880
12040
|
|
|
@@ -11882,7 +12042,7 @@ Defined in: [lib/command.ts:53](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
11882
12042
|
|
|
11883
12043
|
> **panelId**: `string`
|
|
11884
12044
|
|
|
11885
|
-
Defined in: [lib/command.ts:
|
|
12045
|
+
Defined in: [lib/command/types.ts:48](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L48)
|
|
11886
12046
|
|
|
11887
12047
|
***
|
|
11888
12048
|
|
|
@@ -11890,7 +12050,7 @@ Defined in: [lib/command.ts:54](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
11890
12050
|
|
|
11891
12051
|
> **signal**: `AbortSignal`
|
|
11892
12052
|
|
|
11893
|
-
Defined in: [lib/command.ts:
|
|
12053
|
+
Defined in: [lib/command/types.ts:50](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L50)
|
|
11894
12054
|
|
|
11895
12055
|
***
|
|
11896
12056
|
|
|
@@ -11898,7 +12058,7 @@ Defined in: [lib/command.ts:56](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
11898
12058
|
|
|
11899
12059
|
> **source**: `"user"` \| `"agent"`
|
|
11900
12060
|
|
|
11901
|
-
Defined in: [lib/command.ts:
|
|
12061
|
+
Defined in: [lib/command/types.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L49)
|
|
11902
12062
|
|
|
11903
12063
|
***
|
|
11904
12064
|
|
|
@@ -11906,7 +12066,7 @@ Defined in: [lib/command.ts:55](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
11906
12066
|
|
|
11907
12067
|
> **taskId**: `string`
|
|
11908
12068
|
|
|
11909
|
-
Defined in: [lib/command.ts:
|
|
12069
|
+
Defined in: [lib/command/types.ts:46](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L46)
|
|
11910
12070
|
|
|
11911
12071
|
lib/command/interfaces/IDefinition.md
|
|
11912
12072
|
---
|
|
@@ -11919,7 +12079,7 @@ lib/command/interfaces/IDefinition.md
|
|
|
11919
12079
|
|
|
11920
12080
|
# Interface: IDefinition\<T\>
|
|
11921
12081
|
|
|
11922
|
-
Defined in: [lib/command.ts:
|
|
12082
|
+
Defined in: [lib/command/types.ts:81](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L81)
|
|
11923
12083
|
|
|
11924
12084
|
应用声明一次,界面、浏览器代理和 Native 适配器共享执行函数
|
|
11925
12085
|
|
|
@@ -11939,7 +12099,7 @@ Defined in: [lib/command.ts:79](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
11939
12099
|
|
|
11940
12100
|
> `optional` **annotations?**: `object`
|
|
11941
12101
|
|
|
11942
|
-
Defined in: [lib/command.ts:
|
|
12102
|
+
Defined in: [lib/command/types.ts:69](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L69)
|
|
11943
12103
|
|
|
11944
12104
|
行为说明,不代替校验或授权
|
|
11945
12105
|
|
|
@@ -11979,7 +12139,7 @@ WebMCP 的重要或不可逆现实效果说明
|
|
|
11979
12139
|
|
|
11980
12140
|
> `optional` **concurrent?**: `boolean`
|
|
11981
12141
|
|
|
11982
|
-
Defined in: [lib/command.ts:
|
|
12142
|
+
Defined in: [lib/command/types.ts:85](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L85)
|
|
11983
12143
|
|
|
11984
12144
|
默认拒绝同一命令并发;业务确认可并行时才开启
|
|
11985
12145
|
|
|
@@ -11989,7 +12149,7 @@ Defined in: [lib/command.ts:83](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
11989
12149
|
|
|
11990
12150
|
> **description**: `string`
|
|
11991
12151
|
|
|
11992
|
-
Defined in: [lib/command.ts:
|
|
12152
|
+
Defined in: [lib/command/types.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L65)
|
|
11993
12153
|
|
|
11994
12154
|
#### Inherited from
|
|
11995
12155
|
|
|
@@ -12001,7 +12161,7 @@ Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12001
12161
|
|
|
12002
12162
|
> `optional` **enabled?**: () => `string` \| `boolean`
|
|
12003
12163
|
|
|
12004
|
-
Defined in: [lib/command.ts:
|
|
12164
|
+
Defined in: [lib/command/types.ts:89](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L89)
|
|
12005
12165
|
|
|
12006
12166
|
true 为可用,false 或原因文本为不可用;每次执行重新检查
|
|
12007
12167
|
|
|
@@ -12015,7 +12175,7 @@ true 为可用,false 或原因文本为不可用;每次执行重新检查
|
|
|
12015
12175
|
|
|
12016
12176
|
> **execute**: (`args`, `context`) => [`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\> \| `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
|
|
12017
12177
|
|
|
12018
|
-
Defined in: [lib/command.ts:
|
|
12178
|
+
Defined in: [lib/command/types.ts:90](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L90)
|
|
12019
12179
|
|
|
12020
12180
|
#### Parameters
|
|
12021
12181
|
|
|
@@ -12037,7 +12197,7 @@ Defined in: [lib/command.ts:88](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12037
12197
|
|
|
12038
12198
|
> `optional` **exposed?**: `boolean`
|
|
12039
12199
|
|
|
12040
|
-
Defined in: [lib/command.ts:
|
|
12200
|
+
Defined in: [lib/command/types.ts:83](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L83)
|
|
12041
12201
|
|
|
12042
12202
|
明确允许代理发现并调用;默认只允许应用内部调用
|
|
12043
12203
|
|
|
@@ -12047,7 +12207,7 @@ Defined in: [lib/command.ts:81](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12047
12207
|
|
|
12048
12208
|
> **inputSchema**: [`ISchema`](ISchema.md) & `object`
|
|
12049
12209
|
|
|
12050
|
-
Defined in: [lib/command.ts:
|
|
12210
|
+
Defined in: [lib/command/types.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L66)
|
|
12051
12211
|
|
|
12052
12212
|
#### Type Declaration
|
|
12053
12213
|
|
|
@@ -12065,7 +12225,7 @@ Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12065
12225
|
|
|
12066
12226
|
> **name**: `string`
|
|
12067
12227
|
|
|
12068
|
-
Defined in: [lib/command.ts:
|
|
12228
|
+
Defined in: [lib/command/types.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L63)
|
|
12069
12229
|
|
|
12070
12230
|
#### Inherited from
|
|
12071
12231
|
|
|
@@ -12077,7 +12237,7 @@ Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12077
12237
|
|
|
12078
12238
|
> `optional` **outputSchema?**: [`ISchema`](ISchema.md)
|
|
12079
12239
|
|
|
12080
|
-
Defined in: [lib/command.ts:
|
|
12240
|
+
Defined in: [lib/command/types.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L67)
|
|
12081
12241
|
|
|
12082
12242
|
#### Inherited from
|
|
12083
12243
|
|
|
@@ -12089,7 +12249,7 @@ Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12089
12249
|
|
|
12090
12250
|
> `optional` **permissions?**: `string`[]
|
|
12091
12251
|
|
|
12092
|
-
Defined in: [lib/command.ts:
|
|
12252
|
+
Defined in: [lib/command/types.ts:87](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L87)
|
|
12093
12253
|
|
|
12094
12254
|
必须已经取得的框架权限;执行入口不弹授权窗
|
|
12095
12255
|
|
|
@@ -12099,12 +12259,187 @@ Defined in: [lib/command.ts:85](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12099
12259
|
|
|
12100
12260
|
> `optional` **title?**: `string`
|
|
12101
12261
|
|
|
12102
|
-
Defined in: [lib/command.ts:
|
|
12262
|
+
Defined in: [lib/command/types.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L64)
|
|
12103
12263
|
|
|
12104
12264
|
#### Inherited from
|
|
12105
12265
|
|
|
12106
12266
|
[`IMetadata`](IMetadata.md).[`title`](IMetadata.md#title)
|
|
12107
12267
|
|
|
12268
|
+
lib/command/interfaces/IFileChunk.md
|
|
12269
|
+
---
|
|
12270
|
+
|
|
12271
|
+
[**Documents for clickgo**](../../../index.md)
|
|
12272
|
+
|
|
12273
|
+
***
|
|
12274
|
+
|
|
12275
|
+
[Documents for clickgo](../../../index.md) / [lib/command](../index.md) / IFileChunk
|
|
12276
|
+
|
|
12277
|
+
# Interface: IFileChunk
|
|
12278
|
+
|
|
12279
|
+
Defined in: [lib/command/file.ts:48](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L48)
|
|
12280
|
+
|
|
12281
|
+
每段携带同一份快照信息,便于客户端校验文件及交付状态
|
|
12282
|
+
|
|
12283
|
+
## Properties
|
|
12284
|
+
|
|
12285
|
+
### data
|
|
12286
|
+
|
|
12287
|
+
> **data**: `string`
|
|
12288
|
+
|
|
12289
|
+
Defined in: [lib/command/file.ts:53](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L53)
|
|
12290
|
+
|
|
12291
|
+
***
|
|
12292
|
+
|
|
12293
|
+
### encoding
|
|
12294
|
+
|
|
12295
|
+
> **encoding**: `"base64"`
|
|
12296
|
+
|
|
12297
|
+
Defined in: [lib/command/file.ts:52](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L52)
|
|
12298
|
+
|
|
12299
|
+
***
|
|
12300
|
+
|
|
12301
|
+
### file
|
|
12302
|
+
|
|
12303
|
+
> **file**: [`IFileInfo`](IFileInfo.md)
|
|
12304
|
+
|
|
12305
|
+
Defined in: [lib/command/file.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L49)
|
|
12306
|
+
|
|
12307
|
+
***
|
|
12308
|
+
|
|
12309
|
+
### nextOffset
|
|
12310
|
+
|
|
12311
|
+
> **nextOffset**: `number` \| `null`
|
|
12312
|
+
|
|
12313
|
+
Defined in: [lib/command/file.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L51)
|
|
12314
|
+
|
|
12315
|
+
***
|
|
12316
|
+
|
|
12317
|
+
### offset
|
|
12318
|
+
|
|
12319
|
+
> **offset**: `number`
|
|
12320
|
+
|
|
12321
|
+
Defined in: [lib/command/file.ts:50](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L50)
|
|
12322
|
+
|
|
12323
|
+
lib/command/interfaces/IFileInfo.md
|
|
12324
|
+
---
|
|
12325
|
+
|
|
12326
|
+
[**Documents for clickgo**](../../../index.md)
|
|
12327
|
+
|
|
12328
|
+
***
|
|
12329
|
+
|
|
12330
|
+
[Documents for clickgo](../../../index.md) / [lib/command](../index.md) / IFileInfo
|
|
12331
|
+
|
|
12332
|
+
# Interface: IFileInfo
|
|
12333
|
+
|
|
12334
|
+
Defined in: [lib/command/file.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L28)
|
|
12335
|
+
|
|
12336
|
+
文件快照元数据;时间为 Unix 毫秒,URI 仅在所属页面生命周期内有效
|
|
12337
|
+
|
|
12338
|
+
## Properties
|
|
12339
|
+
|
|
12340
|
+
### byteLength
|
|
12341
|
+
|
|
12342
|
+
> **byteLength**: `number`
|
|
12343
|
+
|
|
12344
|
+
Defined in: [lib/command/file.ts:32](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L32)
|
|
12345
|
+
|
|
12346
|
+
***
|
|
12347
|
+
|
|
12348
|
+
### createdAt
|
|
12349
|
+
|
|
12350
|
+
> **createdAt**: `number`
|
|
12351
|
+
|
|
12352
|
+
Defined in: [lib/command/file.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L33)
|
|
12353
|
+
|
|
12354
|
+
***
|
|
12355
|
+
|
|
12356
|
+
### expiresAt
|
|
12357
|
+
|
|
12358
|
+
> **expiresAt**: `number`
|
|
12359
|
+
|
|
12360
|
+
Defined in: [lib/command/file.ts:34](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L34)
|
|
12361
|
+
|
|
12362
|
+
***
|
|
12363
|
+
|
|
12364
|
+
### fileId
|
|
12365
|
+
|
|
12366
|
+
> **fileId**: `string`
|
|
12367
|
+
|
|
12368
|
+
Defined in: [lib/command/file.ts:29](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L29)
|
|
12369
|
+
|
|
12370
|
+
***
|
|
12371
|
+
|
|
12372
|
+
### fileName
|
|
12373
|
+
|
|
12374
|
+
> **fileName**: `string`
|
|
12375
|
+
|
|
12376
|
+
Defined in: [lib/command/file.ts:30](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L30)
|
|
12377
|
+
|
|
12378
|
+
***
|
|
12379
|
+
|
|
12380
|
+
### mimeType
|
|
12381
|
+
|
|
12382
|
+
> **mimeType**: `string`
|
|
12383
|
+
|
|
12384
|
+
Defined in: [lib/command/file.ts:31](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L31)
|
|
12385
|
+
|
|
12386
|
+
***
|
|
12387
|
+
|
|
12388
|
+
### readChunkSize
|
|
12389
|
+
|
|
12390
|
+
> **readChunkSize**: `number`
|
|
12391
|
+
|
|
12392
|
+
Defined in: [lib/command/file.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L37)
|
|
12393
|
+
|
|
12394
|
+
***
|
|
12395
|
+
|
|
12396
|
+
### readCommand
|
|
12397
|
+
|
|
12398
|
+
> **readCommand**: `string`
|
|
12399
|
+
|
|
12400
|
+
Defined in: [lib/command/file.ts:36](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L36)
|
|
12401
|
+
|
|
12402
|
+
***
|
|
12403
|
+
|
|
12404
|
+
### uri
|
|
12405
|
+
|
|
12406
|
+
> **uri**: `string`
|
|
12407
|
+
|
|
12408
|
+
Defined in: [lib/command/file.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L35)
|
|
12409
|
+
|
|
12410
|
+
lib/command/interfaces/IFileOptions.md
|
|
12411
|
+
---
|
|
12412
|
+
|
|
12413
|
+
[**Documents for clickgo**](../../../index.md)
|
|
12414
|
+
|
|
12415
|
+
***
|
|
12416
|
+
|
|
12417
|
+
[Documents for clickgo](../../../index.md) / [lib/command](../index.md) / IFileOptions
|
|
12418
|
+
|
|
12419
|
+
# Interface: IFileOptions
|
|
12420
|
+
|
|
12421
|
+
Defined in: [lib/command/file.ts:21](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L21)
|
|
12422
|
+
|
|
12423
|
+
发布的是已生成 Blob,不读取路径、不上传或重新生成文件
|
|
12424
|
+
|
|
12425
|
+
## Properties
|
|
12426
|
+
|
|
12427
|
+
### fileName
|
|
12428
|
+
|
|
12429
|
+
> **fileName**: `string`
|
|
12430
|
+
|
|
12431
|
+
Defined in: [lib/command/file.ts:22](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L22)
|
|
12432
|
+
|
|
12433
|
+
***
|
|
12434
|
+
|
|
12435
|
+
### mimeType?
|
|
12436
|
+
|
|
12437
|
+
> `optional` **mimeType?**: `string`
|
|
12438
|
+
|
|
12439
|
+
Defined in: [lib/command/file.ts:24](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L24)
|
|
12440
|
+
|
|
12441
|
+
默认使用 Blob.type;为空时使用 application/octet-stream
|
|
12442
|
+
|
|
12108
12443
|
lib/command/interfaces/IInfo.md
|
|
12109
12444
|
---
|
|
12110
12445
|
|
|
@@ -12116,7 +12451,7 @@ lib/command/interfaces/IInfo.md
|
|
|
12116
12451
|
|
|
12117
12452
|
# Interface: IInfo
|
|
12118
12453
|
|
|
12119
|
-
Defined in: [lib/command.ts:
|
|
12454
|
+
Defined in: [lib/command/types.ts:94](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L94)
|
|
12120
12455
|
|
|
12121
12456
|
不包含函数或内部对象的独立快照
|
|
12122
12457
|
|
|
@@ -12130,7 +12465,7 @@ Defined in: [lib/command.ts:92](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12130
12465
|
|
|
12131
12466
|
> `optional` **annotations?**: `object`
|
|
12132
12467
|
|
|
12133
|
-
Defined in: [lib/command.ts:
|
|
12468
|
+
Defined in: [lib/command/types.ts:69](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L69)
|
|
12134
12469
|
|
|
12135
12470
|
行为说明,不代替校验或授权
|
|
12136
12471
|
|
|
@@ -12170,7 +12505,7 @@ WebMCP 的重要或不可逆现实效果说明
|
|
|
12170
12505
|
|
|
12171
12506
|
> **description**: `string`
|
|
12172
12507
|
|
|
12173
|
-
Defined in: [lib/command.ts:
|
|
12508
|
+
Defined in: [lib/command/types.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L65)
|
|
12174
12509
|
|
|
12175
12510
|
#### Inherited from
|
|
12176
12511
|
|
|
@@ -12182,7 +12517,7 @@ Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12182
12517
|
|
|
12183
12518
|
> **disabledReason**: `string`
|
|
12184
12519
|
|
|
12185
|
-
Defined in: [lib/command.ts:
|
|
12520
|
+
Defined in: [lib/command/types.ts:100](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L100)
|
|
12186
12521
|
|
|
12187
12522
|
***
|
|
12188
12523
|
|
|
@@ -12190,7 +12525,7 @@ Defined in: [lib/command.ts:98](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12190
12525
|
|
|
12191
12526
|
> **enabled**: `boolean`
|
|
12192
12527
|
|
|
12193
|
-
Defined in: [lib/command.ts:
|
|
12528
|
+
Defined in: [lib/command/types.ts:99](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L99)
|
|
12194
12529
|
|
|
12195
12530
|
***
|
|
12196
12531
|
|
|
@@ -12198,7 +12533,7 @@ Defined in: [lib/command.ts:97](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12198
12533
|
|
|
12199
12534
|
> **exposed**: `boolean`
|
|
12200
12535
|
|
|
12201
|
-
Defined in: [lib/command.ts:
|
|
12536
|
+
Defined in: [lib/command/types.ts:98](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L98)
|
|
12202
12537
|
|
|
12203
12538
|
***
|
|
12204
12539
|
|
|
@@ -12206,7 +12541,7 @@ Defined in: [lib/command.ts:96](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12206
12541
|
|
|
12207
12542
|
> **formId**: `string`
|
|
12208
12543
|
|
|
12209
|
-
Defined in: [lib/command.ts:
|
|
12544
|
+
Defined in: [lib/command/types.ts:96](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L96)
|
|
12210
12545
|
|
|
12211
12546
|
***
|
|
12212
12547
|
|
|
@@ -12214,7 +12549,7 @@ Defined in: [lib/command.ts:94](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12214
12549
|
|
|
12215
12550
|
> **inputSchema**: [`ISchema`](ISchema.md) & `object`
|
|
12216
12551
|
|
|
12217
|
-
Defined in: [lib/command.ts:
|
|
12552
|
+
Defined in: [lib/command/types.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L66)
|
|
12218
12553
|
|
|
12219
12554
|
#### Type Declaration
|
|
12220
12555
|
|
|
@@ -12232,7 +12567,7 @@ Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12232
12567
|
|
|
12233
12568
|
> **name**: `string`
|
|
12234
12569
|
|
|
12235
|
-
Defined in: [lib/command.ts:
|
|
12570
|
+
Defined in: [lib/command/types.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L63)
|
|
12236
12571
|
|
|
12237
12572
|
#### Inherited from
|
|
12238
12573
|
|
|
@@ -12244,7 +12579,7 @@ Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12244
12579
|
|
|
12245
12580
|
> `optional` **outputSchema?**: [`ISchema`](ISchema.md)
|
|
12246
12581
|
|
|
12247
|
-
Defined in: [lib/command.ts:
|
|
12582
|
+
Defined in: [lib/command/types.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L67)
|
|
12248
12583
|
|
|
12249
12584
|
#### Inherited from
|
|
12250
12585
|
|
|
@@ -12256,7 +12591,7 @@ Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12256
12591
|
|
|
12257
12592
|
> **panelId**: `string`
|
|
12258
12593
|
|
|
12259
|
-
Defined in: [lib/command.ts:
|
|
12594
|
+
Defined in: [lib/command/types.ts:97](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L97)
|
|
12260
12595
|
|
|
12261
12596
|
***
|
|
12262
12597
|
|
|
@@ -12264,7 +12599,7 @@ Defined in: [lib/command.ts:95](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12264
12599
|
|
|
12265
12600
|
> **running**: `number`
|
|
12266
12601
|
|
|
12267
|
-
Defined in: [lib/command.ts:
|
|
12602
|
+
Defined in: [lib/command/types.ts:101](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L101)
|
|
12268
12603
|
|
|
12269
12604
|
***
|
|
12270
12605
|
|
|
@@ -12272,7 +12607,7 @@ Defined in: [lib/command.ts:99](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12272
12607
|
|
|
12273
12608
|
> **taskId**: `string`
|
|
12274
12609
|
|
|
12275
|
-
Defined in: [lib/command.ts:
|
|
12610
|
+
Defined in: [lib/command/types.ts:95](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L95)
|
|
12276
12611
|
|
|
12277
12612
|
***
|
|
12278
12613
|
|
|
@@ -12280,7 +12615,7 @@ Defined in: [lib/command.ts:93](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12280
12615
|
|
|
12281
12616
|
> `optional` **title?**: `string`
|
|
12282
12617
|
|
|
12283
|
-
Defined in: [lib/command.ts:
|
|
12618
|
+
Defined in: [lib/command/types.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L64)
|
|
12284
12619
|
|
|
12285
12620
|
#### Inherited from
|
|
12286
12621
|
|
|
@@ -12297,7 +12632,7 @@ lib/command/interfaces/IMetadata.md
|
|
|
12297
12632
|
|
|
12298
12633
|
# Interface: IMetadata
|
|
12299
12634
|
|
|
12300
|
-
Defined in: [lib/command.ts:
|
|
12635
|
+
Defined in: [lib/command/types.ts:62](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L62)
|
|
12301
12636
|
|
|
12302
12637
|
与 MCP 工具描述对齐的公开命令元数据
|
|
12303
12638
|
|
|
@@ -12312,7 +12647,7 @@ Defined in: [lib/command.ts:60](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12312
12647
|
|
|
12313
12648
|
> `optional` **annotations?**: `object`
|
|
12314
12649
|
|
|
12315
|
-
Defined in: [lib/command.ts:
|
|
12650
|
+
Defined in: [lib/command/types.ts:69](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L69)
|
|
12316
12651
|
|
|
12317
12652
|
行为说明,不代替校验或授权
|
|
12318
12653
|
|
|
@@ -12348,7 +12683,7 @@ WebMCP 的重要或不可逆现实效果说明
|
|
|
12348
12683
|
|
|
12349
12684
|
> **description**: `string`
|
|
12350
12685
|
|
|
12351
|
-
Defined in: [lib/command.ts:
|
|
12686
|
+
Defined in: [lib/command/types.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L65)
|
|
12352
12687
|
|
|
12353
12688
|
***
|
|
12354
12689
|
|
|
@@ -12356,7 +12691,7 @@ Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12356
12691
|
|
|
12357
12692
|
> **inputSchema**: [`ISchema`](ISchema.md) & `object`
|
|
12358
12693
|
|
|
12359
|
-
Defined in: [lib/command.ts:
|
|
12694
|
+
Defined in: [lib/command/types.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L66)
|
|
12360
12695
|
|
|
12361
12696
|
#### Type Declaration
|
|
12362
12697
|
|
|
@@ -12370,7 +12705,7 @@ Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12370
12705
|
|
|
12371
12706
|
> **name**: `string`
|
|
12372
12707
|
|
|
12373
|
-
Defined in: [lib/command.ts:
|
|
12708
|
+
Defined in: [lib/command/types.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L63)
|
|
12374
12709
|
|
|
12375
12710
|
***
|
|
12376
12711
|
|
|
@@ -12378,7 +12713,7 @@ Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12378
12713
|
|
|
12379
12714
|
> `optional` **outputSchema?**: [`ISchema`](ISchema.md)
|
|
12380
12715
|
|
|
12381
|
-
Defined in: [lib/command.ts:
|
|
12716
|
+
Defined in: [lib/command/types.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L67)
|
|
12382
12717
|
|
|
12383
12718
|
***
|
|
12384
12719
|
|
|
@@ -12386,7 +12721,7 @@ Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12386
12721
|
|
|
12387
12722
|
> `optional` **title?**: `string`
|
|
12388
12723
|
|
|
12389
|
-
Defined in: [lib/command.ts:
|
|
12724
|
+
Defined in: [lib/command/types.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L64)
|
|
12390
12725
|
|
|
12391
12726
|
lib/command/interfaces/IPageBridge.md
|
|
12392
12727
|
---
|
|
@@ -12399,7 +12734,7 @@ lib/command/interfaces/IPageBridge.md
|
|
|
12399
12734
|
|
|
12400
12735
|
# Interface: IPageBridge
|
|
12401
12736
|
|
|
12402
|
-
Defined in: [lib/command.ts:
|
|
12737
|
+
Defined in: [lib/command/types.ts:112](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L112)
|
|
12403
12738
|
|
|
12404
12739
|
框架向网页发布的统一入口;按任务选择应用,只访问明确公开的命令
|
|
12405
12740
|
|
|
@@ -12409,7 +12744,7 @@ Defined in: [lib/command.ts:110](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
12409
12744
|
|
|
12410
12745
|
> **execute**: (`taskId`, `name`, `args?`, `options?`) => `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
|
|
12411
12746
|
|
|
12412
|
-
Defined in: [lib/command.ts:
|
|
12747
|
+
Defined in: [lib/command/types.ts:117](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L117)
|
|
12413
12748
|
|
|
12414
12749
|
#### Parameters
|
|
12415
12750
|
|
|
@@ -12441,7 +12776,7 @@ Defined in: [lib/command.ts:115](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
12441
12776
|
|
|
12442
12777
|
> **getAgentGuide**: (`taskId?`) => `Promise`\<`string` \| `false` \| `null`\>
|
|
12443
12778
|
|
|
12444
|
-
Defined in: [lib/command.ts:
|
|
12779
|
+
Defined in: [lib/command/types.ts:114](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L114)
|
|
12445
12780
|
|
|
12446
12781
|
#### Parameters
|
|
12447
12782
|
|
|
@@ -12459,7 +12794,7 @@ Defined in: [lib/command.ts:112](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
12459
12794
|
|
|
12460
12795
|
> **getAgentInfo**: (`taskId?`) => `Promise`\<`false` \| [`IAgentInfo`](IAgentInfo.md) \| `null`\>
|
|
12461
12796
|
|
|
12462
|
-
Defined in: [lib/command.ts:
|
|
12797
|
+
Defined in: [lib/command/types.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L113)
|
|
12463
12798
|
|
|
12464
12799
|
#### Parameters
|
|
12465
12800
|
|
|
@@ -12477,7 +12812,7 @@ Defined in: [lib/command.ts:111](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
12477
12812
|
|
|
12478
12813
|
> **list**: (`taskId`) => [`IInfo`](IInfo.md)[]
|
|
12479
12814
|
|
|
12480
|
-
Defined in: [lib/command.ts:
|
|
12815
|
+
Defined in: [lib/command/types.ts:116](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L116)
|
|
12481
12816
|
|
|
12482
12817
|
#### Parameters
|
|
12483
12818
|
|
|
@@ -12495,7 +12830,7 @@ Defined in: [lib/command.ts:114](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
12495
12830
|
|
|
12496
12831
|
> **listTasks**: () => `object`[]
|
|
12497
12832
|
|
|
12498
|
-
Defined in: [lib/command.ts:
|
|
12833
|
+
Defined in: [lib/command/types.ts:115](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L115)
|
|
12499
12834
|
|
|
12500
12835
|
#### Returns
|
|
12501
12836
|
|
|
@@ -12512,7 +12847,7 @@ lib/command/interfaces/ISchema.md
|
|
|
12512
12847
|
|
|
12513
12848
|
# Interface: ISchema
|
|
12514
12849
|
|
|
12515
|
-
Defined in: [lib/command.ts:
|
|
12850
|
+
Defined in: [lib/command/types.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L9)
|
|
12516
12851
|
|
|
12517
12852
|
JSON Schema 2020-12 的命令校验子集;不支持的关键字在注册时拒绝
|
|
12518
12853
|
|
|
@@ -12522,7 +12857,7 @@ JSON Schema 2020-12 的命令校验子集;不支持的关键字在注册时拒
|
|
|
12522
12857
|
|
|
12523
12858
|
> `optional` **$defs?**: `Record`\<`string`, `boolean` \| `ISchema`\>
|
|
12524
12859
|
|
|
12525
|
-
Defined in: [lib/command.ts:
|
|
12860
|
+
Defined in: [lib/command/types.ts:12](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L12)
|
|
12526
12861
|
|
|
12527
12862
|
***
|
|
12528
12863
|
|
|
@@ -12530,7 +12865,7 @@ Defined in: [lib/command.ts:18](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12530
12865
|
|
|
12531
12866
|
> `optional` **$ref?**: `string`
|
|
12532
12867
|
|
|
12533
|
-
Defined in: [lib/command.ts:
|
|
12868
|
+
Defined in: [lib/command/types.ts:11](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L11)
|
|
12534
12869
|
|
|
12535
12870
|
***
|
|
12536
12871
|
|
|
@@ -12538,7 +12873,7 @@ Defined in: [lib/command.ts:17](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12538
12873
|
|
|
12539
12874
|
> `optional` **$schema?**: `string`
|
|
12540
12875
|
|
|
12541
|
-
Defined in: [lib/command.ts:
|
|
12876
|
+
Defined in: [lib/command/types.ts:10](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L10)
|
|
12542
12877
|
|
|
12543
12878
|
***
|
|
12544
12879
|
|
|
@@ -12546,7 +12881,7 @@ Defined in: [lib/command.ts:16](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12546
12881
|
|
|
12547
12882
|
> `optional` **additionalProperties?**: `boolean` \| `ISchema`
|
|
12548
12883
|
|
|
12549
|
-
Defined in: [lib/command.ts:
|
|
12884
|
+
Defined in: [lib/command/types.ts:20](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L20)
|
|
12550
12885
|
|
|
12551
12886
|
***
|
|
12552
12887
|
|
|
@@ -12554,7 +12889,7 @@ Defined in: [lib/command.ts:26](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12554
12889
|
|
|
12555
12890
|
> `optional` **allOf?**: (`boolean` \| `ISchema`)[]
|
|
12556
12891
|
|
|
12557
|
-
Defined in: [lib/command.ts:
|
|
12892
|
+
Defined in: [lib/command/types.ts:34](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L34)
|
|
12558
12893
|
|
|
12559
12894
|
***
|
|
12560
12895
|
|
|
@@ -12562,7 +12897,7 @@ Defined in: [lib/command.ts:40](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12562
12897
|
|
|
12563
12898
|
> `optional` **anyOf?**: (`boolean` \| `ISchema`)[]
|
|
12564
12899
|
|
|
12565
|
-
Defined in: [lib/command.ts:
|
|
12900
|
+
Defined in: [lib/command/types.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L35)
|
|
12566
12901
|
|
|
12567
12902
|
***
|
|
12568
12903
|
|
|
@@ -12570,7 +12905,7 @@ Defined in: [lib/command.ts:41](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12570
12905
|
|
|
12571
12906
|
> `optional` **const?**: [`TJson`](../../tool/type-aliases/TJson.md)
|
|
12572
12907
|
|
|
12573
|
-
Defined in: [lib/command.ts:
|
|
12908
|
+
Defined in: [lib/command/types.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L33)
|
|
12574
12909
|
|
|
12575
12910
|
***
|
|
12576
12911
|
|
|
@@ -12578,7 +12913,7 @@ Defined in: [lib/command.ts:39](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12578
12913
|
|
|
12579
12914
|
> `optional` **default?**: [`TJson`](../../tool/type-aliases/TJson.md)
|
|
12580
12915
|
|
|
12581
|
-
Defined in: [lib/command.ts:
|
|
12916
|
+
Defined in: [lib/command/types.ts:15](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L15)
|
|
12582
12917
|
|
|
12583
12918
|
***
|
|
12584
12919
|
|
|
@@ -12586,7 +12921,7 @@ Defined in: [lib/command.ts:21](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12586
12921
|
|
|
12587
12922
|
> `optional` **description?**: `string`
|
|
12588
12923
|
|
|
12589
|
-
Defined in: [lib/command.ts:
|
|
12924
|
+
Defined in: [lib/command/types.ts:14](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L14)
|
|
12590
12925
|
|
|
12591
12926
|
***
|
|
12592
12927
|
|
|
@@ -12594,7 +12929,7 @@ Defined in: [lib/command.ts:20](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12594
12929
|
|
|
12595
12930
|
> `optional` **enum?**: [`TJson`](../../tool/type-aliases/TJson.md)[]
|
|
12596
12931
|
|
|
12597
|
-
Defined in: [lib/command.ts:
|
|
12932
|
+
Defined in: [lib/command/types.ts:32](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L32)
|
|
12598
12933
|
|
|
12599
12934
|
***
|
|
12600
12935
|
|
|
@@ -12602,7 +12937,7 @@ Defined in: [lib/command.ts:38](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12602
12937
|
|
|
12603
12938
|
> `optional` **examples?**: [`TJson`](../../tool/type-aliases/TJson.md)[]
|
|
12604
12939
|
|
|
12605
|
-
Defined in: [lib/command.ts:
|
|
12940
|
+
Defined in: [lib/command/types.ts:16](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L16)
|
|
12606
12941
|
|
|
12607
12942
|
***
|
|
12608
12943
|
|
|
@@ -12610,7 +12945,7 @@ Defined in: [lib/command.ts:22](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12610
12945
|
|
|
12611
12946
|
> `optional` **exclusiveMaximum?**: `number`
|
|
12612
12947
|
|
|
12613
|
-
Defined in: [lib/command.ts:
|
|
12948
|
+
Defined in: [lib/command/types.ts:31](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L31)
|
|
12614
12949
|
|
|
12615
12950
|
***
|
|
12616
12951
|
|
|
@@ -12618,7 +12953,7 @@ Defined in: [lib/command.ts:37](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12618
12953
|
|
|
12619
12954
|
> `optional` **exclusiveMinimum?**: `number`
|
|
12620
12955
|
|
|
12621
|
-
Defined in: [lib/command.ts:
|
|
12956
|
+
Defined in: [lib/command/types.ts:30](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L30)
|
|
12622
12957
|
|
|
12623
12958
|
***
|
|
12624
12959
|
|
|
@@ -12626,7 +12961,7 @@ Defined in: [lib/command.ts:36](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12626
12961
|
|
|
12627
12962
|
> `optional` **items?**: `boolean` \| `ISchema`
|
|
12628
12963
|
|
|
12629
|
-
Defined in: [lib/command.ts:
|
|
12964
|
+
Defined in: [lib/command/types.ts:21](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L21)
|
|
12630
12965
|
|
|
12631
12966
|
***
|
|
12632
12967
|
|
|
@@ -12634,7 +12969,7 @@ Defined in: [lib/command.ts:27](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12634
12969
|
|
|
12635
12970
|
> `optional` **maximum?**: `number`
|
|
12636
12971
|
|
|
12637
|
-
Defined in: [lib/command.ts:
|
|
12972
|
+
Defined in: [lib/command/types.ts:29](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L29)
|
|
12638
12973
|
|
|
12639
12974
|
***
|
|
12640
12975
|
|
|
@@ -12642,7 +12977,7 @@ Defined in: [lib/command.ts:35](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12642
12977
|
|
|
12643
12978
|
> `optional` **maxItems?**: `number`
|
|
12644
12979
|
|
|
12645
|
-
Defined in: [lib/command.ts:
|
|
12980
|
+
Defined in: [lib/command/types.ts:23](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L23)
|
|
12646
12981
|
|
|
12647
12982
|
***
|
|
12648
12983
|
|
|
@@ -12650,7 +12985,7 @@ Defined in: [lib/command.ts:29](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12650
12985
|
|
|
12651
12986
|
> `optional` **maxLength?**: `number`
|
|
12652
12987
|
|
|
12653
|
-
Defined in: [lib/command.ts:
|
|
12988
|
+
Defined in: [lib/command/types.ts:26](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L26)
|
|
12654
12989
|
|
|
12655
12990
|
***
|
|
12656
12991
|
|
|
@@ -12658,7 +12993,7 @@ Defined in: [lib/command.ts:32](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12658
12993
|
|
|
12659
12994
|
> `optional` **minimum?**: `number`
|
|
12660
12995
|
|
|
12661
|
-
Defined in: [lib/command.ts:
|
|
12996
|
+
Defined in: [lib/command/types.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L28)
|
|
12662
12997
|
|
|
12663
12998
|
***
|
|
12664
12999
|
|
|
@@ -12666,7 +13001,7 @@ Defined in: [lib/command.ts:34](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12666
13001
|
|
|
12667
13002
|
> `optional` **minItems?**: `number`
|
|
12668
13003
|
|
|
12669
|
-
Defined in: [lib/command.ts:
|
|
13004
|
+
Defined in: [lib/command/types.ts:22](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L22)
|
|
12670
13005
|
|
|
12671
13006
|
***
|
|
12672
13007
|
|
|
@@ -12674,7 +13009,7 @@ Defined in: [lib/command.ts:28](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12674
13009
|
|
|
12675
13010
|
> `optional` **minLength?**: `number`
|
|
12676
13011
|
|
|
12677
|
-
Defined in: [lib/command.ts:
|
|
13012
|
+
Defined in: [lib/command/types.ts:25](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L25)
|
|
12678
13013
|
|
|
12679
13014
|
***
|
|
12680
13015
|
|
|
@@ -12682,7 +13017,7 @@ Defined in: [lib/command.ts:31](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12682
13017
|
|
|
12683
13018
|
> `optional` **not?**: `boolean` \| `ISchema`
|
|
12684
13019
|
|
|
12685
|
-
Defined in: [lib/command.ts:
|
|
13020
|
+
Defined in: [lib/command/types.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L37)
|
|
12686
13021
|
|
|
12687
13022
|
***
|
|
12688
13023
|
|
|
@@ -12690,7 +13025,7 @@ Defined in: [lib/command.ts:43](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12690
13025
|
|
|
12691
13026
|
> `optional` **oneOf?**: (`boolean` \| `ISchema`)[]
|
|
12692
13027
|
|
|
12693
|
-
Defined in: [lib/command.ts:
|
|
13028
|
+
Defined in: [lib/command/types.ts:36](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L36)
|
|
12694
13029
|
|
|
12695
13030
|
***
|
|
12696
13031
|
|
|
@@ -12698,7 +13033,7 @@ Defined in: [lib/command.ts:42](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12698
13033
|
|
|
12699
13034
|
> `optional` **pattern?**: `string`
|
|
12700
13035
|
|
|
12701
|
-
Defined in: [lib/command.ts:
|
|
13036
|
+
Defined in: [lib/command/types.ts:27](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L27)
|
|
12702
13037
|
|
|
12703
13038
|
***
|
|
12704
13039
|
|
|
@@ -12706,7 +13041,7 @@ Defined in: [lib/command.ts:33](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12706
13041
|
|
|
12707
13042
|
> `optional` **properties?**: `Record`\<`string`, `boolean` \| `ISchema`\>
|
|
12708
13043
|
|
|
12709
|
-
Defined in: [lib/command.ts:
|
|
13044
|
+
Defined in: [lib/command/types.ts:18](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L18)
|
|
12710
13045
|
|
|
12711
13046
|
***
|
|
12712
13047
|
|
|
@@ -12714,7 +13049,7 @@ Defined in: [lib/command.ts:24](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12714
13049
|
|
|
12715
13050
|
> `optional` **required?**: `string`[]
|
|
12716
13051
|
|
|
12717
|
-
Defined in: [lib/command.ts:
|
|
13052
|
+
Defined in: [lib/command/types.ts:19](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L19)
|
|
12718
13053
|
|
|
12719
13054
|
***
|
|
12720
13055
|
|
|
@@ -12722,7 +13057,7 @@ Defined in: [lib/command.ts:25](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12722
13057
|
|
|
12723
13058
|
> `optional` **title?**: `string`
|
|
12724
13059
|
|
|
12725
|
-
Defined in: [lib/command.ts:
|
|
13060
|
+
Defined in: [lib/command/types.ts:13](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L13)
|
|
12726
13061
|
|
|
12727
13062
|
***
|
|
12728
13063
|
|
|
@@ -12730,7 +13065,7 @@ Defined in: [lib/command.ts:19](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12730
13065
|
|
|
12731
13066
|
> `optional` **type?**: `"string"` \| `"number"` \| `"boolean"` \| `"object"` \| `"array"` \| `"integer"` \| `"null"`
|
|
12732
13067
|
|
|
12733
|
-
Defined in: [lib/command.ts:
|
|
13068
|
+
Defined in: [lib/command/types.ts:17](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L17)
|
|
12734
13069
|
|
|
12735
13070
|
***
|
|
12736
13071
|
|
|
@@ -12738,7 +13073,7 @@ Defined in: [lib/command.ts:23](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
12738
13073
|
|
|
12739
13074
|
> `optional` **uniqueItems?**: `boolean`
|
|
12740
13075
|
|
|
12741
|
-
Defined in: [lib/command.ts:
|
|
13076
|
+
Defined in: [lib/command/types.ts:24](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L24)
|
|
12742
13077
|
|
|
12743
13078
|
lib/command/type-aliases/TJson.md
|
|
12744
13079
|
---
|
|
@@ -12753,7 +13088,7 @@ lib/command/type-aliases/TJson.md
|
|
|
12753
13088
|
|
|
12754
13089
|
> **TJson** = [`TJson`](../../tool/type-aliases/TJson.md)
|
|
12755
13090
|
|
|
12756
|
-
Defined in: [lib/command.ts:
|
|
13091
|
+
Defined in: [lib/command/types.ts:6](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L6)
|
|
12757
13092
|
|
|
12758
13093
|
命令输入与输出可跨浏览器、Native 和协议传输的 JSON 值
|
|
12759
13094
|
|
|
@@ -12768,9 +13103,9 @@ lib/command/type-aliases/TResult.md
|
|
|
12768
13103
|
|
|
12769
13104
|
# Type Alias: TResult\<T\>
|
|
12770
13105
|
|
|
12771
|
-
> **TResult**\<`T`\> = \{ `data`: `T`; `ok`: `true`; \} \| \{ `error`: \{ `code`: `string`; `message`: `string`; \}; `ok`: `false`; \}
|
|
13106
|
+
> **TResult**\<`T`\> = \{ `data`: `T`; `files?`: [`IFileInfo`](../interfaces/IFileInfo.md)[]; `ok`: `true`; \} \| \{ `error`: \{ `code`: `string`; `message`: `string`; \}; `ok`: `false`; \}
|
|
12772
13107
|
|
|
12773
|
-
Defined in: [lib/command.ts:
|
|
13108
|
+
Defined in: [lib/command/types.ts:41](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L41)
|
|
12774
13109
|
|
|
12775
13110
|
所有入口共用的结果;错误码用于程序判断,message 用于说明
|
|
12776
13111
|
|
|
@@ -12793,7 +13128,7 @@ lib/command/type-aliases/TWebMcpRegistrationStatus.md
|
|
|
12793
13128
|
|
|
12794
13129
|
> **TWebMcpRegistrationStatus** = `"idle"` \| `"registering"` \| `"ready"` \| `"failed"`
|
|
12795
13130
|
|
|
12796
|
-
Defined in: [lib/command.ts:
|
|
13131
|
+
Defined in: [lib/command/types.ts:131](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L131)
|
|
12797
13132
|
|
|
12798
13133
|
工具发布诊断状态,不参与页面级接入事件
|
|
12799
13134
|
|
|
@@ -12810,7 +13145,7 @@ lib/command/type-aliases/TWebMcpStatus.md
|
|
|
12810
13145
|
|
|
12811
13146
|
> **TWebMcpStatus** = `"unsupported"` \| `"ready"`
|
|
12812
13147
|
|
|
12813
|
-
Defined in: [lib/command.ts:
|
|
13148
|
+
Defined in: [lib/command/types.ts:128](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L128)
|
|
12814
13149
|
|
|
12815
13150
|
页面级 WebMCP 接入状态;ready 表示浏览器接口可用,不表示某个 App 的工具已发布
|
|
12816
13151
|
|
|
@@ -13821,8 +14156,8 @@ lib/control/index.md
|
|
|
13821
14156
|
- [INavItemSelectEvent](interfaces/INavItemSelectEvent.md)
|
|
13822
14157
|
- [INumberBeforeChangeEvent](interfaces/INumberBeforeChangeEvent.md)
|
|
13823
14158
|
- [INumberMinMaxChangeEvent](interfaces/INumberMinMaxChangeEvent.md)
|
|
13824
|
-
- [
|
|
13825
|
-
- [
|
|
14159
|
+
- [IObjviewerEdge](interfaces/IObjviewerEdge.md)
|
|
14160
|
+
- [IObjviewerSelectEvent](interfaces/IObjviewerSelectEvent.md)
|
|
13826
14161
|
- [IPaletteChangedEvent](interfaces/IPaletteChangedEvent.md)
|
|
13827
14162
|
- [IPanelGoEvent](interfaces/IPanelGoEvent.md)
|
|
13828
14163
|
- [IPanelWentEvent](interfaces/IPanelWentEvent.md)
|
|
@@ -13858,6 +14193,7 @@ lib/control/index.md
|
|
|
13858
14193
|
- [TControlPackage](type-aliases/TControlPackage.md)
|
|
13859
14194
|
- [TDesktopLayoutReason](type-aliases/TDesktopLayoutReason.md)
|
|
13860
14195
|
- [TDesktopPositions](type-aliases/TDesktopPositions.md)
|
|
14196
|
+
- [TObjviewerStatus](type-aliases/TObjviewerStatus.md)
|
|
13861
14197
|
|
|
13862
14198
|
## Functions
|
|
13863
14199
|
|
|
@@ -16411,101 +16747,125 @@ Defined in: [lib/control.ts:971](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
16411
16747
|
|
|
16412
16748
|
[`ICustomEvent`](ICustomEvent.md).[`preventDefault`](ICustomEvent.md#preventdefault)
|
|
16413
16749
|
|
|
16414
|
-
lib/control/interfaces/
|
|
16750
|
+
lib/control/interfaces/IObjviewerEdge.md
|
|
16415
16751
|
---
|
|
16416
16752
|
|
|
16417
16753
|
[**Documents for clickgo**](../../../index.md)
|
|
16418
16754
|
|
|
16419
16755
|
***
|
|
16420
16756
|
|
|
16421
|
-
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) /
|
|
16757
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IObjviewerEdge
|
|
16422
16758
|
|
|
16423
|
-
# Interface:
|
|
16759
|
+
# Interface: IObjviewerEdge
|
|
16424
16760
|
|
|
16425
|
-
Defined in: [lib/control.ts:
|
|
16761
|
+
Defined in: [lib/control.ts:1741](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1741)
|
|
16762
|
+
|
|
16763
|
+
按稳定节点 ID 声明的连接,节点暂不存在时不绘制,不保存 DOM 引用
|
|
16426
16764
|
|
|
16427
16765
|
## Properties
|
|
16428
16766
|
|
|
16429
|
-
###
|
|
16767
|
+
### animation?
|
|
16430
16768
|
|
|
16431
|
-
> **
|
|
16769
|
+
> `optional` **animation?**: `"none"` \| `"dash"` \| `"dots"`
|
|
16432
16770
|
|
|
16433
|
-
Defined in: [lib/control.ts:
|
|
16771
|
+
Defined in: [lib/control.ts:1748](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1748)
|
|
16772
|
+
|
|
16773
|
+
默认 none,dash 为流动虚线,dots 为静止底线上的移动圆点
|
|
16434
16774
|
|
|
16435
16775
|
***
|
|
16436
16776
|
|
|
16437
|
-
###
|
|
16777
|
+
### direction?
|
|
16438
16778
|
|
|
16439
|
-
> `optional` **
|
|
16779
|
+
> `optional` **direction?**: `"reverse"` \| `"forward"` \| `"both"`
|
|
16440
16780
|
|
|
16441
|
-
Defined in: [lib/control.ts:
|
|
16781
|
+
Defined in: [lib/control.ts:1750](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1750)
|
|
16442
16782
|
|
|
16443
|
-
默认
|
|
16783
|
+
默认 forward,沿 source 到 target;reverse 反向,both 双向
|
|
16444
16784
|
|
|
16445
16785
|
***
|
|
16446
16786
|
|
|
16447
|
-
###
|
|
16787
|
+
### dotCount?
|
|
16448
16788
|
|
|
16449
|
-
> `optional` **
|
|
16789
|
+
> `optional` **dotCount?**: `number`
|
|
16450
16790
|
|
|
16451
|
-
Defined in: [lib/control.ts:
|
|
16791
|
+
Defined in: [lib/control.ts:1754](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1754)
|
|
16452
16792
|
|
|
16453
|
-
|
|
16793
|
+
dots 模式每个方向的圆点数,默认 3,取整并限制为 1–8
|
|
16454
16794
|
|
|
16455
16795
|
***
|
|
16456
16796
|
|
|
16457
|
-
###
|
|
16797
|
+
### duration?
|
|
16458
16798
|
|
|
16459
|
-
> `optional` **
|
|
16799
|
+
> `optional` **duration?**: `number`
|
|
16800
|
+
|
|
16801
|
+
Defined in: [lib/control.ts:1752](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1752)
|
|
16802
|
+
|
|
16803
|
+
动画周期,单位秒,默认 3,限制为 0.25–60;dots 为走完整条路径的时间
|
|
16804
|
+
|
|
16805
|
+
***
|
|
16806
|
+
|
|
16807
|
+
### label?
|
|
16808
|
+
|
|
16809
|
+
> `optional` **label?**: `string`
|
|
16460
16810
|
|
|
16461
16811
|
Defined in: [lib/control.ts:1744](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1744)
|
|
16462
16812
|
|
|
16463
16813
|
***
|
|
16464
16814
|
|
|
16465
|
-
###
|
|
16815
|
+
### source
|
|
16466
16816
|
|
|
16467
|
-
> **
|
|
16817
|
+
> **source**: `string`
|
|
16468
16818
|
|
|
16469
|
-
Defined in: [lib/control.ts:
|
|
16819
|
+
Defined in: [lib/control.ts:1742](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1742)
|
|
16470
16820
|
|
|
16471
16821
|
***
|
|
16472
16822
|
|
|
16473
|
-
###
|
|
16823
|
+
### status?
|
|
16474
16824
|
|
|
16475
|
-
> `optional` **
|
|
16825
|
+
> `optional` **status?**: [`TObjviewerStatus`](../type-aliases/TObjviewerStatus.md)
|
|
16476
16826
|
|
|
16477
16827
|
Defined in: [lib/control.ts:1746](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1746)
|
|
16478
16828
|
|
|
16479
|
-
默认
|
|
16829
|
+
默认 default,连接状态由应用明确提供
|
|
16830
|
+
|
|
16831
|
+
***
|
|
16480
16832
|
|
|
16481
|
-
|
|
16833
|
+
### target
|
|
16834
|
+
|
|
16835
|
+
> **target**: `string`
|
|
16836
|
+
|
|
16837
|
+
Defined in: [lib/control.ts:1743](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1743)
|
|
16838
|
+
|
|
16839
|
+
lib/control/interfaces/IObjviewerSelectEvent.md
|
|
16482
16840
|
---
|
|
16483
16841
|
|
|
16484
16842
|
[**Documents for clickgo**](../../../index.md)
|
|
16485
16843
|
|
|
16486
16844
|
***
|
|
16487
16845
|
|
|
16488
|
-
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) /
|
|
16846
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IObjviewerSelectEvent
|
|
16847
|
+
|
|
16848
|
+
# Interface: IObjviewerSelectEvent
|
|
16489
16849
|
|
|
16490
|
-
|
|
16850
|
+
Defined in: [lib/control.ts:1758](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1758)
|
|
16491
16851
|
|
|
16492
|
-
|
|
16852
|
+
节点选择事件,仅通知选择,不在控件内执行业务跳转
|
|
16493
16853
|
|
|
16494
16854
|
## Properties
|
|
16495
16855
|
|
|
16496
|
-
###
|
|
16856
|
+
### detail
|
|
16497
16857
|
|
|
16498
|
-
> **
|
|
16858
|
+
> **detail**: `object`
|
|
16499
16859
|
|
|
16500
|
-
Defined in: [lib/control.ts:
|
|
16860
|
+
Defined in: [lib/control.ts:1759](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1759)
|
|
16501
16861
|
|
|
16502
|
-
|
|
16862
|
+
#### label
|
|
16503
16863
|
|
|
16504
|
-
|
|
16864
|
+
> **label**: `string`
|
|
16505
16865
|
|
|
16506
|
-
|
|
16866
|
+
#### nodeId
|
|
16507
16867
|
|
|
16508
|
-
|
|
16868
|
+
> **nodeId**: `string`
|
|
16509
16869
|
|
|
16510
16870
|
lib/control/interfaces/IPaletteChangedEvent.md
|
|
16511
16871
|
---
|
|
@@ -18011,6 +18371,23 @@ Defined in: [lib/control.ts:1321](https://github.com/maiyun/clickgo/blob/master/
|
|
|
18011
18371
|
|
|
18012
18372
|
图标 ID 到位置的映射,可独立保存和恢复
|
|
18013
18373
|
|
|
18374
|
+
lib/control/type-aliases/TObjviewerStatus.md
|
|
18375
|
+
---
|
|
18376
|
+
|
|
18377
|
+
[**Documents for clickgo**](../../../index.md)
|
|
18378
|
+
|
|
18379
|
+
***
|
|
18380
|
+
|
|
18381
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / TObjviewerStatus
|
|
18382
|
+
|
|
18383
|
+
# Type Alias: TObjviewerStatus
|
|
18384
|
+
|
|
18385
|
+
> **TObjviewerStatus** = `"default"` \| `"online"` \| `"warning"` \| `"offline"`
|
|
18386
|
+
|
|
18387
|
+
Defined in: [lib/control.ts:1738](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1738)
|
|
18388
|
+
|
|
18389
|
+
节点和连接的语义状态,不依赖主题的具体颜色
|
|
18390
|
+
|
|
18014
18391
|
lib/core/classes/AbstractApp.md
|
|
18015
18392
|
---
|
|
18016
18393
|
|
|
@@ -21560,7 +21937,7 @@ Defined in: [lib/dom.ts:1910](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
21560
21937
|
|
|
21561
21938
|
### pos
|
|
21562
21939
|
|
|
21563
|
-
`"b"` \| `"tr"` \| `"l"` \| `"
|
|
21940
|
+
`"b"` \| `"tr"` \| `"l"` \| `"rb"` \| `"lt"` \| `"t"` \| `"r"` \| `"bl"`
|
|
21564
21941
|
|
|
21565
21942
|
## Returns
|
|
21566
21943
|
|
|
@@ -31443,7 +31820,7 @@ lib/native/functions/activate.md
|
|
|
31443
31820
|
|
|
31444
31821
|
> **activate**(`current`): `Promise`\<`boolean`\>
|
|
31445
31822
|
|
|
31446
|
-
Defined in: [lib/native.ts:
|
|
31823
|
+
Defined in: [lib/native.ts:445](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L445)
|
|
31447
31824
|
|
|
31448
31825
|
## Parameters
|
|
31449
31826
|
|
|
@@ -31499,7 +31876,7 @@ lib/native/functions/clear.md
|
|
|
31499
31876
|
|
|
31500
31877
|
> **clear**(`taskId`, `formId?`): `void`
|
|
31501
31878
|
|
|
31502
|
-
Defined in: [lib/native.ts:
|
|
31879
|
+
Defined in: [lib/native.ts:288](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L288)
|
|
31503
31880
|
|
|
31504
31881
|
清除某个窗体或某个任务的所有事件监听
|
|
31505
31882
|
|
|
@@ -31534,7 +31911,7 @@ lib/native/functions/close.md
|
|
|
31534
31911
|
|
|
31535
31912
|
> **close**(`current`): `Promise`\<`boolean`\>
|
|
31536
31913
|
|
|
31537
|
-
Defined in: [lib/native.ts:
|
|
31914
|
+
Defined in: [lib/native.ts:457](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L457)
|
|
31538
31915
|
|
|
31539
31916
|
关闭当前 native 真实窗体,根据配置整个 native 任务可能结束也可能保留 node 不结束
|
|
31540
31917
|
|
|
@@ -31563,7 +31940,7 @@ lib/native/functions/dialog.md
|
|
|
31563
31940
|
|
|
31564
31941
|
> **dialog**(`options?`): `Promise`\<`number`\>
|
|
31565
31942
|
|
|
31566
|
-
Defined in: [lib/native.ts:
|
|
31943
|
+
Defined in: [lib/native.ts:524](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L524)
|
|
31567
31944
|
|
|
31568
31945
|
弹出消息框
|
|
31569
31946
|
|
|
@@ -31625,7 +32002,7 @@ lib/native/functions/getCommandEntry.md
|
|
|
31625
32002
|
|
|
31626
32003
|
> **getCommandEntry**(): `Promise`\<[`ICommandEntry`](../interfaces/ICommandEntry.md) \| `null`\>
|
|
31627
32004
|
|
|
31628
|
-
Defined in: [lib/native.ts:
|
|
32005
|
+
Defined in: [lib/native.ts:161](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L161)
|
|
31629
32006
|
|
|
31630
32007
|
取得软件自身的 CLI/stdio 入口和启动要求,无需读取连接凭据
|
|
31631
32008
|
|
|
@@ -31648,7 +32025,7 @@ lib/native/functions/getListenerList.md
|
|
|
31648
32025
|
|
|
31649
32026
|
> **getListenerList**(`taskId?`): `Record`\<`string`, `Record`\<`string`, `Record`\<`string`, `number`\>\>\>
|
|
31650
32027
|
|
|
31651
|
-
Defined in: [lib/native.ts:
|
|
32028
|
+
Defined in: [lib/native.ts:311](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L311)
|
|
31652
32029
|
|
|
31653
32030
|
获取监听 native 事件的监听统计信息列表
|
|
31654
32031
|
|
|
@@ -31677,7 +32054,7 @@ lib/native/functions/getMcpInfo.md
|
|
|
31677
32054
|
|
|
31678
32055
|
> **getMcpInfo**(`current`): `Promise`\<`false` \| [`IMcpInfo`](../interfaces/IMcpInfo.md) \| `null`\>
|
|
31679
32056
|
|
|
31680
|
-
Defined in: [lib/native.ts:
|
|
32057
|
+
Defined in: [lib/native.ts:170](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L170)
|
|
31681
32058
|
|
|
31682
32059
|
读取 Native 主进程启用的 MCP 连接设置
|
|
31683
32060
|
|
|
@@ -31739,7 +32116,7 @@ lib/native/functions/init.md
|
|
|
31739
32116
|
|
|
31740
32117
|
> **init**(): `void`
|
|
31741
32118
|
|
|
31742
|
-
Defined in: [lib/native.ts:
|
|
32119
|
+
Defined in: [lib/native.ts:555](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L555)
|
|
31743
32120
|
|
|
31744
32121
|
## Returns
|
|
31745
32122
|
|
|
@@ -31818,7 +32195,7 @@ lib/native/functions/invoke.md
|
|
|
31818
32195
|
|
|
31819
32196
|
> **invoke**(`name`, ...`param`): `Promise`\<`any`\>
|
|
31820
32197
|
|
|
31821
|
-
Defined in: [lib/native.ts:
|
|
32198
|
+
Defined in: [lib/native.ts:352](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L352)
|
|
31822
32199
|
|
|
31823
32200
|
向 native 发送指令
|
|
31824
32201
|
|
|
@@ -31853,7 +32230,7 @@ lib/native/functions/invokeSys.md
|
|
|
31853
32230
|
|
|
31854
32231
|
> **invokeSys**(`current`, `name`, ...`param`): `Promise`\<`any`\>
|
|
31855
32232
|
|
|
31856
|
-
Defined in: [lib/native.ts:
|
|
32233
|
+
Defined in: [lib/native.ts:365](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L365)
|
|
31857
32234
|
|
|
31858
32235
|
向 native 发送指令(系统级)
|
|
31859
32236
|
|
|
@@ -31931,7 +32308,7 @@ lib/native/functions/isMax.md
|
|
|
31931
32308
|
|
|
31932
32309
|
> **isMax**(): `Promise`\<`boolean`\>
|
|
31933
32310
|
|
|
31934
|
-
Defined in: [lib/native.ts:
|
|
32311
|
+
Defined in: [lib/native.ts:548](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L548)
|
|
31935
32312
|
|
|
31936
32313
|
判断窗体是否是最大化状态
|
|
31937
32314
|
|
|
@@ -31952,7 +32329,7 @@ lib/native/functions/maximizable.md
|
|
|
31952
32329
|
|
|
31953
32330
|
> **maximizable**(`current`, `val`): `Promise`\<`boolean`\>
|
|
31954
32331
|
|
|
31955
|
-
Defined in: [lib/native.ts:
|
|
32332
|
+
Defined in: [lib/native.ts:465](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L465)
|
|
31956
32333
|
|
|
31957
32334
|
## Parameters
|
|
31958
32335
|
|
|
@@ -31981,7 +32358,7 @@ lib/native/functions/max.md
|
|
|
31981
32358
|
|
|
31982
32359
|
> **max**(`current`): `Promise`\<`boolean`\>
|
|
31983
32360
|
|
|
31984
|
-
Defined in: [lib/native.ts:
|
|
32361
|
+
Defined in: [lib/native.ts:411](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L411)
|
|
31985
32362
|
|
|
31986
32363
|
## Parameters
|
|
31987
32364
|
|
|
@@ -32006,7 +32383,7 @@ lib/native/functions/min.md
|
|
|
32006
32383
|
|
|
32007
32384
|
> **min**(`current`): `Promise`\<`boolean`\>
|
|
32008
32385
|
|
|
32009
|
-
Defined in: [lib/native.ts:
|
|
32386
|
+
Defined in: [lib/native.ts:419](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L419)
|
|
32010
32387
|
|
|
32011
32388
|
## Parameters
|
|
32012
32389
|
|
|
@@ -32031,7 +32408,7 @@ lib/native/functions/minSize.md
|
|
|
32031
32408
|
|
|
32032
32409
|
> **minSize**(`current`, `width`, `height`): `Promise`\<`boolean`\>
|
|
32033
32410
|
|
|
32034
|
-
Defined in: [lib/native.ts:
|
|
32411
|
+
Defined in: [lib/native.ts:400](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L400)
|
|
32035
32412
|
|
|
32036
32413
|
设置实体窗体的最小尺寸,0 表示不限制对应方向
|
|
32037
32414
|
|
|
@@ -32072,7 +32449,7 @@ lib/native/functions/off.md
|
|
|
32072
32449
|
|
|
32073
32450
|
> **off**(`current`, `name`, `formId?`): `void`
|
|
32074
32451
|
|
|
32075
|
-
Defined in: [lib/native.ts:
|
|
32452
|
+
Defined in: [lib/native.ts:269](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L269)
|
|
32076
32453
|
|
|
32077
32454
|
解绑监听的方法
|
|
32078
32455
|
|
|
@@ -32113,7 +32490,7 @@ lib/native/functions/once.md
|
|
|
32113
32490
|
|
|
32114
32491
|
> **once**(`current`, `name`, `handler`, `formId?`): `void`
|
|
32115
32492
|
|
|
32116
|
-
Defined in: [lib/native.ts:
|
|
32493
|
+
Defined in: [lib/native.ts:254](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L254)
|
|
32117
32494
|
|
|
32118
32495
|
监听 native 传输过来的事件(仅一次)
|
|
32119
32496
|
|
|
@@ -32160,7 +32537,7 @@ lib/native/functions/on.md
|
|
|
32160
32537
|
|
|
32161
32538
|
> **on**(`current`, `name`, `handler`, `once?`, `formId?`): `void`
|
|
32162
32539
|
|
|
32163
|
-
Defined in: [lib/native.ts:
|
|
32540
|
+
Defined in: [lib/native.ts:225](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L225)
|
|
32164
32541
|
|
|
32165
32542
|
监听 native 传输过来的事件
|
|
32166
32543
|
|
|
@@ -32250,7 +32627,7 @@ lib/native/functions/open.md
|
|
|
32250
32627
|
|
|
32251
32628
|
> **open**(`options?`): `Promise`\<`string`[] \| `null`\>
|
|
32252
32629
|
|
|
32253
|
-
Defined in: [lib/native.ts:
|
|
32630
|
+
Defined in: [lib/native.ts:480](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L480)
|
|
32254
32631
|
|
|
32255
32632
|
弹出文件选择框
|
|
32256
32633
|
|
|
@@ -32313,7 +32690,7 @@ lib/native/functions/ping.md
|
|
|
32313
32690
|
|
|
32314
32691
|
> **ping**(`val`): `Promise`\<`string`\>
|
|
32315
32692
|
|
|
32316
|
-
Defined in: [lib/native.ts:
|
|
32693
|
+
Defined in: [lib/native.ts:541](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L541)
|
|
32317
32694
|
|
|
32318
32695
|
测试与 native 的连通性
|
|
32319
32696
|
|
|
@@ -32344,7 +32721,7 @@ lib/native/functions/quit.md
|
|
|
32344
32721
|
|
|
32345
32722
|
> **quit**(`current`): `Promise`\<`boolean`\>
|
|
32346
32723
|
|
|
32347
|
-
Defined in: [lib/native.ts:
|
|
32724
|
+
Defined in: [lib/native.ts:378](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L378)
|
|
32348
32725
|
|
|
32349
32726
|
直接让整个 native 进程退出
|
|
32350
32727
|
|
|
@@ -32404,7 +32781,7 @@ lib/native/functions/restore.md
|
|
|
32404
32781
|
|
|
32405
32782
|
> **restore**(`current`): `Promise`\<`boolean`\>
|
|
32406
32783
|
|
|
32407
|
-
Defined in: [lib/native.ts:
|
|
32784
|
+
Defined in: [lib/native.ts:437](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L437)
|
|
32408
32785
|
|
|
32409
32786
|
从最小化还原
|
|
32410
32787
|
|
|
@@ -32431,7 +32808,7 @@ lib/native/functions/save.md
|
|
|
32431
32808
|
|
|
32432
32809
|
> **save**(`options?`): `Promise`\<`string` \| `null`\>
|
|
32433
32810
|
|
|
32434
|
-
Defined in: [lib/native.ts:
|
|
32811
|
+
Defined in: [lib/native.ts:506](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L506)
|
|
32435
32812
|
|
|
32436
32813
|
弹出文件保存框
|
|
32437
32814
|
|
|
@@ -32472,7 +32849,7 @@ lib/native/functions/size.md
|
|
|
32472
32849
|
|
|
32473
32850
|
> **size**(`current`, `width`, `height`): `Promise`\<`boolean`\>
|
|
32474
32851
|
|
|
32475
|
-
Defined in: [lib/native.ts:
|
|
32852
|
+
Defined in: [lib/native.ts:386](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L386)
|
|
32476
32853
|
|
|
32477
32854
|
## Parameters
|
|
32478
32855
|
|
|
@@ -32505,7 +32882,7 @@ lib/native/functions/unmaximize.md
|
|
|
32505
32882
|
|
|
32506
32883
|
> **unmaximize**(`current`): `Promise`\<`boolean`\>
|
|
32507
32884
|
|
|
32508
|
-
Defined in: [lib/native.ts:
|
|
32885
|
+
Defined in: [lib/native.ts:428](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L428)
|
|
32509
32886
|
|
|
32510
32887
|
从最大化还原
|
|
32511
32888
|
|
|
@@ -32595,7 +32972,7 @@ lib/native/interfaces/ICommandEntry.md
|
|
|
32595
32972
|
|
|
32596
32973
|
# Interface: ICommandEntry
|
|
32597
32974
|
|
|
32598
|
-
Defined in: [lib/native.ts:
|
|
32975
|
+
Defined in: [lib/native.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L148)
|
|
32599
32976
|
|
|
32600
32977
|
当前 Native 的公开进程入口,不包含 HTTP 连接凭据
|
|
32601
32978
|
|
|
@@ -32605,7 +32982,7 @@ Defined in: [lib/native.ts:146](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32605
32982
|
|
|
32606
32983
|
> **args**: `string`[]
|
|
32607
32984
|
|
|
32608
|
-
Defined in: [lib/native.ts:
|
|
32985
|
+
Defined in: [lib/native.ts:152](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L152)
|
|
32609
32986
|
|
|
32610
32987
|
***
|
|
32611
32988
|
|
|
@@ -32613,7 +32990,7 @@ Defined in: [lib/native.ts:150](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32613
32990
|
|
|
32614
32991
|
> **command**: `string`
|
|
32615
32992
|
|
|
32616
|
-
Defined in: [lib/native.ts:
|
|
32993
|
+
Defined in: [lib/native.ts:151](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L151)
|
|
32617
32994
|
|
|
32618
32995
|
***
|
|
32619
32996
|
|
|
@@ -32621,7 +32998,7 @@ Defined in: [lib/native.ts:149](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32621
32998
|
|
|
32622
32999
|
> **mcp**: `object`
|
|
32623
33000
|
|
|
32624
|
-
Defined in: [lib/native.ts:
|
|
33001
|
+
Defined in: [lib/native.ts:154](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L154)
|
|
32625
33002
|
|
|
32626
33003
|
#### discovery
|
|
32627
33004
|
|
|
@@ -32637,7 +33014,7 @@ Defined in: [lib/native.ts:152](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32637
33014
|
|
|
32638
33015
|
> **name**: `string`
|
|
32639
33016
|
|
|
32640
|
-
Defined in: [lib/native.ts:
|
|
33017
|
+
Defined in: [lib/native.ts:149](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L149)
|
|
32641
33018
|
|
|
32642
33019
|
***
|
|
32643
33020
|
|
|
@@ -32645,7 +33022,7 @@ Defined in: [lib/native.ts:147](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32645
33022
|
|
|
32646
33023
|
> **platform**: `string`
|
|
32647
33024
|
|
|
32648
|
-
Defined in: [lib/native.ts:
|
|
33025
|
+
Defined in: [lib/native.ts:150](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L150)
|
|
32649
33026
|
|
|
32650
33027
|
***
|
|
32651
33028
|
|
|
@@ -32653,7 +33030,7 @@ Defined in: [lib/native.ts:148](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32653
33030
|
|
|
32654
33031
|
> **startup**: `"auto"` \| `"existing"`
|
|
32655
33032
|
|
|
32656
|
-
Defined in: [lib/native.ts:
|
|
33033
|
+
Defined in: [lib/native.ts:153](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L153)
|
|
32657
33034
|
|
|
32658
33035
|
lib/native/interfaces/IMcpInfo.md
|
|
32659
33036
|
---
|
|
@@ -32666,7 +33043,7 @@ lib/native/interfaces/IMcpInfo.md
|
|
|
32666
33043
|
|
|
32667
33044
|
# Interface: IMcpInfo
|
|
32668
33045
|
|
|
32669
|
-
Defined in: [lib/native.ts:
|
|
33046
|
+
Defined in: [lib/native.ts:141](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L141)
|
|
32670
33047
|
|
|
32671
33048
|
本地 MCP 客户端连接设置;仅向已授权 root 的 App 提供
|
|
32672
33049
|
|
|
@@ -32676,7 +33053,7 @@ Defined in: [lib/native.ts:139](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32676
33053
|
|
|
32677
33054
|
> **token**: `string`
|
|
32678
33055
|
|
|
32679
|
-
Defined in: [lib/native.ts:
|
|
33056
|
+
Defined in: [lib/native.ts:144](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L144)
|
|
32680
33057
|
|
|
32681
33058
|
***
|
|
32682
33059
|
|
|
@@ -32684,7 +33061,7 @@ Defined in: [lib/native.ts:142](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32684
33061
|
|
|
32685
33062
|
> **transport**: `"streamable-http"`
|
|
32686
33063
|
|
|
32687
|
-
Defined in: [lib/native.ts:
|
|
33064
|
+
Defined in: [lib/native.ts:142](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L142)
|
|
32688
33065
|
|
|
32689
33066
|
***
|
|
32690
33067
|
|
|
@@ -32692,7 +33069,7 @@ Defined in: [lib/native.ts:140](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
32692
33069
|
|
|
32693
33070
|
> **url**: `string`
|
|
32694
33071
|
|
|
32695
|
-
Defined in: [lib/native.ts:
|
|
33072
|
+
Defined in: [lib/native.ts:143](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L143)
|
|
32696
33073
|
|
|
32697
33074
|
lib/native/interfaces/INativeLaunchEvent.md
|
|
32698
33075
|
---
|