mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
14 lines
437 B
TypeScript
14 lines
437 B
TypeScript
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'), '')
|
|
})
|
|
}
|