oclaw/uds-auth/scripts/dump-workspaces.ps1
oliver ad0cc98b38 Make session visibility preference-driven and keep system-channel ACL separate.
Super/fallback can toggle view-all (default on); admin/user stay own-only while still seeing unowned system sessions. Add restore/prune helpers so empty-shell cleanup is explicit and recoverable.
2026-09-14 20:48:15 +08:00

9 lines
396 B
PowerShell

$ErrorActionPreference = 'Stop'
$w = Get-Content 'C:\Users\zhout\.dsh\storages\workspace.json' -Raw | ConvertFrom-Json
foreach ($prop in $w.tables.workspaces.PSObject.Properties) {
$row = $prop.Value
Write-Output ("id={0}" -f $prop.Name)
Write-Output (" path={0}" -f $row.path)
Write-Output (" title={0}" -f $row.title)
Write-Output (" sessionIds={0}" -f @($row.sessionIds).Count)
}