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
+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>