WorkspaceState
Defined in: packages/ui-react/src/store/types.ts:13
工作台完整状态
Properties
Section titled “Properties”runtime
Section titled “runtime”runtime:
LokvisRuntime|null
Defined in: packages/ui-react/src/store/types.ts:15
Runtime 实例
initializing
Section titled “initializing”initializing:
boolean
Defined in: packages/ui-react/src/store/types.ts:17
是否正在初始化 Runtime
initError
Section titled “initError”initError:
string|null
Defined in: packages/ui-react/src/store/types.ts:19
初始化错误
assets
Section titled “assets”assets:
Asset[]
Defined in: packages/ui-react/src/store/types.ts:22
所有已导入资产
selectedAssetId
Section titled “selectedAssetId”selectedAssetId:
string|null
Defined in: packages/ui-react/src/store/types.ts:24
当前选中的资产 ID
thumbnails
Section titled “thumbnails”thumbnails:
Record<string,string>
Defined in: packages/ui-react/src/store/types.ts:26
资产缩略图(AssetId → ObjectURL)
lastImportedIds
Section titled “lastImportedIds”lastImportedIds:
string[]
Defined in: packages/ui-react/src/store/types.ts:35
最近一次 importFiles 成功导入的 Asset ID 列表(导入顺序)。
仅在 refreshAssets 完成后写入,保证 ID 对应的资产已在 store.assets 中。 供 focused 模式自动选中新导入资产(useFocusedAutoSelect)使用—— 不能用“assets 差分检测新资产”替代:工作流输出也会进入 assets, 差分法会把输出误判为新导入资产并抢占选中状态。
capabilities
Section titled “capabilities”capabilities:
Capability[]
Defined in: packages/ui-react/src/store/types.ts:38
所有已注册能力
capabilityMap
Section titled “capabilityMap”capabilityMap:
CapabilityMap
Defined in: packages/ui-react/src/store/types.ts:40
能力映射表(name → Capability)
stubCapabilities
Section titled “stubCapabilities”stubCapabilities:
Set<string>
Defined in: packages/ui-react/src/store/types.ts:46
仅有 stub 实现的能力名集合(A7)。 UI 据此为 stub-only 能力显示 “Coming Soon” 标记, 避免用户选择后在工作流执行阶段才收到 stub error。
panels
Section titled “panels”panels:
PanelDefinition[]
Defined in: packages/ui-react/src/store/types.ts:53
插件通过 ctx.registerPanel() 注册的 UI Panel 定义列表。 init 时与 panel:registered 事件后由 refreshPanels() 从 runtime.listPanels() 同步;PluginPanels 组件按 location 消费。
nodes:
WorkspaceNode[]
Defined in: packages/ui-react/src/store/types.ts:56
工作流节点序列(线性链)
selectedNodeId
Section titled “selectedNodeId”selectedNodeId:
string|null
Defined in: packages/ui-react/src/store/types.ts:58
当前选中的节点 ID
running
Section titled “running”running:
boolean
Defined in: packages/ui-react/src/store/types.ts:61
是否正在执行工作流
statusMessage
Section titled “statusMessage”statusMessage:
I18nMessage
Defined in: packages/ui-react/src/store/types.ts:66
全局状态消息(i18n key + params,由渲染组件按当前 locale 翻译)。 key 指向 src/i18n/ui.ts 字典(status.* 命名空间)。
error:
string|I18nMessage|null
Defined in: packages/ui-react/src/store/types.ts:71
错误信息。store 内构造的错误用 I18nMessage(可翻译); engine/runtime 抛出的原始错误文本保持 string 原样透传。
errorSeq
Section titled “errorSeq”errorSeq:
number
Defined in: packages/ui-react/src/store/types.ts:77
错误事件序号(单调递增)。每次 setError(非 null) 都递增,使 ErrorBanner 能在相同错误消息重复出现时仍感知到“新错误事件”重新弹出。 null error 不递增。0 表示初始无错误状态。
storageUsage
Section titled “storageUsage”storageUsage: {
usage:number;quota:number; } |null
Defined in: packages/ui-react/src/store/types.ts:80
存储配额使用情况(W6.7):{ usage, quota } 字节,null 表示未查询
historyEntries
Section titled “historyEntries”historyEntries:
HistoryEntry[]
Defined in: packages/ui-react/src/store/types.ts:83
历史栈条目(W7.1):当前活跃工作流的执行历史
historyCursor
Section titled “historyCursor”historyCursor:
number
Defined in: packages/ui-react/src/store/types.ts:85
历史栈游标(W7.1):-1 表示无已应用条目(初始);i 表示第 i 条已应用
historyWorkflowId
Section titled “historyWorkflowId”historyWorkflowId:
string|null
Defined in: packages/ui-react/src/store/types.ts:87
当前历史所属的工作流 ID(W7.1)
lastOutputIds
Section titled “lastOutputIds”lastOutputIds:
string[]
Defined in: packages/ui-react/src/store/types.ts:90
上次工作流执行的输出 Asset ID 列表(W9.4/W9.5):用于 before/after 对比与下载管理
selectedOutputId
Section titled “selectedOutputId”selectedOutputId:
string|null
Defined in: packages/ui-react/src/store/types.ts:92
当前选中的输出 Asset ID(W9.4):用于多输出场景选择
currentRunId
Section titled “currentRunId”currentRunId:
string|null
Defined in: packages/ui-react/src/store/types.ts:95
当前正在运行的工作流 ID(W11.6:用于 cancel)