@talex-touch/utils 1.0.40 → 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.
- package/.eslintcache +1 -0
- package/__tests__/cloud-sync-sdk.test.ts +442 -0
- package/__tests__/icons/icons.test.ts +84 -0
- package/__tests__/plugin-sdk-lifecycle.test.ts +130 -0
- package/__tests__/power-sdk.test.ts +143 -0
- package/__tests__/preset-export-types.test.ts +108 -0
- package/__tests__/search/fuzzy-match.test.ts +137 -0
- package/__tests__/transport/port-policy.test.ts +44 -0
- package/__tests__/transport-domain-sdks.test.ts +152 -0
- package/__tests__/types/update.test.ts +67 -0
- package/account/account-sdk.ts +915 -0
- package/account/index.ts +2 -0
- package/account/types.ts +321 -0
- package/analytics/client.ts +136 -0
- package/analytics/index.ts +2 -0
- package/analytics/types.ts +156 -0
- package/animation/auto-resize.ts +322 -0
- package/animation/window-node.ts +26 -19
- package/auth/clerk-types.ts +12 -30
- package/auth/index.ts +0 -2
- package/auth/useAuthState.ts +6 -14
- package/base/index.ts +2 -0
- package/base/log-level.ts +105 -0
- package/channel/index.ts +170 -69
- package/cloud-sync/cloud-sync-sdk.ts +450 -0
- package/cloud-sync/index.ts +1 -0
- package/common/file-scan-utils.ts +17 -9
- package/common/index.ts +4 -0
- package/common/logger/index.ts +46 -0
- package/common/logger/logger-manager.ts +303 -0
- package/common/logger/module-logger.ts +270 -0
- package/common/logger/transport-logger.ts +234 -0
- package/common/logger/types.ts +93 -0
- package/common/search/gather.ts +48 -6
- package/common/search/index.ts +8 -0
- package/common/storage/constants.ts +13 -0
- package/common/storage/entity/app-settings.ts +245 -0
- package/common/storage/entity/index.ts +3 -0
- package/common/storage/entity/layout-atom-types.ts +147 -0
- package/common/storage/entity/openers.ts +1 -0
- package/common/storage/entity/preset-cloud-api.ts +132 -0
- package/common/storage/entity/preset-export-types.ts +256 -0
- package/common/storage/entity/shortcut-settings.ts +1 -0
- package/common/storage/shortcut-storage.ts +11 -0
- package/common/utils/clone-diagnostics.ts +105 -0
- package/common/utils/file.ts +16 -8
- package/common/utils/index.ts +6 -2
- package/common/utils/payload-preview.ts +173 -0
- package/common/utils/polling.ts +167 -13
- package/common/utils/safe-path.ts +103 -0
- package/common/utils/safe-shell.ts +115 -0
- package/common/utils/task-queue.ts +4 -1
- package/core-box/builder/tuff-builder.ts +0 -1
- package/core-box/index.ts +1 -1
- package/core-box/recommendation.ts +38 -1
- package/core-box/tuff/tuff-dsl.ts +97 -0
- package/electron/download-manager.ts +10 -7
- package/electron/env-tool.ts +42 -40
- package/electron/index.ts +0 -1
- package/env/index.ts +156 -0
- package/eslint.config.js +55 -0
- package/i18n/index.ts +62 -0
- package/i18n/locales/en.json +226 -0
- package/i18n/locales/zh.json +226 -0
- package/i18n/message-keys.ts +236 -0
- package/i18n/resolver.ts +181 -0
- package/icons/index.ts +257 -0
- package/icons/svg.ts +69 -0
- package/index.ts +9 -1
- package/intelligence/client.ts +72 -42
- package/market/constants.ts +21 -3
- package/market/index.ts +1 -1
- package/market/types.ts +20 -5
- package/package.json +15 -5
- package/permission/index.ts +143 -46
- package/permission/legacy.ts +26 -0
- package/permission/registry.ts +304 -0
- package/permission/types.ts +164 -0
- package/plugin/channel.ts +68 -39
- package/plugin/index.ts +82 -8
- package/plugin/install.ts +3 -0
- package/plugin/log/types.ts +22 -5
- package/plugin/node/logger-manager.ts +11 -3
- package/plugin/node/logger.ts +24 -17
- package/plugin/preload.ts +25 -2
- package/plugin/providers/index.ts +4 -0
- package/plugin/providers/market-client.ts +218 -0
- package/plugin/providers/npm-provider.ts +228 -0
- package/plugin/providers/tpex-provider.ts +297 -0
- package/plugin/providers/tpex-types.ts +34 -0
- package/plugin/sdk/box-items.ts +14 -0
- package/plugin/sdk/box-sdk.ts +64 -0
- package/plugin/sdk/channel.ts +119 -4
- package/plugin/sdk/clipboard.ts +26 -12
- package/plugin/sdk/cloud-sync.ts +113 -0
- package/plugin/sdk/common.ts +19 -11
- package/plugin/sdk/core-box.ts +6 -15
- package/plugin/sdk/division-box.ts +160 -65
- package/plugin/sdk/examples/storage-onDidChange-example.js +5 -2
- package/plugin/sdk/feature-sdk.ts +111 -76
- package/plugin/sdk/flow.ts +146 -45
- package/plugin/sdk/hooks/bridge.ts +113 -49
- package/plugin/sdk/hooks/life-cycle.ts +35 -16
- package/plugin/sdk/index.ts +14 -3
- package/plugin/sdk/intelligence.ts +87 -0
- package/plugin/sdk/meta/README.md +179 -0
- package/plugin/sdk/meta-sdk.ts +244 -0
- package/plugin/sdk/notification.ts +9 -0
- package/plugin/sdk/performance.ts +1 -16
- package/plugin/sdk/plugin-info.ts +64 -0
- package/plugin/sdk/power.ts +155 -0
- package/plugin/sdk/recommend.ts +21 -0
- package/plugin/sdk/service/index.ts +12 -8
- package/plugin/sdk/sqlite.ts +141 -0
- package/plugin/sdk/storage.ts +2 -6
- package/plugin/sdk/system.ts +2 -9
- package/plugin/sdk/temp-files.ts +41 -0
- package/plugin/sdk/touch-sdk.ts +18 -0
- package/plugin/sdk/types.ts +44 -4
- package/plugin/sdk/window/index.ts +12 -9
- package/plugin/sdk-version.ts +231 -0
- package/preload/renderer.ts +3 -2
- package/renderer/hooks/arg-mapper.ts +34 -6
- package/renderer/hooks/index.ts +13 -0
- package/renderer/hooks/initialize.ts +2 -1
- package/renderer/hooks/use-agent-market-sdk.ts +7 -0
- package/renderer/hooks/use-agent-market.ts +106 -0
- package/renderer/hooks/use-agents-sdk.ts +7 -0
- package/renderer/hooks/use-app-sdk.ts +7 -0
- package/renderer/hooks/use-channel.ts +33 -4
- package/renderer/hooks/use-download-sdk.ts +21 -0
- package/renderer/hooks/use-intelligence-sdk.ts +7 -0
- package/renderer/hooks/use-intelligence-stats.ts +290 -0
- package/renderer/hooks/use-intelligence.ts +202 -104
- package/renderer/hooks/use-market-sdk.ts +16 -0
- package/renderer/hooks/use-notification-sdk.ts +7 -0
- package/renderer/hooks/use-permission-sdk.ts +7 -0
- package/renderer/hooks/use-permission.ts +325 -0
- package/renderer/hooks/use-platform-sdk.ts +7 -0
- package/renderer/hooks/use-plugin-sdk.ts +16 -0
- package/renderer/hooks/use-settings-sdk.ts +7 -0
- package/renderer/hooks/use-update-sdk.ts +21 -0
- package/renderer/index.ts +1 -0
- package/renderer/ref.ts +19 -10
- package/renderer/shared/components/SharedPluginDetailContent.vue +84 -0
- package/renderer/shared/components/SharedPluginDetailHeader.vue +116 -0
- package/renderer/shared/components/SharedPluginDetailMetaList.vue +39 -0
- package/renderer/shared/components/SharedPluginDetailReadme.vue +45 -0
- package/renderer/shared/components/SharedPluginDetailVersions.vue +98 -0
- package/renderer/shared/components/index.ts +5 -0
- package/renderer/shared/components/shims-vue.d.ts +5 -0
- package/renderer/shared/index.ts +2 -0
- package/renderer/shared/plugin-detail.ts +62 -0
- package/renderer/storage/app-settings.ts +3 -1
- package/renderer/storage/base-storage.ts +508 -82
- package/renderer/storage/intelligence-storage.ts +37 -46
- package/renderer/storage/openers.ts +3 -1
- package/renderer/storage/storage-subscription.ts +126 -42
- package/renderer/touch-sdk/env.ts +10 -10
- package/renderer/touch-sdk/index.ts +114 -18
- package/renderer/touch-sdk/terminal.ts +24 -13
- package/search/feature-matcher.ts +279 -0
- package/search/fuzzy-match.ts +64 -34
- package/search/index.ts +10 -0
- package/search/levenshtein-utils.ts +17 -11
- package/transport/errors.ts +310 -0
- package/transport/event/builder.ts +378 -0
- package/transport/event/index.ts +7 -0
- package/transport/event/types.ts +292 -0
- package/transport/events/index.ts +2670 -0
- package/transport/events/meta-overlay.ts +79 -0
- package/transport/events/types/agents.ts +177 -0
- package/transport/events/types/app-index.ts +9 -0
- package/transport/events/types/app.ts +475 -0
- package/transport/events/types/box-item.ts +222 -0
- package/transport/events/types/clipboard.ts +80 -0
- package/transport/events/types/core-box.ts +534 -0
- package/transport/events/types/device-idle.ts +7 -0
- package/transport/events/types/division-box.ts +99 -0
- package/transport/events/types/download.ts +115 -0
- package/transport/events/types/file-index.ts +73 -0
- package/transport/events/types/flow.ts +149 -0
- package/transport/events/types/index.ts +70 -0
- package/transport/events/types/market.ts +39 -0
- package/transport/events/types/meta-overlay.ts +184 -0
- package/transport/events/types/notification.ts +140 -0
- package/transport/events/types/permission.ts +90 -0
- package/transport/events/types/platform.ts +8 -0
- package/transport/events/types/plugin.ts +620 -0
- package/transport/events/types/sentry.ts +20 -0
- package/transport/events/types/storage.ts +208 -0
- package/transport/events/types/transport.ts +60 -0
- package/transport/events/types/tray.ts +16 -0
- package/transport/events/types/update.ts +78 -0
- package/transport/index.ts +139 -0
- package/transport/main.ts +2 -0
- package/transport/sdk/constants.ts +29 -0
- package/transport/sdk/domains/agents-market.ts +47 -0
- package/transport/sdk/domains/agents.ts +62 -0
- package/transport/sdk/domains/app.ts +48 -0
- package/transport/sdk/domains/disposable.ts +35 -0
- package/transport/sdk/domains/download.ts +139 -0
- package/transport/sdk/domains/index.ts +13 -0
- package/transport/sdk/domains/intelligence.ts +616 -0
- package/transport/sdk/domains/market.ts +35 -0
- package/transport/sdk/domains/notification.ts +62 -0
- package/transport/sdk/domains/permission.ts +85 -0
- package/transport/sdk/domains/platform.ts +19 -0
- package/transport/sdk/domains/plugin.ts +144 -0
- package/transport/sdk/domains/settings.ts +92 -0
- package/transport/sdk/domains/update.ts +64 -0
- package/transport/sdk/index.ts +60 -0
- package/transport/sdk/main-transport.ts +710 -0
- package/transport/sdk/main.ts +9 -0
- package/transport/sdk/plugin-transport.ts +654 -0
- package/transport/sdk/port-policy.ts +38 -0
- package/transport/sdk/renderer-transport.ts +1165 -0
- package/transport/types.ts +605 -0
- package/types/agent.ts +399 -0
- package/types/cloud-sync.ts +157 -0
- package/types/division-box.ts +47 -27
- package/types/download.ts +1 -0
- package/types/flow.ts +63 -12
- package/types/icon.ts +2 -1
- package/types/index.ts +5 -0
- package/types/intelligence.ts +1492 -81
- package/types/modules/base.ts +2 -0
- package/types/path-browserify.d.ts +5 -0
- package/types/platform.ts +12 -0
- package/types/startup-info.ts +32 -0
- package/types/touch-app-core.ts +8 -8
- package/types/update.ts +94 -1
- package/vitest.config.ts +25 -0
- package/auth/useClerkConfig.ts +0 -40
- package/auth/useClerkProvider.ts +0 -52
package/types/division-box.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DivisionBox Type Definitions
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Shared types for DivisionBox system across main and renderer processes.
|
|
5
5
|
* These types define the contract for inter-process communication and state management.
|
|
6
6
|
*/
|
|
@@ -15,7 +15,7 @@ export enum DivisionBoxState {
|
|
|
15
15
|
ACTIVE = 'active',
|
|
16
16
|
INACTIVE = 'inactive',
|
|
17
17
|
DETACH = 'detach',
|
|
18
|
-
DESTROY = 'destroy'
|
|
18
|
+
DESTROY = 'destroy',
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -29,7 +29,7 @@ export enum DivisionBoxErrorCode {
|
|
|
29
29
|
CONFIG_ERROR = 'CONFIG_ERROR',
|
|
30
30
|
INVALID_TRANSITION = 'INVALID_TRANSITION',
|
|
31
31
|
SESSION_NOT_FOUND = 'SESSION_NOT_FOUND',
|
|
32
|
-
LIMIT_EXCEEDED = 'LIMIT_EXCEEDED'
|
|
32
|
+
LIMIT_EXCEEDED = 'LIMIT_EXCEEDED',
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -43,7 +43,7 @@ export const ERROR_MESSAGES: Record<DivisionBoxErrorCode, string> = {
|
|
|
43
43
|
[DivisionBoxErrorCode.CONFIG_ERROR]: 'Invalid configuration provided',
|
|
44
44
|
[DivisionBoxErrorCode.INVALID_TRANSITION]: 'Invalid state transition attempted',
|
|
45
45
|
[DivisionBoxErrorCode.SESSION_NOT_FOUND]: 'Session not found',
|
|
46
|
-
[DivisionBoxErrorCode.LIMIT_EXCEEDED]: 'Resource limit exceeded'
|
|
46
|
+
[DivisionBoxErrorCode.LIMIT_EXCEEDED]: 'Resource limit exceeded',
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -54,13 +54,13 @@ export class DivisionBoxError extends Error {
|
|
|
54
54
|
public readonly code: DivisionBoxErrorCode,
|
|
55
55
|
message: string,
|
|
56
56
|
public readonly sessionId?: string,
|
|
57
|
-
public readonly timestamp: number = Date.now()
|
|
57
|
+
public readonly timestamp: number = Date.now(),
|
|
58
58
|
) {
|
|
59
59
|
super(message)
|
|
60
60
|
this.name = 'DivisionBoxError'
|
|
61
61
|
Error.captureStackTrace(this, DivisionBoxError)
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
/**
|
|
65
65
|
* Gets a user-friendly error message
|
|
66
66
|
*/
|
|
@@ -93,31 +93,51 @@ export interface HeaderConfig {
|
|
|
93
93
|
*/
|
|
94
94
|
export type DivisionBoxSize = 'compact' | 'medium' | 'expanded'
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* UI configuration for DivisionBox CoreBox header
|
|
98
|
+
*/
|
|
99
|
+
export interface DivisionBoxUIConfig {
|
|
100
|
+
/** Show the search input in header */
|
|
101
|
+
showInput?: boolean
|
|
102
|
+
|
|
103
|
+
/** Placeholder text for search input */
|
|
104
|
+
inputPlaceholder?: string
|
|
105
|
+
|
|
106
|
+
/** Show result list area */
|
|
107
|
+
showResults?: boolean
|
|
108
|
+
|
|
109
|
+
/** Initial input value */
|
|
110
|
+
initialInput?: string
|
|
111
|
+
}
|
|
112
|
+
|
|
96
113
|
/**
|
|
97
114
|
* Configuration for creating a DivisionBox instance
|
|
98
115
|
*/
|
|
99
116
|
export interface DivisionBoxConfig {
|
|
100
117
|
/** URL to load in the WebContentsView */
|
|
101
118
|
url: string
|
|
102
|
-
|
|
119
|
+
|
|
103
120
|
/** Associated plugin ID (optional) */
|
|
104
121
|
pluginId?: string
|
|
105
|
-
|
|
122
|
+
|
|
106
123
|
/** Display title */
|
|
107
124
|
title: string
|
|
108
|
-
|
|
125
|
+
|
|
109
126
|
/** Icon (supports iconify format) */
|
|
110
127
|
icon?: string
|
|
111
|
-
|
|
128
|
+
|
|
112
129
|
/** Size preset */
|
|
113
130
|
size?: DivisionBoxSize
|
|
114
|
-
|
|
131
|
+
|
|
115
132
|
/** Enable keepAlive caching mode */
|
|
116
133
|
keepAlive?: boolean
|
|
117
|
-
|
|
134
|
+
|
|
118
135
|
/** Header configuration */
|
|
119
136
|
header?: HeaderConfig
|
|
120
|
-
|
|
137
|
+
|
|
138
|
+
/** UI configuration for CoreBox header display */
|
|
139
|
+
ui?: DivisionBoxUIConfig
|
|
140
|
+
|
|
121
141
|
/** WebContentsView preferences (main process only) */
|
|
122
142
|
webPreferences?: any
|
|
123
143
|
}
|
|
@@ -128,22 +148,22 @@ export interface DivisionBoxConfig {
|
|
|
128
148
|
export interface SessionMeta {
|
|
129
149
|
/** Associated plugin ID */
|
|
130
150
|
pluginId?: string
|
|
131
|
-
|
|
151
|
+
|
|
132
152
|
/** Display title */
|
|
133
153
|
title: string
|
|
134
|
-
|
|
154
|
+
|
|
135
155
|
/** Icon */
|
|
136
156
|
icon?: string
|
|
137
|
-
|
|
157
|
+
|
|
138
158
|
/** Size preset */
|
|
139
159
|
size: DivisionBoxSize
|
|
140
|
-
|
|
160
|
+
|
|
141
161
|
/** KeepAlive mode enabled */
|
|
142
162
|
keepAlive: boolean
|
|
143
|
-
|
|
163
|
+
|
|
144
164
|
/** Creation timestamp */
|
|
145
165
|
createdAt: number
|
|
146
|
-
|
|
166
|
+
|
|
147
167
|
/** Last accessed timestamp */
|
|
148
168
|
lastAccessedAt: number
|
|
149
169
|
}
|
|
@@ -164,13 +184,13 @@ export interface DivisionBoxBounds {
|
|
|
164
184
|
export interface SessionInfo {
|
|
165
185
|
/** Unique session identifier */
|
|
166
186
|
sessionId: string
|
|
167
|
-
|
|
187
|
+
|
|
168
188
|
/** Current lifecycle state */
|
|
169
189
|
state: DivisionBoxState
|
|
170
|
-
|
|
190
|
+
|
|
171
191
|
/** Session metadata */
|
|
172
192
|
meta: SessionMeta
|
|
173
|
-
|
|
193
|
+
|
|
174
194
|
/** Position and size bounds */
|
|
175
195
|
bounds?: DivisionBoxBounds
|
|
176
196
|
}
|
|
@@ -181,10 +201,10 @@ export interface SessionInfo {
|
|
|
181
201
|
export interface CloseOptions {
|
|
182
202
|
/** Delay before closing (milliseconds) */
|
|
183
203
|
delay?: number
|
|
184
|
-
|
|
204
|
+
|
|
185
205
|
/** Play closing animation */
|
|
186
206
|
animation?: boolean
|
|
187
|
-
|
|
207
|
+
|
|
188
208
|
/** Force close (ignore keepAlive) */
|
|
189
209
|
force?: boolean
|
|
190
210
|
}
|
|
@@ -209,7 +229,7 @@ export enum DivisionBoxIPCChannel {
|
|
|
209
229
|
UPDATE_STATE = 'division-box:update-state',
|
|
210
230
|
GET_ACTIVE_SESSIONS = 'division-box:get-active-sessions',
|
|
211
231
|
STATE_CHANGED = 'division-box:state-changed',
|
|
212
|
-
SESSION_DESTROYED = 'division-box:session-destroyed'
|
|
232
|
+
SESSION_DESTROYED = 'division-box:session-destroyed',
|
|
213
233
|
}
|
|
214
234
|
|
|
215
235
|
/**
|
|
@@ -232,10 +252,10 @@ export interface IPCResponse<T = any> {
|
|
|
232
252
|
export interface ManifestDivisionBoxConfig {
|
|
233
253
|
/** Default size preset for DivisionBox instances */
|
|
234
254
|
defaultSize?: DivisionBoxSize
|
|
235
|
-
|
|
255
|
+
|
|
236
256
|
/** Enable keepAlive caching mode by default */
|
|
237
257
|
keepAlive?: boolean
|
|
238
|
-
|
|
258
|
+
|
|
239
259
|
/** Default header configuration */
|
|
240
260
|
header?: {
|
|
241
261
|
/** Whether to show the header by default */
|
package/types/download.ts
CHANGED
package/types/flow.ts
CHANGED
|
@@ -15,16 +15,16 @@ export type FlowPayloadType = 'text' | 'image' | 'files' | 'json' | 'html' | 'cu
|
|
|
15
15
|
/**
|
|
16
16
|
* Flow session states
|
|
17
17
|
*/
|
|
18
|
-
export type FlowSessionState
|
|
19
|
-
| 'INIT'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
export type FlowSessionState
|
|
19
|
+
= | 'INIT'
|
|
20
|
+
| 'TARGET_SELECTING'
|
|
21
|
+
| 'TARGET_SELECTED'
|
|
22
|
+
| 'DELIVERING'
|
|
23
|
+
| 'DELIVERED'
|
|
24
|
+
| 'PROCESSING'
|
|
25
|
+
| 'ACKED'
|
|
26
|
+
| 'FAILED'
|
|
27
|
+
| 'CANCELLED'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Flow error codes
|
|
@@ -39,7 +39,7 @@ export enum FlowErrorCode {
|
|
|
39
39
|
PERMISSION_DENIED = 'PERMISSION_DENIED',
|
|
40
40
|
TIMEOUT = 'TIMEOUT',
|
|
41
41
|
CANCELLED = 'CANCELLED',
|
|
42
|
-
INTERNAL_ERROR = 'INTERNAL_ERROR'
|
|
42
|
+
INTERNAL_ERROR = 'INTERNAL_ERROR',
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -150,6 +150,15 @@ export interface FlowTargetInfo extends FlowTarget {
|
|
|
150
150
|
/** Whether the plugin is currently enabled */
|
|
151
151
|
isEnabled: boolean
|
|
152
152
|
|
|
153
|
+
/** Whether plugin has registered onFlowTransfer handler */
|
|
154
|
+
hasFlowHandler: boolean
|
|
155
|
+
|
|
156
|
+
/** Whether this is a native system share target */
|
|
157
|
+
isNativeShare?: boolean
|
|
158
|
+
|
|
159
|
+
/** Adaptation status message (for unhandled plugins) */
|
|
160
|
+
adaptationHint?: string
|
|
161
|
+
|
|
153
162
|
/** Recent usage count */
|
|
154
163
|
usageCount?: number
|
|
155
164
|
|
|
@@ -219,6 +228,9 @@ export interface FlowDispatchOptions {
|
|
|
219
228
|
|
|
220
229
|
/** Whether acknowledgment is required */
|
|
221
230
|
requireAck?: boolean
|
|
231
|
+
|
|
232
|
+
/** Consent token for one-time authorization */
|
|
233
|
+
consentToken?: string
|
|
222
234
|
}
|
|
223
235
|
|
|
224
236
|
/**
|
|
@@ -268,7 +280,7 @@ export enum FlowIPCChannel {
|
|
|
268
280
|
ACKNOWLEDGE = 'flow:acknowledge',
|
|
269
281
|
REPORT_ERROR = 'flow:report-error',
|
|
270
282
|
SESSION_UPDATE = 'flow:session-update',
|
|
271
|
-
DELIVER = 'flow:deliver'
|
|
283
|
+
DELIVER = 'flow:deliver',
|
|
272
284
|
}
|
|
273
285
|
|
|
274
286
|
/**
|
|
@@ -281,3 +293,42 @@ export interface FlowManifestConfig {
|
|
|
281
293
|
/** Flow targets this plugin can receive */
|
|
282
294
|
flowTargets?: FlowTarget[]
|
|
283
295
|
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Native share target types
|
|
299
|
+
*/
|
|
300
|
+
export type NativeShareTarget = 'system' | 'airdrop' | 'mail' | 'messages'
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Native share options
|
|
304
|
+
*/
|
|
305
|
+
export interface NativeShareOptions {
|
|
306
|
+
/** Share title */
|
|
307
|
+
title?: string
|
|
308
|
+
|
|
309
|
+
/** Share text content */
|
|
310
|
+
text?: string
|
|
311
|
+
|
|
312
|
+
/** Share URL */
|
|
313
|
+
url?: string
|
|
314
|
+
|
|
315
|
+
/** File paths to share */
|
|
316
|
+
files?: string[]
|
|
317
|
+
|
|
318
|
+
/** Preferred native target (optional) */
|
|
319
|
+
target?: NativeShareTarget
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Native share result
|
|
324
|
+
*/
|
|
325
|
+
export interface NativeShareResult {
|
|
326
|
+
/** Whether share was successful */
|
|
327
|
+
success: boolean
|
|
328
|
+
|
|
329
|
+
/** Target used (if known) */
|
|
330
|
+
target?: string
|
|
331
|
+
|
|
332
|
+
/** Error message if failed */
|
|
333
|
+
error?: string
|
|
334
|
+
}
|
package/types/icon.ts
CHANGED
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
* - url: Remote URL (http/https) or Data URL (data:image/...)
|
|
13
13
|
* - file: Local file path (relative to plugin root directory)
|
|
14
14
|
* - class: Class name (e.g., "i-ri-rocket-line")
|
|
15
|
+
* - builtin: Built-in icons (e.g., "chevron-down", "close", "search")
|
|
15
16
|
*/
|
|
16
|
-
export type TuffIconType = 'emoji' | 'url' | 'file' | 'class'
|
|
17
|
+
export type TuffIconType = 'emoji' | 'url' | 'file' | 'class' | 'builtin'
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* Icon status enumeration
|
package/types/index.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/// <reference path="./path-browserify.d.ts" />
|
|
2
|
+
export * from './agent'
|
|
3
|
+
export * from './cloud-sync'
|
|
1
4
|
export * from './division-box'
|
|
2
5
|
export * from './flow'
|
|
3
6
|
export * from './intelligence'
|
|
4
7
|
export * from './modules'
|
|
8
|
+
export * from './platform'
|
|
9
|
+
export * from './startup-info'
|
|
5
10
|
export * from './storage'
|
|
6
11
|
export * from './touch-app-core'
|