fix(subagent): close stacked catalog integration gaps

This commit is contained in:
Dudu-0223
2026-07-30 22:46:33 +08:00
committed by Tianyi Cui
parent a967f5174a
commit 8b0a7a5d8d
16 changed files with 102 additions and 53 deletions
@@ -0,0 +1,13 @@
import { writeFileSync } from 'node:fs'
import { join } from 'node:path'
import type { Context } from 'cordis'
import type {} from '@deepseek-ai/dsh-subagent'
export const name = 'subagent-settlement-marker'
/** Publish a workspace marker after a subagent lifecycle end. */
export function apply(ctx: Context): void {
ctx.on('subagent/end', () => {
writeFileSync(join(process.cwd(), '.dsh-snapshot-subagent-settled'), '')
})
}