@nextclaw/ui 0.5.6 → 0.5.7

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/dist/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <link rel="icon" type="image/svg+xml" href="/logo.svg" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>NextClaw - 系统配置</title>
9
- <script type="module" crossorigin src="/assets/index-CsMwBztg.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-BI7rqOrL.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-B3foa-xK.css">
11
11
  </head>
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/ui",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,6 +38,13 @@ const GROUP_POLICY_OPTIONS: ChannelOption[] = [
38
38
  { value: 'disabled', label: 'disabled' }
39
39
  ];
40
40
 
41
+ const STREAMING_MODE_OPTIONS: ChannelOption[] = [
42
+ { value: 'off', label: 'off' },
43
+ { value: 'partial', label: 'partial' },
44
+ { value: 'block', label: 'block' },
45
+ { value: 'progress', label: 'progress' }
46
+ ];
47
+
41
48
  // Field icon mapping
42
49
  const getFieldIcon = (fieldName: string) => {
43
50
  if (fieldName.includes('token') || fieldName.includes('secret') || fieldName.includes('password')) {
@@ -82,6 +89,9 @@ const CHANNEL_FIELDS: Record<string, ChannelField[]> = {
82
89
  { name: 'intents', type: 'number', label: t('intents') },
83
90
  { name: 'proxy', type: 'text', label: t('proxy') },
84
91
  { name: 'mediaMaxMb', type: 'number', label: 'Attachment Max Size (MB)' },
92
+ { name: 'streaming', type: 'select', label: 'Streaming Mode', options: STREAMING_MODE_OPTIONS },
93
+ { name: 'draftChunk', type: 'json', label: 'Draft Chunking (JSON)' },
94
+ { name: 'textChunkLimit', type: 'number', label: 'Text Chunk Limit' },
85
95
  { name: 'accountId', type: 'text', label: 'Account ID' },
86
96
  { name: 'dmPolicy', type: 'select', label: 'DM Policy', options: DM_POLICY_OPTIONS },
87
97
  { name: 'groupPolicy', type: 'select', label: 'Group Policy', options: GROUP_POLICY_OPTIONS },