@sylphx/sdk 0.20.1 → 0.21.1

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/README.md CHANGED
@@ -236,6 +236,22 @@ the sandbox (`exec`, files, browser, desktop) versus another Platform execution
236
236
  plane (`ci-runner`, `managed-device-runtime`) without exposing Kubernetes
237
237
  placement or storage internals.
238
238
 
239
+ Runtime workspace subtree cleanup uses the fail-closed subpath reclaim route:
240
+
241
+ ```ts
242
+ import { reclaimWorkspaceSubpath } from '@sylphx/sdk'
243
+
244
+ await reclaimWorkspaceSubpath(sylphx, 'wksp_...', {
245
+ subPath: 'workspaces/session-a',
246
+ reason: 'retention-expired',
247
+ })
248
+ ```
249
+
250
+ Use `reclaimWorkspace` for whole-workspace archive/delete semantics only.
251
+ `reclaimWorkspaceSubpath` is a separate route so older Platform versions fail
252
+ with 404 instead of treating an unknown `subPath` field as whole-workspace
253
+ reclaim.
254
+
239
255
  ### Prefetch App Config
240
256
 
241
257
  ```ts
@@ -387,10 +403,10 @@ await openPortal()
387
403
  ```tsx
388
404
  import { useAnalytics } from '@sylphx/sdk/react'
389
405
 
390
- const { track, identify, page } = useAnalytics()
406
+ const { track, identify } = useAnalytics()
391
407
 
392
408
  track('button_clicked', { button: 'upgrade' })
393
- identify({ name: 'John', email: 'john@example.com' })
409
+ identify('user-id', { name: 'John', email: 'john@example.com' })
394
410
  ```
395
411
 
396
412
  ### Feature Flags
@@ -421,7 +437,7 @@ import { useStorage } from '@sylphx/sdk/react'
421
437
 
422
438
  const { upload, uploadAvatar, isUploading, progress } = useStorage()
423
439
 
424
- const url = await upload(file, { path: 'documents/' })
440
+ const url = await upload(file, { folder: 'documents' })
425
441
  const avatarUrl = await uploadAvatar(imageFile)
426
442
  ```
427
443