test(cli): follow consolidated config tree
This commit is contained in:
@@ -10,13 +10,13 @@
|
|||||||
# The scripted adapter replaces the DeepSeek one: no key, no network. A patch's
|
# The scripted adapter replaces the DeepSeek one: no key, no network. A patch's
|
||||||
# `name` is an assertion rather than a replacement, so the base row is disabled
|
# `name` is an assertion rather than a replacement, so the base row is disabled
|
||||||
# and the adapter inserted. Relative specifiers resolve against the INCLUDED
|
# and the adapter inserted. Relative specifiers resolve against the INCLUDED
|
||||||
# file's directory (apps/cli), because the include moves baseUrl to that tree.
|
# file's directory (apps/cli/config), because the include moves baseUrl there.
|
||||||
- id: llm-deepseek
|
- id: llm-deepseek
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
- insert:
|
- insert:
|
||||||
- id: scripted-llm
|
- id: scripted-llm
|
||||||
name: './tests/fixtures/tui-scripted-llm.ts'
|
name: '../tests/fixtures/tui-scripted-llm.ts'
|
||||||
|
|
||||||
- id: agent-loop
|
- id: agent-loop
|
||||||
config:
|
config:
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import { runTuiPtySmoke, type TuiPtySmokeOptions } from './pty-harness.ts'
|
|||||||
const dshBinScript = fileURLToPath(new URL('../src/bin.ts', import.meta.url))
|
const dshBinScript = fileURLToPath(new URL('../src/bin.ts', import.meta.url))
|
||||||
// `--config` layers an overlay over the shared base, so the default surface
|
// `--config` layers an overlay over the shared base, so the default surface
|
||||||
// needs no config argument at all; these are the overlays under test.
|
// needs no config argument at all; these are the overlays under test.
|
||||||
const codeModeConfigPath = fileURLToPath(new URL('../../../examples/code-mode/cordis.yml', import.meta.url))
|
|
||||||
const scriptedConfigPath = fileURLToPath(new URL('./fixtures/tui-scripted.cordis.yml', import.meta.url))
|
const scriptedConfigPath = fileURLToPath(new URL('./fixtures/tui-scripted.cordis.yml', import.meta.url))
|
||||||
const tsconfigPath = fileURLToPath(new URL('../../../tsconfig.json', import.meta.url))
|
const tsconfigPath = fileURLToPath(new URL('../../../tsconfig.json', import.meta.url))
|
||||||
|
|
||||||
@@ -315,19 +314,6 @@ describe('dsh TUI keyless smoke (real Loader tree in a PTY)', () => {
|
|||||||
expect(output).toContain('\u001B[?2004l')
|
expect(output).toContain('\u001B[?2004l')
|
||||||
}, LOADER_SMOKE_TEST_TIMEOUT_MS)
|
}, LOADER_SMOKE_TEST_TIMEOUT_MS)
|
||||||
|
|
||||||
it('boots the Code Mode overlay tree, renders its banner, and exits cleanly', async () => {
|
|
||||||
// The overlay's only keyless composition proof: the include+patch tree,
|
|
||||||
// worker code runtime, and one-tool registry all mount before the banner.
|
|
||||||
const output = await smoke({
|
|
||||||
label: 'dsh code mode',
|
|
||||||
tempDirPrefix: 'dsh-tui-code-mode-',
|
|
||||||
configPath: codeModeConfigPath,
|
|
||||||
actions: [{ waitFor: 'TUI Code Mode ready.', send: '/exit\r' }],
|
|
||||||
})
|
|
||||||
expect(output).toContain('TUI Code Mode ready.')
|
|
||||||
expect(output).toContain('\u001B[?2004l')
|
|
||||||
}, LOADER_SMOKE_TEST_TIMEOUT_MS)
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('dsh CLI keyless smoke (apps/cli through the same PTY)', () => {
|
describe('dsh CLI keyless smoke (apps/cli through the same PTY)', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user