实施流程不再硬编码 .claude/worktrees/<hash>: - worktree 目录名改用 spec/plan 的 slug(specs|plans 后那一级目录名),分支改为 feature/<slug> - 目录走 superpowers.worktreeDirectory 模板(package.json 新注册配置),支持 $project_root/$project_name/$feature_name 占位符及开头 ~ 展开,默认 ~/Sources/worktree/$project_name/$feature_name - worktree 现位于工作区外:创建前 mkdir -p 父目录,state/webview 改存绝对路径(下游消费方已兼容 isAbsolute) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
133 lines
3.8 KiB
JSON
133 lines
3.8 KiB
JSON
{
|
||
"publisher": "clurdra",
|
||
"name": "superpowers-vscode-clurdra",
|
||
"displayName": "Superpowers-clurdra",
|
||
"version": "0.2.43",
|
||
"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"
|
||
}
|
||
]
|
||
},
|
||
"configuration": {
|
||
"title": "Superpowers",
|
||
"properties": {
|
||
"superpowers.worktreeDirectory": {
|
||
"type": "string",
|
||
"default": "~/Sources/worktree/$project_name/$feature_name",
|
||
"markdownDescription": "运行 Plan 时创建 worktree 的目录模板。支持占位符 `$project_root`(工作区根目录的绝对路径)、`$project_name`(工作区目录名)、`$feature_name`(spec/plan 的 slug)。开头的 `~` 会展开为当前用户主目录。默认会把 worktree 建到 `~/Sources/worktree/<项目名>/<slug>`。"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"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"
|
||
}
|
||
}
|