@silbaram/artifact-driven-agent 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/run.js +12 -5
- package/src/utils/files.js +1 -1
package/package.json
CHANGED
package/src/commands/run.js
CHANGED
|
@@ -350,7 +350,10 @@ async function launchTool(tool, systemPrompt, promptFile, logMessage) {
|
|
|
350
350
|
},
|
|
351
351
|
gemini: {
|
|
352
352
|
cmd: 'gemini',
|
|
353
|
-
args: [
|
|
353
|
+
args: [],
|
|
354
|
+
env: {
|
|
355
|
+
GEMINI_SYSTEM_MD: promptFile // 시스템 프롬프트 파일 경로
|
|
356
|
+
},
|
|
354
357
|
automation: 'perfect'
|
|
355
358
|
},
|
|
356
359
|
codex: {
|
|
@@ -420,13 +423,17 @@ async function launchTool(tool, systemPrompt, promptFile, logMessage) {
|
|
|
420
423
|
console.log('');
|
|
421
424
|
logMessage('INFO', `${tool} CLI 실행 (automation: ${config.automation})`);
|
|
422
425
|
|
|
426
|
+
// 환경 변수 병합 (도구별 커스텀 환경 변수 포함)
|
|
427
|
+
const envVars = {
|
|
428
|
+
...process.env,
|
|
429
|
+
ADA_SYSTEM_PROMPT: systemPrompt,
|
|
430
|
+
...(config.env || {}) // 도구별 환경 변수 추가
|
|
431
|
+
};
|
|
432
|
+
|
|
423
433
|
const child = spawn(cmd, args, {
|
|
424
434
|
stdio: 'inherit',
|
|
425
435
|
shell: true,
|
|
426
|
-
env:
|
|
427
|
-
...process.env,
|
|
428
|
-
ADA_SYSTEM_PROMPT: systemPrompt
|
|
429
|
-
}
|
|
436
|
+
env: envVars
|
|
430
437
|
});
|
|
431
438
|
|
|
432
439
|
child.on('close', (code) => {
|