refactor(shared): drop the headless task contract from tool manifests
The `task` spec (argv templates, access modes, output dialects) and the capability flags headlessTask, structuredProgress, resumable and liveWaggleDance described how a Waggle Room run drove a coding agent without its UI. Nothing runs tools headless any more, so built-in manifests, the third-party adapter loader and detection results no longer carry them. An adapter file that still declares `task` is rejected like any other unknown key.
This commit is contained in:
@@ -35,27 +35,19 @@ describe('BUILTIN_TOOL_MANIFESTS', () => {
|
||||
|
||||
expect(cli).toMatchObject({
|
||||
displayName: 'Hermes Agent CLI',
|
||||
capabilities: { interactiveLaunch: true, headlessTask: true },
|
||||
detect: { kind: 'path', binaryName: 'hermes' },
|
||||
launchable: true,
|
||||
});
|
||||
expect(desktop).toMatchObject({
|
||||
displayName: 'Hermes Desktop',
|
||||
detect: { kind: 'candidates' },
|
||||
capabilities: { interactiveLaunch: true, headlessTask: false, resumable: false },
|
||||
launchable: true,
|
||||
});
|
||||
expect(desktop.task).toBeUndefined();
|
||||
});
|
||||
it('claude-code detects by PATH binary "claude" (not its id)', () => {
|
||||
const cc = BUILTIN_TOOL_MANIFESTS.find((m) => m.id === 'claude-code')!;
|
||||
expect(cc.detect).toEqual({ kind: 'path', binaryName: 'claude' });
|
||||
});
|
||||
it('keeps resumable Codex tasks persistent instead of ephemeral', () => {
|
||||
const codex = BUILTIN_TOOL_MANIFESTS.find((m) => m.id === 'codex')!;
|
||||
|
||||
expect(codex.task?.resumable).toBe(true);
|
||||
expect(codex.task?.argvTemplate).not.toContain('--ephemeral');
|
||||
expect(codex.task?.resumeArgvTemplate).not.toContain('--ephemeral');
|
||||
expect(codex.task?.resumeArgvTemplate).toContain('{sessionId}');
|
||||
});
|
||||
});
|
||||
|
||||
describe('applyPromptArgTemplate (#5 fast-follow)', () => {
|
||||
|
||||
Reference in New Issue
Block a user