mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
gemini-cli: context support multiple file generation
Support multiple context files since gemini supports configuring multiple names as supported / looked for. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
5ead1867bb
commit
e121f3773f
6 changed files with 74 additions and 38 deletions
1
tests/modules/programs/gemini-cli/context-additional.md
Normal file
1
tests/modules/programs/gemini-cli/context-additional.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
Additional context for specialized tasks.
|
||||
9
tests/modules/programs/gemini-cli/context-inline.md
Normal file
9
tests/modules/programs/gemini-cli/context-inline.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Global Context
|
||||
|
||||
You are a helpful AI assistant for software development.
|
||||
|
||||
## Coding Standards
|
||||
|
||||
- Follow consistent code style
|
||||
- Write clear comments
|
||||
- Test your changes
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
programs.gemini-cli = {
|
||||
enable = true;
|
||||
context = ./context.md;
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.gemini/GEMINI.md
|
||||
assertFileContent home-files/.gemini/GEMINI.md \
|
||||
${./context.md}
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,21 +1,45 @@
|
|||
{
|
||||
programs.gemini-cli = {
|
||||
enable = true;
|
||||
context = ''
|
||||
# Global Context
|
||||
context = {
|
||||
# Test inline content
|
||||
GEMINI = ''
|
||||
# Global Context
|
||||
|
||||
You are a helpful AI assistant for software development.
|
||||
You are a helpful AI assistant for software development.
|
||||
|
||||
## Coding Standards
|
||||
## Coding Standards
|
||||
|
||||
- Follow consistent code style
|
||||
- Write clear comments
|
||||
- Test your changes
|
||||
'';
|
||||
- Follow consistent code style
|
||||
- Write clear comments
|
||||
- Test your changes
|
||||
'';
|
||||
# Test file path
|
||||
AGENTS = ./context.md;
|
||||
# Test another inline content
|
||||
CONTEXT = ''
|
||||
Additional context for specialized tasks.
|
||||
'';
|
||||
};
|
||||
settings = {
|
||||
context.fileName = [
|
||||
"AGENTS.md"
|
||||
"CONTEXT.md"
|
||||
"GEMINI.md"
|
||||
];
|
||||
};
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.gemini/GEMINI.md
|
||||
assertFileContent home-files/.gemini/GEMINI.md \
|
||||
${./context-inline.md}
|
||||
|
||||
assertFileExists home-files/.gemini/AGENTS.md
|
||||
assertFileContent home-files/.gemini/AGENTS.md \
|
||||
${./context.md}
|
||||
|
||||
assertFileExists home-files/.gemini/CONTEXT.md
|
||||
assertFileContent home-files/.gemini/CONTEXT.md \
|
||||
${./context-additional.md}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
gemini-cli-settings = ./settings.nix;
|
||||
gemini-cli-context = ./context.nix;
|
||||
gemini-cli-context-source = ./context-source.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue