@seastudio/sdk 3.4.0 → 3.4.1

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.
@@ -78,7 +78,7 @@ function MenuContainer({
78
78
  "div",
79
79
  {
80
80
  className: cn(
81
- "bg-popover border border-border rounded-md shadow-lg py-1 min-w-[140px]",
81
+ "bg-popover border border-border rounded-md shadow-lg py-1 min-w-[140px] max-w-[min(320px,calc(100vw-16px))] overflow-hidden",
82
82
  className
83
83
  ),
84
84
  children
@@ -118,7 +118,7 @@ function MenuItem({
118
118
  ),
119
119
  children: [
120
120
  icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 w-3.5 h-3.5", children: icon }),
121
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 whitespace-nowrap", children: label }),
121
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: label }),
122
122
  shortcut && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-auto text-muted-foreground text-[10px] whitespace-nowrap", children: shortcut })
123
123
  ]
124
124
  }
@@ -76,7 +76,7 @@ function MenuContainer({
76
76
  "div",
77
77
  {
78
78
  className: cn(
79
- "bg-popover border border-border rounded-md shadow-lg py-1 min-w-[140px]",
79
+ "bg-popover border border-border rounded-md shadow-lg py-1 min-w-[140px] max-w-[min(320px,calc(100vw-16px))] overflow-hidden",
80
80
  className
81
81
  ),
82
82
  children
@@ -116,7 +116,7 @@ function MenuItem({
116
116
  ),
117
117
  children: [
118
118
  icon && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0 w-3.5 h-3.5", children: icon }),
119
- /* @__PURE__ */ jsx("span", { className: "flex-1 whitespace-nowrap", children: label }),
119
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: label }),
120
120
  shortcut && /* @__PURE__ */ jsx("span", { className: "ml-auto text-muted-foreground text-[10px] whitespace-nowrap", children: shortcut })
121
121
  ]
122
122
  }
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkN2OEAPF2_cjs = require('./chunk-N2OEAPF2.cjs');
4
- var chunk3Z33RUVD_cjs = require('./chunk-3Z33RUVD.cjs');
4
+ var chunkGUBMEDHZ_cjs = require('./chunk-GUBMEDHZ.cjs');
5
5
  var chunkSWEUWPSR_cjs = require('./chunk-SWEUWPSR.cjs');
6
6
  var chunk3I7UM66P_cjs = require('./chunk-3I7UM66P.cjs');
7
7
 
@@ -49,55 +49,55 @@ Object.defineProperty(exports, "mcpToolToOpenAI", {
49
49
  });
50
50
  Object.defineProperty(exports, "DialogBody", {
51
51
  enumerable: true,
52
- get: function () { return chunk3Z33RUVD_cjs.DialogBody; }
52
+ get: function () { return chunkGUBMEDHZ_cjs.DialogBody; }
53
53
  });
54
54
  Object.defineProperty(exports, "DialogButton", {
55
55
  enumerable: true,
56
- get: function () { return chunk3Z33RUVD_cjs.DialogButton; }
56
+ get: function () { return chunkGUBMEDHZ_cjs.DialogButton; }
57
57
  });
58
58
  Object.defineProperty(exports, "DialogContainer", {
59
59
  enumerable: true,
60
- get: function () { return chunk3Z33RUVD_cjs.DialogContainer; }
60
+ get: function () { return chunkGUBMEDHZ_cjs.DialogContainer; }
61
61
  });
62
62
  Object.defineProperty(exports, "DialogFooter", {
63
63
  enumerable: true,
64
- get: function () { return chunk3Z33RUVD_cjs.DialogFooter; }
64
+ get: function () { return chunkGUBMEDHZ_cjs.DialogFooter; }
65
65
  });
66
66
  Object.defineProperty(exports, "DialogHeader", {
67
67
  enumerable: true,
68
- get: function () { return chunk3Z33RUVD_cjs.DialogHeader; }
68
+ get: function () { return chunkGUBMEDHZ_cjs.DialogHeader; }
69
69
  });
70
70
  Object.defineProperty(exports, "DialogOverlay", {
71
71
  enumerable: true,
72
- get: function () { return chunk3Z33RUVD_cjs.DialogOverlay; }
72
+ get: function () { return chunkGUBMEDHZ_cjs.DialogOverlay; }
73
73
  });
74
74
  Object.defineProperty(exports, "MenuContainer", {
75
75
  enumerable: true,
76
- get: function () { return chunk3Z33RUVD_cjs.MenuContainer; }
76
+ get: function () { return chunkGUBMEDHZ_cjs.MenuContainer; }
77
77
  });
78
78
  Object.defineProperty(exports, "MenuEmpty", {
79
79
  enumerable: true,
80
- get: function () { return chunk3Z33RUVD_cjs.MenuEmpty; }
80
+ get: function () { return chunkGUBMEDHZ_cjs.MenuEmpty; }
81
81
  });
82
82
  Object.defineProperty(exports, "MenuItem", {
83
83
  enumerable: true,
84
- get: function () { return chunk3Z33RUVD_cjs.MenuItem; }
84
+ get: function () { return chunkGUBMEDHZ_cjs.MenuItem; }
85
85
  });
86
86
  Object.defineProperty(exports, "MenuSeparator", {
87
87
  enumerable: true,
88
- get: function () { return chunk3Z33RUVD_cjs.MenuSeparator; }
88
+ get: function () { return chunkGUBMEDHZ_cjs.MenuSeparator; }
89
89
  });
90
90
  Object.defineProperty(exports, "Tab", {
91
91
  enumerable: true,
92
- get: function () { return chunk3Z33RUVD_cjs.Tab; }
92
+ get: function () { return chunkGUBMEDHZ_cjs.Tab; }
93
93
  });
94
94
  Object.defineProperty(exports, "cn", {
95
95
  enumerable: true,
96
- get: function () { return chunk3Z33RUVD_cjs.cn; }
96
+ get: function () { return chunkGUBMEDHZ_cjs.cn; }
97
97
  });
98
98
  Object.defineProperty(exports, "showHostContextMenu", {
99
99
  enumerable: true,
100
- get: function () { return chunk3Z33RUVD_cjs.showHostContextMenu; }
100
+ get: function () { return chunkGUBMEDHZ_cjs.showHostContextMenu; }
101
101
  });
102
102
  Object.defineProperty(exports, "SeastudioNotifications", {
103
103
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { MCP_PACKAGES, getMCPPackageIdForTool, getMCPPackages, getMCPToolPackageIndex, getToolsForLLM, listAllTools, listAvailableTools, listAvailableToolsForLLM, loadPlugin, mcpToolToOpenAI } from './chunk-6DB7VMZE.js';
2
- export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from './chunk-EFJBHJTQ.js';
2
+ export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from './chunk-P45BKQJK.js';
3
3
  export { SeastudioNotifications, SeastudioRequests, agentManagementTools, agentTabTools, fileTools, pluginManagementTools, pluginTabTools, seaCloudTools, seastudio, allTools as seastudioAllTools, tools as seastudioTools, shellTools } from './chunk-BOV7JVZ6.js';
4
4
  export { MCPClient, MCPServer, PostMessageTransport, callHostTool, callHostToolText, createMCPClient, createMCPServer, createNotification, createRequest, createResponse, getDefaultClient, getDefaultServer, getDefaultTransport, isMCPMessage, isNotification, normalizeMCPTool, normalizeMCPToolInputSchema, normalizeMCPToolObjectSchema, setDefaultClient, setDefaultTransport, startDefaultServer } from './chunk-TJ3CGHWJ.js';
@@ -567,7 +567,9 @@ interface SessionCreatedParams extends SessionNotificationBase {
567
567
  isActive?: boolean;
568
568
  }
569
569
  type SessionSelectedReason = 'user' | 'agent' | 'host' | 'host_restore';
570
- interface SessionSelectedParams extends SessionNotificationBase {
570
+ interface SessionSelectedParams extends Omit<SessionNotificationBase, 'sessionId'> {
571
+ /** Agent 侧对话 session 标识;null 表示进入无会话状态 */
572
+ sessionId: string | null;
571
573
  /** 变化原因:侧栏点击多为 host,Agent 内切换多为 agent */
572
574
  reason?: SessionSelectedReason;
573
575
  }
@@ -567,7 +567,9 @@ interface SessionCreatedParams extends SessionNotificationBase {
567
567
  isActive?: boolean;
568
568
  }
569
569
  type SessionSelectedReason = 'user' | 'agent' | 'host' | 'host_restore';
570
- interface SessionSelectedParams extends SessionNotificationBase {
570
+ interface SessionSelectedParams extends Omit<SessionNotificationBase, 'sessionId'> {
571
+ /** Agent 侧对话 session 标识;null 表示进入无会话状态 */
572
+ sessionId: string | null;
571
573
  /** 变化原因:侧栏点击多为 host,Agent 内切换多为 agent */
572
574
  reason?: SessionSelectedReason;
573
575
  }
package/dist/ui/index.cjs CHANGED
@@ -1,58 +1,58 @@
1
1
  'use strict';
2
2
 
3
- var chunk3Z33RUVD_cjs = require('../chunk-3Z33RUVD.cjs');
3
+ var chunkGUBMEDHZ_cjs = require('../chunk-GUBMEDHZ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DialogBody", {
8
8
  enumerable: true,
9
- get: function () { return chunk3Z33RUVD_cjs.DialogBody; }
9
+ get: function () { return chunkGUBMEDHZ_cjs.DialogBody; }
10
10
  });
11
11
  Object.defineProperty(exports, "DialogButton", {
12
12
  enumerable: true,
13
- get: function () { return chunk3Z33RUVD_cjs.DialogButton; }
13
+ get: function () { return chunkGUBMEDHZ_cjs.DialogButton; }
14
14
  });
15
15
  Object.defineProperty(exports, "DialogContainer", {
16
16
  enumerable: true,
17
- get: function () { return chunk3Z33RUVD_cjs.DialogContainer; }
17
+ get: function () { return chunkGUBMEDHZ_cjs.DialogContainer; }
18
18
  });
19
19
  Object.defineProperty(exports, "DialogFooter", {
20
20
  enumerable: true,
21
- get: function () { return chunk3Z33RUVD_cjs.DialogFooter; }
21
+ get: function () { return chunkGUBMEDHZ_cjs.DialogFooter; }
22
22
  });
23
23
  Object.defineProperty(exports, "DialogHeader", {
24
24
  enumerable: true,
25
- get: function () { return chunk3Z33RUVD_cjs.DialogHeader; }
25
+ get: function () { return chunkGUBMEDHZ_cjs.DialogHeader; }
26
26
  });
27
27
  Object.defineProperty(exports, "DialogOverlay", {
28
28
  enumerable: true,
29
- get: function () { return chunk3Z33RUVD_cjs.DialogOverlay; }
29
+ get: function () { return chunkGUBMEDHZ_cjs.DialogOverlay; }
30
30
  });
31
31
  Object.defineProperty(exports, "MenuContainer", {
32
32
  enumerable: true,
33
- get: function () { return chunk3Z33RUVD_cjs.MenuContainer; }
33
+ get: function () { return chunkGUBMEDHZ_cjs.MenuContainer; }
34
34
  });
35
35
  Object.defineProperty(exports, "MenuEmpty", {
36
36
  enumerable: true,
37
- get: function () { return chunk3Z33RUVD_cjs.MenuEmpty; }
37
+ get: function () { return chunkGUBMEDHZ_cjs.MenuEmpty; }
38
38
  });
39
39
  Object.defineProperty(exports, "MenuItem", {
40
40
  enumerable: true,
41
- get: function () { return chunk3Z33RUVD_cjs.MenuItem; }
41
+ get: function () { return chunkGUBMEDHZ_cjs.MenuItem; }
42
42
  });
43
43
  Object.defineProperty(exports, "MenuSeparator", {
44
44
  enumerable: true,
45
- get: function () { return chunk3Z33RUVD_cjs.MenuSeparator; }
45
+ get: function () { return chunkGUBMEDHZ_cjs.MenuSeparator; }
46
46
  });
47
47
  Object.defineProperty(exports, "Tab", {
48
48
  enumerable: true,
49
- get: function () { return chunk3Z33RUVD_cjs.Tab; }
49
+ get: function () { return chunkGUBMEDHZ_cjs.Tab; }
50
50
  });
51
51
  Object.defineProperty(exports, "cn", {
52
52
  enumerable: true,
53
- get: function () { return chunk3Z33RUVD_cjs.cn; }
53
+ get: function () { return chunkGUBMEDHZ_cjs.cn; }
54
54
  });
55
55
  Object.defineProperty(exports, "showHostContextMenu", {
56
56
  enumerable: true,
57
- get: function () { return chunk3Z33RUVD_cjs.showHostContextMenu; }
57
+ get: function () { return chunkGUBMEDHZ_cjs.showHostContextMenu; }
58
58
  });
package/dist/ui/index.js CHANGED
@@ -1 +1 @@
1
- export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from '../chunk-EFJBHJTQ.js';
1
+ export { DialogBody, DialogButton, DialogContainer, DialogFooter, DialogHeader, DialogOverlay, MenuContainer, MenuEmpty, MenuItem, MenuSeparator, Tab, cn, showHostContextMenu } from '../chunk-P45BKQJK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seastudio/sdk",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "SeaStudio SDK - UI 组件 + MCP 信息交换中心",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",