@talex-touch/utils 1.0.42 → 1.0.44

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.
Files changed (233) hide show
  1. package/.eslintcache +1 -0
  2. package/__tests__/cloud-sync-sdk.test.ts +442 -0
  3. package/__tests__/icons/icons.test.ts +84 -0
  4. package/__tests__/plugin-sdk-lifecycle.test.ts +130 -0
  5. package/__tests__/power-sdk.test.ts +143 -0
  6. package/__tests__/preset-export-types.test.ts +108 -0
  7. package/__tests__/search/fuzzy-match.test.ts +137 -0
  8. package/__tests__/transport/port-policy.test.ts +44 -0
  9. package/__tests__/transport-domain-sdks.test.ts +152 -0
  10. package/__tests__/types/update.test.ts +67 -0
  11. package/account/account-sdk.ts +915 -0
  12. package/account/index.ts +2 -0
  13. package/account/types.ts +321 -0
  14. package/analytics/client.ts +136 -0
  15. package/analytics/index.ts +2 -0
  16. package/analytics/types.ts +156 -0
  17. package/animation/auto-resize.ts +322 -0
  18. package/animation/window-node.ts +26 -19
  19. package/auth/clerk-types.ts +12 -30
  20. package/auth/index.ts +0 -2
  21. package/auth/useAuthState.ts +6 -14
  22. package/base/index.ts +2 -0
  23. package/base/log-level.ts +105 -0
  24. package/channel/index.ts +170 -69
  25. package/cloud-sync/cloud-sync-sdk.ts +450 -0
  26. package/cloud-sync/index.ts +1 -0
  27. package/common/file-scan-utils.ts +17 -9
  28. package/common/index.ts +4 -0
  29. package/common/logger/index.ts +46 -0
  30. package/common/logger/logger-manager.ts +303 -0
  31. package/common/logger/module-logger.ts +270 -0
  32. package/common/logger/transport-logger.ts +234 -0
  33. package/common/logger/types.ts +93 -0
  34. package/common/search/gather.ts +48 -6
  35. package/common/search/index.ts +8 -0
  36. package/common/storage/constants.ts +13 -0
  37. package/common/storage/entity/app-settings.ts +245 -0
  38. package/common/storage/entity/index.ts +3 -0
  39. package/common/storage/entity/layout-atom-types.ts +147 -0
  40. package/common/storage/entity/openers.ts +1 -0
  41. package/common/storage/entity/preset-cloud-api.ts +132 -0
  42. package/common/storage/entity/preset-export-types.ts +256 -0
  43. package/common/storage/entity/shortcut-settings.ts +1 -0
  44. package/common/storage/shortcut-storage.ts +11 -0
  45. package/common/utils/clone-diagnostics.ts +105 -0
  46. package/common/utils/file.ts +16 -8
  47. package/common/utils/index.ts +6 -2
  48. package/common/utils/payload-preview.ts +173 -0
  49. package/common/utils/polling.ts +167 -13
  50. package/common/utils/safe-path.ts +103 -0
  51. package/common/utils/safe-shell.ts +115 -0
  52. package/common/utils/task-queue.ts +4 -1
  53. package/core-box/builder/tuff-builder.ts +0 -1
  54. package/core-box/index.ts +1 -1
  55. package/core-box/recommendation.ts +38 -1
  56. package/core-box/tuff/tuff-dsl.ts +32 -0
  57. package/electron/download-manager.ts +10 -7
  58. package/electron/env-tool.ts +42 -40
  59. package/electron/index.ts +0 -1
  60. package/env/index.ts +156 -0
  61. package/eslint.config.js +55 -0
  62. package/i18n/index.ts +62 -0
  63. package/i18n/locales/en.json +226 -0
  64. package/i18n/locales/zh.json +226 -0
  65. package/i18n/message-keys.ts +236 -0
  66. package/i18n/resolver.ts +181 -0
  67. package/icons/index.ts +257 -0
  68. package/icons/svg.ts +69 -0
  69. package/index.ts +9 -1
  70. package/intelligence/client.ts +72 -42
  71. package/market/constants.ts +9 -5
  72. package/market/index.ts +1 -1
  73. package/market/types.ts +19 -4
  74. package/package.json +15 -5
  75. package/permission/index.ts +143 -46
  76. package/permission/legacy.ts +26 -0
  77. package/permission/registry.ts +304 -0
  78. package/permission/types.ts +164 -0
  79. package/plugin/channel.ts +68 -39
  80. package/plugin/index.ts +80 -7
  81. package/plugin/install.ts +3 -0
  82. package/plugin/log/types.ts +22 -5
  83. package/plugin/node/logger-manager.ts +11 -3
  84. package/plugin/node/logger.ts +24 -17
  85. package/plugin/preload.ts +25 -2
  86. package/plugin/providers/index.ts +4 -4
  87. package/plugin/providers/market-client.ts +6 -3
  88. package/plugin/providers/npm-provider.ts +22 -7
  89. package/plugin/providers/tpex-provider.ts +22 -8
  90. package/plugin/sdk/box-items.ts +14 -0
  91. package/plugin/sdk/box-sdk.ts +64 -0
  92. package/plugin/sdk/channel.ts +119 -4
  93. package/plugin/sdk/clipboard.ts +26 -12
  94. package/plugin/sdk/cloud-sync.ts +113 -0
  95. package/plugin/sdk/common.ts +19 -11
  96. package/plugin/sdk/core-box.ts +6 -15
  97. package/plugin/sdk/division-box.ts +160 -65
  98. package/plugin/sdk/examples/storage-onDidChange-example.js +5 -2
  99. package/plugin/sdk/feature-sdk.ts +111 -76
  100. package/plugin/sdk/flow.ts +146 -45
  101. package/plugin/sdk/hooks/bridge.ts +13 -6
  102. package/plugin/sdk/hooks/life-cycle.ts +35 -16
  103. package/plugin/sdk/index.ts +14 -3
  104. package/plugin/sdk/intelligence.ts +87 -0
  105. package/plugin/sdk/meta/README.md +179 -0
  106. package/plugin/sdk/meta-sdk.ts +244 -0
  107. package/plugin/sdk/notification.ts +9 -0
  108. package/plugin/sdk/plugin-info.ts +64 -0
  109. package/plugin/sdk/power.ts +155 -0
  110. package/plugin/sdk/recommend.ts +21 -0
  111. package/plugin/sdk/service/index.ts +12 -8
  112. package/plugin/sdk/sqlite.ts +141 -0
  113. package/plugin/sdk/storage.ts +2 -6
  114. package/plugin/sdk/system.ts +2 -9
  115. package/plugin/sdk/temp-files.ts +41 -0
  116. package/plugin/sdk/touch-sdk.ts +18 -0
  117. package/plugin/sdk/types.ts +44 -4
  118. package/plugin/sdk/window/index.ts +12 -9
  119. package/plugin/sdk-version.ts +231 -0
  120. package/preload/renderer.ts +3 -2
  121. package/renderer/hooks/arg-mapper.ts +16 -2
  122. package/renderer/hooks/index.ts +13 -0
  123. package/renderer/hooks/initialize.ts +2 -1
  124. package/renderer/hooks/use-agent-market-sdk.ts +7 -0
  125. package/renderer/hooks/use-agent-market.ts +106 -0
  126. package/renderer/hooks/use-agents-sdk.ts +7 -0
  127. package/renderer/hooks/use-app-sdk.ts +7 -0
  128. package/renderer/hooks/use-channel.ts +33 -4
  129. package/renderer/hooks/use-download-sdk.ts +21 -0
  130. package/renderer/hooks/use-intelligence-sdk.ts +7 -0
  131. package/renderer/hooks/use-intelligence-stats.ts +290 -0
  132. package/renderer/hooks/use-intelligence.ts +55 -214
  133. package/renderer/hooks/use-market-sdk.ts +16 -0
  134. package/renderer/hooks/use-notification-sdk.ts +7 -0
  135. package/renderer/hooks/use-permission-sdk.ts +7 -0
  136. package/renderer/hooks/use-permission.ts +325 -0
  137. package/renderer/hooks/use-platform-sdk.ts +7 -0
  138. package/renderer/hooks/use-plugin-sdk.ts +16 -0
  139. package/renderer/hooks/use-settings-sdk.ts +7 -0
  140. package/renderer/hooks/use-update-sdk.ts +21 -0
  141. package/renderer/index.ts +1 -0
  142. package/renderer/ref.ts +19 -10
  143. package/renderer/shared/components/SharedPluginDetailContent.vue +84 -0
  144. package/renderer/shared/components/SharedPluginDetailHeader.vue +116 -0
  145. package/renderer/shared/components/SharedPluginDetailMetaList.vue +39 -0
  146. package/renderer/shared/components/SharedPluginDetailReadme.vue +45 -0
  147. package/renderer/shared/components/SharedPluginDetailVersions.vue +98 -0
  148. package/renderer/shared/components/index.ts +5 -0
  149. package/renderer/shared/components/shims-vue.d.ts +5 -0
  150. package/renderer/shared/index.ts +2 -0
  151. package/renderer/shared/plugin-detail.ts +62 -0
  152. package/renderer/storage/app-settings.ts +3 -1
  153. package/renderer/storage/base-storage.ts +508 -82
  154. package/renderer/storage/intelligence-storage.ts +31 -40
  155. package/renderer/storage/openers.ts +3 -1
  156. package/renderer/storage/storage-subscription.ts +126 -42
  157. package/renderer/touch-sdk/env.ts +10 -10
  158. package/renderer/touch-sdk/index.ts +114 -18
  159. package/renderer/touch-sdk/terminal.ts +24 -13
  160. package/search/feature-matcher.ts +279 -0
  161. package/search/fuzzy-match.ts +64 -34
  162. package/search/index.ts +10 -0
  163. package/search/levenshtein-utils.ts +17 -11
  164. package/transport/errors.ts +310 -0
  165. package/transport/event/builder.ts +378 -0
  166. package/transport/event/index.ts +7 -0
  167. package/transport/event/types.ts +292 -0
  168. package/transport/events/index.ts +2670 -0
  169. package/transport/events/meta-overlay.ts +79 -0
  170. package/transport/events/types/agents.ts +177 -0
  171. package/transport/events/types/app-index.ts +9 -0
  172. package/transport/events/types/app.ts +475 -0
  173. package/transport/events/types/box-item.ts +222 -0
  174. package/transport/events/types/clipboard.ts +80 -0
  175. package/transport/events/types/core-box.ts +534 -0
  176. package/transport/events/types/device-idle.ts +7 -0
  177. package/transport/events/types/division-box.ts +99 -0
  178. package/transport/events/types/download.ts +115 -0
  179. package/transport/events/types/file-index.ts +73 -0
  180. package/transport/events/types/flow.ts +149 -0
  181. package/transport/events/types/index.ts +70 -0
  182. package/transport/events/types/market.ts +39 -0
  183. package/transport/events/types/meta-overlay.ts +184 -0
  184. package/transport/events/types/notification.ts +140 -0
  185. package/transport/events/types/permission.ts +90 -0
  186. package/transport/events/types/platform.ts +8 -0
  187. package/transport/events/types/plugin.ts +620 -0
  188. package/transport/events/types/sentry.ts +20 -0
  189. package/transport/events/types/storage.ts +208 -0
  190. package/transport/events/types/transport.ts +60 -0
  191. package/transport/events/types/tray.ts +16 -0
  192. package/transport/events/types/update.ts +78 -0
  193. package/transport/index.ts +139 -0
  194. package/transport/main.ts +2 -0
  195. package/transport/sdk/constants.ts +29 -0
  196. package/transport/sdk/domains/agents-market.ts +47 -0
  197. package/transport/sdk/domains/agents.ts +62 -0
  198. package/transport/sdk/domains/app.ts +48 -0
  199. package/transport/sdk/domains/disposable.ts +35 -0
  200. package/transport/sdk/domains/download.ts +139 -0
  201. package/transport/sdk/domains/index.ts +13 -0
  202. package/transport/sdk/domains/intelligence.ts +616 -0
  203. package/transport/sdk/domains/market.ts +35 -0
  204. package/transport/sdk/domains/notification.ts +62 -0
  205. package/transport/sdk/domains/permission.ts +85 -0
  206. package/transport/sdk/domains/platform.ts +19 -0
  207. package/transport/sdk/domains/plugin.ts +144 -0
  208. package/transport/sdk/domains/settings.ts +92 -0
  209. package/transport/sdk/domains/update.ts +64 -0
  210. package/transport/sdk/index.ts +60 -0
  211. package/transport/sdk/main-transport.ts +710 -0
  212. package/transport/sdk/main.ts +9 -0
  213. package/transport/sdk/plugin-transport.ts +654 -0
  214. package/transport/sdk/port-policy.ts +38 -0
  215. package/transport/sdk/renderer-transport.ts +1165 -0
  216. package/transport/types.ts +605 -0
  217. package/types/agent.ts +399 -0
  218. package/types/cloud-sync.ts +157 -0
  219. package/types/division-box.ts +31 -31
  220. package/types/download.ts +1 -0
  221. package/types/flow.ts +63 -12
  222. package/types/icon.ts +2 -1
  223. package/types/index.ts +5 -0
  224. package/types/intelligence.ts +166 -173
  225. package/types/modules/base.ts +2 -0
  226. package/types/path-browserify.d.ts +5 -0
  227. package/types/platform.ts +12 -0
  228. package/types/startup-info.ts +32 -0
  229. package/types/touch-app-core.ts +8 -8
  230. package/types/update.ts +94 -1
  231. package/vitest.config.ts +25 -0
  232. package/auth/useClerkConfig.ts +0 -40
  233. package/auth/useClerkProvider.ts +0 -52
@@ -0,0 +1,620 @@
1
+ /**
2
+ * @fileoverview Type definitions for Plugin domain events
3
+ * @module @talex-touch/utils/transport/events/types/plugin
4
+ */
5
+
6
+ // ============================================================================
7
+ // Plugin Lifecycle Types
8
+ // ============================================================================
9
+
10
+ /**
11
+ * Plugin status enumeration.
12
+ */
13
+ // ============================================================================
14
+ // Plugin Management (Renderer/Main) Types
15
+ // ============================================================================
16
+
17
+ import type { ITouchPlugin } from '../../../plugin'
18
+ import type {
19
+ PluginInstallConfirmRequest,
20
+ PluginInstallConfirmResponse,
21
+ PluginInstallProgressEvent,
22
+ } from '../../../plugin/install'
23
+ import type { PluginInstallRequest } from '../../../plugin/providers/types'
24
+ import type {
25
+ InputChangedRequest,
26
+ PluginFilters,
27
+ PluginStateEvent,
28
+ RegisterWidgetRequest,
29
+ TriggerFeatureRequest,
30
+ } from '../../../plugin/sdk/types'
31
+
32
+ export enum PluginStatus {
33
+ /**
34
+ * Plugin is not loaded.
35
+ */
36
+ UNLOADED = 'unloaded',
37
+
38
+ /**
39
+ * Plugin is currently loading.
40
+ */
41
+ LOADING = 'loading',
42
+
43
+ /**
44
+ * Plugin is loaded and active.
45
+ */
46
+ ACTIVE = 'active',
47
+
48
+ /**
49
+ * Plugin is loaded but disabled.
50
+ */
51
+ DISABLED = 'disabled',
52
+
53
+ /**
54
+ * Plugin encountered an error.
55
+ */
56
+ ERROR = 'error',
57
+ }
58
+
59
+ /**
60
+ * Request to load a plugin.
61
+ */
62
+ export interface PluginLoadRequest {
63
+ /**
64
+ * Plugin name to load.
65
+ */
66
+ name: string
67
+ }
68
+
69
+ /**
70
+ * Request to unload a plugin.
71
+ */
72
+ export interface PluginUnloadRequest {
73
+ /**
74
+ * Plugin name to unload.
75
+ */
76
+ name: string
77
+ }
78
+
79
+ /**
80
+ * Request to reload a plugin.
81
+ */
82
+ export interface PluginReloadRequest {
83
+ /**
84
+ * Plugin name to reload.
85
+ */
86
+ name: string
87
+ }
88
+
89
+ /**
90
+ * Request to enable a plugin.
91
+ */
92
+ export interface PluginEnableRequest {
93
+ /**
94
+ * Plugin name to enable.
95
+ */
96
+ name: string
97
+ }
98
+
99
+ /**
100
+ * Request to disable a plugin.
101
+ */
102
+ export interface PluginDisableRequest {
103
+ /**
104
+ * Plugin name to disable.
105
+ */
106
+ name: string
107
+ }
108
+
109
+ /**
110
+ * Plugin information returned after lifecycle operations.
111
+ */
112
+ export interface PluginInfo {
113
+ /**
114
+ * Plugin name (unique identifier).
115
+ */
116
+ name: string
117
+
118
+ /**
119
+ * Plugin version.
120
+ */
121
+ version: string
122
+
123
+ /**
124
+ * Current plugin status.
125
+ */
126
+ status: PluginStatus
127
+
128
+ /**
129
+ * Display name.
130
+ */
131
+ displayName?: string
132
+
133
+ /**
134
+ * Plugin description.
135
+ */
136
+ description?: string
137
+
138
+ /**
139
+ * Plugin author.
140
+ */
141
+ author?: string
142
+
143
+ /**
144
+ * Plugin icon.
145
+ */
146
+ icon?: string
147
+
148
+ /**
149
+ * Whether this is a dev mode plugin.
150
+ */
151
+ isDev?: boolean
152
+
153
+ /**
154
+ * Plugin path on disk.
155
+ */
156
+ path?: string
157
+
158
+ /**
159
+ * Error message if status is ERROR.
160
+ */
161
+ error?: string
162
+ }
163
+
164
+ // ============================================================================
165
+ // Feature Types
166
+ // ============================================================================
167
+
168
+ /**
169
+ * Request to trigger a plugin feature.
170
+ */
171
+ export interface FeatureTriggerRequest {
172
+ /**
173
+ * Plugin name.
174
+ */
175
+ pluginName: string
176
+
177
+ /**
178
+ * Feature ID to trigger.
179
+ */
180
+ featureId: string
181
+
182
+ /**
183
+ * Query/input for the feature.
184
+ */
185
+ query?: unknown
186
+
187
+ /**
188
+ * Additional context.
189
+ */
190
+ context?: Record<string, unknown>
191
+ }
192
+
193
+ /**
194
+ * Response from feature trigger.
195
+ */
196
+ export interface FeatureTriggerResponse {
197
+ /**
198
+ * Whether the feature was triggered successfully.
199
+ */
200
+ success: boolean
201
+
202
+ /**
203
+ * Result data from the feature.
204
+ */
205
+ data?: unknown
206
+
207
+ /**
208
+ * Error message if not successful.
209
+ */
210
+ error?: string
211
+ }
212
+
213
+ // ============================================================================
214
+ // Log Types
215
+ // ============================================================================
216
+
217
+ /**
218
+ * Log level enumeration.
219
+ */
220
+ export enum PluginLogLevel {
221
+ DEBUG = 'debug',
222
+ INFO = 'info',
223
+ WARN = 'warn',
224
+ ERROR = 'error',
225
+ }
226
+
227
+ /**
228
+ * Plugin log entry.
229
+ */
230
+ export interface PluginLogEntry {
231
+ /**
232
+ * Plugin name that generated this log.
233
+ */
234
+ pluginName: string
235
+
236
+ /**
237
+ * Log level.
238
+ */
239
+ level: PluginLogLevel
240
+
241
+ /**
242
+ * Log message.
243
+ */
244
+ message: string
245
+
246
+ /**
247
+ * Timestamp when log was created.
248
+ */
249
+ timestamp: number
250
+
251
+ /**
252
+ * Additional data.
253
+ */
254
+ data?: unknown
255
+
256
+ /**
257
+ * Stack trace (for errors).
258
+ */
259
+ stack?: string
260
+ }
261
+
262
+ // ============================================================================
263
+ // Message Transport Types
264
+ // ============================================================================
265
+
266
+ /**
267
+ * Plugin message for inter-plugin or plugin-main communication.
268
+ */
269
+ export interface PluginMessage {
270
+ /**
271
+ * Source plugin name.
272
+ */
273
+ from: string
274
+
275
+ /**
276
+ * Target plugin name (or '*' for broadcast).
277
+ */
278
+ to: string
279
+
280
+ /**
281
+ * Message type/event name.
282
+ */
283
+ type: string
284
+
285
+ /**
286
+ * Message payload.
287
+ */
288
+ payload?: unknown
289
+
290
+ /**
291
+ * Message ID for request-response correlation.
292
+ */
293
+ messageId?: string
294
+
295
+ /**
296
+ * Whether this is a response to a previous message.
297
+ */
298
+ isResponse?: boolean
299
+ }
300
+
301
+ /**
302
+ * Response to a plugin message.
303
+ */
304
+ export interface PluginMessageResponse {
305
+ /**
306
+ * Whether the message was delivered.
307
+ */
308
+ delivered: boolean
309
+
310
+ /**
311
+ * Response data (if synchronous).
312
+ */
313
+ data?: unknown
314
+
315
+ /**
316
+ * Error if delivery failed.
317
+ */
318
+ error?: string
319
+ }
320
+
321
+ export interface PluginApiListRequest {
322
+ filters?: PluginFilters
323
+ }
324
+
325
+ export type PluginApiListResponse = ITouchPlugin[]
326
+
327
+ export interface PluginApiGetRequest {
328
+ name: string
329
+ }
330
+
331
+ export type PluginApiGetResponse = ITouchPlugin | null
332
+
333
+ export interface PluginApiGetStatusRequest {
334
+ name: string
335
+ }
336
+
337
+ export type PluginApiGetStatusResponse = number
338
+
339
+ export interface PluginApiOperationRequest {
340
+ name: string
341
+ }
342
+
343
+ export interface PluginApiOperationResponse {
344
+ success: boolean
345
+ error?: string
346
+ }
347
+
348
+ export type PluginApiInstallRequest = PluginInstallRequest
349
+ export type PluginApiInstallResponse = PluginApiOperationResponse
350
+
351
+ export type PluginApiUninstallRequest = PluginApiOperationRequest
352
+ export type PluginApiUninstallResponse = PluginApiOperationResponse
353
+
354
+ export type PluginApiTriggerFeatureRequest = TriggerFeatureRequest
355
+ export type PluginApiTriggerFeatureResponse = unknown
356
+
357
+ export type PluginApiRegisterWidgetRequest = RegisterWidgetRequest
358
+ export type PluginApiRegisterWidgetResponse = PluginApiOperationResponse
359
+
360
+ export type PluginApiFeatureInputChangedRequest = InputChangedRequest
361
+
362
+ export interface PluginApiOpenFolderRequest {
363
+ name: string
364
+ }
365
+
366
+ export interface PluginApiGetOfficialListRequest {
367
+ force?: boolean
368
+ }
369
+
370
+ export interface PluginApiGetOfficialListResponse {
371
+ plugins: unknown[]
372
+ }
373
+
374
+ export interface PluginApiGetManifestRequest {
375
+ name: string
376
+ }
377
+
378
+ export type PluginApiGetManifestResponse = Record<string, unknown> | null
379
+
380
+ export interface PluginApiSaveManifestRequest {
381
+ name: string
382
+ manifest: Record<string, unknown>
383
+ reload?: boolean
384
+ }
385
+
386
+ export interface PluginApiSaveManifestResponse {
387
+ success: boolean
388
+ error?: string
389
+ }
390
+
391
+ export interface PluginApiSaveWidgetFileRequest {
392
+ name: string
393
+ widgetPath: string
394
+ source: string
395
+ overwrite?: boolean
396
+ }
397
+
398
+ export interface PluginApiSaveWidgetFileResponse {
399
+ success: boolean
400
+ error?: string
401
+ relativePath?: string
402
+ }
403
+
404
+ export interface PluginApiGetPathsRequest {
405
+ name: string
406
+ }
407
+
408
+ export interface PluginApiGetPathsResponse {
409
+ pluginPath: string
410
+ dataPath: string
411
+ configPath: string
412
+ logsPath: string
413
+ tempPath: string
414
+ }
415
+
416
+ export interface PluginApiOpenPathRequest {
417
+ name: string
418
+ pathType: 'plugin' | 'data' | 'config' | 'logs' | 'temp'
419
+ }
420
+
421
+ export interface PluginApiOpenPathResponse {
422
+ success: boolean
423
+ path?: string
424
+ error?: string
425
+ }
426
+
427
+ export interface PluginApiRevealPathRequest {
428
+ name: string
429
+ path: string
430
+ }
431
+
432
+ export interface PluginApiRevealPathResponse {
433
+ success: boolean
434
+ path?: string
435
+ error?: string
436
+ }
437
+
438
+ export interface PluginApiGetPerformanceRequest {
439
+ name: string
440
+ }
441
+
442
+ export type PluginApiGetPerformanceResponse = unknown
443
+
444
+ export interface PluginApiGetRuntimeStatsRequest {
445
+ name: string
446
+ }
447
+
448
+ export type PluginApiGetRuntimeStatsResponse = unknown
449
+
450
+ export interface PluginReconnectDevServerRequest {
451
+ pluginName: string
452
+ }
453
+
454
+ export interface PluginReconnectDevServerResponse {
455
+ success: boolean
456
+ error?: string
457
+ }
458
+
459
+ export type PluginPushStateChangedPayload = PluginStateEvent
460
+
461
+ export interface PluginPushStatusUpdatedPayload {
462
+ plugin: string
463
+ status: number
464
+ }
465
+
466
+ export interface PluginPushReloadReadmePayload {
467
+ source?: string
468
+ plugin: string
469
+ readme: string
470
+ }
471
+
472
+ export interface PluginPushCrashedPayload {
473
+ plugin?: string
474
+ message?: string
475
+ stack?: string
476
+ [key: string]: unknown
477
+ }
478
+
479
+ export type PluginInstallProgressPayload = PluginInstallProgressEvent
480
+ export type PluginInstallConfirmPayload = PluginInstallConfirmRequest
481
+ export type PluginInstallConfirmResponsePayload = PluginInstallConfirmResponse
482
+
483
+ export interface PluginInstallSourceRequest {
484
+ source: string
485
+ hintType?: unknown
486
+ metadata?: Record<string, unknown>
487
+ clientMetadata?: Record<string, unknown>
488
+ }
489
+
490
+ export interface PluginInstallSourceResponse {
491
+ status: 'success' | 'error'
492
+ manifest?: unknown
493
+ provider?: unknown
494
+ official?: boolean
495
+ message?: string
496
+ error?: string
497
+ }
498
+
499
+ export interface PluginStorageOpenInEditorRequest {
500
+ pluginName: string
501
+ }
502
+
503
+ export interface PluginDevServerStatusRequest {
504
+ pluginName: string
505
+ }
506
+
507
+ export interface PluginDevServerStatusResponse {
508
+ monitoring: boolean
509
+ connected: boolean
510
+ error?: string
511
+ }
512
+
513
+ export interface PluginPushReloadPayload {
514
+ source?: string
515
+ plugin: unknown
516
+ }
517
+
518
+ export interface PluginStorageFileRequest {
519
+ pluginName: string
520
+ fileName: string
521
+ }
522
+
523
+ export interface PluginStorageSetFileRequest extends PluginStorageFileRequest {
524
+ content: unknown
525
+ }
526
+
527
+ export interface PluginStorageListFilesRequest {
528
+ pluginName: string
529
+ }
530
+
531
+ export interface PluginStorageStatsRequest {
532
+ pluginName: string
533
+ }
534
+
535
+ export interface PluginStorageTreeRequest {
536
+ pluginName: string
537
+ }
538
+
539
+ export interface PluginStorageFileDetailsRequest extends PluginStorageFileRequest {}
540
+
541
+ export interface PluginStorageClearRequest {
542
+ pluginName: string
543
+ }
544
+
545
+ export interface PluginStorageOpenFolderRequest {
546
+ pluginName: string
547
+ }
548
+
549
+ export interface PluginStorageUpdatePayload {
550
+ name: string
551
+ fileName?: string
552
+ }
553
+
554
+ export interface PluginStorageSyncItem {
555
+ pluginName: string
556
+ fileName: string
557
+ qualifiedName: string
558
+ content: unknown
559
+ }
560
+
561
+ export interface PluginStorageListSyncItemsRequest {
562
+ pluginName?: string
563
+ qualifiedNames?: string[]
564
+ }
565
+
566
+ export interface PluginStorageApplySyncItemRequest {
567
+ pluginName: string
568
+ fileName: string
569
+ content: unknown
570
+ }
571
+
572
+ export interface PluginStorageDeleteSyncItemRequest {
573
+ pluginName: string
574
+ fileName: string
575
+ }
576
+
577
+ export interface PluginSqliteExecuteRequest {
578
+ pluginName?: string
579
+ sql: string
580
+ params?: unknown[]
581
+ }
582
+
583
+ export interface PluginSqliteExecuteResponse {
584
+ success: boolean
585
+ rowsAffected?: number
586
+ lastInsertRowId?: number | null
587
+ error?: string
588
+ }
589
+
590
+ export interface PluginSqliteQueryRequest extends PluginSqliteExecuteRequest {}
591
+
592
+ export interface PluginSqliteQueryResponse {
593
+ success: boolean
594
+ rows?: Array<Record<string, unknown>>
595
+ columns?: string[]
596
+ error?: string
597
+ }
598
+
599
+ export interface PluginSqliteTransactionStatement {
600
+ sql: string
601
+ params?: unknown[]
602
+ }
603
+
604
+ export interface PluginSqliteTransactionRequest {
605
+ pluginName?: string
606
+ statements: PluginSqliteTransactionStatement[]
607
+ }
608
+
609
+ export interface PluginSqliteTransactionResponse {
610
+ success: boolean
611
+ results?: Array<{
612
+ rowsAffected: number
613
+ lastInsertRowId: number | null
614
+ }>
615
+ error?: string
616
+ }
617
+
618
+ export type PluginPerformanceGetMetricsResponse = unknown
619
+
620
+ export type PluginPerformanceGetPathsResponse = PluginApiGetPathsResponse
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @fileoverview Type definitions for Sentry domain events
3
+ * @module @talex-touch/utils/transport/events/types/sentry
4
+ */
5
+
6
+ export interface SentryUpdateUserRequest {
7
+ user: unknown | null
8
+ }
9
+
10
+ export type SentryGetConfigResponse = unknown
11
+
12
+ export type SentryGetSearchCountResponse = unknown
13
+
14
+ export type SentryGetTelemetryStatsResponse = unknown
15
+
16
+ export type SentryRecordPerformanceRequest = unknown
17
+
18
+ export interface SentryRecordPerformanceResponse {
19
+ success: boolean
20
+ }