@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silbaram/artifact-driven-agent",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "CLI 기반 멀티 AI 에이전트 개발 프레임워크 - AI가 규칙을 어기지 못하게 하는 문서 기반 개발",
5
5
  "type": "module",
6
6
  "bin": {
@@ -350,7 +350,10 @@ async function launchTool(tool, systemPrompt, promptFile, logMessage) {
350
350
  },
351
351
  gemini: {
352
352
  cmd: 'gemini',
353
- args: ['-i', `@${relativePromptPath}`],
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) => {
@@ -30,7 +30,7 @@ export function getSessionsDir() {
30
30
  * 로그 디렉토리 경로 반환
31
31
  */
32
32
  export function getLogsDir() {
33
- return path.join(process.cwd(), 'logs');
33
+ return path.join(getWorkspaceDir(), '.sessions', 'logs');
34
34
  }
35
35
 
36
36
  /**