clickgo 7.3.1 → 7.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 命令变化或发布失败不触发该事件。`connectWebMcp(this)` 仅用于显式重试工具发布,失败返回 false;`disconnectWebMcp(this)` 撤销当前 App 工具,不改变页面状态,之后注册公开命令仍会自动发布。WebMCP 不支持或发布失败时,网页 JS 入口仍可使用。
283
+ 界面先读一次快照,再通过事件更新,无需轮询。事件不回放历史,App 命令变化或发布失败不触发该事件。
284
+
285
+ 公开命令注册或移除时框架自动同步,通常无需调用 `connectWebMcp(this)`。仅在发布失败需重试、主动撤销后需恢复,或浏览器稍后才提供 WebMCP 接口时调用;同一浏览器接口下保留已发布工具,只补齐缺失项,不重置 App 的命令或业务状态。发布失败返回 false。
286
+
287
+ `disconnectWebMcp(this)` 撤销当前 App 工具,不改变页面状态,之后注册公开命令仍会自动发布。WebMCP 不支持或发布失败时,网页 JS 入口仍可使用。
256
288
 
257
289
  ## 自动生成 AI 接入说明
258
290
 
@@ -7535,6 +7567,14 @@ Enter/Space 请求切换一次展开状态;忽略持续按住时的重复事
7535
7567
 
7536
7568
  禁用可点击项,默认 `false`;禁用时不参与 Tab 导航、不触发 `click`。
7537
7569
 
7570
+ ### 事件
7571
+
7572
+ #### tap
7573
+
7574
+ `(event: MouseEvent | KeyboardEvent): void`
7575
+
7576
+ 可点击项通过鼠标点击、Enter 按下或 Space 释放时触发,参数为原始事件。应用模板使用 `@click` 绑定,框架内部对应 `tap`;普通项或禁用项不触发。
7577
+
7538
7578
  ### 示例
7539
7579
 
7540
7580
  ```xml
@@ -10978,7 +11018,7 @@ lib/command/functions/clear.md
10978
11018
 
10979
11019
  > **clear**(`current`): `void`
10980
11020
 
10981
- Defined in: [lib/command.ts:332](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L332)
11021
+ Defined in: [lib/command.ts:89](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L89)
10982
11022
 
10983
11023
  清理所属 Panel、Form 或整个任务的命令
10984
11024
 
@@ -11009,7 +11049,7 @@ lib/command/functions/clearOwner.md
11009
11049
 
11010
11050
  > **clearOwner**(`taskId`, `formId?`, `panelId?`): `void`
11011
11051
 
11012
- Defined in: [lib/command.ts:345](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L345)
11052
+ Defined in: [lib/command.ts:101](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L101)
11013
11053
 
11014
11054
  **`Internal`**
11015
11055
 
@@ -11054,9 +11094,12 @@ lib/command/functions/connectWebMcp.md
11054
11094
 
11055
11095
  > **connectWebMcp**(`current`): `Promise`\<`boolean`\>
11056
11096
 
11057
- Defined in: [lib/command.ts:618](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L618)
11097
+ Defined in: [lib/command.ts:195](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L195)
11058
11098
 
11059
- 显式重同步或重试当前 App 的工具发布;页面接入由框架自动管理
11099
+ 手动将当前 App 已公开的命令发布到浏览器 WebMCP
11100
+ 公开命令注册或移除时框架自动同步,通常无需调用。
11101
+ 仅在发布失败需重试、主动撤销后需恢复,或浏览器稍后才提供 WebMCP 接口时调用。
11102
+ 同一浏览器接口下保留已发布工具,只补齐缺失项;不重置 App 的命令或业务状态。
11060
11103
 
11061
11104
  ## Parameters
11062
11105
 
@@ -11070,7 +11113,7 @@ Defined in: [lib/command.ts:618](https://github.com/maiyun/clickgo/blob/master/d
11070
11113
 
11071
11114
  `Promise`\<`boolean`\>
11072
11115
 
11073
- 是否同步成功;浏览器不支持、App 已退出或注册失败时返回 false
11116
+ 是否发布成功;浏览器不支持、App 已退出、发布中途撤销或注册失败时返回 false
11074
11117
 
11075
11118
  lib/command/functions/createBridge.md
11076
11119
  ---
@@ -11085,7 +11128,7 @@ lib/command/functions/createBridge.md
11085
11128
 
11086
11129
  > **createBridge**(`current`): [`IBridge`](../interfaces/IBridge.md)
11087
11130
 
11088
- Defined in: [lib/command.ts:557](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L557)
11131
+ Defined in: [lib/command.ts:175](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L175)
11089
11132
 
11090
11133
  创建绑定单个 App 的可复用代理接口,调用方无需反复传入 taskId
11091
11134
 
@@ -11116,7 +11159,7 @@ lib/command/functions/createPageBridge.md
11116
11159
 
11117
11160
  > **createPageBridge**(): [`IPageBridge`](../interfaces/IPageBridge.md)
11118
11161
 
11119
- Defined in: [lib/command.ts:571](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L571)
11162
+ Defined in: [lib/command.ts:183](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L183)
11120
11163
 
11121
11164
  网页入口直接读取框架的任务及命令状态,无需应用或宿主重复发布与清理
11122
11165
 
@@ -11139,7 +11182,7 @@ lib/command/functions/disconnectWebMcp.md
11139
11182
 
11140
11183
  > **disconnectWebMcp**(`current`): `void`
11141
11184
 
11142
- Defined in: [lib/command.ts:628](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L628)
11185
+ Defined in: [lib/command.ts:204](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L204)
11143
11186
 
11144
11187
  撤销当前 App 的 WebMCP 工具;不改变页面级接入状态,下次公开命令注册时自动发布
11145
11188
 
@@ -11168,9 +11211,9 @@ lib/command/functions/executeAgent.md
11168
11211
 
11169
11212
  # Function: executeAgent()
11170
11213
 
11171
- > **executeAgent**(`taskId`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
11214
+ > **executeAgent**(`taskId`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)\>
11172
11215
 
11173
- Defined in: [lib/command.ts:547](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L547)
11216
+ Defined in: [lib/command.ts:165](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L165)
11174
11217
 
11175
11218
  代理直接按 taskId 执行公开命令,与界面共用校验和业务执行器
11176
11219
 
@@ -11204,7 +11247,7 @@ Defined in: [lib/command.ts:547](https://github.com/maiyun/clickgo/blob/master/d
11204
11247
 
11205
11248
  ## Returns
11206
11249
 
11207
- `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
11250
+ `Promise`\<[`TResult`](../type-aliases/TResult.md)\>
11208
11251
 
11209
11252
  结构化结果;未公开或不存在的命令返回 not-found
11210
11253
 
@@ -11219,9 +11262,9 @@ lib/command/functions/execute.md
11219
11262
 
11220
11263
  # Function: execute()
11221
11264
 
11222
- > **execute**(`current`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
11265
+ > **execute**(`current`, `name`, `args?`, `options?`): `Promise`\<[`TResult`](../type-aliases/TResult.md)\>
11223
11266
 
11224
- Defined in: [lib/command.ts:534](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L534)
11267
+ Defined in: [lib/command.ts:152](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L152)
11225
11268
 
11226
11269
  应用界面直接执行已注册的业务命令
11227
11270
 
@@ -11255,7 +11298,7 @@ Defined in: [lib/command.ts:534](https://github.com/maiyun/clickgo/blob/master/d
11255
11298
 
11256
11299
  ## Returns
11257
11300
 
11258
- `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
11301
+ `Promise`\<[`TResult`](../type-aliases/TResult.md)\>
11259
11302
 
11260
11303
  业务结果
11261
11304
 
@@ -11272,7 +11315,7 @@ lib/command/functions/failure.md
11272
11315
 
11273
11316
  > **failure**(`code`, `message`): [`TResult`](../type-aliases/TResult.md)\<`never`\>
11274
11317
 
11275
- Defined in: [lib/command.ts:203](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L203)
11318
+ Defined in: [lib/command.ts:48](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L48)
11276
11319
 
11277
11320
  构造业务失败结果,不抛异常
11278
11321
 
@@ -11309,7 +11352,7 @@ lib/command/functions/getAgentGuide.md
11309
11352
 
11310
11353
  > **getAgentGuide**(`current?`, `options?`): `Promise`\<`string` \| `false` \| `null`\>
11311
11354
 
11312
- Defined in: [lib/command.ts:446](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L446)
11355
+ Defined in: [lib/command.ts:139](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L139)
11313
11356
 
11314
11357
  生成简短英文接入说明,不嵌入临时 App ID;代理通过接口实时发现
11315
11358
 
@@ -11346,7 +11389,7 @@ lib/command/functions/getAgentInfo.md
11346
11389
 
11347
11390
  > **getAgentInfo**(`current?`, `options?`): `Promise`\<`false` \| [`IAgentInfo`](../interfaces/IAgentInfo.md) \| `null`\>
11348
11391
 
11349
- Defined in: [lib/command.ts:399](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L399)
11392
+ Defined in: [lib/command.ts:128](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L128)
11350
11393
 
11351
11394
  获取当前环境的统一接入信息,不另行维护命令清单或启用服务
11352
11395
 
@@ -11383,7 +11426,7 @@ lib/command/functions/init.md
11383
11426
 
11384
11427
  > **init**(): `void`
11385
11428
 
11386
- Defined in: [lib/command.ts:184](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L184)
11429
+ Defined in: [lib/command.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L28)
11387
11430
 
11388
11431
  初始化页面级 WebMCP 接入状态,由框架在执行 Boot.main 前自动调用
11389
11432
 
@@ -11406,7 +11449,7 @@ lib/command/functions/list.md
11406
11449
 
11407
11450
  > **list**(`current`): [`IInfo`](../interfaces/IInfo.md)[]
11408
11451
 
11409
- Defined in: [lib/command.ts:362](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L362)
11452
+ Defined in: [lib/command.ts:110](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L110)
11410
11453
 
11411
11454
  获取独立元数据和当前状态,不导出业务函数
11412
11455
 
@@ -11437,7 +11480,7 @@ lib/command/functions/listTasks.md
11437
11480
 
11438
11481
  > **listTasks**(): `object`[]
11439
11482
 
11440
- Defined in: [lib/command.ts:386](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L386)
11483
+ Defined in: [lib/command.ts:118](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L118)
11441
11484
 
11442
11485
  获取仍可调用的 App 标识与名称,供网页及 Native 代理发现目标
11443
11486
 
@@ -11460,7 +11503,7 @@ lib/command/functions/register.md
11460
11503
 
11461
11504
  > **register**\<`T`\>(`current`, `definition`): `boolean`
11462
11505
 
11463
- Defined in: [lib/command.ts:254](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L254)
11506
+ Defined in: [lib/command.ts:68](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L68)
11464
11507
 
11465
11508
  注册命令;重复名称、不支持的 schema 或已销毁的实例返回 false
11466
11509
 
@@ -11490,6 +11533,43 @@ Defined in: [lib/command.ts:254](https://github.com/maiyun/clickgo/blob/master/d
11490
11533
 
11491
11534
  是否注册成功
11492
11535
 
11536
+ lib/command/functions/releaseFile.md
11537
+ ---
11538
+
11539
+ [**Documents for clickgo**](../../../index.md)
11540
+
11541
+ ***
11542
+
11543
+ [Documents for clickgo](../../../index.md) / [lib/command](../index.md) / releaseFile
11544
+
11545
+ # Function: releaseFile()
11546
+
11547
+ > **releaseFile**(`current`, `fileId`): `boolean`
11548
+
11549
+ Defined in: [lib/command.ts:58](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L58)
11550
+
11551
+ 主动释放旧导出的缓存,释放后代理不能继续读取;不删除磁盘文件
11552
+
11553
+ ## Parameters
11554
+
11555
+ ### current
11556
+
11557
+ [`TCurrent`](../../core/type-aliases/TCurrent.md)
11558
+
11559
+ 文件所属的 App/Form/Panel,Form/Panel 只能释放自身范围
11560
+
11561
+ ### fileId
11562
+
11563
+ `string`
11564
+
11565
+ 先前交付的文件标识
11566
+
11567
+ ## Returns
11568
+
11569
+ `boolean`
11570
+
11571
+ 是否找到并释放,已释放或不属于当前范围为 false
11572
+
11493
11573
  lib/command/functions/showPalette.md
11494
11574
  ---
11495
11575
 
@@ -11540,9 +11620,9 @@ lib/command/functions/success.md
11540
11620
 
11541
11621
  # Function: success()
11542
11622
 
11543
- > **success**\<`T`\>(`data`): [`TResult`](../type-aliases/TResult.md)\<`T`\>
11623
+ > **success**\<`T`\>(`data`, `files?`): [`TResult`](../type-aliases/TResult.md)\<`T`\>
11544
11624
 
11545
- Defined in: [lib/command.ts:193](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L193)
11625
+ Defined in: [lib/command.ts:38](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L38)
11546
11626
 
11547
11627
  构造成功结果
11548
11628
 
@@ -11560,6 +11640,12 @@ Defined in: [lib/command.ts:193](https://github.com/maiyun/clickgo/blob/master/d
11560
11640
 
11561
11641
  可跨入口传输的 JSON 数据
11562
11642
 
11643
+ ### files?
11644
+
11645
+ [`IFileInfo`](../interfaces/IFileInfo.md)[]
11646
+
11647
+ 本次命令明确交付的框架文件,可省略;不能传入其他 App 的文件
11648
+
11563
11649
  ## Returns
11564
11650
 
11565
11651
  [`TResult`](../type-aliases/TResult.md)\<`T`\>
@@ -11579,7 +11665,7 @@ lib/command/functions/unregister.md
11579
11665
 
11580
11666
  > **unregister**(`current`, `name`): `boolean`
11581
11667
 
11582
- Defined in: [lib/command.ts:307](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L307)
11668
+ Defined in: [lib/command.ts:80](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L80)
11583
11669
 
11584
11670
  取消尚在执行的命令并解除注册;取消是协作式,不回滚已产生的业务效果
11585
11671
 
@@ -11621,6 +11707,9 @@ lib/command/index.md
11621
11707
  - [IBridge](interfaces/IBridge.md)
11622
11708
  - [IContext](interfaces/IContext.md)
11623
11709
  - [IDefinition](interfaces/IDefinition.md)
11710
+ - [IFileChunk](interfaces/IFileChunk.md)
11711
+ - [IFileInfo](interfaces/IFileInfo.md)
11712
+ - [IFileOptions](interfaces/IFileOptions.md)
11624
11713
  - [IInfo](interfaces/IInfo.md)
11625
11714
  - [IMetadata](interfaces/IMetadata.md)
11626
11715
  - [IPageBridge](interfaces/IPageBridge.md)
@@ -11650,6 +11739,7 @@ lib/command/index.md
11650
11739
  - [list](functions/list.md)
11651
11740
  - [listTasks](functions/listTasks.md)
11652
11741
  - [register](functions/register.md)
11742
+ - [releaseFile](functions/releaseFile.md)
11653
11743
  - [showPalette](functions/showPalette.md)
11654
11744
  - [success](functions/success.md)
11655
11745
  - [unregister](functions/unregister.md)
@@ -11665,7 +11755,7 @@ lib/command/interfaces/IAgentInfo.md
11665
11755
 
11666
11756
  # Interface: IAgentInfo
11667
11757
 
11668
- Defined in: [lib/command.ts:132](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L132)
11758
+ Defined in: [lib/command/types.ts:134](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L134)
11669
11759
 
11670
11760
  可展示或导出的接入信息;命令列表始终从对应入口实时查询
11671
11761
 
@@ -11675,7 +11765,7 @@ Defined in: [lib/command.ts:132](https://github.com/maiyun/clickgo/blob/master/d
11675
11765
 
11676
11766
  > **apps**: `object`[]
11677
11767
 
11678
- Defined in: [lib/command.ts:134](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L134)
11768
+ Defined in: [lib/command/types.ts:136](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L136)
11679
11769
 
11680
11770
  #### id
11681
11771
 
@@ -11691,7 +11781,7 @@ Defined in: [lib/command.ts:134](https://github.com/maiyun/clickgo/blob/master/d
11691
11781
 
11692
11782
  > **browser**: `object`
11693
11783
 
11694
- Defined in: [lib/command.ts:136](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L136)
11784
+ Defined in: [lib/command/types.ts:138](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L138)
11695
11785
 
11696
11786
  #### api
11697
11787
 
@@ -11707,7 +11797,7 @@ Defined in: [lib/command.ts:136](https://github.com/maiyun/clickgo/blob/master/d
11707
11797
 
11708
11798
  > **http**: [`IMcpInfo`](../../native/interfaces/IMcpInfo.md) \| `null`
11709
11799
 
11710
- Defined in: [lib/command.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L148)
11800
+ Defined in: [lib/command/types.ts:150](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L150)
11711
11801
 
11712
11802
  只有显式导出且通过 root 检查时才包含 HTTP 凭据
11713
11803
 
@@ -11717,7 +11807,7 @@ Defined in: [lib/command.ts:148](https://github.com/maiyun/clickgo/blob/master/d
11717
11807
 
11718
11808
  > **native**: [`ICommandEntry`](../../native/interfaces/ICommandEntry.md) \| `null`
11719
11809
 
11720
- Defined in: [lib/command.ts:146](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L146)
11810
+ Defined in: [lib/command/types.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L148)
11721
11811
 
11722
11812
  ***
11723
11813
 
@@ -11725,7 +11815,7 @@ Defined in: [lib/command.ts:146](https://github.com/maiyun/clickgo/blob/master/d
11725
11815
 
11726
11816
  > **schemaVersion**: `1`
11727
11817
 
11728
- Defined in: [lib/command.ts:133](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L133)
11818
+ Defined in: [lib/command/types.ts:135](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L135)
11729
11819
 
11730
11820
  ***
11731
11821
 
@@ -11733,7 +11823,7 @@ Defined in: [lib/command.ts:133](https://github.com/maiyun/clickgo/blob/master/d
11733
11823
 
11734
11824
  > **targetTaskId**: `string` \| `null`
11735
11825
 
11736
- Defined in: [lib/command.ts:135](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L135)
11826
+ Defined in: [lib/command/types.ts:137](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L137)
11737
11827
 
11738
11828
  ***
11739
11829
 
@@ -11741,7 +11831,7 @@ Defined in: [lib/command.ts:135](https://github.com/maiyun/clickgo/blob/master/d
11741
11831
 
11742
11832
  > **webMcp**: `object`
11743
11833
 
11744
- Defined in: [lib/command.ts:137](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L137)
11834
+ Defined in: [lib/command/types.ts:139](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L139)
11745
11835
 
11746
11836
  #### publishedTaskIds
11747
11837
 
@@ -11776,7 +11866,7 @@ lib/command/interfaces/IAgentOptions.md
11776
11866
 
11777
11867
  # Interface: IAgentOptions
11778
11868
 
11779
- Defined in: [lib/command.ts:120](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L120)
11869
+ Defined in: [lib/command/types.ts:122](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L122)
11780
11870
 
11781
11871
  统一接入说明的生成选项;默认不读取或包含 HTTP 凭据
11782
11872
 
@@ -11786,7 +11876,7 @@ Defined in: [lib/command.ts:120](https://github.com/maiyun/clickgo/blob/master/d
11786
11876
 
11787
11877
  > `optional` **includeMcpCredentials?**: `boolean`
11788
11878
 
11789
- Defined in: [lib/command.ts:122](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L122)
11879
+ Defined in: [lib/command/types.ts:124](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L124)
11790
11880
 
11791
11881
  仅供应用主动导出 HTTP 连接设置,仍要求当前 App 已有 root 权限
11792
11882
 
@@ -11801,7 +11891,7 @@ lib/command/interfaces/IBridge.md
11801
11891
 
11802
11892
  # Interface: IBridge
11803
11893
 
11804
- Defined in: [lib/command.ts:103](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L103)
11894
+ Defined in: [lib/command/types.ts:105](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L105)
11805
11895
 
11806
11896
  绑定一个应用实例,只能调用该实例明确公开的命令
11807
11897
 
@@ -11811,7 +11901,7 @@ Defined in: [lib/command.ts:103](https://github.com/maiyun/clickgo/blob/master/d
11811
11901
 
11812
11902
  > **execute**: (`name`, `args?`, `options?`) => `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
11813
11903
 
11814
- Defined in: [lib/command.ts:106](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L106)
11904
+ Defined in: [lib/command/types.ts:108](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L108)
11815
11905
 
11816
11906
  #### Parameters
11817
11907
 
@@ -11839,7 +11929,7 @@ Defined in: [lib/command.ts:106](https://github.com/maiyun/clickgo/blob/master/d
11839
11929
 
11840
11930
  > **list**: () => [`IInfo`](IInfo.md)[]
11841
11931
 
11842
- Defined in: [lib/command.ts:105](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L105)
11932
+ Defined in: [lib/command/types.ts:107](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L107)
11843
11933
 
11844
11934
  #### Returns
11845
11935
 
@@ -11851,7 +11941,7 @@ Defined in: [lib/command.ts:105](https://github.com/maiyun/clickgo/blob/master/d
11851
11941
 
11852
11942
  > **taskId**: `string`
11853
11943
 
11854
- Defined in: [lib/command.ts:104](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L104)
11944
+ Defined in: [lib/command/types.ts:106](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L106)
11855
11945
 
11856
11946
  lib/command/interfaces/IContext.md
11857
11947
  ---
@@ -11864,17 +11954,48 @@ lib/command/interfaces/IContext.md
11864
11954
 
11865
11955
  # Interface: IContext
11866
11956
 
11867
- Defined in: [lib/command.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L51)
11957
+ Defined in: [lib/command/types.ts:45](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L45)
11868
11958
 
11869
11959
  执行来源仅用于展示与记录,不是授权凭证
11870
11960
 
11871
11961
  ## Properties
11872
11962
 
11963
+ ### createFile
11964
+
11965
+ > **createFile**: (`blob`, `options`) => `false` \| [`IFileInfo`](IFileInfo.md)
11966
+
11967
+ Defined in: [lib/command/types.ts:58](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L58)
11968
+
11969
+ 保留已生成文件;用 success(data, [file]) 明确交付,不读取路径或重新生成
11970
+
11971
+ #### Parameters
11972
+
11973
+ ##### blob
11974
+
11975
+ `Blob`
11976
+
11977
+ 原文件,单份最多 64 MiB;每个 App 最多 8 份、合计 128 MiB
11978
+
11979
+ ##### options
11980
+
11981
+ [`IFileOptions`](IFileOptions.md)
11982
+
11983
+ 文件名及可选 MIME,默认使用 Blob.type 或 application/octet-stream
11984
+
11985
+ #### Returns
11986
+
11987
+ `false` \| [`IFileInfo`](IFileInfo.md)
11988
+
11989
+ 十分钟有效的独立句柄,随所属范围销毁;参数/容量无效返回 false
11990
+ 仅在本次执行中有效;失败、取消、无效输出及未交付的文件自动释放,私有命令不公开文件
11991
+
11992
+ ***
11993
+
11873
11994
  ### formId
11874
11995
 
11875
11996
  > **formId**: `string`
11876
11997
 
11877
- Defined in: [lib/command.ts:53](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L53)
11998
+ Defined in: [lib/command/types.ts:47](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L47)
11878
11999
 
11879
12000
  ***
11880
12001
 
@@ -11882,7 +12003,7 @@ Defined in: [lib/command.ts:53](https://github.com/maiyun/clickgo/blob/master/di
11882
12003
 
11883
12004
  > **panelId**: `string`
11884
12005
 
11885
- Defined in: [lib/command.ts:54](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L54)
12006
+ Defined in: [lib/command/types.ts:48](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L48)
11886
12007
 
11887
12008
  ***
11888
12009
 
@@ -11890,7 +12011,7 @@ Defined in: [lib/command.ts:54](https://github.com/maiyun/clickgo/blob/master/di
11890
12011
 
11891
12012
  > **signal**: `AbortSignal`
11892
12013
 
11893
- Defined in: [lib/command.ts:56](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L56)
12014
+ Defined in: [lib/command/types.ts:50](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L50)
11894
12015
 
11895
12016
  ***
11896
12017
 
@@ -11898,7 +12019,7 @@ Defined in: [lib/command.ts:56](https://github.com/maiyun/clickgo/blob/master/di
11898
12019
 
11899
12020
  > **source**: `"user"` \| `"agent"`
11900
12021
 
11901
- Defined in: [lib/command.ts:55](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L55)
12022
+ Defined in: [lib/command/types.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L49)
11902
12023
 
11903
12024
  ***
11904
12025
 
@@ -11906,7 +12027,7 @@ Defined in: [lib/command.ts:55](https://github.com/maiyun/clickgo/blob/master/di
11906
12027
 
11907
12028
  > **taskId**: `string`
11908
12029
 
11909
- Defined in: [lib/command.ts:52](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L52)
12030
+ Defined in: [lib/command/types.ts:46](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L46)
11910
12031
 
11911
12032
  lib/command/interfaces/IDefinition.md
11912
12033
  ---
@@ -11919,7 +12040,7 @@ lib/command/interfaces/IDefinition.md
11919
12040
 
11920
12041
  # Interface: IDefinition\<T\>
11921
12042
 
11922
- Defined in: [lib/command.ts:79](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L79)
12043
+ Defined in: [lib/command/types.ts:81](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L81)
11923
12044
 
11924
12045
  应用声明一次,界面、浏览器代理和 Native 适配器共享执行函数
11925
12046
 
@@ -11939,7 +12060,7 @@ Defined in: [lib/command.ts:79](https://github.com/maiyun/clickgo/blob/master/di
11939
12060
 
11940
12061
  > `optional` **annotations?**: `object`
11941
12062
 
11942
- Defined in: [lib/command.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L67)
12063
+ Defined in: [lib/command/types.ts:69](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L69)
11943
12064
 
11944
12065
  行为说明,不代替校验或授权
11945
12066
 
@@ -11979,7 +12100,7 @@ WebMCP 的重要或不可逆现实效果说明
11979
12100
 
11980
12101
  > `optional` **concurrent?**: `boolean`
11981
12102
 
11982
- Defined in: [lib/command.ts:83](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L83)
12103
+ Defined in: [lib/command/types.ts:85](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L85)
11983
12104
 
11984
12105
  默认拒绝同一命令并发;业务确认可并行时才开启
11985
12106
 
@@ -11989,7 +12110,7 @@ Defined in: [lib/command.ts:83](https://github.com/maiyun/clickgo/blob/master/di
11989
12110
 
11990
12111
  > **description**: `string`
11991
12112
 
11992
- Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L63)
12113
+ Defined in: [lib/command/types.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L65)
11993
12114
 
11994
12115
  #### Inherited from
11995
12116
 
@@ -12001,7 +12122,7 @@ Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/di
12001
12122
 
12002
12123
  > `optional` **enabled?**: () => `string` \| `boolean`
12003
12124
 
12004
- Defined in: [lib/command.ts:87](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L87)
12125
+ Defined in: [lib/command/types.ts:89](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L89)
12005
12126
 
12006
12127
  true 为可用,false 或原因文本为不可用;每次执行重新检查
12007
12128
 
@@ -12015,7 +12136,7 @@ true 为可用,false 或原因文本为不可用;每次执行重新检查
12015
12136
 
12016
12137
  > **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
12138
 
12018
- Defined in: [lib/command.ts:88](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L88)
12139
+ Defined in: [lib/command/types.ts:90](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L90)
12019
12140
 
12020
12141
  #### Parameters
12021
12142
 
@@ -12037,7 +12158,7 @@ Defined in: [lib/command.ts:88](https://github.com/maiyun/clickgo/blob/master/di
12037
12158
 
12038
12159
  > `optional` **exposed?**: `boolean`
12039
12160
 
12040
- Defined in: [lib/command.ts:81](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L81)
12161
+ Defined in: [lib/command/types.ts:83](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L83)
12041
12162
 
12042
12163
  明确允许代理发现并调用;默认只允许应用内部调用
12043
12164
 
@@ -12047,7 +12168,7 @@ Defined in: [lib/command.ts:81](https://github.com/maiyun/clickgo/blob/master/di
12047
12168
 
12048
12169
  > **inputSchema**: [`ISchema`](ISchema.md) & `object`
12049
12170
 
12050
- Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L64)
12171
+ Defined in: [lib/command/types.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L66)
12051
12172
 
12052
12173
  #### Type Declaration
12053
12174
 
@@ -12065,7 +12186,7 @@ Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/di
12065
12186
 
12066
12187
  > **name**: `string`
12067
12188
 
12068
- Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L61)
12189
+ Defined in: [lib/command/types.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L63)
12069
12190
 
12070
12191
  #### Inherited from
12071
12192
 
@@ -12077,7 +12198,7 @@ Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/di
12077
12198
 
12078
12199
  > `optional` **outputSchema?**: [`ISchema`](ISchema.md)
12079
12200
 
12080
- Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L65)
12201
+ Defined in: [lib/command/types.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L67)
12081
12202
 
12082
12203
  #### Inherited from
12083
12204
 
@@ -12089,7 +12210,7 @@ Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/di
12089
12210
 
12090
12211
  > `optional` **permissions?**: `string`[]
12091
12212
 
12092
- Defined in: [lib/command.ts:85](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L85)
12213
+ Defined in: [lib/command/types.ts:87](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L87)
12093
12214
 
12094
12215
  必须已经取得的框架权限;执行入口不弹授权窗
12095
12216
 
@@ -12099,12 +12220,187 @@ Defined in: [lib/command.ts:85](https://github.com/maiyun/clickgo/blob/master/di
12099
12220
 
12100
12221
  > `optional` **title?**: `string`
12101
12222
 
12102
- Defined in: [lib/command.ts:62](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L62)
12223
+ Defined in: [lib/command/types.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L64)
12103
12224
 
12104
12225
  #### Inherited from
12105
12226
 
12106
12227
  [`IMetadata`](IMetadata.md).[`title`](IMetadata.md#title)
12107
12228
 
12229
+ lib/command/interfaces/IFileChunk.md
12230
+ ---
12231
+
12232
+ [**Documents for clickgo**](../../../index.md)
12233
+
12234
+ ***
12235
+
12236
+ [Documents for clickgo](../../../index.md) / [lib/command](../index.md) / IFileChunk
12237
+
12238
+ # Interface: IFileChunk
12239
+
12240
+ Defined in: [lib/command/file.ts:48](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L48)
12241
+
12242
+ 每段携带同一份快照信息,便于客户端校验文件及交付状态
12243
+
12244
+ ## Properties
12245
+
12246
+ ### data
12247
+
12248
+ > **data**: `string`
12249
+
12250
+ Defined in: [lib/command/file.ts:53](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L53)
12251
+
12252
+ ***
12253
+
12254
+ ### encoding
12255
+
12256
+ > **encoding**: `"base64"`
12257
+
12258
+ Defined in: [lib/command/file.ts:52](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L52)
12259
+
12260
+ ***
12261
+
12262
+ ### file
12263
+
12264
+ > **file**: [`IFileInfo`](IFileInfo.md)
12265
+
12266
+ Defined in: [lib/command/file.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L49)
12267
+
12268
+ ***
12269
+
12270
+ ### nextOffset
12271
+
12272
+ > **nextOffset**: `number` \| `null`
12273
+
12274
+ Defined in: [lib/command/file.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L51)
12275
+
12276
+ ***
12277
+
12278
+ ### offset
12279
+
12280
+ > **offset**: `number`
12281
+
12282
+ Defined in: [lib/command/file.ts:50](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L50)
12283
+
12284
+ lib/command/interfaces/IFileInfo.md
12285
+ ---
12286
+
12287
+ [**Documents for clickgo**](../../../index.md)
12288
+
12289
+ ***
12290
+
12291
+ [Documents for clickgo](../../../index.md) / [lib/command](../index.md) / IFileInfo
12292
+
12293
+ # Interface: IFileInfo
12294
+
12295
+ Defined in: [lib/command/file.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L28)
12296
+
12297
+ 文件快照元数据;时间为 Unix 毫秒,URI 仅在所属页面生命周期内有效
12298
+
12299
+ ## Properties
12300
+
12301
+ ### byteLength
12302
+
12303
+ > **byteLength**: `number`
12304
+
12305
+ Defined in: [lib/command/file.ts:32](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L32)
12306
+
12307
+ ***
12308
+
12309
+ ### createdAt
12310
+
12311
+ > **createdAt**: `number`
12312
+
12313
+ Defined in: [lib/command/file.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L33)
12314
+
12315
+ ***
12316
+
12317
+ ### expiresAt
12318
+
12319
+ > **expiresAt**: `number`
12320
+
12321
+ Defined in: [lib/command/file.ts:34](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L34)
12322
+
12323
+ ***
12324
+
12325
+ ### fileId
12326
+
12327
+ > **fileId**: `string`
12328
+
12329
+ Defined in: [lib/command/file.ts:29](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L29)
12330
+
12331
+ ***
12332
+
12333
+ ### fileName
12334
+
12335
+ > **fileName**: `string`
12336
+
12337
+ Defined in: [lib/command/file.ts:30](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L30)
12338
+
12339
+ ***
12340
+
12341
+ ### mimeType
12342
+
12343
+ > **mimeType**: `string`
12344
+
12345
+ Defined in: [lib/command/file.ts:31](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L31)
12346
+
12347
+ ***
12348
+
12349
+ ### readChunkSize
12350
+
12351
+ > **readChunkSize**: `number`
12352
+
12353
+ Defined in: [lib/command/file.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L37)
12354
+
12355
+ ***
12356
+
12357
+ ### readCommand
12358
+
12359
+ > **readCommand**: `string`
12360
+
12361
+ Defined in: [lib/command/file.ts:36](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L36)
12362
+
12363
+ ***
12364
+
12365
+ ### uri
12366
+
12367
+ > **uri**: `string`
12368
+
12369
+ Defined in: [lib/command/file.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L35)
12370
+
12371
+ lib/command/interfaces/IFileOptions.md
12372
+ ---
12373
+
12374
+ [**Documents for clickgo**](../../../index.md)
12375
+
12376
+ ***
12377
+
12378
+ [Documents for clickgo](../../../index.md) / [lib/command](../index.md) / IFileOptions
12379
+
12380
+ # Interface: IFileOptions
12381
+
12382
+ Defined in: [lib/command/file.ts:21](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L21)
12383
+
12384
+ 发布的是已生成 Blob,不读取路径、不上传或重新生成文件
12385
+
12386
+ ## Properties
12387
+
12388
+ ### fileName
12389
+
12390
+ > **fileName**: `string`
12391
+
12392
+ Defined in: [lib/command/file.ts:22](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L22)
12393
+
12394
+ ***
12395
+
12396
+ ### mimeType?
12397
+
12398
+ > `optional` **mimeType?**: `string`
12399
+
12400
+ Defined in: [lib/command/file.ts:24](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/file.ts#L24)
12401
+
12402
+ 默认使用 Blob.type;为空时使用 application/octet-stream
12403
+
12108
12404
  lib/command/interfaces/IInfo.md
12109
12405
  ---
12110
12406
 
@@ -12116,7 +12412,7 @@ lib/command/interfaces/IInfo.md
12116
12412
 
12117
12413
  # Interface: IInfo
12118
12414
 
12119
- Defined in: [lib/command.ts:92](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L92)
12415
+ Defined in: [lib/command/types.ts:94](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L94)
12120
12416
 
12121
12417
  不包含函数或内部对象的独立快照
12122
12418
 
@@ -12130,7 +12426,7 @@ Defined in: [lib/command.ts:92](https://github.com/maiyun/clickgo/blob/master/di
12130
12426
 
12131
12427
  > `optional` **annotations?**: `object`
12132
12428
 
12133
- Defined in: [lib/command.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L67)
12429
+ Defined in: [lib/command/types.ts:69](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L69)
12134
12430
 
12135
12431
  行为说明,不代替校验或授权
12136
12432
 
@@ -12170,7 +12466,7 @@ WebMCP 的重要或不可逆现实效果说明
12170
12466
 
12171
12467
  > **description**: `string`
12172
12468
 
12173
- Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L63)
12469
+ Defined in: [lib/command/types.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L65)
12174
12470
 
12175
12471
  #### Inherited from
12176
12472
 
@@ -12182,7 +12478,7 @@ Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/di
12182
12478
 
12183
12479
  > **disabledReason**: `string`
12184
12480
 
12185
- Defined in: [lib/command.ts:98](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L98)
12481
+ Defined in: [lib/command/types.ts:100](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L100)
12186
12482
 
12187
12483
  ***
12188
12484
 
@@ -12190,7 +12486,7 @@ Defined in: [lib/command.ts:98](https://github.com/maiyun/clickgo/blob/master/di
12190
12486
 
12191
12487
  > **enabled**: `boolean`
12192
12488
 
12193
- Defined in: [lib/command.ts:97](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L97)
12489
+ Defined in: [lib/command/types.ts:99](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L99)
12194
12490
 
12195
12491
  ***
12196
12492
 
@@ -12198,7 +12494,7 @@ Defined in: [lib/command.ts:97](https://github.com/maiyun/clickgo/blob/master/di
12198
12494
 
12199
12495
  > **exposed**: `boolean`
12200
12496
 
12201
- Defined in: [lib/command.ts:96](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L96)
12497
+ Defined in: [lib/command/types.ts:98](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L98)
12202
12498
 
12203
12499
  ***
12204
12500
 
@@ -12206,7 +12502,7 @@ Defined in: [lib/command.ts:96](https://github.com/maiyun/clickgo/blob/master/di
12206
12502
 
12207
12503
  > **formId**: `string`
12208
12504
 
12209
- Defined in: [lib/command.ts:94](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L94)
12505
+ Defined in: [lib/command/types.ts:96](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L96)
12210
12506
 
12211
12507
  ***
12212
12508
 
@@ -12214,7 +12510,7 @@ Defined in: [lib/command.ts:94](https://github.com/maiyun/clickgo/blob/master/di
12214
12510
 
12215
12511
  > **inputSchema**: [`ISchema`](ISchema.md) & `object`
12216
12512
 
12217
- Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L64)
12513
+ Defined in: [lib/command/types.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L66)
12218
12514
 
12219
12515
  #### Type Declaration
12220
12516
 
@@ -12232,7 +12528,7 @@ Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/di
12232
12528
 
12233
12529
  > **name**: `string`
12234
12530
 
12235
- Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L61)
12531
+ Defined in: [lib/command/types.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L63)
12236
12532
 
12237
12533
  #### Inherited from
12238
12534
 
@@ -12244,7 +12540,7 @@ Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/di
12244
12540
 
12245
12541
  > `optional` **outputSchema?**: [`ISchema`](ISchema.md)
12246
12542
 
12247
- Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L65)
12543
+ Defined in: [lib/command/types.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L67)
12248
12544
 
12249
12545
  #### Inherited from
12250
12546
 
@@ -12256,7 +12552,7 @@ Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/di
12256
12552
 
12257
12553
  > **panelId**: `string`
12258
12554
 
12259
- Defined in: [lib/command.ts:95](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L95)
12555
+ Defined in: [lib/command/types.ts:97](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L97)
12260
12556
 
12261
12557
  ***
12262
12558
 
@@ -12264,7 +12560,7 @@ Defined in: [lib/command.ts:95](https://github.com/maiyun/clickgo/blob/master/di
12264
12560
 
12265
12561
  > **running**: `number`
12266
12562
 
12267
- Defined in: [lib/command.ts:99](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L99)
12563
+ Defined in: [lib/command/types.ts:101](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L101)
12268
12564
 
12269
12565
  ***
12270
12566
 
@@ -12272,7 +12568,7 @@ Defined in: [lib/command.ts:99](https://github.com/maiyun/clickgo/blob/master/di
12272
12568
 
12273
12569
  > **taskId**: `string`
12274
12570
 
12275
- Defined in: [lib/command.ts:93](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L93)
12571
+ Defined in: [lib/command/types.ts:95](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L95)
12276
12572
 
12277
12573
  ***
12278
12574
 
@@ -12280,7 +12576,7 @@ Defined in: [lib/command.ts:93](https://github.com/maiyun/clickgo/blob/master/di
12280
12576
 
12281
12577
  > `optional` **title?**: `string`
12282
12578
 
12283
- Defined in: [lib/command.ts:62](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L62)
12579
+ Defined in: [lib/command/types.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L64)
12284
12580
 
12285
12581
  #### Inherited from
12286
12582
 
@@ -12297,7 +12593,7 @@ lib/command/interfaces/IMetadata.md
12297
12593
 
12298
12594
  # Interface: IMetadata
12299
12595
 
12300
- Defined in: [lib/command.ts:60](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L60)
12596
+ Defined in: [lib/command/types.ts:62](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L62)
12301
12597
 
12302
12598
  与 MCP 工具描述对齐的公开命令元数据
12303
12599
 
@@ -12312,7 +12608,7 @@ Defined in: [lib/command.ts:60](https://github.com/maiyun/clickgo/blob/master/di
12312
12608
 
12313
12609
  > `optional` **annotations?**: `object`
12314
12610
 
12315
- Defined in: [lib/command.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L67)
12611
+ Defined in: [lib/command/types.ts:69](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L69)
12316
12612
 
12317
12613
  行为说明,不代替校验或授权
12318
12614
 
@@ -12348,7 +12644,7 @@ WebMCP 的重要或不可逆现实效果说明
12348
12644
 
12349
12645
  > **description**: `string`
12350
12646
 
12351
- Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L63)
12647
+ Defined in: [lib/command/types.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L65)
12352
12648
 
12353
12649
  ***
12354
12650
 
@@ -12356,7 +12652,7 @@ Defined in: [lib/command.ts:63](https://github.com/maiyun/clickgo/blob/master/di
12356
12652
 
12357
12653
  > **inputSchema**: [`ISchema`](ISchema.md) & `object`
12358
12654
 
12359
- Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L64)
12655
+ Defined in: [lib/command/types.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L66)
12360
12656
 
12361
12657
  #### Type Declaration
12362
12658
 
@@ -12370,7 +12666,7 @@ Defined in: [lib/command.ts:64](https://github.com/maiyun/clickgo/blob/master/di
12370
12666
 
12371
12667
  > **name**: `string`
12372
12668
 
12373
- Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L61)
12669
+ Defined in: [lib/command/types.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L63)
12374
12670
 
12375
12671
  ***
12376
12672
 
@@ -12378,7 +12674,7 @@ Defined in: [lib/command.ts:61](https://github.com/maiyun/clickgo/blob/master/di
12378
12674
 
12379
12675
  > `optional` **outputSchema?**: [`ISchema`](ISchema.md)
12380
12676
 
12381
- Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L65)
12677
+ Defined in: [lib/command/types.ts:67](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L67)
12382
12678
 
12383
12679
  ***
12384
12680
 
@@ -12386,7 +12682,7 @@ Defined in: [lib/command.ts:65](https://github.com/maiyun/clickgo/blob/master/di
12386
12682
 
12387
12683
  > `optional` **title?**: `string`
12388
12684
 
12389
- Defined in: [lib/command.ts:62](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L62)
12685
+ Defined in: [lib/command/types.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L64)
12390
12686
 
12391
12687
  lib/command/interfaces/IPageBridge.md
12392
12688
  ---
@@ -12399,7 +12695,7 @@ lib/command/interfaces/IPageBridge.md
12399
12695
 
12400
12696
  # Interface: IPageBridge
12401
12697
 
12402
- Defined in: [lib/command.ts:110](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L110)
12698
+ Defined in: [lib/command/types.ts:112](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L112)
12403
12699
 
12404
12700
  框架向网页发布的统一入口;按任务选择应用,只访问明确公开的命令
12405
12701
 
@@ -12409,7 +12705,7 @@ Defined in: [lib/command.ts:110](https://github.com/maiyun/clickgo/blob/master/d
12409
12705
 
12410
12706
  > **execute**: (`taskId`, `name`, `args?`, `options?`) => `Promise`\<[`TResult`](../type-aliases/TResult.md)\<[`TJson`](../../tool/type-aliases/TJson.md)\>\>
12411
12707
 
12412
- Defined in: [lib/command.ts:115](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L115)
12708
+ Defined in: [lib/command/types.ts:117](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L117)
12413
12709
 
12414
12710
  #### Parameters
12415
12711
 
@@ -12441,7 +12737,7 @@ Defined in: [lib/command.ts:115](https://github.com/maiyun/clickgo/blob/master/d
12441
12737
 
12442
12738
  > **getAgentGuide**: (`taskId?`) => `Promise`\<`string` \| `false` \| `null`\>
12443
12739
 
12444
- Defined in: [lib/command.ts:112](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L112)
12740
+ Defined in: [lib/command/types.ts:114](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L114)
12445
12741
 
12446
12742
  #### Parameters
12447
12743
 
@@ -12459,7 +12755,7 @@ Defined in: [lib/command.ts:112](https://github.com/maiyun/clickgo/blob/master/d
12459
12755
 
12460
12756
  > **getAgentInfo**: (`taskId?`) => `Promise`\<`false` \| [`IAgentInfo`](IAgentInfo.md) \| `null`\>
12461
12757
 
12462
- Defined in: [lib/command.ts:111](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L111)
12758
+ Defined in: [lib/command/types.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L113)
12463
12759
 
12464
12760
  #### Parameters
12465
12761
 
@@ -12477,7 +12773,7 @@ Defined in: [lib/command.ts:111](https://github.com/maiyun/clickgo/blob/master/d
12477
12773
 
12478
12774
  > **list**: (`taskId`) => [`IInfo`](IInfo.md)[]
12479
12775
 
12480
- Defined in: [lib/command.ts:114](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L114)
12776
+ Defined in: [lib/command/types.ts:116](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L116)
12481
12777
 
12482
12778
  #### Parameters
12483
12779
 
@@ -12495,7 +12791,7 @@ Defined in: [lib/command.ts:114](https://github.com/maiyun/clickgo/blob/master/d
12495
12791
 
12496
12792
  > **listTasks**: () => `object`[]
12497
12793
 
12498
- Defined in: [lib/command.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L113)
12794
+ Defined in: [lib/command/types.ts:115](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L115)
12499
12795
 
12500
12796
  #### Returns
12501
12797
 
@@ -12512,7 +12808,7 @@ lib/command/interfaces/ISchema.md
12512
12808
 
12513
12809
  # Interface: ISchema
12514
12810
 
12515
- Defined in: [lib/command.ts:15](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L15)
12811
+ Defined in: [lib/command/types.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L9)
12516
12812
 
12517
12813
  JSON Schema 2020-12 的命令校验子集;不支持的关键字在注册时拒绝
12518
12814
 
@@ -12522,7 +12818,7 @@ JSON Schema 2020-12 的命令校验子集;不支持的关键字在注册时拒
12522
12818
 
12523
12819
  > `optional` **$defs?**: `Record`\<`string`, `boolean` \| `ISchema`\>
12524
12820
 
12525
- Defined in: [lib/command.ts:18](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L18)
12821
+ Defined in: [lib/command/types.ts:12](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L12)
12526
12822
 
12527
12823
  ***
12528
12824
 
@@ -12530,7 +12826,7 @@ Defined in: [lib/command.ts:18](https://github.com/maiyun/clickgo/blob/master/di
12530
12826
 
12531
12827
  > `optional` **$ref?**: `string`
12532
12828
 
12533
- Defined in: [lib/command.ts:17](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L17)
12829
+ Defined in: [lib/command/types.ts:11](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L11)
12534
12830
 
12535
12831
  ***
12536
12832
 
@@ -12538,7 +12834,7 @@ Defined in: [lib/command.ts:17](https://github.com/maiyun/clickgo/blob/master/di
12538
12834
 
12539
12835
  > `optional` **$schema?**: `string`
12540
12836
 
12541
- Defined in: [lib/command.ts:16](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L16)
12837
+ Defined in: [lib/command/types.ts:10](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L10)
12542
12838
 
12543
12839
  ***
12544
12840
 
@@ -12546,7 +12842,7 @@ Defined in: [lib/command.ts:16](https://github.com/maiyun/clickgo/blob/master/di
12546
12842
 
12547
12843
  > `optional` **additionalProperties?**: `boolean` \| `ISchema`
12548
12844
 
12549
- Defined in: [lib/command.ts:26](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L26)
12845
+ Defined in: [lib/command/types.ts:20](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L20)
12550
12846
 
12551
12847
  ***
12552
12848
 
@@ -12554,7 +12850,7 @@ Defined in: [lib/command.ts:26](https://github.com/maiyun/clickgo/blob/master/di
12554
12850
 
12555
12851
  > `optional` **allOf?**: (`boolean` \| `ISchema`)[]
12556
12852
 
12557
- Defined in: [lib/command.ts:40](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L40)
12853
+ Defined in: [lib/command/types.ts:34](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L34)
12558
12854
 
12559
12855
  ***
12560
12856
 
@@ -12562,7 +12858,7 @@ Defined in: [lib/command.ts:40](https://github.com/maiyun/clickgo/blob/master/di
12562
12858
 
12563
12859
  > `optional` **anyOf?**: (`boolean` \| `ISchema`)[]
12564
12860
 
12565
- Defined in: [lib/command.ts:41](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L41)
12861
+ Defined in: [lib/command/types.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L35)
12566
12862
 
12567
12863
  ***
12568
12864
 
@@ -12570,7 +12866,7 @@ Defined in: [lib/command.ts:41](https://github.com/maiyun/clickgo/blob/master/di
12570
12866
 
12571
12867
  > `optional` **const?**: [`TJson`](../../tool/type-aliases/TJson.md)
12572
12868
 
12573
- Defined in: [lib/command.ts:39](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L39)
12869
+ Defined in: [lib/command/types.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L33)
12574
12870
 
12575
12871
  ***
12576
12872
 
@@ -12578,7 +12874,7 @@ Defined in: [lib/command.ts:39](https://github.com/maiyun/clickgo/blob/master/di
12578
12874
 
12579
12875
  > `optional` **default?**: [`TJson`](../../tool/type-aliases/TJson.md)
12580
12876
 
12581
- Defined in: [lib/command.ts:21](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L21)
12877
+ Defined in: [lib/command/types.ts:15](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L15)
12582
12878
 
12583
12879
  ***
12584
12880
 
@@ -12586,7 +12882,7 @@ Defined in: [lib/command.ts:21](https://github.com/maiyun/clickgo/blob/master/di
12586
12882
 
12587
12883
  > `optional` **description?**: `string`
12588
12884
 
12589
- Defined in: [lib/command.ts:20](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L20)
12885
+ Defined in: [lib/command/types.ts:14](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L14)
12590
12886
 
12591
12887
  ***
12592
12888
 
@@ -12594,7 +12890,7 @@ Defined in: [lib/command.ts:20](https://github.com/maiyun/clickgo/blob/master/di
12594
12890
 
12595
12891
  > `optional` **enum?**: [`TJson`](../../tool/type-aliases/TJson.md)[]
12596
12892
 
12597
- Defined in: [lib/command.ts:38](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L38)
12893
+ Defined in: [lib/command/types.ts:32](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L32)
12598
12894
 
12599
12895
  ***
12600
12896
 
@@ -12602,7 +12898,7 @@ Defined in: [lib/command.ts:38](https://github.com/maiyun/clickgo/blob/master/di
12602
12898
 
12603
12899
  > `optional` **examples?**: [`TJson`](../../tool/type-aliases/TJson.md)[]
12604
12900
 
12605
- Defined in: [lib/command.ts:22](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L22)
12901
+ Defined in: [lib/command/types.ts:16](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L16)
12606
12902
 
12607
12903
  ***
12608
12904
 
@@ -12610,7 +12906,7 @@ Defined in: [lib/command.ts:22](https://github.com/maiyun/clickgo/blob/master/di
12610
12906
 
12611
12907
  > `optional` **exclusiveMaximum?**: `number`
12612
12908
 
12613
- Defined in: [lib/command.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L37)
12909
+ Defined in: [lib/command/types.ts:31](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L31)
12614
12910
 
12615
12911
  ***
12616
12912
 
@@ -12618,7 +12914,7 @@ Defined in: [lib/command.ts:37](https://github.com/maiyun/clickgo/blob/master/di
12618
12914
 
12619
12915
  > `optional` **exclusiveMinimum?**: `number`
12620
12916
 
12621
- Defined in: [lib/command.ts:36](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L36)
12917
+ Defined in: [lib/command/types.ts:30](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L30)
12622
12918
 
12623
12919
  ***
12624
12920
 
@@ -12626,7 +12922,7 @@ Defined in: [lib/command.ts:36](https://github.com/maiyun/clickgo/blob/master/di
12626
12922
 
12627
12923
  > `optional` **items?**: `boolean` \| `ISchema`
12628
12924
 
12629
- Defined in: [lib/command.ts:27](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L27)
12925
+ Defined in: [lib/command/types.ts:21](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L21)
12630
12926
 
12631
12927
  ***
12632
12928
 
@@ -12634,7 +12930,7 @@ Defined in: [lib/command.ts:27](https://github.com/maiyun/clickgo/blob/master/di
12634
12930
 
12635
12931
  > `optional` **maximum?**: `number`
12636
12932
 
12637
- Defined in: [lib/command.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L35)
12933
+ Defined in: [lib/command/types.ts:29](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L29)
12638
12934
 
12639
12935
  ***
12640
12936
 
@@ -12642,7 +12938,7 @@ Defined in: [lib/command.ts:35](https://github.com/maiyun/clickgo/blob/master/di
12642
12938
 
12643
12939
  > `optional` **maxItems?**: `number`
12644
12940
 
12645
- Defined in: [lib/command.ts:29](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L29)
12941
+ Defined in: [lib/command/types.ts:23](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L23)
12646
12942
 
12647
12943
  ***
12648
12944
 
@@ -12650,7 +12946,7 @@ Defined in: [lib/command.ts:29](https://github.com/maiyun/clickgo/blob/master/di
12650
12946
 
12651
12947
  > `optional` **maxLength?**: `number`
12652
12948
 
12653
- Defined in: [lib/command.ts:32](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L32)
12949
+ Defined in: [lib/command/types.ts:26](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L26)
12654
12950
 
12655
12951
  ***
12656
12952
 
@@ -12658,7 +12954,7 @@ Defined in: [lib/command.ts:32](https://github.com/maiyun/clickgo/blob/master/di
12658
12954
 
12659
12955
  > `optional` **minimum?**: `number`
12660
12956
 
12661
- Defined in: [lib/command.ts:34](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L34)
12957
+ Defined in: [lib/command/types.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L28)
12662
12958
 
12663
12959
  ***
12664
12960
 
@@ -12666,7 +12962,7 @@ Defined in: [lib/command.ts:34](https://github.com/maiyun/clickgo/blob/master/di
12666
12962
 
12667
12963
  > `optional` **minItems?**: `number`
12668
12964
 
12669
- Defined in: [lib/command.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L28)
12965
+ Defined in: [lib/command/types.ts:22](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L22)
12670
12966
 
12671
12967
  ***
12672
12968
 
@@ -12674,7 +12970,7 @@ Defined in: [lib/command.ts:28](https://github.com/maiyun/clickgo/blob/master/di
12674
12970
 
12675
12971
  > `optional` **minLength?**: `number`
12676
12972
 
12677
- Defined in: [lib/command.ts:31](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L31)
12973
+ Defined in: [lib/command/types.ts:25](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L25)
12678
12974
 
12679
12975
  ***
12680
12976
 
@@ -12682,7 +12978,7 @@ Defined in: [lib/command.ts:31](https://github.com/maiyun/clickgo/blob/master/di
12682
12978
 
12683
12979
  > `optional` **not?**: `boolean` \| `ISchema`
12684
12980
 
12685
- Defined in: [lib/command.ts:43](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L43)
12981
+ Defined in: [lib/command/types.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L37)
12686
12982
 
12687
12983
  ***
12688
12984
 
@@ -12690,7 +12986,7 @@ Defined in: [lib/command.ts:43](https://github.com/maiyun/clickgo/blob/master/di
12690
12986
 
12691
12987
  > `optional` **oneOf?**: (`boolean` \| `ISchema`)[]
12692
12988
 
12693
- Defined in: [lib/command.ts:42](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L42)
12989
+ Defined in: [lib/command/types.ts:36](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L36)
12694
12990
 
12695
12991
  ***
12696
12992
 
@@ -12698,7 +12994,7 @@ Defined in: [lib/command.ts:42](https://github.com/maiyun/clickgo/blob/master/di
12698
12994
 
12699
12995
  > `optional` **pattern?**: `string`
12700
12996
 
12701
- Defined in: [lib/command.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L33)
12997
+ Defined in: [lib/command/types.ts:27](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L27)
12702
12998
 
12703
12999
  ***
12704
13000
 
@@ -12706,7 +13002,7 @@ Defined in: [lib/command.ts:33](https://github.com/maiyun/clickgo/blob/master/di
12706
13002
 
12707
13003
  > `optional` **properties?**: `Record`\<`string`, `boolean` \| `ISchema`\>
12708
13004
 
12709
- Defined in: [lib/command.ts:24](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L24)
13005
+ Defined in: [lib/command/types.ts:18](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L18)
12710
13006
 
12711
13007
  ***
12712
13008
 
@@ -12714,7 +13010,7 @@ Defined in: [lib/command.ts:24](https://github.com/maiyun/clickgo/blob/master/di
12714
13010
 
12715
13011
  > `optional` **required?**: `string`[]
12716
13012
 
12717
- Defined in: [lib/command.ts:25](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L25)
13013
+ Defined in: [lib/command/types.ts:19](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L19)
12718
13014
 
12719
13015
  ***
12720
13016
 
@@ -12722,7 +13018,7 @@ Defined in: [lib/command.ts:25](https://github.com/maiyun/clickgo/blob/master/di
12722
13018
 
12723
13019
  > `optional` **title?**: `string`
12724
13020
 
12725
- Defined in: [lib/command.ts:19](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L19)
13021
+ Defined in: [lib/command/types.ts:13](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L13)
12726
13022
 
12727
13023
  ***
12728
13024
 
@@ -12730,7 +13026,7 @@ Defined in: [lib/command.ts:19](https://github.com/maiyun/clickgo/blob/master/di
12730
13026
 
12731
13027
  > `optional` **type?**: `"string"` \| `"number"` \| `"boolean"` \| `"object"` \| `"array"` \| `"integer"` \| `"null"`
12732
13028
 
12733
- Defined in: [lib/command.ts:23](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L23)
13029
+ Defined in: [lib/command/types.ts:17](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L17)
12734
13030
 
12735
13031
  ***
12736
13032
 
@@ -12738,7 +13034,7 @@ Defined in: [lib/command.ts:23](https://github.com/maiyun/clickgo/blob/master/di
12738
13034
 
12739
13035
  > `optional` **uniqueItems?**: `boolean`
12740
13036
 
12741
- Defined in: [lib/command.ts:30](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L30)
13037
+ Defined in: [lib/command/types.ts:24](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L24)
12742
13038
 
12743
13039
  lib/command/type-aliases/TJson.md
12744
13040
  ---
@@ -12753,7 +13049,7 @@ lib/command/type-aliases/TJson.md
12753
13049
 
12754
13050
  > **TJson** = [`TJson`](../../tool/type-aliases/TJson.md)
12755
13051
 
12756
- Defined in: [lib/command.ts:12](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L12)
13052
+ Defined in: [lib/command/types.ts:6](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L6)
12757
13053
 
12758
13054
  命令输入与输出可跨浏览器、Native 和协议传输的 JSON 值
12759
13055
 
@@ -12768,9 +13064,9 @@ lib/command/type-aliases/TResult.md
12768
13064
 
12769
13065
  # Type Alias: TResult\<T\>
12770
13066
 
12771
- > **TResult**\<`T`\> = \{ `data`: `T`; `ok`: `true`; \} \| \{ `error`: \{ `code`: `string`; `message`: `string`; \}; `ok`: `false`; \}
13067
+ > **TResult**\<`T`\> = \{ `data`: `T`; `files?`: [`IFileInfo`](../interfaces/IFileInfo.md)[]; `ok`: `true`; \} \| \{ `error`: \{ `code`: `string`; `message`: `string`; \}; `ok`: `false`; \}
12772
13068
 
12773
- Defined in: [lib/command.ts:47](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L47)
13069
+ Defined in: [lib/command/types.ts:41](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L41)
12774
13070
 
12775
13071
  所有入口共用的结果;错误码用于程序判断,message 用于说明
12776
13072
 
@@ -12793,7 +13089,7 @@ lib/command/type-aliases/TWebMcpRegistrationStatus.md
12793
13089
 
12794
13090
  > **TWebMcpRegistrationStatus** = `"idle"` \| `"registering"` \| `"ready"` \| `"failed"`
12795
13091
 
12796
- Defined in: [lib/command.ts:129](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L129)
13092
+ Defined in: [lib/command/types.ts:131](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L131)
12797
13093
 
12798
13094
  工具发布诊断状态,不参与页面级接入事件
12799
13095
 
@@ -12810,7 +13106,7 @@ lib/command/type-aliases/TWebMcpStatus.md
12810
13106
 
12811
13107
  > **TWebMcpStatus** = `"unsupported"` \| `"ready"`
12812
13108
 
12813
- Defined in: [lib/command.ts:126](https://github.com/maiyun/clickgo/blob/master/dist/lib/command.ts#L126)
13109
+ Defined in: [lib/command/types.ts:128](https://github.com/maiyun/clickgo/blob/master/dist/lib/command/types.ts#L128)
12814
13110
 
12815
13111
  页面级 WebMCP 接入状态;ready 表示浏览器接口可用,不表示某个 App 的工具已发布
12816
13112
 
@@ -31443,7 +31739,7 @@ lib/native/functions/activate.md
31443
31739
 
31444
31740
  > **activate**(`current`): `Promise`\<`boolean`\>
31445
31741
 
31446
- Defined in: [lib/native.ts:443](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L443)
31742
+ Defined in: [lib/native.ts:445](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L445)
31447
31743
 
31448
31744
  ## Parameters
31449
31745
 
@@ -31499,7 +31795,7 @@ lib/native/functions/clear.md
31499
31795
 
31500
31796
  > **clear**(`taskId`, `formId?`): `void`
31501
31797
 
31502
- Defined in: [lib/native.ts:286](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L286)
31798
+ Defined in: [lib/native.ts:288](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L288)
31503
31799
 
31504
31800
  清除某个窗体或某个任务的所有事件监听
31505
31801
 
@@ -31534,7 +31830,7 @@ lib/native/functions/close.md
31534
31830
 
31535
31831
  > **close**(`current`): `Promise`\<`boolean`\>
31536
31832
 
31537
- Defined in: [lib/native.ts:455](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L455)
31833
+ Defined in: [lib/native.ts:457](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L457)
31538
31834
 
31539
31835
  关闭当前 native 真实窗体,根据配置整个 native 任务可能结束也可能保留 node 不结束
31540
31836
 
@@ -31563,7 +31859,7 @@ lib/native/functions/dialog.md
31563
31859
 
31564
31860
  > **dialog**(`options?`): `Promise`\<`number`\>
31565
31861
 
31566
- Defined in: [lib/native.ts:522](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L522)
31862
+ Defined in: [lib/native.ts:524](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L524)
31567
31863
 
31568
31864
  弹出消息框
31569
31865
 
@@ -31625,7 +31921,7 @@ lib/native/functions/getCommandEntry.md
31625
31921
 
31626
31922
  > **getCommandEntry**(): `Promise`\<[`ICommandEntry`](../interfaces/ICommandEntry.md) \| `null`\>
31627
31923
 
31628
- Defined in: [lib/native.ts:159](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L159)
31924
+ Defined in: [lib/native.ts:161](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L161)
31629
31925
 
31630
31926
  取得软件自身的 CLI/stdio 入口和启动要求,无需读取连接凭据
31631
31927
 
@@ -31648,7 +31944,7 @@ lib/native/functions/getListenerList.md
31648
31944
 
31649
31945
  > **getListenerList**(`taskId?`): `Record`\<`string`, `Record`\<`string`, `Record`\<`string`, `number`\>\>\>
31650
31946
 
31651
- Defined in: [lib/native.ts:309](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L309)
31947
+ Defined in: [lib/native.ts:311](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L311)
31652
31948
 
31653
31949
  获取监听 native 事件的监听统计信息列表
31654
31950
 
@@ -31677,7 +31973,7 @@ lib/native/functions/getMcpInfo.md
31677
31973
 
31678
31974
  > **getMcpInfo**(`current`): `Promise`\<`false` \| [`IMcpInfo`](../interfaces/IMcpInfo.md) \| `null`\>
31679
31975
 
31680
- Defined in: [lib/native.ts:168](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L168)
31976
+ Defined in: [lib/native.ts:170](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L170)
31681
31977
 
31682
31978
  读取 Native 主进程启用的 MCP 连接设置
31683
31979
 
@@ -31739,7 +32035,7 @@ lib/native/functions/init.md
31739
32035
 
31740
32036
  > **init**(): `void`
31741
32037
 
31742
- Defined in: [lib/native.ts:553](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L553)
32038
+ Defined in: [lib/native.ts:555](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L555)
31743
32039
 
31744
32040
  ## Returns
31745
32041
 
@@ -31818,7 +32114,7 @@ lib/native/functions/invoke.md
31818
32114
 
31819
32115
  > **invoke**(`name`, ...`param`): `Promise`\<`any`\>
31820
32116
 
31821
- Defined in: [lib/native.ts:350](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L350)
32117
+ Defined in: [lib/native.ts:352](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L352)
31822
32118
 
31823
32119
  向 native 发送指令
31824
32120
 
@@ -31853,7 +32149,7 @@ lib/native/functions/invokeSys.md
31853
32149
 
31854
32150
  > **invokeSys**(`current`, `name`, ...`param`): `Promise`\<`any`\>
31855
32151
 
31856
- Defined in: [lib/native.ts:363](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L363)
32152
+ Defined in: [lib/native.ts:365](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L365)
31857
32153
 
31858
32154
  向 native 发送指令(系统级)
31859
32155
 
@@ -31931,7 +32227,7 @@ lib/native/functions/isMax.md
31931
32227
 
31932
32228
  > **isMax**(): `Promise`\<`boolean`\>
31933
32229
 
31934
- Defined in: [lib/native.ts:546](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L546)
32230
+ Defined in: [lib/native.ts:548](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L548)
31935
32231
 
31936
32232
  判断窗体是否是最大化状态
31937
32233
 
@@ -31952,7 +32248,7 @@ lib/native/functions/maximizable.md
31952
32248
 
31953
32249
  > **maximizable**(`current`, `val`): `Promise`\<`boolean`\>
31954
32250
 
31955
- Defined in: [lib/native.ts:463](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L463)
32251
+ Defined in: [lib/native.ts:465](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L465)
31956
32252
 
31957
32253
  ## Parameters
31958
32254
 
@@ -31981,7 +32277,7 @@ lib/native/functions/max.md
31981
32277
 
31982
32278
  > **max**(`current`): `Promise`\<`boolean`\>
31983
32279
 
31984
- Defined in: [lib/native.ts:409](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L409)
32280
+ Defined in: [lib/native.ts:411](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L411)
31985
32281
 
31986
32282
  ## Parameters
31987
32283
 
@@ -32006,7 +32302,7 @@ lib/native/functions/min.md
32006
32302
 
32007
32303
  > **min**(`current`): `Promise`\<`boolean`\>
32008
32304
 
32009
- Defined in: [lib/native.ts:417](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L417)
32305
+ Defined in: [lib/native.ts:419](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L419)
32010
32306
 
32011
32307
  ## Parameters
32012
32308
 
@@ -32031,7 +32327,7 @@ lib/native/functions/minSize.md
32031
32327
 
32032
32328
  > **minSize**(`current`, `width`, `height`): `Promise`\<`boolean`\>
32033
32329
 
32034
- Defined in: [lib/native.ts:398](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L398)
32330
+ Defined in: [lib/native.ts:400](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L400)
32035
32331
 
32036
32332
  设置实体窗体的最小尺寸,0 表示不限制对应方向
32037
32333
 
@@ -32072,7 +32368,7 @@ lib/native/functions/off.md
32072
32368
 
32073
32369
  > **off**(`current`, `name`, `formId?`): `void`
32074
32370
 
32075
- Defined in: [lib/native.ts:267](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L267)
32371
+ Defined in: [lib/native.ts:269](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L269)
32076
32372
 
32077
32373
  解绑监听的方法
32078
32374
 
@@ -32113,7 +32409,7 @@ lib/native/functions/once.md
32113
32409
 
32114
32410
  > **once**(`current`, `name`, `handler`, `formId?`): `void`
32115
32411
 
32116
- Defined in: [lib/native.ts:252](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L252)
32412
+ Defined in: [lib/native.ts:254](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L254)
32117
32413
 
32118
32414
  监听 native 传输过来的事件(仅一次)
32119
32415
 
@@ -32160,7 +32456,7 @@ lib/native/functions/on.md
32160
32456
 
32161
32457
  > **on**(`current`, `name`, `handler`, `once?`, `formId?`): `void`
32162
32458
 
32163
- Defined in: [lib/native.ts:223](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L223)
32459
+ Defined in: [lib/native.ts:225](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L225)
32164
32460
 
32165
32461
  监听 native 传输过来的事件
32166
32462
 
@@ -32250,7 +32546,7 @@ lib/native/functions/open.md
32250
32546
 
32251
32547
  > **open**(`options?`): `Promise`\<`string`[] \| `null`\>
32252
32548
 
32253
- Defined in: [lib/native.ts:478](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L478)
32549
+ Defined in: [lib/native.ts:480](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L480)
32254
32550
 
32255
32551
  弹出文件选择框
32256
32552
 
@@ -32313,7 +32609,7 @@ lib/native/functions/ping.md
32313
32609
 
32314
32610
  > **ping**(`val`): `Promise`\<`string`\>
32315
32611
 
32316
- Defined in: [lib/native.ts:539](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L539)
32612
+ Defined in: [lib/native.ts:541](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L541)
32317
32613
 
32318
32614
  测试与 native 的连通性
32319
32615
 
@@ -32344,7 +32640,7 @@ lib/native/functions/quit.md
32344
32640
 
32345
32641
  > **quit**(`current`): `Promise`\<`boolean`\>
32346
32642
 
32347
- Defined in: [lib/native.ts:376](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L376)
32643
+ Defined in: [lib/native.ts:378](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L378)
32348
32644
 
32349
32645
  直接让整个 native 进程退出
32350
32646
 
@@ -32404,7 +32700,7 @@ lib/native/functions/restore.md
32404
32700
 
32405
32701
  > **restore**(`current`): `Promise`\<`boolean`\>
32406
32702
 
32407
- Defined in: [lib/native.ts:435](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L435)
32703
+ Defined in: [lib/native.ts:437](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L437)
32408
32704
 
32409
32705
  从最小化还原
32410
32706
 
@@ -32431,7 +32727,7 @@ lib/native/functions/save.md
32431
32727
 
32432
32728
  > **save**(`options?`): `Promise`\<`string` \| `null`\>
32433
32729
 
32434
- Defined in: [lib/native.ts:504](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L504)
32730
+ Defined in: [lib/native.ts:506](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L506)
32435
32731
 
32436
32732
  弹出文件保存框
32437
32733
 
@@ -32472,7 +32768,7 @@ lib/native/functions/size.md
32472
32768
 
32473
32769
  > **size**(`current`, `width`, `height`): `Promise`\<`boolean`\>
32474
32770
 
32475
- Defined in: [lib/native.ts:384](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L384)
32771
+ Defined in: [lib/native.ts:386](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L386)
32476
32772
 
32477
32773
  ## Parameters
32478
32774
 
@@ -32505,7 +32801,7 @@ lib/native/functions/unmaximize.md
32505
32801
 
32506
32802
  > **unmaximize**(`current`): `Promise`\<`boolean`\>
32507
32803
 
32508
- Defined in: [lib/native.ts:426](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L426)
32804
+ Defined in: [lib/native.ts:428](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L428)
32509
32805
 
32510
32806
  从最大化还原
32511
32807
 
@@ -32595,7 +32891,7 @@ lib/native/interfaces/ICommandEntry.md
32595
32891
 
32596
32892
  # Interface: ICommandEntry
32597
32893
 
32598
- Defined in: [lib/native.ts:146](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L146)
32894
+ Defined in: [lib/native.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L148)
32599
32895
 
32600
32896
  当前 Native 的公开进程入口,不包含 HTTP 连接凭据
32601
32897
 
@@ -32605,7 +32901,7 @@ Defined in: [lib/native.ts:146](https://github.com/maiyun/clickgo/blob/master/di
32605
32901
 
32606
32902
  > **args**: `string`[]
32607
32903
 
32608
- Defined in: [lib/native.ts:150](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L150)
32904
+ Defined in: [lib/native.ts:152](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L152)
32609
32905
 
32610
32906
  ***
32611
32907
 
@@ -32613,7 +32909,7 @@ Defined in: [lib/native.ts:150](https://github.com/maiyun/clickgo/blob/master/di
32613
32909
 
32614
32910
  > **command**: `string`
32615
32911
 
32616
- Defined in: [lib/native.ts:149](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L149)
32912
+ Defined in: [lib/native.ts:151](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L151)
32617
32913
 
32618
32914
  ***
32619
32915
 
@@ -32621,7 +32917,7 @@ Defined in: [lib/native.ts:149](https://github.com/maiyun/clickgo/blob/master/di
32621
32917
 
32622
32918
  > **mcp**: `object`
32623
32919
 
32624
- Defined in: [lib/native.ts:152](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L152)
32920
+ Defined in: [lib/native.ts:154](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L154)
32625
32921
 
32626
32922
  #### discovery
32627
32923
 
@@ -32637,7 +32933,7 @@ Defined in: [lib/native.ts:152](https://github.com/maiyun/clickgo/blob/master/di
32637
32933
 
32638
32934
  > **name**: `string`
32639
32935
 
32640
- Defined in: [lib/native.ts:147](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L147)
32936
+ Defined in: [lib/native.ts:149](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L149)
32641
32937
 
32642
32938
  ***
32643
32939
 
@@ -32645,7 +32941,7 @@ Defined in: [lib/native.ts:147](https://github.com/maiyun/clickgo/blob/master/di
32645
32941
 
32646
32942
  > **platform**: `string`
32647
32943
 
32648
- Defined in: [lib/native.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L148)
32944
+ Defined in: [lib/native.ts:150](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L150)
32649
32945
 
32650
32946
  ***
32651
32947
 
@@ -32653,7 +32949,7 @@ Defined in: [lib/native.ts:148](https://github.com/maiyun/clickgo/blob/master/di
32653
32949
 
32654
32950
  > **startup**: `"auto"` \| `"existing"`
32655
32951
 
32656
- Defined in: [lib/native.ts:151](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L151)
32952
+ Defined in: [lib/native.ts:153](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L153)
32657
32953
 
32658
32954
  lib/native/interfaces/IMcpInfo.md
32659
32955
  ---
@@ -32666,7 +32962,7 @@ lib/native/interfaces/IMcpInfo.md
32666
32962
 
32667
32963
  # Interface: IMcpInfo
32668
32964
 
32669
- Defined in: [lib/native.ts:139](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L139)
32965
+ Defined in: [lib/native.ts:141](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L141)
32670
32966
 
32671
32967
  本地 MCP 客户端连接设置;仅向已授权 root 的 App 提供
32672
32968
 
@@ -32676,7 +32972,7 @@ Defined in: [lib/native.ts:139](https://github.com/maiyun/clickgo/blob/master/di
32676
32972
 
32677
32973
  > **token**: `string`
32678
32974
 
32679
- Defined in: [lib/native.ts:142](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L142)
32975
+ Defined in: [lib/native.ts:144](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L144)
32680
32976
 
32681
32977
  ***
32682
32978
 
@@ -32684,7 +32980,7 @@ Defined in: [lib/native.ts:142](https://github.com/maiyun/clickgo/blob/master/di
32684
32980
 
32685
32981
  > **transport**: `"streamable-http"`
32686
32982
 
32687
- Defined in: [lib/native.ts:140](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L140)
32983
+ Defined in: [lib/native.ts:142](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L142)
32688
32984
 
32689
32985
  ***
32690
32986
 
@@ -32692,7 +32988,7 @@ Defined in: [lib/native.ts:140](https://github.com/maiyun/clickgo/blob/master/di
32692
32988
 
32693
32989
  > **url**: `string`
32694
32990
 
32695
- Defined in: [lib/native.ts:141](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L141)
32991
+ Defined in: [lib/native.ts:143](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L143)
32696
32992
 
32697
32993
  lib/native/interfaces/INativeLaunchEvent.md
32698
32994
  ---