@yeaft/webchat-agent 0.0.35 → 0.0.36

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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",