diff --git a/cc-haha/desktop/package.json b/cc-haha/desktop/package.json index 5e38f0f..46d0178 100644 --- a/cc-haha/desktop/package.json +++ b/cc-haha/desktop/package.json @@ -1,7 +1,7 @@ { "name": "heicode-desktop", "private": true, - "version": "0.1.4", + "version": "0.1.5", "type": "module", "scripts": { "dev": "vite", diff --git a/cc-haha/desktop/src-tauri/Cargo.toml b/cc-haha/desktop/src-tauri/Cargo.toml index 6acd08d..a680d0d 100644 --- a/cc-haha/desktop/src-tauri/Cargo.toml +++ b/cc-haha/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "heicode-desktop" -version = "0.1.4" +version = "0.1.5" edition = "2021" [lib] diff --git a/cc-haha/desktop/src-tauri/tauri.conf.json b/cc-haha/desktop/src-tauri/tauri.conf.json index bd86c1e..c66a30a 100644 --- a/cc-haha/desktop/src-tauri/tauri.conf.json +++ b/cc-haha/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/nicegui/nicegui/main/nicegui/static/tauri-schema-v2.json", "productName": "HeiCode", - "version": "0.1.4", + "version": "0.1.5", "identifier": "com.heicode.desktop", "build": { "frontendDist": "../dist", diff --git a/cc-haha/desktop/src/components/tasks/NewTaskModal.tsx b/cc-haha/desktop/src/components/tasks/NewTaskModal.tsx index 284dfef..ebbe5e6 100644 --- a/cc-haha/desktop/src/components/tasks/NewTaskModal.tsx +++ b/cc-haha/desktop/src/components/tasks/NewTaskModal.tsx @@ -1,7 +1,6 @@ -import { useState, useEffect } from 'react' +import { useState } from 'react' import { useTaskStore } from '../../stores/taskStore' import { useSessionStore } from '../../stores/sessionStore' -import { useAdapterStore } from '../../stores/adapterStore' import { Modal } from '../shared/Modal' import { Input } from '../shared/Input' import { Button } from '../shared/Button' @@ -60,17 +59,11 @@ export function NewTaskModal({ open, onClose, editTask }: Props) { const activeSessionId = useSessionStore((s) => s.activeSessionId) const activeSession = sessions.find((s) => s.id === activeSessionId) const defaultWorkDir = activeSession?.workDir || '' - const adapterConfig = useAdapterStore((s) => s.config) - const fetchAdapterConfig = useAdapterStore((s) => s.fetchConfig) - - useEffect(() => { - if (open) fetchAdapterConfig() - }, [open]) - - const isFeishuConfigured = !!(adapterConfig.feishu?.appId && adapterConfig.feishu?.appSecret - && ((adapterConfig.feishu?.pairedUsers?.length ?? 0) > 0 || (adapterConfig.feishu?.allowedUsers?.length ?? 0) > 0)) - const isTelegramConfigured = !!(adapterConfig.telegram?.botToken - && ((adapterConfig.telegram?.pairedUsers?.length ?? 0) > 0 || (adapterConfig.telegram?.allowedUsers?.length ?? 0) > 0)) + // IM adapter config previously used here for the "notify on complete" + // channel pickers. UI hidden — adapter integration is out of scope per + // product-package docs. Keeping the imports/state removed to keep TS + // strict-mode happy; the adapterStore itself stays in tree for any + // future re-enable. const isEdit = !!editTask const parsed = editTask ? parseCron(editTask.cron) : null @@ -94,8 +87,10 @@ export function NewTaskModal({ open, onClose, editTask }: Props) { const [permissionMode, setPermissionMode] = useState((editTask?.permissionMode as PermissionMode) || 'default') const [folderPath, setFolderPath] = useState(editTask?.folderPath || defaultWorkDir) const [useWorktree, setUseWorktree] = useState(editTask?.useWorktree || false) - const [notifyEnabled, setNotifyEnabled] = useState(editTask?.notification?.enabled || false) - const [notifyChannels, setNotifyChannels] = useState<('telegram' | 'feishu')[]>(editTask?.notification?.channels || []) + // Preserve any existing IM notification config on edit, but the UI no + // longer exposes a way to change these — they pass through unchanged. + const [notifyEnabled] = useState(editTask?.notification?.enabled || false) + const [notifyChannels] = useState<('telegram' | 'feishu')[]>(editTask?.notification?.channels || []) const [isSubmitting, setIsSubmitting] = useState(false) // Enhanced scheduling state @@ -325,67 +320,9 @@ export function NewTaskModal({ open, onClose, editTask }: Props) { )} - {/* Notification */} -
- - {notifyEnabled && ( -
-
- - -
- {!isFeishuConfigured && !isTelegramConfigured && ( -

- warning - {t('newTask.noChannelConfigured')} -

- )} -
- )} -
+ {/* IM notification channel UI removed — product-package design docs + do not include Lark/Feishu/Telegram as a Heicode surface. Underlying + adapter store + types stay in tree; just the UI is hidden. */} {/* Cron preview */}
diff --git a/cc-haha/desktop/src/pages/Settings.tsx b/cc-haha/desktop/src/pages/Settings.tsx index fa0ef5d..77629e3 100644 --- a/cc-haha/desktop/src/pages/Settings.tsx +++ b/cc-haha/desktop/src/pages/Settings.tsx @@ -49,7 +49,10 @@ export function Settings() {
setActiveTab('permissions')} /> setActiveTab('general')} /> - setActiveTab('adapters')} /> + {/* IM 接入 (Lark / Feishu / Telegram adapter settings) is hidden — + the product-package design docs do not include IM as a Heicode + surface. Underlying AdapterSettings.tsx + adapterStore stay in + the source tree so we can bring it back if product reverses. */} setActiveTab('mcp')} /> setActiveTab('agents')} /> setActiveTab('skills')} />