@yeaft/webchat-agent 1.0.573 → 1.0.574
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 +1 -1
- package/local-runtime/server/handlers/client-conversation.js +13 -0
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +143 -107
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/yeaft/conversation/persist.js +42 -2
- package/yeaft/sessions/session-crud.js +7 -1
- package/yeaft/web-bridge.js +3 -0
package/index.js
CHANGED
|
@@ -178,7 +178,7 @@ async function detectCapabilities() {
|
|
|
178
178
|
// agent build can speak plaintext WS frames. New servers see this and
|
|
179
179
|
// flip `agent.encryptOutbound = false`, stopping outbound encryption
|
|
180
180
|
// to this peer. Old servers ignore the unknown capability token.
|
|
181
|
-
const capabilities = ['background_tasks', 'file_editor', 'ping_session', 'plaintext-ok', 'workbench_session_routes', 'workbench_request_correlation', 'workbench_terminal_cleanup_fence', 'workbench_file_content_chunks', 'workbench_video_stream', 'session_history_search', 'session_history_outline', 'session_history_window_prefetch', 'file_reference_resolution', 'response_image_preview', 'yeaft_plugins', 'yeaft_managed_skills', 'settings_request_correlation', 'work_center_feature_settings'];
|
|
181
|
+
const capabilities = ['background_tasks', 'file_editor', 'ping_session', 'plaintext-ok', 'workbench_session_routes', 'workbench_request_correlation', 'workbench_terminal_cleanup_fence', 'workbench_file_content_chunks', 'workbench_video_stream', 'session_history_search', 'session_history_outline', 'session_history_window_prefetch', 'session_fork_from_turn', 'file_reference_resolution', 'response_image_preview', 'yeaft_plugins', 'yeaft_managed_skills', 'settings_request_correlation', 'work_center_feature_settings'];
|
|
182
182
|
capabilities.push(getAgentUpgradeCapability());
|
|
183
183
|
if (ctx.CONFIG?.workCenterEnabled === true) {
|
|
184
184
|
capabilities.push('work_center', 'work_center_message_v2', 'work_center_workbench');
|
|
@@ -1710,6 +1710,19 @@ export async function handleClientConversation(clientId, client, msg, checkAgent
|
|
|
1710
1710
|
}
|
|
1711
1711
|
return true;
|
|
1712
1712
|
}
|
|
1713
|
+
if (relayType === 'yeaft_copy_session'
|
|
1714
|
+
&& Object.prototype.hasOwnProperty.call(msg, 'throughTurnId')
|
|
1715
|
+
&& !agents.get(relayAgentId)?.capabilities?.includes('session_fork_from_turn')) {
|
|
1716
|
+
await sendToWebClient(client, {
|
|
1717
|
+
type: 'session_crud_result', op: 'copy', requestId: msg.requestId,
|
|
1718
|
+
agentId: relayAgentId, ok: false,
|
|
1719
|
+
error: {
|
|
1720
|
+
code: 'session_fork_from_turn_unsupported',
|
|
1721
|
+
message: 'The selected Agent does not support forking a Session from a turn.',
|
|
1722
|
+
},
|
|
1723
|
+
});
|
|
1724
|
+
return true;
|
|
1725
|
+
}
|
|
1713
1726
|
if (relayType === 'yeaft_plugin_catalog'
|
|
1714
1727
|
&& !agentSupportsYeaftPlugins(agents.get(relayAgentId))) {
|
|
1715
1728
|
await sendToWebClient(client, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.574"}
|