mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
chore(usage telemetry): Freshen up Clearcut logging (#6013)
Co-authored-by: christine betts <chrstn@uw.edu> Co-authored-by: Jacob Richman <jacob314@gmail.com> Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
36
packages/core/src/test-utils/config.ts
Normal file
36
packages/core/src/test-utils/config.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { Config, ConfigParameters } from '../config/config.js';
|
||||
|
||||
/**
|
||||
* Default parameters used for {@link FAKE_CONFIG}
|
||||
*/
|
||||
export const DEFAULT_CONFIG_PARAMETERS: ConfigParameters = {
|
||||
usageStatisticsEnabled: true,
|
||||
debugMode: false,
|
||||
sessionId: 'test-session-id',
|
||||
proxy: undefined,
|
||||
model: 'gemini-9001-super-duper',
|
||||
targetDir: '/',
|
||||
cwd: '/',
|
||||
};
|
||||
|
||||
/**
|
||||
* Produces a config. Default paramters are set to
|
||||
* {@link DEFAULT_CONFIG_PARAMETERS}, optionally, fields can be specified to
|
||||
* override those defaults.
|
||||
*/
|
||||
export function makeFakeConfig(
|
||||
config: Partial<ConfigParameters> = {
|
||||
...DEFAULT_CONFIG_PARAMETERS,
|
||||
},
|
||||
): Config {
|
||||
return new Config({
|
||||
...DEFAULT_CONFIG_PARAMETERS,
|
||||
...config,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user