Merge remote-tracking branch 'origin/master' into codex/rfc-subagent-background-tasks

# Conflicts:
#	docs/config-catalog.md
#	docs/core-data-structures/bash.md
#	packages/bash/bash-local/src/index.ts
#	packages/bash/bash/src/types.ts
#	packages/bash/bash/tests/service.spec.ts
#	packages/bash/tool-bash/README.md
#	packages/bash/tool-bash/src/index.ts
#	packages/bash/tool-bash/tests/tools.spec.ts
#	packages/cordis/tool-cordis/src/api-catalog.ts
This commit is contained in:
Yichen Jiang
2026-07-15 13:38:17 +08:00
16 changed files with 181 additions and 182 deletions

View File

@@ -152,8 +152,6 @@ export interface BashProcessRead {
* and awaits {@link done}.
*/
export interface BashProcess {
/** The command line this process runs. */
readonly command: string
/** Process lifecycle state (settled exactly once). */
status: BashProcessStatus
/** Exit code once finished (null = killed by signal / still running). */

View File

@@ -32,9 +32,8 @@ class StubExecutor extends BashExecutor {
}
}
start(spec: BashExecSpec): BashProcess {
start(): BashProcess {
const proc: BashProcess = {
command: spec.command,
status: 'running',
exitCode: null,
signal: null,
@@ -62,7 +61,6 @@ describe('BashExecutor service seam', () => {
expect(result.stdout.text).toBe('ok')
const proc = ctx.bash.start(spec)
expect(proc.command).toBe('echo hi')
expect(proc.status).toBe('running')
expect(proc.readOutput()).toEqual({ delta: '', lossy: false })
expect(proc.kill()).toBe(true)