@bamptee/aia-code 2.0.14 → 2.0.15

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": "@bamptee/aia-code",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "AI Architecture Assistant - orchestrate AI-assisted development workflows via CLI tools (Claude, Codex, Gemini)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -97,6 +97,13 @@ export function runCli(command, args, { stdin: stdinData, verbose = false, apply
97
97
  idleTimeoutMs = apply ? AGENT_IDLE_TIMEOUT_MS : DEFAULT_IDLE_TIMEOUT_MS;
98
98
  }
99
99
  return new Promise((resolve, reject) => {
100
+ // Log the full command for debugging (allows manual replay)
101
+ const shellCmd = [command, ...args].map(a => /[\s"']/.test(a) ? `'${a.replace(/'/g, "'\\''")}'` : a).join(' ');
102
+ console.error(chalk.gray(`[AI] Run: ${shellCmd}`));
103
+ if (stdinData) {
104
+ console.error(chalk.gray(`[AI] stdin: ${stdinData.length > 200 ? stdinData.slice(0, 200) + '...' : stdinData} (${(stdinData.length / 1024).toFixed(1)}KB)`));
105
+ }
106
+
100
107
  // Remove CLAUDECODE from env to avoid conflicts
101
108
  const { CLAUDECODE: _, ...cleanEnv } = process.env;
102
109
  const child = spawn(command, args, {
@@ -105,6 +112,8 @@ export function runCli(command, args, { stdin: stdinData, verbose = false, apply
105
112
  cwd,
106
113
  });
107
114
 
115
+ console.error(chalk.gray(`[AI] PID: ${child.pid}`));
116
+
108
117
  const chunks = [];
109
118
  let stderr = '';
110
119
  let settled = false;
@@ -188,7 +197,8 @@ export function runCli(command, args, { stdin: stdinData, verbose = false, apply
188
197
  }
189
198
  });
190
199
 
191
- child.on('close', (code) => {
200
+ child.on('close', (code, signal) => {
201
+ console.error(chalk.gray(`[AI] Process exited: code=${code} signal=${signal || 'none'}`));
192
202
  // Process any remaining data in the buffer
193
203
  if (streamJson && jsonBuffer.trim()) {
194
204
  const { result } = parseStreamJsonEvent(jsonBuffer, onData, parserState);