@rtc-agent/component 0.2.9-rc.1 → 0.3.0-rc.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.
Files changed (54) hide show
  1. package/dist/.generated/locales/en-US.d.ts +15 -0
  2. package/dist/.generated/locales/en-US.d.ts.map +1 -1
  3. package/dist/assets/index.browser-eyaxJE57.js +201 -0
  4. package/dist/assets/shared-worker-Czk9mL9X.js +77480 -0
  5. package/dist/components/chat-layout/rtc-chat-layout.d.ts +12 -0
  6. package/dist/components/chat-layout/rtc-chat-layout.d.ts.map +1 -1
  7. package/dist/components/chat-layout/rtc-chat-layout.styles.d.ts.map +1 -1
  8. package/dist/components/content-area/rtc-error-message.d.ts +1 -2
  9. package/dist/components/content-area/rtc-error-message.d.ts.map +1 -1
  10. package/dist/components/content-area/rtc-user-message.d.ts +17 -1
  11. package/dist/components/content-area/rtc-user-message.d.ts.map +1 -1
  12. package/dist/components/content-area/rtc-user-message.styles.d.ts +3 -1
  13. package/dist/components/content-area/rtc-user-message.styles.d.ts.map +1 -1
  14. package/dist/components/file-preview/rtc-file-preview-area.d.ts +48 -0
  15. package/dist/components/file-preview/rtc-file-preview-area.d.ts.map +1 -0
  16. package/dist/components/file-preview/rtc-file-preview-area.styles.d.ts +2 -0
  17. package/dist/components/file-preview/rtc-file-preview-area.styles.d.ts.map +1 -0
  18. package/dist/components/file-preview/rtc-file-preview-modal.d.ts +108 -0
  19. package/dist/components/file-preview/rtc-file-preview-modal.d.ts.map +1 -0
  20. package/dist/components/file-preview/rtc-file-preview-modal.styles.d.ts +2 -0
  21. package/dist/components/file-preview/rtc-file-preview-modal.styles.d.ts.map +1 -0
  22. package/dist/components/file-preview/rtc-file-thumbnail.d.ts +81 -0
  23. package/dist/components/file-preview/rtc-file-thumbnail.d.ts.map +1 -0
  24. package/dist/components/file-preview/rtc-file-thumbnail.styles.d.ts +2 -0
  25. package/dist/components/file-preview/rtc-file-thumbnail.styles.d.ts.map +1 -0
  26. package/dist/components/input-area/rtc-input-area.d.ts +55 -2
  27. package/dist/components/input-area/rtc-input-area.d.ts.map +1 -1
  28. package/dist/components/input-area/rtc-input-area.styles.d.ts.map +1 -1
  29. package/dist/components/rtc-agent/rtc-agent.d.ts +11 -0
  30. package/dist/components/rtc-agent/rtc-agent.d.ts.map +1 -1
  31. package/dist/contexts/file-storage.d.ts +17 -0
  32. package/dist/contexts/file-storage.d.ts.map +1 -0
  33. package/dist/controllers/persistence.controller.d.ts +11 -0
  34. package/dist/controllers/persistence.controller.d.ts.map +1 -1
  35. package/dist/{en-US-DUdx4QEY.js → en-US-CrMLbirj.js} +17 -2
  36. package/dist/{highlight-languages-BVzldaaL.js → highlight-languages-BvNFb0HY.js} +1 -1
  37. package/dist/icons/icons.d.ts +2 -0
  38. package/dist/icons/icons.d.ts.map +1 -1
  39. package/dist/icons/index.d.ts +1 -1
  40. package/dist/icons/index.d.ts.map +1 -1
  41. package/dist/{index-BOwm7U7f.js → index-BTJMzthg.js} +34888 -30786
  42. package/dist/index.js +1 -1
  43. package/dist/index.umd.js +1751 -1010
  44. package/dist/stats.html +1 -1
  45. package/dist/utils/file-id.d.ts +23 -0
  46. package/dist/utils/file-id.d.ts.map +1 -0
  47. package/dist/utils/file-md5.d.ts +51 -0
  48. package/dist/utils/file-md5.d.ts.map +1 -0
  49. package/dist/utils/file-storage.d.ts +527 -0
  50. package/dist/utils/file-storage.d.ts.map +1 -0
  51. package/dist/worker-bridge.d.ts +186 -2
  52. package/dist/worker-bridge.d.ts.map +1 -1
  53. package/package.json +7 -5
  54. package/dist/assets/shared-worker-vIZKoWv_.js +0 -2667
@@ -15,8 +15,8 @@
15
15
  * - Token request dedup: concurrent requests share the same Promise.
16
16
  */
17
17
  import { type Remote } from 'comlink';
18
- import type { PersistenceConfig } from '@rtc-agent/persistence';
19
- import type { ConnectionState, ConnectionStateEvent } from '@rtc-agent/client';
18
+ import type { PersistenceConfig, CachedFileInfo, FileCacheEntry, FileSyncStatus } from '@rtc-agent/persistence';
19
+ import type { ConnectionState, ConnectionStateEvent, HeadObjectResult } from '@rtc-agent/client';
20
20
  import type { WorkerPersistenceCore } from '@rtc-agent/worker';
21
21
  import type { AuthController } from './controllers/auth.controller.js';
22
22
  export interface WorkerBridgeConfig {
@@ -49,6 +49,8 @@ export declare class WorkerBridge {
49
49
  /** AbortController for cancelling ongoing catch-up */
50
50
  private _catchUpAbortController?;
51
51
  private _config;
52
+ /** Counter for generating unique operation IDs (for file operation cancellation) */
53
+ private _operationCounter;
52
54
  /** Connection state listeners (main-thread side). */
53
55
  private _connectionListeners;
54
56
  /**
@@ -178,6 +180,188 @@ export declare class WorkerBridge {
178
180
  * Note: virtualFS is a module-level singleton; the replacement is global.
179
181
  */
180
182
  installVirtualFSProxy(): void;
183
+ /**
184
+ * Cache a downloaded file (proxied to Worker).
185
+ */
186
+ cacheFile(md5: string, ext: string, blob: Blob, contentType: string, ttlMs?: number): Promise<void>;
187
+ /**
188
+ * Cache a file with pending sync status (proxied to Worker).
189
+ *
190
+ * Writes the file to local cache with syncStatus='pending', without uploading to S3.
191
+ * Used for edit mode: file is cached locally first, then uploaded to S3 in background.
192
+ */
193
+ cacheFilePending(md5: string, ext: string, blob: Blob, contentType: string, filename?: string): Promise<void>;
194
+ /**
195
+ * Get a cached file (proxied to Worker).
196
+ */
197
+ getCachedFile(md5: string, ext: string): Promise<CachedFileInfo | null>;
198
+ /**
199
+ * Evict all expired cache entries (proxied to Worker).
200
+ */
201
+ evictExpiredCache(): Promise<number>;
202
+ /**
203
+ * Evict synced cache entries using LRU strategy (proxied to Worker).
204
+ *
205
+ * Only evicts files with syncStatus='synced'. Pending/failed/syncing files
206
+ * are preserved to prevent data loss.
207
+ *
208
+ * @param targetBytes Number of bytes to free (default: 100MB)
209
+ * @returns Actual evicted count and bytes freed
210
+ */
211
+ evictCache(targetBytes?: number): Promise<{
212
+ evictedCount: number;
213
+ evictedBytes: number;
214
+ }>;
215
+ /**
216
+ * Upload a file to S3 (proxied to Worker).
217
+ *
218
+ * Progress callbacks are throttled to 100ms intervals to avoid message storms.
219
+ *
220
+ * Cancellation via AbortSignal: generates a unique operationId, passes it to the Worker,
221
+ * and registers an abort listener that calls cancelFileOperation(operationId) on the Worker.
222
+ * The Worker's WorkerCore maintains a Map<operationId, AbortController>; the abort triggers
223
+ * the controller, which aborts the underlying HTTP request via PersistenceLayer's signal.
224
+ *
225
+ * @param md5 File content MD5 hash (32 hex chars)
226
+ * @param ext File extension
227
+ * @param blob File content as Blob
228
+ * @param contentType MIME type (optional)
229
+ * @param onProgress Throttled progress callback (optional)
230
+ * @param signal AbortSignal for cancellation (optional)
231
+ * @returns Upload result with sync status information
232
+ */
233
+ uploadFile(md5: string, ext: string, blob: Blob, contentType?: string, filename?: string, onProgress?: (loaded: number, total: number) => void, signal?: AbortSignal, cacheTtlMs?: number): Promise<{
234
+ syncStatus: 'pending' | 'syncing' | 'synced' | 'failed';
235
+ syncedAt?: number;
236
+ errorMessage?: string;
237
+ }>;
238
+ /**
239
+ * Download a file from S3 with local caching (proxied to Worker).
240
+ *
241
+ * Progress callbacks are throttled to 100ms intervals to avoid message storms.
242
+ *
243
+ * Cancellation via AbortSignal: generates a unique operationId, passes it to the Worker,
244
+ * and registers an abort listener that calls cancelFileOperation(operationId) on the Worker.
245
+ * The Worker's WorkerCore maintains a Map<operationId, AbortController>; the abort triggers
246
+ * the controller, which aborts the underlying HTTP request via PersistenceLayer's signal.
247
+ *
248
+ * P2-NEW-4 fix: added forceRefresh parameter to bypass local cache
249
+ *
250
+ * @param md5 File content MD5 hash
251
+ * @param ext File extension
252
+ * @param onProgress Progress callback (optional, throttled)
253
+ * @param signal AbortSignal for cancellation (optional)
254
+ * @param forceRefresh If true, bypass local cache and download from S3 (optional)
255
+ */
256
+ downloadFile(md5: string, ext: string, onProgress?: (loaded: number, total: number) => void, signal?: AbortSignal, forceRefresh?: boolean): Promise<Blob>;
257
+ /**
258
+ * Delete a file from local cache and S3 (proxied to Worker).
259
+ *
260
+ * @param md5 File content MD5 hash
261
+ * @param ext File extension
262
+ */
263
+ deleteFile(md5: string, ext: string): Promise<void>;
264
+ /**
265
+ * Calculate MD5 hash of a Blob (proxied to Worker).
266
+ *
267
+ * Runs in the Worker thread to avoid blocking the main thread.
268
+ */
269
+ calculateFileMD5(blob: Blob): Promise<string>;
270
+ /**
271
+ * Get file metadata from S3 without downloading (proxied to Worker).
272
+ */
273
+ headFile(md5: string, ext: string): Promise<HeadObjectResult>;
274
+ /**
275
+ * Get a presigned URL for file operations (proxied to Worker).
276
+ */
277
+ getPresignedUrl(operation: 'get' | 'put', key: string, expiresIn?: number): Promise<string>;
278
+ /**
279
+ * List files by sync status (proxied to Worker).
280
+ */
281
+ listFiles(syncStatus?: FileSyncStatus, limit?: number, offset?: number): Promise<FileCacheEntry[]>;
282
+ /**
283
+ * Count files by sync status (proxied to Worker).
284
+ */
285
+ countFiles(syncStatus?: FileSyncStatus): Promise<number>;
286
+ /**
287
+ * Batch sync all pending/failed files to S3 (proxied to Worker).
288
+ *
289
+ * Automatically called when the network comes back online.
290
+ * Can also be called manually to trigger sync.
291
+ *
292
+ * @returns Statistics: number of files synced and failed, plus detailed file lists
293
+ * for per-file UI broadcast (syncedFiles, failedFiles)
294
+ */
295
+ syncPendingFiles(): Promise<{
296
+ synced: number;
297
+ failed: number;
298
+ syncedFiles: Array<{
299
+ md5: string;
300
+ ext: string;
301
+ }>;
302
+ failedFiles: Array<{
303
+ md5: string;
304
+ ext: string;
305
+ errorMessage?: string;
306
+ }>;
307
+ }>;
308
+ /**
309
+ * Resume all interrupted multipart uploads.
310
+ *
311
+ * P2-NEW-6 fix: Returns syncedFiles/failedFiles for per-file event broadcasting.
312
+ *
313
+ * @returns Statistics: number of uploads resumed, failed, expired, plus detailed file lists
314
+ */
315
+ resumeInterruptedUploads(): Promise<{
316
+ resumed: number;
317
+ failed: number;
318
+ expired: number;
319
+ syncedFiles: Array<{
320
+ md5: string;
321
+ ext: string;
322
+ }>;
323
+ failedFiles: Array<{
324
+ md5: string;
325
+ ext: string;
326
+ errorMessage?: string;
327
+ }>;
328
+ }>;
329
+ /**
330
+ * Get cache statistics: total files, total size, and breakdown by sync status.
331
+ */
332
+ getCacheStats(): Promise<{
333
+ totalFiles: number;
334
+ totalSize: number;
335
+ byStatus: {
336
+ pending: {
337
+ count: number;
338
+ size: number;
339
+ };
340
+ syncing: {
341
+ count: number;
342
+ size: number;
343
+ };
344
+ synced: {
345
+ count: number;
346
+ size: number;
347
+ };
348
+ failed: {
349
+ count: number;
350
+ size: number;
351
+ };
352
+ };
353
+ }>;
354
+ /**
355
+ * Update file metadata (filename, contentType) in the local cache (proxied to Worker).
356
+ *
357
+ * @param md5 File content MD5 hash
358
+ * @param ext File extension
359
+ * @param updates Partial metadata to update (filename and/or contentType)
360
+ */
361
+ updateFileMetadata(md5: string, ext: string, updates: {
362
+ filename?: string;
363
+ contentType?: string;
364
+ }): Promise<void>;
181
365
  /**
182
366
  * Catch up on missed UI update events from the Worker's persistent queue.
183
367
  *
@@ -1 +1 @@
1
- {"version":3,"file":"worker-bridge.d.ts","sourceRoot":"","sources":["../src/worker-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAc,KAAK,MAAM,EAAC,MAAM,SAAS,CAAC;AAEjD,OAAO,KAAK,EAAC,iBAAiB,EAA4C,MAAM,wBAAwB,CAAC;AACzG,OAAO,KAAK,EAAC,eAAe,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAE7E,OAAO,KAAK,EAAC,qBAAqB,EAAmC,MAAM,mBAAmB,CAAC;AAC/F,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAmErE,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,YAAY;IAyDjB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAxD1B,OAAO,C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AAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,CAAC;SACzC,CAAC;KACH,CAAC;IAIF;;;;;;OAMG;IACG,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GACnD,OAAO,CAAC,IAAI,CAAC;IAMhB;;;;;;;;;;;;OAYG;YACW,UAAU;IAmGxB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,YAAY;IAYpB;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAK/B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAI7B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAe7B;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAQhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-agent/component",
3
- "version": "0.2.9-rc.1",
3
+ "version": "0.3.0-rc.0",
4
4
  "description": "RTC Agent Web Components(基于 Lit)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,15 +31,17 @@
31
31
  "interactjs": "^1.10.28",
32
32
  "lit": "^3.1.0",
33
33
  "marked": "^18.0.11",
34
+ "spark-md5": "^3.0.2",
34
35
  "zod": "^3.23.8",
35
- "@rtc-agent/persistence": "0.2.9-rc.1",
36
- "@rtc-agent/protocol": "0.2.9-rc.1",
37
- "@rtc-agent/client": "0.2.9-rc.1",
38
- "@rtc-agent/worker": "0.2.9-rc.1"
36
+ "@rtc-agent/persistence": "0.3.0-rc.0",
37
+ "@rtc-agent/protocol": "0.3.0-rc.0",
38
+ "@rtc-agent/worker": "0.3.0-rc.0",
39
+ "@rtc-agent/client": "0.3.0-rc.0"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@lit/localize-tools": "^0.8.2",
42
43
  "@types/dompurify": "^3.2.0",
44
+ "@types/spark-md5": "^3.0.5",
43
45
  "@vitest/coverage-v8": "^5.0.2",
44
46
  "fake-indexeddb": "^6.2.5",
45
47
  "jsdom": "^30.0.1",