@yeaft/webchat-agent 1.0.570 → 1.0.571

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
@@ -26,6 +26,7 @@ import {
26
26
  import { loadConfig as loadYeaftConfig } from './yeaft/config.js';
27
27
  import { initYeaftDir } from './yeaft/init.js';
28
28
  import { isWorkCenterEnabled, startWorkCenterFeature } from './yeaft/work-center/feature.js';
29
+ import { supportsWorkItemAttachments } from './yeaft/work-center/attachment-platform.js';
29
30
  import { updateBrowserRuntimeSettings } from './yeaft/config-api.js';
30
31
  import { bootBrowserRuntime, shutdownBrowserRuntime } from './browser-runtime/index.js';
31
32
  import {
@@ -181,7 +182,7 @@ async function detectCapabilities() {
181
182
  capabilities.push(getAgentUpgradeCapability());
182
183
  if (ctx.CONFIG?.workCenterEnabled === true) {
183
184
  capabilities.push('work_center', 'work_center_message_v2', 'work_center_workbench');
184
- if (process.platform === 'linux') capabilities.push('work_item_attachments');
185
+ if (supportsWorkItemAttachments()) capabilities.push('work_item_attachments');
185
186
  }
186
187
  const pty = await loadNodePty();
187
188
  if (pty) capabilities.push('terminal');
@@ -1 +1 @@
1
- {"version":"1.0.570"}
1
+ {"version":"1.0.571"}