fix: rebase
This commit is contained in:
@@ -16,7 +16,7 @@ import type {
|
||||
CordisDynamicPluginRunId,
|
||||
DynamicCordisPackage,
|
||||
} from '@deepseek-ai/dsh-api-remotes/client'
|
||||
import { SlotsService } from '@deepseek-ai/dsh-client-runtime/client'
|
||||
import { SlotRegistry } from '@deepseek-ai/dsh-client-runtime/client'
|
||||
import { dynamicCordisContext } from '../src/client/guard.ts'
|
||||
import type { DynamicCordisSlotLedgerRow } from '../src/client/guard.ts'
|
||||
|
||||
@@ -37,7 +37,7 @@ type Facade = Record<string, unknown> & { get(name: string): unknown }
|
||||
|
||||
interface Bench {
|
||||
ctx: Context
|
||||
slots: SlotsService
|
||||
slots: SlotRegistry
|
||||
facade: Facade
|
||||
ledger: DynamicCordisSlotLedgerRow[]
|
||||
/** Components the facade claimed for the package, in registration order. */
|
||||
@@ -53,7 +53,7 @@ interface Bench {
|
||||
*/
|
||||
async function boot(inject: string[], extras: Record<string, unknown> = {}): Promise<Bench> {
|
||||
const ctx = new Context()
|
||||
await ctx.plugin(SlotsService)
|
||||
await ctx.plugin(SlotRegistry)
|
||||
const themeLayerDispose = vi.fn()
|
||||
const overrideTokens = vi.fn(() => themeLayerDispose)
|
||||
ctx.reflect.provide('theme', {
|
||||
|
||||
@@ -18,7 +18,7 @@ import type { SessionId } from '@deepseek-ai/dsh-client-connection/client'
|
||||
import type { DynamicCordisInvokeResult } from '@deepseek-ai/dsh-api-remotes/client'
|
||||
// Type-only: resolves `ctx.remote` and with it the `$on`/`$dispatch` surface.
|
||||
import type {} from '@deepseek-ai/dsh-api-gateway/client'
|
||||
import { SlotsService } from '@deepseek-ai/dsh-client-runtime/client'
|
||||
import { SlotRegistry } from '@deepseek-ai/dsh-client-runtime/client'
|
||||
import * as NodeHalf from '../src/index.ts'
|
||||
import * as Invariant from '../src/invariant.ts'
|
||||
import * as ClientHalf from '../src/client/index.ts'
|
||||
@@ -80,7 +80,7 @@ interface Bench {
|
||||
/** Mount the browser half over a module table and a loader standing on real fibers. */
|
||||
async function boot(): Promise<Bench> {
|
||||
const ctx = new Context()
|
||||
await ctx.plugin(SlotsService)
|
||||
await ctx.plugin(SlotRegistry)
|
||||
const factories = new Map<string, () => unknown>()
|
||||
const fibers = new Map<string, { fiber: unknown }>()
|
||||
let next = 0
|
||||
|
||||
@@ -19,7 +19,7 @@ import type {
|
||||
} from '@deepseek-ai/dsh-api-remotes/client'
|
||||
import type { SessionId } from '@deepseek-ai/dsh-client-connection/client'
|
||||
import type { ClientModuleSystem } from '@deepseek-ai/dsh-client-modules/client'
|
||||
import { SlotsService } from '@deepseek-ai/dsh-client-runtime/client'
|
||||
import { SlotRegistry } from '@deepseek-ai/dsh-client-runtime/client'
|
||||
import { DYNAMIC_CLIENT_REDIRECTS } from '../src/client/evaluator.ts'
|
||||
import { DynamicCordisPackageRunner } from '../src/client/runtime.ts'
|
||||
import type { DynamicCordisClientHalf, DynamicCordisRenderFailure } from '../src/client/runtime.ts'
|
||||
@@ -48,7 +48,7 @@ function half(overrides: Partial<DynamicCordisClientHalf> = {}): DynamicCordisCl
|
||||
|
||||
interface Bench {
|
||||
ctx: Context
|
||||
slots: SlotsService
|
||||
slots: SlotRegistry
|
||||
runner: DynamicCordisPackageRunner
|
||||
invalidated: string[]
|
||||
removed: string[]
|
||||
@@ -83,7 +83,7 @@ function seated<T>(fiber: T): T {
|
||||
|
||||
async function boot(): Promise<Bench> {
|
||||
const ctx = new Context()
|
||||
await ctx.plugin(SlotsService)
|
||||
await ctx.plugin(SlotRegistry)
|
||||
const invalidated: string[] = []
|
||||
const removed: string[] = []
|
||||
const created: string[] = []
|
||||
@@ -128,7 +128,7 @@ async function boot(): Promise<Bench> {
|
||||
listener = fn
|
||||
return () => { listener = undefined }
|
||||
},
|
||||
} as unknown as SlotsService,
|
||||
} as unknown as SlotRegistry,
|
||||
invoke,
|
||||
reportGuardFailure: () => {},
|
||||
reportRenderFailure: (agentId, pluginId, pluginRunId, failure) => {
|
||||
|
||||
Reference in New Issue
Block a user