上一版误把 worktree 目录模板注册成 VS Code 原生设置(contributes.configuration + workspace.getConfiguration),但本插件有自己的设置面板(SettingsModal,存 globalState)。 改为: - Settings 新增 worktreeDirectory 字段(默认 ~/Sources/worktree/$project_name/$feature_name, 留空回退默认),贯穿 store/handler/两端 messages/useIssues/App/SettingsModal - SettingsModal「钩子」分组新增「工作树目录」输入项,走既有 save/load 流程 - handleImplement 改从 getSettings(panel.context).worktreeDirectory 读模板 - 删除 package.json 的 contributes.configuration(meta.ts 为 gitignore 生成物,已本地还原) deriveSlug / resolveWorktreeDir / ~ 展开 / 绝对路径 / feature/<slug> 逻辑不变。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
123 lines
3.2 KiB
JSON
123 lines
3.2 KiB
JSON
{
|
|
"publisher": "clurdra",
|
|
"name": "superpowers-vscode-clurdra",
|
|
"displayName": "Superpowers-clurdra",
|
|
"version": "0.2.44",
|
|
"packageManager": "pnpm@10.27.0",
|
|
"description": "Superpowers specs and plans Kanban explorer",
|
|
"author": "clurdra",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/cruldra/superpowers-vscode#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/cruldra/superpowers-vscode"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/cruldra/superpowers-vscode/issues"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"main": "./dist/index.cjs",
|
|
"icon": "res/icon.png",
|
|
"files": [
|
|
"LICENSE.md",
|
|
"dist/**/*",
|
|
"prompts/*.md",
|
|
"res/*"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.97.0"
|
|
},
|
|
"activationEvents": [
|
|
"onView:superpowers.kanban",
|
|
"onCommand:superpowers.openKanban",
|
|
"onCommand:superpowers.setGiteaToken"
|
|
],
|
|
"contributes": {
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "superpowers",
|
|
"title": "Superpowers",
|
|
"icon": "res/icon.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"superpowers": [
|
|
{
|
|
"id": "superpowers.kanban",
|
|
"name": "Kanban"
|
|
}
|
|
]
|
|
},
|
|
"viewsWelcome": [
|
|
{
|
|
"view": "superpowers.kanban",
|
|
"contents": "在编辑器主区打开 Superpowers Kanban 看板。\n[Open Kanban Board](command:superpowers.openKanban)"
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "superpowers.openKanban",
|
|
"title": "Open Superpowers Kanban",
|
|
"category": "Superpowers"
|
|
},
|
|
{
|
|
"command": "superpowers.refresh",
|
|
"title": "Refresh Issues (Gitea + YouTrack)",
|
|
"category": "Superpowers"
|
|
},
|
|
{
|
|
"command": "superpowers.setGiteaToken",
|
|
"title": "Set Gitea Token",
|
|
"category": "Superpowers"
|
|
}
|
|
],
|
|
"menus": {
|
|
"view/title": [
|
|
{
|
|
"command": "superpowers.openKanban",
|
|
"when": "view == superpowers.kanban",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "superpowers.refresh",
|
|
"when": "view == superpowers.kanban",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "superpowers.setGiteaToken",
|
|
"when": "view == superpowers.kanban",
|
|
"group": "navigation"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "pnpm --filter webview-ui build && node esbuild.mjs --production",
|
|
"dev": "concurrently \"pnpm --filter webview-ui dev\" \"node esbuild.mjs --watch\"",
|
|
"typecheck": "tsc --noEmit && pnpm --filter webview-ui typecheck",
|
|
"lint": "eslint .",
|
|
"test": "vitest",
|
|
"vscode:prepublish": "pnpm build",
|
|
"release": "bumpp",
|
|
"ext:package": "pnpm build && vsce package --no-dependencies",
|
|
"ext:publish:vsce": "npm_config_proxy= npm_config_https_proxy= vsce publish --skip-duplicate"
|
|
},
|
|
"devDependencies": {
|
|
"@antfu/eslint-config": "^6.7.3",
|
|
"@types/node": "^25.0.3",
|
|
"@types/vscode": "^1.97.0",
|
|
"@vscode/vsce": "^3.9.1",
|
|
"bumpp": "^10.3.2",
|
|
"concurrently": "^9.1.0",
|
|
"esbuild": "^0.25.0",
|
|
"eslint": "^9.39.2",
|
|
"ovsx": "^0.10.7",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.16"
|
|
}
|
|
}
|