built-bin.e2e.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
  2. import { tmpdir } from 'node:os'
  3. import { join } from 'node:path'
  4. import { fileURLToPath, pathToFileURL } from 'node:url'
  5. import { startMockLlmServer } from '@deepseek-ai/dsh-llm-mock-server'
  6. import { execa } from 'execa'
  7. import { afterEach, beforeEach, describe, expect, it } from 'vitest'
  8. /** Published-entry acceptance for argument errors, profile lifecycle, and boot-free config dumps. */
  9. const repoRoot = fileURLToPath(new URL('../../../', import.meta.url))
  10. const dshBin = join(repoRoot, 'apps/cli/lib/bin.js')
  11. const coreWebOverlay = fileURLToPath(new URL('../config/core-web.cordis.yml', import.meta.url))
  12. const invalidProvider = fileURLToPath(new URL('./fixtures/invalid-provider.cordis.yml', import.meta.url))
  13. async function runBuiltBin(
  14. args: readonly string[] = [],
  15. env: Readonly<Record<string, string | undefined>> = {},
  16. cwd?: string,
  17. ): Promise<{ stdout: string; code: number; stderr: string }> {
  18. const childEnv = Object.fromEntries(
  19. Object.entries({ ...process.env, ...env })
  20. .filter((entry): entry is [string, string] => entry[1] !== undefined),
  21. )
  22. const result = await execa(process.execPath, [dshBin, ...args], {
  23. input: '',
  24. timeout: 25_000,
  25. killSignal: 'SIGKILL',
  26. reject: false,
  27. env: childEnv,
  28. extendEnv: false,
  29. ...cwd === undefined ? {} : { cwd },
  30. })
  31. if (result.timedOut) {
  32. throw new Error(`dsh built bin did not exit within 25s. stdout:\n${result.stdout}\nstderr:\n${result.stderr}`)
  33. }
  34. return { stdout: result.stdout, code: result.exitCode ?? -1, stderr: result.stderr }
  35. }
  36. async function waitForFile(file: string): Promise<void> {
  37. const deadline = Date.now() + 20_000
  38. while (!existsSync(file)) {
  39. if (Date.now() >= deadline) throw new Error(`dsh profile lifecycle marker did not appear: ${file}`)
  40. await new Promise(resolve => setTimeout(resolve, 20))
  41. }
  42. }
  43. interface ProfileLifecycleFixture {
  44. home: string
  45. ready: string
  46. settled: string
  47. disposed: string
  48. }
  49. /**
  50. * A minimal custom profile: one lifecycle-marker plugin bundle listed in
  51. * dsh.profile.bundles, no dsh-base — proving out-of-box composition machinery without
  52. * booting the entire product tree.
  53. */
  54. function createProfileLifecycleFixture(): ProfileLifecycleFixture {
  55. const home = mkdtempSync(join(tmpdir(), 'dsh-profile-lifecycle-'))
  56. const ready = join(home, 'ready')
  57. const settled = join(home, 'settled')
  58. const disposed = join(home, 'disposed')
  59. const bundleDir = join(home, 'lifecycle-bundle')
  60. mkdirSync(bundleDir, { recursive: true })
  61. writeFileSync(join(bundleDir, 'plugin.mjs'), [
  62. "import { writeFileSync } from 'node:fs'",
  63. "import { join } from 'node:path'",
  64. "export const name = 'profile-lifecycle-fixture'",
  65. 'export function apply(ctx, config = {}) {',
  66. ' let active = true',
  67. ' // Keep the event loop alive so process lifetime is signal-owned, like a real surface.',
  68. ' const heartbeat = setInterval(() => {}, 1000)',
  69. ' // Echo the mounted generation so the hot-reload e2e can assert both an',
  70. ' // applied override and its removal reverting to this bundle default.',
  71. " writeFileSync(join(process.env.DSH_HOME, 'config-echo'), String(config.generation ?? 'bundle-default'))",
  72. " writeFileSync(process.env.RAW_READY_FILE, 'ready')",
  73. ' void ctx.loader.await().then(() => {',
  74. " if (active) writeFileSync(process.env.RAW_SETTLED_FILE, 'settled')",
  75. ' })',
  76. ' ctx.effect(() => () => {',
  77. ' active = false',
  78. ' clearInterval(heartbeat)',
  79. " writeFileSync(process.env.RAW_DISPOSED_FILE, 'disposed')",
  80. ' })',
  81. '}',
  82. '',
  83. ].join('\n'))
  84. writeFileSync(join(bundleDir, 'cordis.patch.yml'), [
  85. '- insert:',
  86. ' - id: profile-lifecycle-fixture',
  87. ` name: ${pathToFileURL(join(bundleDir, 'plugin.mjs')).href}`,
  88. '',
  89. ].join('\n'))
  90. writeFileSync(join(bundleDir, 'package.json'), JSON.stringify({
  91. name: 'dsh-lifecycle-bundle',
  92. version: '0.0.0',
  93. type: 'module',
  94. dsh: { bundle: { patch: './cordis.patch.yml' } },
  95. }, undefined, 2))
  96. const profileDir = join(home, 'profiles', 'lifecycle')
  97. mkdirSync(join(profileDir, 'node_modules'), { recursive: true })
  98. writeFileSync(join(profileDir, 'package.json'), JSON.stringify({
  99. name: 'dsh-profile-lifecycle',
  100. private: true,
  101. dependencies: {},
  102. dsh: { profile: { bundles: ['dsh-lifecycle-bundle'] } },
  103. }, undefined, 2))
  104. // Hand-place the "installed" bundle where profile resolution finds it.
  105. writeFileSync(join(profileDir, 'cordis.patch.yml'), '[]\n')
  106. const linkTarget = join(profileDir, 'node_modules', 'dsh-lifecycle-bundle')
  107. mkdirSync(join(profileDir, 'node_modules'), { recursive: true })
  108. try {
  109. rmSync(linkTarget, { recursive: true, force: true })
  110. } catch { /* fresh dir */ }
  111. // Copy-free: a package.json redirecting via a relative main is enough for require.resolve.
  112. mkdirSync(linkTarget, { recursive: true })
  113. for (const file of ['package.json', 'cordis.patch.yml', 'plugin.mjs']) {
  114. writeFileSync(join(linkTarget, file), readFileSync(join(bundleDir, file)))
  115. }
  116. return { home, ready, settled, disposed }
  117. }
  118. function startProfileLifecycle(fixture: ProfileLifecycleFixture) {
  119. return execa(process.execPath, [dshBin, '--profile', 'lifecycle'], {
  120. cwd: fixture.home,
  121. input: '',
  122. reject: false,
  123. env: {
  124. DSH_HOME: fixture.home,
  125. RAW_READY_FILE: fixture.ready,
  126. RAW_SETTLED_FILE: fixture.settled,
  127. RAW_DISPOSED_FILE: fixture.disposed,
  128. },
  129. })
  130. }
  131. function createEnvironmentProbeProfile(home: string, project: string): void {
  132. const pluginFile = join(project, 'environment-probe.mjs')
  133. writeFileSync(pluginFile, [
  134. "export const name = 'environment-probe'",
  135. "export const inject = ['llm']",
  136. 'export function apply(ctx) {',
  137. ' void ctx.loader.await().then(async () => {',
  138. " let text = ''",
  139. ' for await (const chunk of ctx.llm.stream({',
  140. " provider: 'deepseek-official',",
  141. " model: 'deepseek-v4-flash',",
  142. ' messages: [],',
  143. ' maxTokens: 32,',
  144. ' })) {',
  145. " if (chunk.type === 'text-delta') text += chunk.text",
  146. ' }',
  147. ' process.stdout.write(`${text}\\n`)',
  148. " process.kill(process.pid, 'SIGTERM')",
  149. ' })',
  150. '}',
  151. '',
  152. ].join('\n'))
  153. const profileDir = join(home, 'profiles', 'environment-probe')
  154. mkdirSync(profileDir, { recursive: true })
  155. writeFileSync(join(profileDir, 'package.json'), JSON.stringify({
  156. name: 'dsh-profile-environment-probe',
  157. private: true,
  158. dependencies: {},
  159. dsh: { profile: { bundles: ['@deepseek-ai/dsh-base'] } },
  160. }, undefined, 2))
  161. writeFileSync(join(profileDir, 'cordis.patch.yml'), [
  162. '- insert:',
  163. ' - id: environment-probe',
  164. ` name: ${pathToFileURL(pluginFile).href}`,
  165. '',
  166. ].join('\n'))
  167. }
  168. describe.skipIf(!existsSync(dshBin))('dsh BUILT bin (node lib/bin.js, no tsx)', () => {
  169. it('requires --profile and rejects removed commands', async () => {
  170. const bare = await runBuiltBin()
  171. expect(bare.code).toBe(1)
  172. expect(bare.stdout).toBe('')
  173. expect(bare.stderr).toContain('--profile <name> is required')
  174. const help = await runBuiltBin(['--help'])
  175. expect(help.code).toBe(0)
  176. expect(help.stdout).toContain('dsh --profile web')
  177. expect(help.stdout).toContain('dsh plugin --profile')
  178. expect(help.stdout).not.toMatch(/^\s+(?:tui|meta|upgrade)\b/mu)
  179. for (const removed of [['tui'], ['--config', 'x.yml'], ['-p', 'task']]) {
  180. const result = await runBuiltBin(removed)
  181. expect(result.code).toBe(1)
  182. }
  183. }, 30_000)
  184. it('does not load a project environment for --version', async () => {
  185. const project = mkdtempSync(join(tmpdir(), 'dsh-version-project-'))
  186. writeFileSync(join(project, '.env'), 'PATH=/project-only-path\n')
  187. try {
  188. const result = await runBuiltBin(['--version'], {}, project)
  189. expect(result).toEqual({ code: 0, stdout: '0.0.1', stderr: '' })
  190. } finally {
  191. rmSync(project, { recursive: true, force: true })
  192. }
  193. })
  194. it('fails loud on a nonexistent profile with the plugin-command hint', async () => {
  195. const home = mkdtempSync(join(tmpdir(), 'dsh-missing-profile-'))
  196. try {
  197. const result = await runBuiltBin(['--profile', 'nope'], { DSH_HOME: home })
  198. expect(result.code).toBe(1)
  199. expect(result.stderr).toContain('profile "nope" does not exist')
  200. expect(result.stderr).toContain('dsh plugin --profile nope add')
  201. } finally {
  202. rmSync(home, { recursive: true, force: true })
  203. }
  204. }, 30_000)
  205. it('uses the Harness-home environment and managed credential through the published entry', async () => {
  206. const apiKey = 'built-home-layer-key'
  207. const server = await startMockLlmServer({
  208. sequence: ['success'],
  209. apiKey,
  210. successText: 'home environment reached the mock',
  211. })
  212. const home = mkdtempSync(join(tmpdir(), 'dsh-home-environment-'))
  213. const project = mkdtempSync(join(tmpdir(), 'dsh-home-project-'))
  214. writeFileSync(join(home, '.env'), `DEEPSEEK_BASE_URL=${server.baseURL}\n`)
  215. writeFileSync(join(home, '.credentials.yaml'), `DEEPSEEK_API_KEY: ${apiKey}\n`, { mode: 0o600 })
  216. createEnvironmentProbeProfile(home, project)
  217. try {
  218. const result = await runBuiltBin(
  219. ['--profile', 'environment-probe'],
  220. {
  221. DSH_HOME: home,
  222. DSH_TELEMETRY_DISABLED: '1',
  223. DEEPSEEK_API_KEY: undefined,
  224. DEEPSEEK_BASE_URL: undefined,
  225. },
  226. project,
  227. )
  228. expect(
  229. result.code,
  230. `${result.stderr}\nstdout:\n${result.stdout}\nmock requests: ${String(server.requests.length)}`,
  231. ).toBe(0)
  232. expect(result.stdout).toBe('home environment reached the mock')
  233. expect(result.stdout).not.toContain(apiKey)
  234. expect(result.stderr).not.toContain(apiKey)
  235. expect(server.requests).toHaveLength(1)
  236. expect(server.requests[0]?.path).toBe('/chat/completions')
  237. expect(server.requests[0]?.headers.authorization).toBe(`Bearer ${apiKey}`)
  238. expect(JSON.stringify(server.requests[0]?.body)).not.toContain(apiKey)
  239. } finally {
  240. await server.close()
  241. rmSync(home, { recursive: true, force: true })
  242. rmSync(project, { recursive: true, force: true })
  243. }
  244. }, 30_000)
  245. it('reports a patch-overlay boot failure without hanging', async () => {
  246. // The HMR main watcher's initial scan once refreshed the include
  247. // mid-initial-apply, deadlocking the failing apply's rollback against the
  248. // refresh drain: dsh exited 13 with no diagnostic instead of settling
  249. // ([Agent Note](../../../.agents/notes/implemented/bug-fix/2026-08-03-hmr-initial-scan-boot-deadlock.md)).
  250. const home = mkdtempSync(join(tmpdir(), 'dsh-invalid-patch-'))
  251. try {
  252. const result = await runBuiltBin(['--profile', 'web', '--patch', invalidProvider], {
  253. DSH_HOME: home,
  254. DEEPSEEK_API_KEY: 'keyless-invalid-config',
  255. DSH_TELEMETRY_DISABLED: '1',
  256. })
  257. expect(result.code).toBe(1)
  258. expect(result.stdout).toBe('')
  259. expect(result.stderr).toContain('llm-pi-ai')
  260. } finally {
  261. rmSync(home, { recursive: true, force: true })
  262. }
  263. }, 30_000)
  264. it('applies a custom profile bundle and disposes it on a startup-time signal', async () => {
  265. const fixture = createProfileLifecycleFixture()
  266. const child = startProfileLifecycle(fixture)
  267. try {
  268. await waitForFile(fixture.ready)
  269. child.kill('SIGTERM')
  270. const result = await child
  271. expect(result.exitCode).toBe(0)
  272. expect(result.signal).toBeUndefined()
  273. expect(existsSync(fixture.disposed)).toBe(true)
  274. } finally {
  275. child.kill('SIGKILL')
  276. rmSync(fixture.home, { recursive: true, force: true })
  277. }
  278. }, 30_000)
  279. it('fully settles a custom profile, hot-reloads its patch layer with removal reverting, and disposes on a signal', async () => {
  280. const fixture = createProfileLifecycleFixture()
  281. const child = startProfileLifecycle(fixture)
  282. const profilePatch = join(fixture.home, 'profiles', 'lifecycle', 'cordis.patch.yml')
  283. const configFile = join(fixture.home, 'config-echo')
  284. try {
  285. await waitForFile(fixture.settled)
  286. // The live profile layer: even without an hmr row in the composition,
  287. // the launcher mounts a config-only watcher, so an edited
  288. // cordis.patch.yml lands in the running tree (the reload disposes the
  289. // patched row's old fiber — observable as the disposed marker — and
  290. // mounts the new config, which echoes its generation and re-writes the
  291. // ready marker).
  292. rmSync(fixture.ready)
  293. writeFileSync(profilePatch, [
  294. '- id: profile-lifecycle-fixture',
  295. ' config:',
  296. ' generation: 2',
  297. '',
  298. ].join('\n'))
  299. await waitForFile(fixture.ready)
  300. expect(readFileSync(configFile, 'utf8')).toBe('2')
  301. // Removal reverts: the bundle's inserted row must return to its own
  302. // default config, not keep the removed override — the insert-aliasing
  303. // regression (a shared patch object mutated in place by a former
  304. // generation would make this impossible).
  305. rmSync(fixture.ready)
  306. writeFileSync(profilePatch, '[]\n')
  307. await waitForFile(fixture.ready)
  308. expect(readFileSync(configFile, 'utf8')).toBe('bundle-default')
  309. // The home-level user layer ($DSH_HOME/cordis.patch.yml) is live too
  310. // and outranks the per-profile layer.
  311. rmSync(fixture.ready)
  312. writeFileSync(join(fixture.home, 'cordis.patch.yml'), [
  313. '- id: profile-lifecycle-fixture',
  314. ' config:',
  315. ' generation: home',
  316. '',
  317. ].join('\n'))
  318. await waitForFile(fixture.ready)
  319. expect(readFileSync(configFile, 'utf8')).toBe('home')
  320. child.kill('SIGTERM')
  321. const result = await child
  322. expect(result.exitCode).toBe(0)
  323. expect(result.signal).toBeUndefined()
  324. expect(existsSync(fixture.disposed)).toBe(true)
  325. } finally {
  326. child.kill('SIGKILL')
  327. rmSync(fixture.home, { recursive: true, force: true })
  328. }
  329. }, 30_000)
  330. it('anchors a relative add spec to the invoking directory, not the profile', async () => {
  331. // `dsh plugin --profile x add .` from a plugin checkout must install THAT
  332. // checkout — pnpm's cwd is the profile directory, so an un-anchored `.`
  333. // would self-link the profile.
  334. const home = mkdtempSync(join(tmpdir(), 'dsh-plugin-anchor-'))
  335. const checkout = mkdtempSync(join(tmpdir(), 'dsh-plugin-checkout-'))
  336. try {
  337. writeFileSync(join(checkout, 'package.json'), JSON.stringify({
  338. name: 'anchored-bundle',
  339. version: '1.0.0',
  340. dsh: { bundle: { patch: './cordis.patch.yml' } },
  341. }))
  342. writeFileSync(join(checkout, 'cordis.patch.yml'), '[]\n')
  343. const result = await execa(process.execPath, [dshBin, 'plugin', '--profile', 'anchor', 'add', '.'], {
  344. cwd: checkout,
  345. input: '',
  346. timeout: 60_000,
  347. killSignal: 'SIGKILL',
  348. reject: false,
  349. env: { DSH_HOME: home },
  350. })
  351. expect(result.exitCode).toBe(0)
  352. const manifest = JSON.parse(readFileSync(join(home, 'profiles', 'anchor', 'package.json'), 'utf8')) as {
  353. dependencies: Record<string, string>
  354. dsh: { profile: { bundles: string[] } }
  355. }
  356. expect(Object.keys(manifest.dependencies)).toEqual(['anchored-bundle'])
  357. expect(manifest.dsh.profile.bundles).toContain('anchored-bundle')
  358. } finally {
  359. rmSync(home, { recursive: true, force: true })
  360. rmSync(checkout, { recursive: true, force: true })
  361. }
  362. }, 90_000)
  363. it('activates a dependency that gained dsh.bundle in a later update', async () => {
  364. // Reconcile runs against the INSTALLED state on every successful pnpm
  365. // run, so `update` (not only `add`) activates a package whose newer
  366. // version declares dsh.bundle. Simulated without a registry: hand-place
  367. // the installed package, flip its manifest, and run a benign pnpm verb.
  368. const home = mkdtempSync(join(tmpdir(), 'dsh-plugin-update-'))
  369. try {
  370. const profileDir = join(home, 'profiles', 'up')
  371. const installed = join(profileDir, 'node_modules', 'late-bundle')
  372. mkdirSync(installed, { recursive: true })
  373. writeFileSync(join(profileDir, 'package.json'), JSON.stringify({
  374. name: 'dsh-profile-up',
  375. private: true,
  376. dependencies: { 'late-bundle': 'file:./late-bundle' },
  377. dsh: { profile: { bundles: ['@deepseek-ai/dsh-base'] } },
  378. }))
  379. writeFileSync(join(profileDir, 'cordis.patch.yml'), '[]\n')
  380. // v1: no dsh manifest — a plain dependency.
  381. writeFileSync(join(installed, 'package.json'), JSON.stringify({ name: 'late-bundle', version: '1.0.0' }))
  382. const first = await runBuiltBin(['plugin', '--profile', 'up', 'root'], { DSH_HOME: home })
  383. expect(first.code).toBe(0)
  384. let manifest = JSON.parse(readFileSync(join(profileDir, 'package.json'), 'utf8')) as { dsh: { profile: { bundles: string[] } } }
  385. expect(manifest.dsh.profile.bundles).toEqual(['@deepseek-ai/dsh-base'])
  386. // v2: the installed package now declares dsh.bundle (an update landed).
  387. writeFileSync(join(installed, 'package.json'), JSON.stringify({
  388. name: 'late-bundle', version: '2.0.0', dsh: { bundle: { patch: './cordis.patch.yml' } },
  389. }))
  390. writeFileSync(join(installed, 'cordis.patch.yml'), '[]\n')
  391. const second = await runBuiltBin(['plugin', '--profile', 'up', 'root'], { DSH_HOME: home })
  392. expect(second.code).toBe(0)
  393. manifest = JSON.parse(readFileSync(join(profileDir, 'package.json'), 'utf8')) as { dsh: { profile: { bundles: string[] } } }
  394. expect(manifest.dsh.profile.bundles).toEqual(['@deepseek-ai/dsh-base', 'late-bundle'])
  395. } finally {
  396. rmSync(home, { recursive: true, force: true })
  397. }
  398. }, 30_000)
  399. describe('config dump', () => {
  400. let home: string
  401. beforeEach(() => { home = mkdtempSync(join(tmpdir(), 'dsh-dump-bin-')) })
  402. afterEach(() => { rmSync(home, { recursive: true, force: true }) })
  403. it('prints the web profile bundle layers without a user layer', async () => {
  404. const { stdout, code, stderr } = await runBuiltBin(['--profile', 'web', '--dump-default-config'], { DSH_HOME: home })
  405. expect(code).toBe(0)
  406. expect(stderr).toBe('')
  407. expect(stdout).toContain("name: '@deepseek-ai/dsh-agent-loop'")
  408. expect(stdout).toContain('agents: []')
  409. expect(stdout).toContain('# == @deepseek-ai/dsh-base')
  410. expect(stdout).toContain("name: '@deepseek-ai/dsh-host-webserver'")
  411. }, 30_000)
  412. it('composes the profile user layer and a --patch overlay in order', async () => {
  413. // Auto-init the web profile first, then write its user layer.
  414. const init = await runBuiltBin(['--profile', 'web', '--dump-default-config'], { DSH_HOME: home })
  415. expect(init.code).toBe(0)
  416. const profilePatch = join(home, 'profiles', 'web', 'cordis.patch.yml')
  417. writeFileSync(profilePatch, [
  418. '- id: agent-loop',
  419. ' config:',
  420. ' agents:',
  421. ' - id: personal',
  422. ' provider: personal-provider',
  423. ' model: personal-model',
  424. '- id: absent-row',
  425. ' config:',
  426. ' x: 1',
  427. '',
  428. ].join('\n'))
  429. const overlay = join(home, 'overlay.cordis.yml')
  430. writeFileSync(overlay, [
  431. '- id: agent-loop',
  432. ' config:',
  433. ' agents:',
  434. ' - id: configured',
  435. ' provider: configured-provider',
  436. ' model: configured-model',
  437. '',
  438. ].join('\n'))
  439. const { stdout, code, stderr } = await runBuiltBin(
  440. ['--profile', 'web', '--patch', overlay, '--dump-config'],
  441. { DSH_HOME: home },
  442. )
  443. expect(code).toBe(0)
  444. expect(stdout).toContain('provider: configured-provider')
  445. expect(stdout).not.toContain('personal-provider')
  446. // Both layers patched the row; provenance lists them in application order.
  447. expect(stdout).toContain(`patched by ${profilePatch}, ${overlay}`)
  448. expect(stderr).toContain('patch: entry "absent-row" not found')
  449. }, 30_000)
  450. it('shows the RL Web patch disabling runtime surface context', async () => {
  451. const { stdout, code, stderr } = await runBuiltBin(
  452. ['web', '--patch', coreWebOverlay, '--dump-config'],
  453. { DSH_HOME: home },
  454. )
  455. expect(code).toBe(0)
  456. expect(stderr).toBe('')
  457. expect(stdout).toContain("name: '@deepseek-ai/dsh-web-app'")
  458. expect(stdout).toContain('surfaceContext: false')
  459. }, 30_000)
  460. })
  461. })