clickgo 7.0.0 → 7.1.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/index.js +1 -1
- package/dist/lib/native/update.d.ts +48 -0
- package/dist/lib/native.d.ts +9 -0
- package/doc/clickgo-rag.md +353 -37
- package/package.json +3 -2
package/doc/clickgo-rag.md
CHANGED
|
@@ -31101,7 +31101,7 @@ lib/native/functions/activate.md
|
|
|
31101
31101
|
|
|
31102
31102
|
> **activate**(`current`): `Promise`\<`boolean`\>
|
|
31103
31103
|
|
|
31104
|
-
Defined in: [lib/native.ts:
|
|
31104
|
+
Defined in: [lib/native.ts:405](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L405)
|
|
31105
31105
|
|
|
31106
31106
|
## Parameters
|
|
31107
31107
|
|
|
@@ -31113,6 +31113,37 @@ Defined in: [lib/native.ts:384](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
31113
31113
|
|
|
31114
31114
|
`Promise`\<`boolean`\>
|
|
31115
31115
|
|
|
31116
|
+
lib/native/functions/checkUpdates.md
|
|
31117
|
+
---
|
|
31118
|
+
|
|
31119
|
+
[**Documents for clickgo**](../../../index.md)
|
|
31120
|
+
|
|
31121
|
+
***
|
|
31122
|
+
|
|
31123
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / checkUpdates
|
|
31124
|
+
|
|
31125
|
+
# Function: checkUpdates()
|
|
31126
|
+
|
|
31127
|
+
> **checkUpdates**(`current`): `Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31128
|
+
|
|
31129
|
+
Defined in: [lib/native/update.ts:28](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L28)
|
|
31130
|
+
|
|
31131
|
+
检测软件更新,主进程须 launcher({ updates: true }) 并配置 build.publish
|
|
31132
|
+
|
|
31133
|
+
## Parameters
|
|
31134
|
+
|
|
31135
|
+
### current
|
|
31136
|
+
|
|
31137
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
31138
|
+
|
|
31139
|
+
当前 App 或窗体,要求 root 权限
|
|
31140
|
+
|
|
31141
|
+
## Returns
|
|
31142
|
+
|
|
31143
|
+
`Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31144
|
+
|
|
31145
|
+
检测状态;开发/便携/未启用返回 disabled,无权限为 false,网页/旧宿主为 null
|
|
31146
|
+
|
|
31116
31147
|
lib/native/functions/clear.md
|
|
31117
31148
|
---
|
|
31118
31149
|
|
|
@@ -31126,7 +31157,7 @@ lib/native/functions/clear.md
|
|
|
31126
31157
|
|
|
31127
31158
|
> **clear**(`taskId`, `formId?`): `void`
|
|
31128
31159
|
|
|
31129
|
-
Defined in: [lib/native.ts:
|
|
31160
|
+
Defined in: [lib/native.ts:248](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L248)
|
|
31130
31161
|
|
|
31131
31162
|
清除某个窗体或某个任务的所有事件监听
|
|
31132
31163
|
|
|
@@ -31161,7 +31192,7 @@ lib/native/functions/close.md
|
|
|
31161
31192
|
|
|
31162
31193
|
> **close**(`current`): `Promise`\<`boolean`\>
|
|
31163
31194
|
|
|
31164
|
-
Defined in: [lib/native.ts:
|
|
31195
|
+
Defined in: [lib/native.ts:417](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L417)
|
|
31165
31196
|
|
|
31166
31197
|
关闭当前 native 真实窗体,根据配置整个 native 任务可能结束也可能保留 node 不结束
|
|
31167
31198
|
|
|
@@ -31190,7 +31221,7 @@ lib/native/functions/dialog.md
|
|
|
31190
31221
|
|
|
31191
31222
|
> **dialog**(`options?`): `Promise`\<`number`\>
|
|
31192
31223
|
|
|
31193
|
-
Defined in: [lib/native.ts:
|
|
31224
|
+
Defined in: [lib/native.ts:484](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L484)
|
|
31194
31225
|
|
|
31195
31226
|
弹出消息框
|
|
31196
31227
|
|
|
@@ -31208,6 +31239,37 @@ Defined in: [lib/native.ts:463](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
31208
31239
|
|
|
31209
31240
|
点击的按钮索引
|
|
31210
31241
|
|
|
31242
|
+
lib/native/functions/downloadUpdate.md
|
|
31243
|
+
---
|
|
31244
|
+
|
|
31245
|
+
[**Documents for clickgo**](../../../index.md)
|
|
31246
|
+
|
|
31247
|
+
***
|
|
31248
|
+
|
|
31249
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / downloadUpdate
|
|
31250
|
+
|
|
31251
|
+
# Function: downloadUpdate()
|
|
31252
|
+
|
|
31253
|
+
> **downloadUpdate**(`current`): `Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31254
|
+
|
|
31255
|
+
Defined in: [lib/native/update.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L37)
|
|
31256
|
+
|
|
31257
|
+
下载检测到的版本,合并并发下载,由 Native 校验文件
|
|
31258
|
+
|
|
31259
|
+
## Parameters
|
|
31260
|
+
|
|
31261
|
+
### current
|
|
31262
|
+
|
|
31263
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
31264
|
+
|
|
31265
|
+
当前 App 或窗体,要求 root 权限,业务须先取得用户确认
|
|
31266
|
+
|
|
31267
|
+
## Returns
|
|
31268
|
+
|
|
31269
|
+
`Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31270
|
+
|
|
31271
|
+
downloaded 表示校验完成,未就绪/失败为 error;无权限为 false,不支持为 null
|
|
31272
|
+
|
|
31211
31273
|
lib/native/functions/getCommandEntry.md
|
|
31212
31274
|
---
|
|
31213
31275
|
|
|
@@ -31221,7 +31283,7 @@ lib/native/functions/getCommandEntry.md
|
|
|
31221
31283
|
|
|
31222
31284
|
> **getCommandEntry**(): `Promise`\<[`ICommandEntry`](../interfaces/ICommandEntry.md) \| `null`\>
|
|
31223
31285
|
|
|
31224
|
-
Defined in: [lib/native.ts:
|
|
31286
|
+
Defined in: [lib/native.ts:121](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L121)
|
|
31225
31287
|
|
|
31226
31288
|
取得软件自身的 CLI/stdio 入口和启动要求,无需读取连接凭据
|
|
31227
31289
|
|
|
@@ -31244,7 +31306,7 @@ lib/native/functions/getListenerList.md
|
|
|
31244
31306
|
|
|
31245
31307
|
> **getListenerList**(`taskId?`): `Record`\<`string`, `Record`\<`string`, `Record`\<`string`, `number`\>\>\>
|
|
31246
31308
|
|
|
31247
|
-
Defined in: [lib/native.ts:
|
|
31309
|
+
Defined in: [lib/native.ts:271](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L271)
|
|
31248
31310
|
|
|
31249
31311
|
获取监听 native 事件的监听统计信息列表
|
|
31250
31312
|
|
|
@@ -31273,7 +31335,7 @@ lib/native/functions/getMcpInfo.md
|
|
|
31273
31335
|
|
|
31274
31336
|
> **getMcpInfo**(`current`): `Promise`\<`false` \| [`IMcpInfo`](../interfaces/IMcpInfo.md) \| `null`\>
|
|
31275
31337
|
|
|
31276
|
-
Defined in: [lib/native.ts:
|
|
31338
|
+
Defined in: [lib/native.ts:130](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L130)
|
|
31277
31339
|
|
|
31278
31340
|
读取 Native 主进程启用的 MCP 连接设置
|
|
31279
31341
|
|
|
@@ -31291,6 +31353,37 @@ Defined in: [lib/native.ts:109](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
31291
31353
|
|
|
31292
31354
|
连接设置;未启用为 null,无权限为 false
|
|
31293
31355
|
|
|
31356
|
+
lib/native/functions/getUpdateState.md
|
|
31357
|
+
---
|
|
31358
|
+
|
|
31359
|
+
[**Documents for clickgo**](../../../index.md)
|
|
31360
|
+
|
|
31361
|
+
***
|
|
31362
|
+
|
|
31363
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / getUpdateState
|
|
31364
|
+
|
|
31365
|
+
# Function: getUpdateState()
|
|
31366
|
+
|
|
31367
|
+
> **getUpdateState**(`current`): `Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31368
|
+
|
|
31369
|
+
Defined in: [lib/native/update.ts:55](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L55)
|
|
31370
|
+
|
|
31371
|
+
读取 Native 软件级更新状态快照
|
|
31372
|
+
|
|
31373
|
+
## Parameters
|
|
31374
|
+
|
|
31375
|
+
### current
|
|
31376
|
+
|
|
31377
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
31378
|
+
|
|
31379
|
+
当前 App 或窗体,要求 root 权限
|
|
31380
|
+
|
|
31381
|
+
## Returns
|
|
31382
|
+
|
|
31383
|
+
`Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31384
|
+
|
|
31385
|
+
当前状态,无权限为 false,网页或旧宿主不支持为 null
|
|
31386
|
+
|
|
31294
31387
|
lib/native/functions/init.md
|
|
31295
31388
|
---
|
|
31296
31389
|
|
|
@@ -31304,7 +31397,7 @@ lib/native/functions/init.md
|
|
|
31304
31397
|
|
|
31305
31398
|
> **init**(): `void`
|
|
31306
31399
|
|
|
31307
|
-
Defined in: [lib/native.ts:
|
|
31400
|
+
Defined in: [lib/native.ts:515](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L515)
|
|
31308
31401
|
|
|
31309
31402
|
## Returns
|
|
31310
31403
|
|
|
@@ -31323,7 +31416,7 @@ lib/native/functions/initSysId.md
|
|
|
31323
31416
|
|
|
31324
31417
|
> **initSysId**(`id`): `void`
|
|
31325
31418
|
|
|
31326
|
-
Defined in: [lib/native.ts:
|
|
31419
|
+
Defined in: [lib/native.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L35)
|
|
31327
31420
|
|
|
31328
31421
|
初始化系统级 ID,仅能设置一次
|
|
31329
31422
|
|
|
@@ -31339,6 +31432,37 @@ Defined in: [lib/native.ts:33](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
31339
31432
|
|
|
31340
31433
|
`void`
|
|
31341
31434
|
|
|
31435
|
+
lib/native/functions/installUpdate.md
|
|
31436
|
+
---
|
|
31437
|
+
|
|
31438
|
+
[**Documents for clickgo**](../../../index.md)
|
|
31439
|
+
|
|
31440
|
+
***
|
|
31441
|
+
|
|
31442
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / installUpdate
|
|
31443
|
+
|
|
31444
|
+
# Function: installUpdate()
|
|
31445
|
+
|
|
31446
|
+
> **installUpdate**(`current`): `Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31447
|
+
|
|
31448
|
+
Defined in: [lib/native/update.ts:46](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L46)
|
|
31449
|
+
|
|
31450
|
+
安装本进程已下载的版本并重启,业务须先保存文档并确认
|
|
31451
|
+
|
|
31452
|
+
## Parameters
|
|
31453
|
+
|
|
31454
|
+
### current
|
|
31455
|
+
|
|
31456
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
31457
|
+
|
|
31458
|
+
当前 App 或窗体,要求 root 权限
|
|
31459
|
+
|
|
31460
|
+
## Returns
|
|
31461
|
+
|
|
31462
|
+
`Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31463
|
+
|
|
31464
|
+
restarting 表示安装开始;异步失败由 onUpdateState 通知,无权限为 false,不支持为 null
|
|
31465
|
+
|
|
31342
31466
|
lib/native/functions/invoke.md
|
|
31343
31467
|
---
|
|
31344
31468
|
|
|
@@ -31352,7 +31476,7 @@ lib/native/functions/invoke.md
|
|
|
31352
31476
|
|
|
31353
31477
|
> **invoke**(`name`, ...`param`): `Promise`\<`any`\>
|
|
31354
31478
|
|
|
31355
|
-
Defined in: [lib/native.ts:
|
|
31479
|
+
Defined in: [lib/native.ts:312](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L312)
|
|
31356
31480
|
|
|
31357
31481
|
向 native 发送指令
|
|
31358
31482
|
|
|
@@ -31387,7 +31511,7 @@ lib/native/functions/invokeSys.md
|
|
|
31387
31511
|
|
|
31388
31512
|
> **invokeSys**(`current`, `name`, ...`param`): `Promise`\<`any`\>
|
|
31389
31513
|
|
|
31390
|
-
Defined in: [lib/native.ts:
|
|
31514
|
+
Defined in: [lib/native.ts:325](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L325)
|
|
31391
31515
|
|
|
31392
31516
|
向 native 发送指令(系统级)
|
|
31393
31517
|
|
|
@@ -31415,6 +31539,43 @@ Defined in: [lib/native.ts:304](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
31415
31539
|
|
|
31416
31540
|
`Promise`\<`any`\>
|
|
31417
31541
|
|
|
31542
|
+
lib/native/functions/invokeUpdate.md
|
|
31543
|
+
---
|
|
31544
|
+
|
|
31545
|
+
[**Documents for clickgo**](../../../index.md)
|
|
31546
|
+
|
|
31547
|
+
***
|
|
31548
|
+
|
|
31549
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / invokeUpdate
|
|
31550
|
+
|
|
31551
|
+
# Function: invokeUpdate()
|
|
31552
|
+
|
|
31553
|
+
> **invokeUpdate**(`current`, `action`): `Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31554
|
+
|
|
31555
|
+
Defined in: [lib/native.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L51)
|
|
31556
|
+
|
|
31557
|
+
接入固定的软件更新动作,不允许网页提供地址或安装路径
|
|
31558
|
+
|
|
31559
|
+
## Parameters
|
|
31560
|
+
|
|
31561
|
+
### current
|
|
31562
|
+
|
|
31563
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
31564
|
+
|
|
31565
|
+
已确认有效的任务
|
|
31566
|
+
|
|
31567
|
+
### action
|
|
31568
|
+
|
|
31569
|
+
`"check"` \| `"download"` \| `"install"` \| `"state"`
|
|
31570
|
+
|
|
31571
|
+
固定更新动作
|
|
31572
|
+
|
|
31573
|
+
## Returns
|
|
31574
|
+
|
|
31575
|
+
`Promise`\<`false` \| [`IUpdateState`](../interfaces/IUpdateState.md) \| `null`\>
|
|
31576
|
+
|
|
31577
|
+
更新状态;任务失效为 false,旧宿主缺少能力时为 null
|
|
31578
|
+
|
|
31418
31579
|
lib/native/functions/isMax.md
|
|
31419
31580
|
---
|
|
31420
31581
|
|
|
@@ -31428,7 +31589,7 @@ lib/native/functions/isMax.md
|
|
|
31428
31589
|
|
|
31429
31590
|
> **isMax**(): `Promise`\<`boolean`\>
|
|
31430
31591
|
|
|
31431
|
-
Defined in: [lib/native.ts:
|
|
31592
|
+
Defined in: [lib/native.ts:508](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L508)
|
|
31432
31593
|
|
|
31433
31594
|
判断窗体是否是最大化状态
|
|
31434
31595
|
|
|
@@ -31449,7 +31610,7 @@ lib/native/functions/maximizable.md
|
|
|
31449
31610
|
|
|
31450
31611
|
> **maximizable**(`current`, `val`): `Promise`\<`boolean`\>
|
|
31451
31612
|
|
|
31452
|
-
Defined in: [lib/native.ts:
|
|
31613
|
+
Defined in: [lib/native.ts:425](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L425)
|
|
31453
31614
|
|
|
31454
31615
|
## Parameters
|
|
31455
31616
|
|
|
@@ -31478,7 +31639,7 @@ lib/native/functions/max.md
|
|
|
31478
31639
|
|
|
31479
31640
|
> **max**(`current`): `Promise`\<`boolean`\>
|
|
31480
31641
|
|
|
31481
|
-
Defined in: [lib/native.ts:
|
|
31642
|
+
Defined in: [lib/native.ts:371](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L371)
|
|
31482
31643
|
|
|
31483
31644
|
## Parameters
|
|
31484
31645
|
|
|
@@ -31503,7 +31664,7 @@ lib/native/functions/min.md
|
|
|
31503
31664
|
|
|
31504
31665
|
> **min**(`current`): `Promise`\<`boolean`\>
|
|
31505
31666
|
|
|
31506
|
-
Defined in: [lib/native.ts:
|
|
31667
|
+
Defined in: [lib/native.ts:379](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L379)
|
|
31507
31668
|
|
|
31508
31669
|
## Parameters
|
|
31509
31670
|
|
|
@@ -31528,7 +31689,7 @@ lib/native/functions/minSize.md
|
|
|
31528
31689
|
|
|
31529
31690
|
> **minSize**(`current`, `width`, `height`): `Promise`\<`boolean`\>
|
|
31530
31691
|
|
|
31531
|
-
Defined in: [lib/native.ts:
|
|
31692
|
+
Defined in: [lib/native.ts:360](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L360)
|
|
31532
31693
|
|
|
31533
31694
|
设置实体窗体的最小尺寸,0 表示不限制对应方向
|
|
31534
31695
|
|
|
@@ -31569,7 +31730,7 @@ lib/native/functions/off.md
|
|
|
31569
31730
|
|
|
31570
31731
|
> **off**(`current`, `name`, `formId?`): `void`
|
|
31571
31732
|
|
|
31572
|
-
Defined in: [lib/native.ts:
|
|
31733
|
+
Defined in: [lib/native.ts:229](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L229)
|
|
31573
31734
|
|
|
31574
31735
|
解绑监听的方法
|
|
31575
31736
|
|
|
@@ -31610,7 +31771,7 @@ lib/native/functions/once.md
|
|
|
31610
31771
|
|
|
31611
31772
|
> **once**(`current`, `name`, `handler`, `formId?`): `void`
|
|
31612
31773
|
|
|
31613
|
-
Defined in: [lib/native.ts:
|
|
31774
|
+
Defined in: [lib/native.ts:214](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L214)
|
|
31614
31775
|
|
|
31615
31776
|
监听 native 传输过来的事件(仅一次)
|
|
31616
31777
|
|
|
@@ -31657,7 +31818,7 @@ lib/native/functions/on.md
|
|
|
31657
31818
|
|
|
31658
31819
|
> **on**(`current`, `name`, `handler`, `once?`, `formId?`): `void`
|
|
31659
31820
|
|
|
31660
|
-
Defined in: [lib/native.ts:
|
|
31821
|
+
Defined in: [lib/native.ts:185](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L185)
|
|
31661
31822
|
|
|
31662
31823
|
监听 native 传输过来的事件
|
|
31663
31824
|
|
|
@@ -31697,6 +31858,43 @@ Defined in: [lib/native.ts:164](https://github.com/maiyun/clickgo/blob/master/di
|
|
|
31697
31858
|
|
|
31698
31859
|
`void`
|
|
31699
31860
|
|
|
31861
|
+
lib/native/functions/onUpdateState.md
|
|
31862
|
+
---
|
|
31863
|
+
|
|
31864
|
+
[**Documents for clickgo**](../../../index.md)
|
|
31865
|
+
|
|
31866
|
+
***
|
|
31867
|
+
|
|
31868
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / onUpdateState
|
|
31869
|
+
|
|
31870
|
+
# Function: onUpdateState()
|
|
31871
|
+
|
|
31872
|
+
> **onUpdateState**(`current`, `handler`): `void`
|
|
31873
|
+
|
|
31874
|
+
Defined in: [lib/native/update.ts:65](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L65)
|
|
31875
|
+
|
|
31876
|
+
监听软件级公开状态及下载进度;不包含 URL、凭据或文件路径
|
|
31877
|
+
|
|
31878
|
+
## Parameters
|
|
31879
|
+
|
|
31880
|
+
### current
|
|
31881
|
+
|
|
31882
|
+
[`TCurrent`](../../core/type-aliases/TCurrent.md)
|
|
31883
|
+
|
|
31884
|
+
当前 App 或窗体,不要求 root;控制更新仍须 root
|
|
31885
|
+
|
|
31886
|
+
### handler
|
|
31887
|
+
|
|
31888
|
+
(`state`) => `void` \| `Promise`\<`void`\>
|
|
31889
|
+
|
|
31890
|
+
状态回调,业务不需要定义 Native 事件名
|
|
31891
|
+
|
|
31892
|
+
## Returns
|
|
31893
|
+
|
|
31894
|
+
`void`
|
|
31895
|
+
|
|
31896
|
+
无返回值;窗体或任务销毁时自动解除,网页/旧宿主不会投递
|
|
31897
|
+
|
|
31700
31898
|
lib/native/functions/open.md
|
|
31701
31899
|
---
|
|
31702
31900
|
|
|
@@ -31710,7 +31908,7 @@ lib/native/functions/open.md
|
|
|
31710
31908
|
|
|
31711
31909
|
> **open**(`options?`): `Promise`\<`string`[] \| `null`\>
|
|
31712
31910
|
|
|
31713
|
-
Defined in: [lib/native.ts:
|
|
31911
|
+
Defined in: [lib/native.ts:440](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L440)
|
|
31714
31912
|
|
|
31715
31913
|
弹出文件选择框
|
|
31716
31914
|
|
|
@@ -31773,7 +31971,7 @@ lib/native/functions/ping.md
|
|
|
31773
31971
|
|
|
31774
31972
|
> **ping**(`val`): `Promise`\<`string`\>
|
|
31775
31973
|
|
|
31776
|
-
Defined in: [lib/native.ts:
|
|
31974
|
+
Defined in: [lib/native.ts:501](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L501)
|
|
31777
31975
|
|
|
31778
31976
|
测试与 native 的连通性
|
|
31779
31977
|
|
|
@@ -31804,7 +32002,7 @@ lib/native/functions/quit.md
|
|
|
31804
32002
|
|
|
31805
32003
|
> **quit**(`current`): `Promise`\<`boolean`\>
|
|
31806
32004
|
|
|
31807
|
-
Defined in: [lib/native.ts:
|
|
32005
|
+
Defined in: [lib/native.ts:338](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L338)
|
|
31808
32006
|
|
|
31809
32007
|
直接让整个 native 进程退出
|
|
31810
32008
|
|
|
@@ -31833,7 +32031,7 @@ lib/native/functions/restore.md
|
|
|
31833
32031
|
|
|
31834
32032
|
> **restore**(`current`): `Promise`\<`boolean`\>
|
|
31835
32033
|
|
|
31836
|
-
Defined in: [lib/native.ts:
|
|
32034
|
+
Defined in: [lib/native.ts:397](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L397)
|
|
31837
32035
|
|
|
31838
32036
|
从最小化还原
|
|
31839
32037
|
|
|
@@ -31860,7 +32058,7 @@ lib/native/functions/save.md
|
|
|
31860
32058
|
|
|
31861
32059
|
> **save**(`options?`): `Promise`\<`string` \| `null`\>
|
|
31862
32060
|
|
|
31863
|
-
Defined in: [lib/native.ts:
|
|
32061
|
+
Defined in: [lib/native.ts:466](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L466)
|
|
31864
32062
|
|
|
31865
32063
|
弹出文件保存框
|
|
31866
32064
|
|
|
@@ -31901,7 +32099,7 @@ lib/native/functions/size.md
|
|
|
31901
32099
|
|
|
31902
32100
|
> **size**(`current`, `width`, `height`): `Promise`\<`boolean`\>
|
|
31903
32101
|
|
|
31904
|
-
Defined in: [lib/native.ts:
|
|
32102
|
+
Defined in: [lib/native.ts:346](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L346)
|
|
31905
32103
|
|
|
31906
32104
|
## Parameters
|
|
31907
32105
|
|
|
@@ -31934,7 +32132,7 @@ lib/native/functions/unmaximize.md
|
|
|
31934
32132
|
|
|
31935
32133
|
> **unmaximize**(`current`): `Promise`\<`boolean`\>
|
|
31936
32134
|
|
|
31937
|
-
Defined in: [lib/native.ts:
|
|
32135
|
+
Defined in: [lib/native.ts:388](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L388)
|
|
31938
32136
|
|
|
31939
32137
|
从最大化还原
|
|
31940
32138
|
|
|
@@ -31968,20 +32166,27 @@ lib/native/index.md
|
|
|
31968
32166
|
|
|
31969
32167
|
- [ICommandEntry](interfaces/ICommandEntry.md)
|
|
31970
32168
|
- [IMcpInfo](interfaces/IMcpInfo.md)
|
|
32169
|
+
- [IUpdateProgress](interfaces/IUpdateProgress.md)
|
|
32170
|
+
- [IUpdateState](interfaces/IUpdateState.md)
|
|
31971
32171
|
|
|
31972
32172
|
## Functions
|
|
31973
32173
|
|
|
31974
32174
|
- [activate](functions/activate.md)
|
|
32175
|
+
- [checkUpdates](functions/checkUpdates.md)
|
|
31975
32176
|
- [clear](functions/clear.md)
|
|
31976
32177
|
- [close](functions/close.md)
|
|
31977
32178
|
- [dialog](functions/dialog.md)
|
|
32179
|
+
- [downloadUpdate](functions/downloadUpdate.md)
|
|
31978
32180
|
- [getCommandEntry](functions/getCommandEntry.md)
|
|
31979
32181
|
- [getListenerList](functions/getListenerList.md)
|
|
31980
32182
|
- [getMcpInfo](functions/getMcpInfo.md)
|
|
32183
|
+
- [getUpdateState](functions/getUpdateState.md)
|
|
31981
32184
|
- [init](functions/init.md)
|
|
31982
32185
|
- [initSysId](functions/initSysId.md)
|
|
32186
|
+
- [installUpdate](functions/installUpdate.md)
|
|
31983
32187
|
- [invoke](functions/invoke.md)
|
|
31984
32188
|
- [invokeSys](functions/invokeSys.md)
|
|
32189
|
+
- [invokeUpdate](functions/invokeUpdate.md)
|
|
31985
32190
|
- [isMax](functions/isMax.md)
|
|
31986
32191
|
- [max](functions/max.md)
|
|
31987
32192
|
- [maximizable](functions/maximizable.md)
|
|
@@ -31990,6 +32195,7 @@ lib/native/index.md
|
|
|
31990
32195
|
- [off](functions/off.md)
|
|
31991
32196
|
- [on](functions/on.md)
|
|
31992
32197
|
- [once](functions/once.md)
|
|
32198
|
+
- [onUpdateState](functions/onUpdateState.md)
|
|
31993
32199
|
- [open](functions/open.md)
|
|
31994
32200
|
- [ping](functions/ping.md)
|
|
31995
32201
|
- [quit](functions/quit.md)
|
|
@@ -32009,7 +32215,7 @@ lib/native/interfaces/ICommandEntry.md
|
|
|
32009
32215
|
|
|
32010
32216
|
# Interface: ICommandEntry
|
|
32011
32217
|
|
|
32012
|
-
Defined in: [lib/native.ts:
|
|
32218
|
+
Defined in: [lib/native.ts:108](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L108)
|
|
32013
32219
|
|
|
32014
32220
|
当前 Native 的公开进程入口,不包含 HTTP 连接凭据
|
|
32015
32221
|
|
|
@@ -32019,7 +32225,7 @@ Defined in: [lib/native.ts:87](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32019
32225
|
|
|
32020
32226
|
> **args**: `string`[]
|
|
32021
32227
|
|
|
32022
|
-
Defined in: [lib/native.ts:
|
|
32228
|
+
Defined in: [lib/native.ts:112](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L112)
|
|
32023
32229
|
|
|
32024
32230
|
***
|
|
32025
32231
|
|
|
@@ -32027,7 +32233,7 @@ Defined in: [lib/native.ts:91](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32027
32233
|
|
|
32028
32234
|
> **command**: `string`
|
|
32029
32235
|
|
|
32030
|
-
Defined in: [lib/native.ts:
|
|
32236
|
+
Defined in: [lib/native.ts:111](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L111)
|
|
32031
32237
|
|
|
32032
32238
|
***
|
|
32033
32239
|
|
|
@@ -32035,7 +32241,7 @@ Defined in: [lib/native.ts:90](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32035
32241
|
|
|
32036
32242
|
> **mcp**: `object`
|
|
32037
32243
|
|
|
32038
|
-
Defined in: [lib/native.ts:
|
|
32244
|
+
Defined in: [lib/native.ts:114](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L114)
|
|
32039
32245
|
|
|
32040
32246
|
#### discovery
|
|
32041
32247
|
|
|
@@ -32051,7 +32257,7 @@ Defined in: [lib/native.ts:93](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32051
32257
|
|
|
32052
32258
|
> **name**: `string`
|
|
32053
32259
|
|
|
32054
|
-
Defined in: [lib/native.ts:
|
|
32260
|
+
Defined in: [lib/native.ts:109](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L109)
|
|
32055
32261
|
|
|
32056
32262
|
***
|
|
32057
32263
|
|
|
@@ -32059,7 +32265,7 @@ Defined in: [lib/native.ts:88](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32059
32265
|
|
|
32060
32266
|
> **platform**: `string`
|
|
32061
32267
|
|
|
32062
|
-
Defined in: [lib/native.ts:
|
|
32268
|
+
Defined in: [lib/native.ts:110](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L110)
|
|
32063
32269
|
|
|
32064
32270
|
***
|
|
32065
32271
|
|
|
@@ -32067,7 +32273,7 @@ Defined in: [lib/native.ts:89](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32067
32273
|
|
|
32068
32274
|
> **startup**: `"auto"` \| `"existing"`
|
|
32069
32275
|
|
|
32070
|
-
Defined in: [lib/native.ts:
|
|
32276
|
+
Defined in: [lib/native.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L113)
|
|
32071
32277
|
|
|
32072
32278
|
lib/native/interfaces/IMcpInfo.md
|
|
32073
32279
|
---
|
|
@@ -32080,7 +32286,7 @@ lib/native/interfaces/IMcpInfo.md
|
|
|
32080
32286
|
|
|
32081
32287
|
# Interface: IMcpInfo
|
|
32082
32288
|
|
|
32083
|
-
Defined in: [lib/native.ts:
|
|
32289
|
+
Defined in: [lib/native.ts:101](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L101)
|
|
32084
32290
|
|
|
32085
32291
|
本地 MCP 客户端连接设置;仅向已授权 root 的 App 提供
|
|
32086
32292
|
|
|
@@ -32090,7 +32296,7 @@ Defined in: [lib/native.ts:80](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32090
32296
|
|
|
32091
32297
|
> **token**: `string`
|
|
32092
32298
|
|
|
32093
|
-
Defined in: [lib/native.ts:
|
|
32299
|
+
Defined in: [lib/native.ts:104](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L104)
|
|
32094
32300
|
|
|
32095
32301
|
***
|
|
32096
32302
|
|
|
@@ -32098,7 +32304,7 @@ Defined in: [lib/native.ts:83](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32098
32304
|
|
|
32099
32305
|
> **transport**: `"streamable-http"`
|
|
32100
32306
|
|
|
32101
|
-
Defined in: [lib/native.ts:
|
|
32307
|
+
Defined in: [lib/native.ts:102](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L102)
|
|
32102
32308
|
|
|
32103
32309
|
***
|
|
32104
32310
|
|
|
@@ -32106,7 +32312,117 @@ Defined in: [lib/native.ts:81](https://github.com/maiyun/clickgo/blob/master/dis
|
|
|
32106
32312
|
|
|
32107
32313
|
> **url**: `string`
|
|
32108
32314
|
|
|
32109
|
-
Defined in: [lib/native.ts:
|
|
32315
|
+
Defined in: [lib/native.ts:103](https://github.com/maiyun/clickgo/blob/master/dist/lib/native.ts#L103)
|
|
32316
|
+
|
|
32317
|
+
lib/native/interfaces/IUpdateProgress.md
|
|
32318
|
+
---
|
|
32319
|
+
|
|
32320
|
+
[**Documents for clickgo**](../../../index.md)
|
|
32321
|
+
|
|
32322
|
+
***
|
|
32323
|
+
|
|
32324
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / IUpdateProgress
|
|
32325
|
+
|
|
32326
|
+
# Interface: IUpdateProgress
|
|
32327
|
+
|
|
32328
|
+
Defined in: [lib/native/update.ts:5](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L5)
|
|
32329
|
+
|
|
32330
|
+
下载进度:百分比 0–100,其余值为字节数或字节/秒
|
|
32331
|
+
|
|
32332
|
+
## Properties
|
|
32333
|
+
|
|
32334
|
+
### bytesPerSecond
|
|
32335
|
+
|
|
32336
|
+
> **bytesPerSecond**: `number`
|
|
32337
|
+
|
|
32338
|
+
Defined in: [lib/native/update.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L9)
|
|
32339
|
+
|
|
32340
|
+
***
|
|
32341
|
+
|
|
32342
|
+
### percent
|
|
32343
|
+
|
|
32344
|
+
> **percent**: `number`
|
|
32345
|
+
|
|
32346
|
+
Defined in: [lib/native/update.ts:6](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L6)
|
|
32347
|
+
|
|
32348
|
+
***
|
|
32349
|
+
|
|
32350
|
+
### total
|
|
32351
|
+
|
|
32352
|
+
> **total**: `number`
|
|
32353
|
+
|
|
32354
|
+
Defined in: [lib/native/update.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L8)
|
|
32355
|
+
|
|
32356
|
+
***
|
|
32357
|
+
|
|
32358
|
+
### transferred
|
|
32359
|
+
|
|
32360
|
+
> **transferred**: `number`
|
|
32361
|
+
|
|
32362
|
+
Defined in: [lib/native/update.ts:7](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L7)
|
|
32363
|
+
|
|
32364
|
+
lib/native/interfaces/IUpdateState.md
|
|
32365
|
+
---
|
|
32366
|
+
|
|
32367
|
+
[**Documents for clickgo**](../../../index.md)
|
|
32368
|
+
|
|
32369
|
+
***
|
|
32370
|
+
|
|
32371
|
+
[Documents for clickgo](../../../index.md) / [lib/native](../index.md) / IUpdateState
|
|
32372
|
+
|
|
32373
|
+
# Interface: IUpdateState
|
|
32374
|
+
|
|
32375
|
+
Defined in: [lib/native/update.ts:13](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L13)
|
|
32376
|
+
|
|
32377
|
+
Native 软件级更新状态,不含更新源、凭据和安装路径
|
|
32378
|
+
|
|
32379
|
+
## Properties
|
|
32380
|
+
|
|
32381
|
+
### currentVersion
|
|
32382
|
+
|
|
32383
|
+
> **currentVersion**: `string`
|
|
32384
|
+
|
|
32385
|
+
Defined in: [lib/native/update.ts:16](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L16)
|
|
32386
|
+
|
|
32387
|
+
***
|
|
32388
|
+
|
|
32389
|
+
### errorCode?
|
|
32390
|
+
|
|
32391
|
+
> `optional` **errorCode?**: `"check-failed"` \| `"download-failed"` \| `"not-ready"` \| `"install-failed"`
|
|
32392
|
+
|
|
32393
|
+
Defined in: [lib/native/update.ts:20](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L20)
|
|
32394
|
+
|
|
32395
|
+
***
|
|
32396
|
+
|
|
32397
|
+
### progress?
|
|
32398
|
+
|
|
32399
|
+
> `optional` **progress?**: [`IUpdateProgress`](IUpdateProgress.md)
|
|
32400
|
+
|
|
32401
|
+
Defined in: [lib/native/update.ts:18](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L18)
|
|
32402
|
+
|
|
32403
|
+
***
|
|
32404
|
+
|
|
32405
|
+
### reason?
|
|
32406
|
+
|
|
32407
|
+
> `optional` **reason?**: `"not-enabled"` \| `"development"` \| `"portable"`
|
|
32408
|
+
|
|
32409
|
+
Defined in: [lib/native/update.ts:19](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L19)
|
|
32410
|
+
|
|
32411
|
+
***
|
|
32412
|
+
|
|
32413
|
+
### status
|
|
32414
|
+
|
|
32415
|
+
> **status**: `"error"` \| `"idle"` \| `"checking"` \| `"available"` \| `"up-to-date"` \| `"disabled"` \| `"downloading"` \| `"downloaded"` \| `"restarting"`
|
|
32416
|
+
|
|
32417
|
+
Defined in: [lib/native/update.ts:14](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L14)
|
|
32418
|
+
|
|
32419
|
+
***
|
|
32420
|
+
|
|
32421
|
+
### version?
|
|
32422
|
+
|
|
32423
|
+
> `optional` **version?**: `string`
|
|
32424
|
+
|
|
32425
|
+
Defined in: [lib/native/update.ts:17](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/update.ts#L17)
|
|
32110
32426
|
|
|
32111
32427
|
lib/native/namespaces/secret/functions/get.md
|
|
32112
32428
|
---
|