mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
feat: support AGENTS.md as default context file
Add AGENT_CONTEXT_FILENAME constant and include AGENTS.md in default context file search alongside QWEN.md. This enables out-of-the-box support for the AGENTS.md standard (https://agents.md/) without requiring manual configuration. Changes: - Add AGENT_CONTEXT_FILENAME = 'AGENTS.md' constant - Update currentGeminiMdFilename default to include both AGENTS.md and QWEN.md - AGENTS.md takes precedence (first in array) for the de facto standard Closes #2006
This commit is contained in:
parent
e93b287329
commit
89a8ce85a0
1 changed files with 7 additions and 3 deletions
|
|
@ -76,11 +76,15 @@ Do NOT use this tool:
|
|||
|
||||
export const QWEN_CONFIG_DIR = '.qwen';
|
||||
export const DEFAULT_CONTEXT_FILENAME = 'QWEN.md';
|
||||
export const AGENT_CONTEXT_FILENAME = 'AGENTS.md';
|
||||
export const MEMORY_SECTION_HEADER = '## Qwen Added Memories';
|
||||
|
||||
// This variable will hold the currently configured filename for QWEN.md context files.
|
||||
// It defaults to DEFAULT_CONTEXT_FILENAME but can be overridden by setGeminiMdFilename.
|
||||
let currentGeminiMdFilename: string | string[] = DEFAULT_CONTEXT_FILENAME;
|
||||
// This variable will hold the currently configured filename for context files.
|
||||
// It defaults to include both AGENTS.md and QWEN.md but can be overridden by setGeminiMdFilename.
|
||||
let currentGeminiMdFilename: string | string[] = [
|
||||
AGENT_CONTEXT_FILENAME,
|
||||
DEFAULT_CONTEXT_FILENAME,
|
||||
];
|
||||
|
||||
export function setGeminiMdFilename(newFilename: string | string[]): void {
|
||||
if (Array.isArray(newFilename)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue