feat: 升级至 v0.3.14 — 移除 AGENTS.md/USERS.md + 内置提示词统一管理 + 时间感知 + 工具管理滚动

This commit is contained in:
2026-07-21 17:50:39 +08:00
parent f640c9b48a
commit c0a26ce053
9 changed files with 106 additions and 127 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ function ToolManagerPanel() {
<Typography variant="caption" sx={{ color: readyCount > 0 ? 'success.main' : 'text.disabled', fontSize: 10 }}>{readyCount} </Typography>
</ListItemButton>
<Collapse in={expanded}>
<List dense disablePadding sx={{ pl: 3 }}>
<List dense disablePadding sx={{ pl: 3, maxHeight: 200, overflowY: 'auto', pr: 0.5, '&::-webkit-scrollbar': { width: 6 }, '&::-webkit-scrollbar-track': { borderRadius: 3 }, '&::-webkit-scrollbar-thumb': { bgcolor: 'divider', borderRadius: 3, '&:hover': { bgcolor: 'action.hover' } } }}>
{tools.map((t) => (
<ListItemButton key={t.name} dense sx={{ py: 0.25, px: 1, borderRadius: 1 }}>
<Box sx={{ width: 6, height: 6, borderRadius: '50%', bgcolor: t.enabled ? riskColors[t.riskLevel] ?? 'text.disabled' : 'text.disabled', mr: 1, flexShrink: 0 }} />
@@ -99,11 +99,9 @@ export function OnboardingWizard(): React.JSX.Element | null {
{step === 2 && (
<Box sx={{ width: '100%' }}>
<Typography variant="h6" sx={{ mb: 2 }}> Agent</Typography>
<Typography variant="body2" sx={{ color: 'text.secondary', mb: 2 }}> SOUL.md USERS.md Agent </Typography>
<Typography variant="body2" sx={{ color: 'text.secondary', mb: 2 }}> SOUL.md Agent </Typography>
<Box sx={{ px: 2, py: 1.5, borderRadius: 2, bgcolor: 'action.hover', border: '1px solid', borderColor: 'divider', fontSize: 12, color: 'text.secondary' }}>
<div><strong style={{ color: '#e1e4ed' }}>SOUL.md</strong> Agent </div>
<div><strong style={{ color: '#e1e4ed' }}>AGENTS.md</strong> 使</div>
<div><strong style={{ color: '#e1e4ed' }}>USERS.md</strong> </div>
<div style={{ marginTop: 8, fontSize: 11, opacity: 0.7 }}></div>
</Box>
</Box>
@@ -126,7 +124,7 @@ export function OnboardingWizard(): React.JSX.Element | null {
}
}}></Button>
</Stack>
<Typography variant="caption" sx={{ color: 'text.secondary' }}> SOUL.mdAGENTS.mdMEMORY.mdUSERS.md </Typography>
<Typography variant="caption" sx={{ color: 'text.secondary' }}> SOUL.mdMEMORY.md </Typography>
</Box>
)}
{step === 4 && (
+4 -16
View File
@@ -116,8 +116,6 @@ function WorkspaceSettings() {
const [checkResult, setCheckResult] = useState<MetonaWorkspaceCheckResult | null>(null);
const [checking, setChecking] = useState(false);
const [inheritSoul, setInheritSoul] = useState(true);
const [inheritAgents, setInheritAgents] = useState(true);
const [inheritUsers, setInheritUsers] = useState(true);
const [applying, setApplying] = useState(false);
const [showRestartDialog, setShowRestartDialog] = useState(false);
@@ -147,11 +145,9 @@ function WorkspaceSettings() {
if (!pendingPath || !checkResult?.valid) return;
setApplying(true);
try {
// 如果勾选了继承文件,从旧工作空间复制到新工作空间
// 如果勾选了继承文件,从旧工作空间复制到新工作空间v0.3.14: 仅 SOUL.md
const filesToInherit: string[] = [];
if (inheritSoul) filesToInherit.push('SOUL.md');
if (inheritAgents) filesToInherit.push('AGENTS.md');
if (inheritUsers) filesToInherit.push('USERS.md');
if (filesToInherit.length > 0 && currentPath) {
try {
@@ -204,7 +200,7 @@ function WorkspaceSettings() {
return (
<Stack spacing={2}>
<Typography variant="subtitle2" sx={{ fontWeight: 600 }}></Typography>
<Typography variant="body2" sx={{ color: 'text.secondary' }}> Metona SOUL.mdAGENTS.mdMEMORY.mdUSERS.md </Typography>
<Typography variant="body2" sx={{ color: 'text.secondary' }}> Metona SOUL.mdMEMORY.md </Typography>
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
<TextField size="small" value={workspacePath} onChange={(e) => setWorkspacePath(e.target.value)} placeholder="~/MetonaWorkspaces/default/" sx={{ flex: 1 }} />
<Button variant="outlined" size="small" onClick={handleSelect}></Button>
@@ -242,7 +238,7 @@ function WorkspaceSettings() {
{checkResult.isNewWorkspace ? (
<Alert severity="info" sx={{ py: 0.5, '& .MuiAlert-message': { fontSize: 12 } }}>
4 SOUL.mdAGENTS.mdMEMORY.mdUSERS.md
2 SOUL.mdMEMORY.md
</Alert>
) : checkResult.missingFiles && checkResult.missingFiles.length > 0 ? (
<Alert severity="warning" sx={{ py: 0.5, '& .MuiAlert-message': { fontSize: 12 } }}>
@@ -250,7 +246,7 @@ function WorkspaceSettings() {
</Alert>
) : (
<Alert severity="success" sx={{ py: 0.5, '& .MuiAlert-message': { fontSize: 12 } }}>
4
2
</Alert>
)}
@@ -264,14 +260,6 @@ function WorkspaceSettings() {
control={<Checkbox size="small" checked={inheritSoul} onChange={(e) => setInheritSoul(e.target.checked)} />}
label={<Typography variant="caption">SOUL.md</Typography>}
/>
<FormControlLabel
control={<Checkbox size="small" checked={inheritAgents} onChange={(e) => setInheritAgents(e.target.checked)} />}
label={<Typography variant="caption">AGENTS.md</Typography>}
/>
<FormControlLabel
control={<Checkbox size="small" checked={inheritUsers} onChange={(e) => setInheritUsers(e.target.checked)} />}
label={<Typography variant="caption">USERS.md</Typography>}
/>
<Typography variant="caption" sx={{ color: 'text.disabled', fontSize: 10, pl: 3 }}>
MEMORY.md
</Typography>