feat: one tsconfig.json and different rules

This commit is contained in:
imccyu
2026-06-17 23:41:18 +08:00
parent ec9b093cb0
commit dc04fea749
16 changed files with 89 additions and 113 deletions

View File

@@ -3,8 +3,8 @@ import { existsSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { dirname, join } from 'node:path'
import { describe, expect, it } from 'vitest'
import { type InputScript, runScenario } from './snapshot-harness.ts'
import { type NormalizeContext, normalizeSessionLog, normalizeStdout } from './snapshot-normalize.ts'
import { type InputScript, runScenario } from './snapshot-harness'
import { type NormalizeContext, normalizeSessionLog, normalizeStdout } from './snapshot-normalize'
/**
* ACP snapshot tests (REPLAY by default, keyless). Each scenario under

View File

@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import { type NormalizeContext, normalizeSessionLog, normalizeStdout } from '../tests/snapshot-normalize.ts'
import { type NormalizeContext, normalizeSessionLog, normalizeStdout } from '../tests/snapshot-normalize'
/**
* Unit tests for the pure snapshot normalizers. Live as a *.spec.ts (runs in

View File

@@ -4,7 +4,7 @@ import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { afterEach, describe, expect, it } from 'vitest'
import type { Context } from 'cordis'
import { codingHarness, finalText, SYSTEM_PROMPT, waitForIdle } from './harness.ts'
import { codingHarness, finalText, SYSTEM_PROMPT, waitForIdle } from './harness'
/**
* The swebench-style smoke test: a real model fixes a real bug in a temp

View File

@@ -1,6 +1,6 @@
import { afterEach, describe, expect, it } from 'vitest'
import type { Context } from 'cordis'
import { codingHarness, finalText, SYSTEM_PROMPT, waitForIdle } from './harness.ts'
import { codingHarness, finalText, SYSTEM_PROMPT, waitForIdle } from './harness'
/**
* The first place a REAL model meets the REAL bash tool: the cheap canary

View File

@@ -4,7 +4,7 @@ import { join } from 'node:path'
import { afterEach, describe, expect, it } from 'vitest'
import type { Context } from 'cordis'
import type { ReactLoopAgent } from '@deepseek-ai/dsh-agent-loop'
import { codingHarness, finalText, SYSTEM_PROMPT, waitForIdle } from './harness.ts'
import { codingHarness, finalText, SYSTEM_PROMPT, waitForIdle } from './harness'
/**
* Proves durable conversation continuity end-to-end: run 1 tells the REAL model