mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
fix system md (#189)
This commit is contained in:
@@ -20,7 +20,7 @@ import * as os from 'os';
|
|||||||
vi.mock('fs/promises');
|
vi.mock('fs/promises');
|
||||||
vi.mock('os');
|
vi.mock('os');
|
||||||
|
|
||||||
const MEMORY_SECTION_HEADER = '## Gemini Added Memories';
|
const MEMORY_SECTION_HEADER = '## Qwen Added Memories';
|
||||||
|
|
||||||
// Define a type for our fsAdapter to ensure consistency
|
// Define a type for our fsAdapter to ensure consistency
|
||||||
interface FsAdapter {
|
interface FsAdapter {
|
||||||
@@ -87,7 +87,7 @@ describe('MemoryTool', () => {
|
|||||||
describe('performAddMemoryEntry (static method)', () => {
|
describe('performAddMemoryEntry (static method)', () => {
|
||||||
const testFilePath = path.join(
|
const testFilePath = path.join(
|
||||||
'/mock/home',
|
'/mock/home',
|
||||||
'.gemini',
|
'.qwen',
|
||||||
DEFAULT_CONTEXT_FILENAME, // Use the default for basic tests
|
DEFAULT_CONTEXT_FILENAME, // Use the default for basic tests
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ describe('MemoryTool', () => {
|
|||||||
// Use getCurrentGeminiMdFilename for the default expectation before any setGeminiMdFilename calls in a test
|
// Use getCurrentGeminiMdFilename for the default expectation before any setGeminiMdFilename calls in a test
|
||||||
const expectedFilePath = path.join(
|
const expectedFilePath = path.join(
|
||||||
'/mock/home',
|
'/mock/home',
|
||||||
'.gemini',
|
'.qwen',
|
||||||
getCurrentGeminiMdFilename(), // This will be DEFAULT_CONTEXT_FILENAME unless changed by a test
|
getCurrentGeminiMdFilename(), // This will be DEFAULT_CONTEXT_FILENAME unless changed by a test
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ Do NOT use this tool:
|
|||||||
- \`fact\` (string, required): The specific fact or piece of information to remember. This should be a clear, self-contained statement. For example, if the user says "My favorite color is blue", the fact would be "My favorite color is blue".
|
- \`fact\` (string, required): The specific fact or piece of information to remember. This should be a clear, self-contained statement. For example, if the user says "My favorite color is blue", the fact would be "My favorite color is blue".
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const GEMINI_CONFIG_DIR = '.gemini';
|
export const GEMINI_CONFIG_DIR = '.qwen';
|
||||||
export const DEFAULT_CONTEXT_FILENAME = 'GEMINI.md';
|
export const DEFAULT_CONTEXT_FILENAME = 'QWEN.md';
|
||||||
export const MEMORY_SECTION_HEADER = '## Gemini Added Memories';
|
export const MEMORY_SECTION_HEADER = '## Qwen Added Memories';
|
||||||
|
|
||||||
// This variable will hold the currently configured filename for GEMINI.md context files.
|
// This variable will hold the currently configured filename for GEMINI.md context files.
|
||||||
// It defaults to DEFAULT_CONTEXT_FILENAME but can be overridden by setGeminiMdFilename.
|
// It defaults to DEFAULT_CONTEXT_FILENAME but can be overridden by setGeminiMdFilename.
|
||||||
|
|||||||
Reference in New Issue
Block a user