feat(skills): support folder-scoped skills in agent sessions
- Thread workspace path through useAgentSkills so Codex $-autocomplete surfaces folder-local skills in addition to global ones; cache keyed by agent + workspace and invalidated per key on focus. - Add Global/Folder scope tabs and a folder picker (sourced from the folder table via loadFolderHistory) to the Skills settings page. CRUD for skills now operates against the selected scope and folder. - Default the settings right panel to a placeholder hint; the new-skill form only appears after clicking "New Skill" or selecting an existing skill. Search input is hidden in folder scope. - Disable "New Skill" when folder scope has no folder chosen; show a pick-folder hint in the path preview for that state. - Add scope/noSelectionHint/pickFolderHint strings across 10 locales.
This commit is contained in:
@@ -348,6 +348,14 @@
|
||||
"emptyContentHint": "暫無內容。點擊「編輯」開始輸入。",
|
||||
"loadingSkill": "正在載入 Skill...",
|
||||
"emptyNoAgents": "暫無可用 Agent。",
|
||||
"noSelectionHint": "從左側選擇一個 Skill,或點擊「新建 Skill」建立。",
|
||||
"scope": {
|
||||
"global": "全域",
|
||||
"folder": "資料夾",
|
||||
"selectFolderPlaceholder": "選擇資料夾",
|
||||
"noFolders": "找不到任何資料夾",
|
||||
"pickFolderHint": "選擇一個資料夾以檢視其 Skills。"
|
||||
},
|
||||
"actions": {
|
||||
"preview": "預覽",
|
||||
"edit": "編輯",
|
||||
|
||||
Reference in New Issue
Block a user