JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:1.定时任务/心跳任务返回飞书2.定时任务前端channel3.前端版本号修改4.定时任务过多无法下滑
douran9cb52786d323
diff --git a/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx b/jiuwenclaw/web/src/components/ChannelsPanel/index.tsxindex a54e1cae5c..60998815b3 100644--- a/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx+++ b/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx@@ -22,6 +22,7 @@ type FeishuConfig = {app_secret: string;encrypt_key: string;verification_token: string;+ chat_id: string;allow_from: string[];};@@ -31,6 +32,7 @@ type FeishuDraft = {app_secret: string;encrypt_key: string;verification_token: string;+ chat_id: string;allow_from: string;};@@ -70,6 +72,7 @@ const DEFAULT_FEISHU_CONF: FeishuConfig = {app_secret: '',encrypt_key: '',verification_token: '',+ chat_id: '',allow_from: [],};@@ -158,6 +161,7 @@ function normalizeFeishuConfig(input: unknown): FeishuConfig {app_secret: String(data.app_secret ?? '').trim(),encrypt_key: String(data.encrypt_key ?? '').trim(),verification_token: String(data.verification_token ?? '').trim(),+ chat_id: String(data.chat_id ?? '').trim(),allow_from: allowFrom,};}@@ -169,6 +173,7 @@ function draftFromFeishuConfig(conf: FeishuConfig): FeishuDraft {app_secret: conf.app_secret,encrypt_key: conf.encrypt_key,verification_token: conf.verification_token,+ chat_id: conf.chat_id,allow_from: conf.allow_from.join('\n'),};}@@ -187,6 +192,7 @@ function buildFeishuPayload(draft: FeishuDraft): Record<string, unknown> {app_secret: draft.app_secret.trim(),encrypt_key: draft.encrypt_key.trim(),verification_token: draft.verification_token.trim(),+ chat_id: draft.chat_id.trim(),allow_from: normalizeAllowFromText(draft.allow_from),};}@@ -457,6 +463,7 @@ export function ChannelsPanel({ isConnected }: ChannelsPanelProps) {baseDraft.app_secret !== draft.app_secret ||baseDraft.encrypt_key !== draft.encrypt_key ||baseDraft.verification_token !== draft.verification_token ||+ baseDraft.chat_id !== draft.chat_id ||normalizeAllowFromText(baseDraft.allow_from).join('\n') !== normalizeAllowFromText(draft.allow_from).join('\n'));}, [draft, feishuConfig]);@@ -1037,7 +1044,7 @@ export function ChannelsPanel({ isConnected }: ChannelsPanelProps) {</button></td></tr>- {(['app_id', 'app_secret', 'encrypt_key', 'verification_token'] as const).map((field) => (+ {(['app_id', 'app_secret', 'encrypt_key', 'verification_token', 'chat_id'] as const).map((field) => (<tr key={field} className="border-t border-border first:border-t-0 even:bg-secondary/10"><td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">{field}</td><td className="px-4 py-2.5 break-all text-[13px] align-middle">@@ -1046,7 +1053,7 @@ export function ChannelsPanel({ isConnected }: ChannelsPanelProps) {type={isSensitiveField(field) && !visibleFields[field] ? 'password' : 'text'}value={draft[field]}onChange={(e) => handleFieldChange(field, e.target.value)}- placeholder="请输入配置值"+ placeholder={field === 'chat_id' ? '请输入聊天 ID' : '请输入配置值'}className={`w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] outline-none focus:border-accent ${isSensitiveField(field) ? 'pr-10' : ''}`}diff --git a/jiuwenclaw/web/src/components/CronPanel/index.tsx b/jiuwenclaw/web/src/components/CronPanel/index.tsxindex a6686fd6ea..4f84781ae5 100644--- a/jiuwenclaw/web/src/components/CronPanel/index.tsx+++ b/jiuwenclaw/web/src/components/CronPanel/index.tsx@@ -72,7 +72,7 @@ export default function CronPanel() {{ value: 'web', label: '网页 (web)' },{ value: 'feishu', label: '飞书 (feishu)' },{ value: 'xiaoyi', label: '小艺 (xiaoyi)' },- { value: 'dingtalk', label: '钉钉 (dingtalk)' }+ { value: 'dingtalk', label: '钉钉 (dingtalk)', disabled: true, style: { color: '#8c8c96ff' } }];// 加载任务列表@@ -281,10 +281,10 @@ export default function CronPanel() {正在加载任务列表...</div>) : (- <div className="overflow-auto rounded-lg border border-border">+ <div className="overflow-auto rounded-lg border border-border max-h-[750px]"><table className="w-full border-collapse"><thead>- <tr className="border-b border-border">+ <tr className="border-b border-border sticky top-0 bg-bg"><th className="px-4 py-3 text-left text-sm font-medium text-text-muted w-[120px]">任务名称</th><th className="px-4 py-3 text-left text-sm font-medium text-text-muted w-[400px]">Cron 表达式</th><th className="px-4 py-3 text-left text-sm font-medium text-text-muted">状态</th>@@ -370,7 +370,7 @@ export default function CronPanel() {className="w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] text-text outline-none focus:border-accent">{targetOptions.map(option => (- <option key={option.value} value={option.value}>+ <option key={option.value} value={option.value} disabled={option.disabled} style={option.style}>{option.label}</option>))}@@ -480,7 +480,7 @@ export default function CronPanel() {className="w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] text-text outline-none focus:border-accent">{targetOptions.map(option => (- <option key={option.value} value={option.value}>+ <option key={option.value} value={option.value} disabled={option.disabled} style={option.style}>{option.label}</option>))}diff --git a/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsx b/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsxindex 0bd10b8e64..74f8c28525 100644--- a/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsx+++ b/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsx@@ -339,7 +339,7 @@ export function HeartbeatPanel() {<option value="web">网页 (web)</option><option value="xiaoyi">小艺 (xiaoyi)</option><option value="feishu">飞书 (feishu)</option>- <option value="dingtalk">钉钉 (dingtalk)</option>+ <option value="dingtalk" disabled style={{ color: '#8c8c96ff' }}>钉钉 (dingtalk)</option></select></label>diff --git a/jiuwenclaw/web/src/components/SessionSidebar/index.tsx b/jiuwenclaw/web/src/components/SessionSidebar/index.tsxindex a4803f10b6..dcb633a028 100644--- a/jiuwenclaw/web/src/components/SessionSidebar/index.tsx+++ b/jiuwenclaw/web/src/components/SessionSidebar/index.tsx@@ -140,7 +140,7 @@ export function SessionSidebar({<div className="pt-4 mt-4 border-t border-border text-xs text-text-muted"><div className="px-2.5">- <span>版本 0.1.0</span>+ <span>版本 0.1.3</span></div></div></aside>