@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 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.294"}
1
+ {"version":"1.0.296"}