fix: test/docs

This commit is contained in:
imccyu
2026-08-13 00:19:15 +08:00
parent ffcc8e299b
commit 978e573605
33 changed files with 1307 additions and 136 deletions

View File

@@ -126,7 +126,7 @@ export function apply(ctx: ClientContext): void {
const store = runCards.forSession(sessionId)
return {
hooks: { inventory, loaded, runCards: store, activeRuns: runner.activeRuns },
onObserveRunCard: pointer => { store.observe(pointer) },
onObserveRunCard: (pointer) => { store.observe(pointer) },
}
},
}, CordisRunRow))
@@ -139,7 +139,7 @@ export function apply(ctx: ClientContext): void {
order: 1,
candidates(session, { query }) {
const rows = rowsOf(session.sessionId, query)
return Promise.resolve(rows.map(row => {
return Promise.resolve(rows.map((row) => {
const packageId = row.nextPackageId ?? row.currentPackageId ?? row.packages.at(-1)?.packageId
const pkg = packageId === undefined ? undefined : row.packages.find(candidate => candidate.packageId === packageId)
return {