Merge branch 'stack/agent-profiles-5-web-ui' into stack/agent-profiles-8-authoring

# Conflicts:
#	packages/preset/agent-presets/src/index.ts
#	packages/preset/agent-presets/tests/mount.spec.ts
This commit is contained in:
Yichen Jiang
2026-08-10 11:25:14 +08:00
12 changed files with 105 additions and 51 deletions
+2 -2
View File
@@ -1589,7 +1589,7 @@ describe('per-agent presentation', () => {
})
it('inherits a STANDING preset scope\'s mode down the chain, agents beside it unaffected', async () => {
const { setScopeParent } = await import('@deepseek-ai/dsh-scope')
const { bindScopeParent } = await import('@deepseek-ai/dsh-scope')
const { ctx, systemPrompt } = await setup({ mode: 'native' })
registerEcho(ctx)
// The preset's standing scope declares once; the agent only PARENTS to it
@@ -1597,7 +1597,7 @@ describe('per-agent presentation', () => {
const standing = await mintAgentScope(ctx, 'preset:code-like')
standing.scope.ctx.tools.presentAs('code')
const joined = await mintAgentScope(ctx, 'joined-agent')
setScopeParent(joined.agent, standing.agent)
bindScopeParent(joined.agent, standing.agent)
const loner = await mintAgentScope(ctx, 'loner-agent')
expect(ctx.tools.get(RUN_CODE_NAME, joined.agent)).toBeDefined()