fix(ci): repair remote event coverage and catalogs
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/preset/agent-presets/README.md
|
||||
README.md: 98891c8710adc7d72dee20a8466742ee6f649956
|
||||
README.zh.md: 0fcc5fa4d697affc2185b9251c6a60dee6510042
|
||||
README.md: 28b9a31ed41e5fc41e38d6b0349c5bd9cbaeed9d
|
||||
README.zh.md: 1d8d1481c20005b9e7fed5341aa26dca63dcd815
|
||||
|
||||
@@ -16,6 +16,7 @@ import AgentPresets, {
|
||||
COMPOSITION_FILE, leakedServices, livePresetMounts, mountPreset, PresetMountError, serviceForAgent,
|
||||
} from '@deepseek-ai/dsh-agent-presets'
|
||||
import type { Config } from '@deepseek-ai/dsh-agent-presets'
|
||||
import type {} from '@deepseek-ai/dsh-agent-presets/types'
|
||||
import { bindScopeParent, createScope, scopeOf } from '@deepseek-ai/dsh-scope'
|
||||
|
||||
declare module '@deepseek-ai/cordis' {
|
||||
@@ -457,6 +458,18 @@ describe('attributing a service to a subtree', () => {
|
||||
})
|
||||
|
||||
describe('replacing a composition', () => {
|
||||
it('publishes a committed preset selection for remote consumers', async () => {
|
||||
const agent = await agentOn(ctx, 'sess-selected', 'standard')
|
||||
const selected: Array<[SessionId, string]> = []
|
||||
ctx.on('agent-preset/selected', (sessionId, agentPreset) => {
|
||||
selected.push([sessionId, agentPreset])
|
||||
})
|
||||
|
||||
agent.session.append('agent-preset/selected', { agentPreset: 'minimal' })
|
||||
|
||||
expect(selected).toEqual([[SessionId('sess-selected'), 'minimal']])
|
||||
})
|
||||
|
||||
it('swaps the agent\'s tools without touching another session', async () => {
|
||||
const keeper = await agentOn(ctx, 'sess-keeper', 'standard')
|
||||
const handle = await ctx.agents.create({
|
||||
|
||||
Reference in New Issue
Block a user