@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/connection/buffer.js +6 -2
- package/connection/message-router.js +64 -1
- package/conversation.js +32 -4
- package/crew/builtin-actions.js +154 -0
- package/crew/context-loader.js +171 -0
- package/crew/control.js +444 -0
- package/crew/human-interaction.js +195 -0
- package/crew/persistence.js +295 -0
- package/crew/role-management.js +182 -0
- package/crew/role-output.js +461 -0
- package/crew/role-query.js +406 -0
- package/crew/role-states.js +180 -0
- package/crew/routing-fallback.js +64 -0
- package/crew/routing-metrics.js +215 -0
- package/crew/routing.js +951 -0
- package/crew/session.js +648 -0
- package/crew/shared-dir.js +266 -0
- package/crew/task-files.js +554 -0
- package/crew/ui-messages.js +274 -0
- package/crew/worktree.js +130 -0
- package/crew-i18n.js +579 -0
- package/crew.js +48 -0
- package/history.js +2 -2
- package/index.js +6 -0
- package/package.json +1 -1
- package/providers/claude-code.js +1 -1
- package/yeaft/attachments.js +2 -2
- package/yeaft/config.js +1 -1
- package/yeaft/conversation/persist.js +112 -458
- package/yeaft/conversation/search.js +15 -51
- package/yeaft/session.js +18 -27
- package/yeaft/web-bridge.js +15 -27
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
package/providers/claude-code.js
CHANGED
|
@@ -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('--
|
|
65
|
+
if (entry.includes('--crew-roles-')) continue;
|
|
66
66
|
|
|
67
67
|
const originalPath = getWorkDirFromProjectFolder(entryPath, entry);
|
|
68
68
|
let sessionCount = 0;
|
package/yeaft/attachments.js
CHANGED
|
@@ -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`
|
|
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)
|