@yeaft/webchat-agent 1.0.78 → 1.0.79

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 CHANGED
@@ -121,6 +121,12 @@ async function detectCapabilities() {
121
121
  const pty = await loadNodePty();
122
122
  if (pty) capabilities.push('terminal');
123
123
 
124
+ // Crew mode requires Claude CLI
125
+ try {
126
+ const { getDefaultClaudeCodePath } = await import('./sdk/utils.js');
127
+ const claudePath = getDefaultClaudeCodePath();
128
+ if (claudePath) capabilities.push('crew');
129
+ } catch {}
124
130
 
125
131
  console.log(`[Capabilities] Detected: ${capabilities.join(', ')}`);
126
132
  return capabilities;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -62,7 +62,7 @@ export async function listFolders() {
62
62
  let stats;
63
63
  try { stats = statSync(entryPath); } catch { continue; }
64
64
  if (!stats.isDirectory()) continue;
65
- if (entry.includes('--' + 'crew' + '-roles-')) continue;
65
+ if (entry.includes('--crew-roles-')) continue;
66
66
 
67
67
  const originalPath = getWorkDirFromProjectFolder(entryPath, entry);
68
68
  let sessionCount = 0;
@@ -16,7 +16,7 @@
16
16
  * synthesized [Uploaded files] suffix) for the LLM call.
17
17
  *
18
18
  * Inputs (`files`) come from the server-side resolver in
19
- * `client-conversation.js`: each entry is
19
+ * `client-conversation.js` / `client-crew.js`: each entry is
20
20
  * `{ name, mimeType, data: <base64>, isImage }` — the `pendingFiles`
21
21
  * `fileId` was already consumed by the server before `forwardToAgent`.
22
22
  *
@@ -33,7 +33,7 @@
33
33
  * Field name is `media_type` (snake_case) to match the Anthropic
34
34
  * Messages API spec — Anthropic adapter forwards user-content blocks
35
35
  * verbatim, so the on-the-wire form must already be correct here.
36
- * `workbench/transfer.js` emits the same shape.
36
+ * `crew/routing.js` / `workbench/transfer.js` emit the same shape.
37
37
  * - `failed`: list of `{ name, error }` for entries that could not
38
38
  * be persisted (disk full, bad base64, ...). The caller surfaces
39
39
  * this so the UI can tell the user *which* file blew up rather
package/yeaft/config.js CHANGED
@@ -434,7 +434,7 @@ export function loadConfig(overrides = {}) {
434
434
  projectDocMaxBytes: overrides.projectDocMaxBytes ?? jsonConfig.projectDocMaxBytes ?? DEFAULTS.projectDocMaxBytes,
435
435
 
436
436
  // task-318: Yeaft runtime caps. `yeaft` is a nested section so we
437
- // don't pollute the flat config namespace used by chat code.
437
+ // don't pollute the flat config namespace used by chat/crew code.
438
438
  yeaft: normaliseYeaftSection(jsonConfig.yeaft),
439
439
 
440
440
  // Legacy fields (null when using config.json)