@yeaft/webchat-agent 1.0.294 → 1.0.296
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 -2
- package/local-runtime/server/handlers/client-work-center.js +1 -1
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +181 -173
- 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/engine.js +27 -3
- package/yeaft/work-center/bridge.js +5 -1
- package/yeaft/work-center/controller.js +6 -2
- package/yeaft/work-center/coordinator.js +51 -11
- package/yeaft/work-center/durable-model.js +618 -0
- package/yeaft/work-center/projection.js +8 -1
- package/yeaft/work-center/runner.js +101 -15
- package/yeaft/work-center/service.js +55 -0
- package/yeaft/work-center/store.js +774 -23
package/index.js
CHANGED
|
@@ -136,12 +136,11 @@ async function detectCapabilities() {
|
|
|
136
136
|
// agent build can speak plaintext WS frames. New servers see this and
|
|
137
137
|
// flip `agent.encryptOutbound = false`, stopping outbound encryption
|
|
138
138
|
// to this peer. Old servers ignore the unknown capability token.
|
|
139
|
-
const capabilities = ['background_tasks', 'file_editor', 'ping_session', 'plaintext-ok', 'work_center', 'session_history_search', 'session_history_outline', 'session_history_window_prefetch'];
|
|
139
|
+
const capabilities = ['background_tasks', 'file_editor', 'ping_session', 'plaintext-ok', 'work_center', 'work_center_message_v2', 'session_history_search', 'session_history_outline', 'session_history_window_prefetch'];
|
|
140
140
|
if (process.platform === 'linux') capabilities.push('work_item_attachments');
|
|
141
141
|
const pty = await loadNodePty();
|
|
142
142
|
if (pty) capabilities.push('terminal');
|
|
143
143
|
|
|
144
|
-
|
|
145
144
|
console.log(`[Capabilities] Detected: ${capabilities.join(', ')}`);
|
|
146
145
|
return capabilities;
|
|
147
146
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
const REQUEST_TIMEOUT_MS = 60_000;
|
|
14
14
|
const pendingRequests = new Map();
|
|
15
|
-
const WORK_ITEM_ATTACHMENT_OPS = new Set(['create', 'work_item_message', 'action_input', 'guide']);
|
|
15
|
+
const WORK_ITEM_ATTACHMENT_OPS = new Set(['create', 'post_work_item_message', 'work_item_message', 'action_input', 'guide']);
|
|
16
16
|
|
|
17
17
|
export function workCenterOpAcceptsAttachments(op) {
|
|
18
18
|
return WORK_ITEM_ATTACHMENT_OPS.has(op);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.296"}
|