mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
21 lines
780 B
TypeScript
21 lines
780 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { Context } from '@deepseek-ai/cordis'
|
|
import AgentLoop from '@deepseek-ai/dsh-agent-loop'
|
|
import { renderPrompt } from '@deepseek-ai/dsh-system-prompt'
|
|
import { mountAgentLoopTestDependencies } from '../src/index.ts'
|
|
|
|
describe('dsh-agent-loop-testkit', () => {
|
|
it('mounts a configurable prerequisite spine that can activate AgentLoop', async () => {
|
|
const ctx = new Context()
|
|
await mountAgentLoopTestDependencies(ctx, {
|
|
systemPrompt: { persona: 'Test persona.' },
|
|
tools: { mode: 'native' },
|
|
})
|
|
|
|
expect(renderPrompt(await ctx.systemPrompt.assemble())).toContain('Test persona.')
|
|
await expect(ctx.plugin(AgentLoop, { agents: [] })).resolves.toBeDefined()
|
|
|
|
await ctx.fiber.dispose()
|
|
})
|
|
})
|