mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-16 12:14:52 +00:00
* feat(serve): Bound replay snapshot history Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * codex: address PR review feedback (#6482) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * codex: address PR review suggestions (#6482) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * test(acp-bridge): fix replay truncation assertion access Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(serve): keep replay cap validation out of fast path runtime Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(acp-bridge): reset replay window on bulk seed Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * codex: address PR review feedback (#6482) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * codex: fix CI failure on PR #6482 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(sdk): expose bounded replay status types Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> --------- Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com> Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
123 lines
3.7 KiB
TypeScript
123 lines
3.7 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vitest/config';
|
|
import path from 'node:path';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@qwen-code/qwen-code-core': path.resolve(__dirname, '../core/index.ts'),
|
|
// cli's daemon-status-provider.test.ts imports `FakeAgent` /
|
|
// `makeChannel` from acp-bridge's package-private
|
|
// `internal/testUtils` module. This alias overrides the runtime
|
|
// resolution so vitest reads the .ts source directly instead of
|
|
// the build-then-stale `dist/` copy.
|
|
'@qwen-code/acp-bridge/internal/testUtils': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/internal/testUtils.ts',
|
|
),
|
|
// Same rationale as above: bridgeErrors and status subpaths
|
|
// resolve to dist/ via package.json exports, but tests in the
|
|
// monorepo worktree need the live source (dist may be stale or
|
|
// absent during development).
|
|
'@qwen-code/acp-bridge/bridgeErrors': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/bridgeErrors.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/status': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/status.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/bridge': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/bridge.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/spawnChannel': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/spawnChannel.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/ndJsonStream': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/ndJsonStream.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/logRedaction': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/logRedaction.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/bridgeClient': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/bridgeClient.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/bridgeOptions': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/bridgeOptions.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/bridgeTypes': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/bridgeTypes.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/bridgeFileSystem': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/bridgeFileSystem.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/eventBus': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/eventBus.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/replayWindowLimits': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/replayWindowLimits.ts',
|
|
),
|
|
'@qwen-code/acp-bridge/workspacePaths': path.resolve(
|
|
__dirname,
|
|
'../acp-bridge/src/workspacePaths.ts',
|
|
),
|
|
'@qwen-code/audio-capture': path.resolve(
|
|
__dirname,
|
|
'../audio-capture/src/index.ts',
|
|
),
|
|
},
|
|
},
|
|
test: {
|
|
include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)', 'config.test.ts'],
|
|
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**'],
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
reporters: ['default', 'junit'],
|
|
silent: true,
|
|
outputFile: {
|
|
junit: 'junit.xml',
|
|
},
|
|
setupFiles: ['./test-setup.ts'],
|
|
coverage: {
|
|
enabled: true,
|
|
provider: 'v8',
|
|
reportsDirectory: './coverage',
|
|
include: ['src/**/*'],
|
|
reporter: [
|
|
['text', { file: 'full-text-summary.txt' }],
|
|
'html',
|
|
'json',
|
|
'lcov',
|
|
'cobertura',
|
|
['json-summary', { outputFile: 'coverage-summary.json' }],
|
|
],
|
|
},
|
|
poolOptions: {
|
|
threads: {
|
|
minThreads: 8,
|
|
maxThreads: 16,
|
|
},
|
|
},
|
|
server: {
|
|
deps: {
|
|
inline: [/@qwen-code\/qwen-code-core/],
|
|
},
|
|
},
|
|
},
|
|
});
|