@yeaft/webchat-agent 0.0.35 → 0.0.37
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/index.js +8 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -82,6 +82,14 @@ async function detectCapabilities() {
|
|
|
82
82
|
const capabilities = ['background_tasks', 'file_editor'];
|
|
83
83
|
const pty = await loadNodePty();
|
|
84
84
|
if (pty) capabilities.push('terminal');
|
|
85
|
+
|
|
86
|
+
// Crew mode requires Claude CLI
|
|
87
|
+
try {
|
|
88
|
+
const { getDefaultClaudeCodePath } = await import('./sdk/utils.js');
|
|
89
|
+
const claudePath = getDefaultClaudeCodePath();
|
|
90
|
+
if (claudePath) capabilities.push('crew');
|
|
91
|
+
} catch {}
|
|
92
|
+
|
|
85
93
|
console.log(`[Capabilities] Detected: ${capabilities.join(', ')}`);
|
|
86
94
|
return capabilities;
|
|
87
95
|
}
|