feat: mandatory project folder (cwd binding) + project-conversation linkage (switch closes project, close restores prev) + window-aware prompt with knowledge pack

This commit is contained in:
Aisland
2026-08-19 21:29:44 +08:00
parent be0f4590b9
commit ce449c6620
8 changed files with 399 additions and 43 deletions
+16
View File
@@ -40,6 +40,11 @@ export const zh = {
'shortcut.badge': '本地',
'add.chooseLayout': '选择布局模式',
'add.layoutNamePh': '布局名称',
'add.folderParent': '项目文件夹(父目录)',
'add.folderParentPh': '例如 E:\\AI_Workspace\\DeepseekHarness\\Projects',
'add.folderName': '文件夹名',
'add.folderNamePh': '留空 = 用项目名',
'add.folderRequired': '请填写项目文件夹的父目录(保存时将创建「父目录\项目名」)',
'add.layoutSave': '进入工作区',
'add.layoutInvalid': '请填写布局名称',
'manage.deleteLayout': '删除布局',
@@ -89,6 +94,9 @@ export const zh = {
'bind.titleUnbound': '绑定对话(未绑定 ○○):点击选择要跟随的对话',
'bind.titleBound': '已绑定对话(●●):点击更换或解绑',
'bind.tipUnbound': '未绑定对话:点击选择要跟随的对话',
'bind.folder': '项目文件夹',
'bind.folderChange': '更改',
'bind.folderNone': '未设置(建议设置:项目产出文件都会放进这里)',
'bind.tipBound': '已绑定对话:{name}',
'bind.hint': '一个项目只能绑定一个对话。选择后,打开该项目时右侧对话窗会自动切换过去;已绑定的项目不会因新建/发送对话而自动改绑。',
'customLayout.add': '自定义',
@@ -163,6 +171,11 @@ export const en = {
'shortcut.badge': 'Local',
'add.chooseLayout': 'Choose a layout',
'add.layoutNamePh': 'Layout name',
'add.folderParent': 'Project folder (parent dir)',
'add.folderParentPh': 'e.g. E:\\AI_Workspace\\DeepseekHarness\\Projects',
'add.folderName': 'Folder name',
'add.folderNamePh': 'Blank = use project name',
'add.folderRequired': 'Fill in the project folder parent (the folder parent\\project-name will be created)',
'add.layoutSave': 'Enter workspace',
'add.layoutInvalid': 'Enter a layout name',
'manage.deleteLayout': 'Delete layout',
@@ -212,6 +225,9 @@ export const en = {
'bind.titleUnbound': 'Bind conversation (unbound ○○): pick the conversation to follow',
'bind.titleBound': 'Conversation bound (●●): click to change or unbind',
'bind.tipUnbound': 'No conversation bound — click to pick one',
'bind.folder': 'Project folder',
'bind.folderChange': 'Change',
'bind.folderNone': 'Not set (recommended: project outputs go here)',
'bind.tipBound': 'Bound to: {name}',
'bind.hint': 'A project can bind exactly one conversation. When bound, opening the project switches the right chat pane to it; an existing binding is never auto-changed by creating/sending conversations.',
'customLayout.add': 'Custom',