refactor(client): rename the host provide source to provideInfo

This commit is contained in:
imccyu
2026-07-28 11:03:56 +08:00
parent bce9910b47
commit 71529aa7d2
8 changed files with 10 additions and 10 deletions

View File

@@ -256,7 +256,7 @@ export class SlotsService extends Service {
entry.store === undefined ? undefined : this.resolveStore(entry.store as unknown as EngineStoreHandle, scopeKey),
sessions: {
list: sessions.list,
provide: sessions.currentProvide,
provideInfo: sessions.currentProvide,
},
workspaces: { list: workspaces.list },
}

View File

@@ -231,7 +231,7 @@ describe('host face', () => {
const bench = await boot()
const host = captureHost(bench)
expect(host.sessions.list.getSnapshot()).toMatchObject({ ids: [] })
expect(host.sessions.provide.getSnapshot()).toMatchObject({ sessionId: undefined })
expect(host.sessions.provideInfo.getSnapshot()).toMatchObject({ sessionId: undefined })
})
it('exposes the independent Workspace list source', async () => {