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:
shumeiko.it
2026-11-01 11:08:26 +01:00
parent 727c756651
commit 80db300485
6 changed files with 19 additions and 208 deletions

View File

@@ -18,6 +18,16 @@ describe('loadThirdPartyManifests', () => {
expect(out[0]).toMatchObject({ id: 'foo-cli', builtin: false, detect: { kind: 'path', binaryName: 'foo' } });
});
it('rejects a headless task contract: captured Room tasks are not part of this edition', () => {
const out = loadThirdPartyManifests(deps({
'task.json': {
id: 'task-cli', displayName: 'T', launchable: true, detect: { kind: 'path', binaryName: 'task' },
task: { argvTemplate: ['run', '{prompt}'], promptTransport: 'arg' },
},
}));
expect(out).toEqual([]);
});
it('rejects detect.kind:candidates (code-only strategy)', () => {
const out = loadThirdPartyManifests(deps({
'bad.json': { id: 'bad', displayName: 'B', launchable: true, detect: { kind: 'candidates' } },