@andyqiu/codeforge 0.6.12 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/install.mjs CHANGED
@@ -103,7 +103,6 @@ function parseArgs(argv) {
103
103
  action: "install",
104
104
  dryRun: false,
105
105
  skipBuild: false,
106
- enableLegacyTools: false,
107
106
  verbose: false,
108
107
  help: false,
109
108
  global: false,
@@ -116,22 +115,11 @@ function parseArgs(argv) {
116
115
  case "--uninstall": out.action = "uninstall"; break
117
116
  case "--dry-run": out.dryRun = true; break
118
117
  case "--skip-build": out.skipBuild = true; break
119
- case "--enable-legacy-tools": out.enableLegacyTools = true; break
120
118
  case "--verbose": out.verbose = true; break
121
119
  case "-h":
122
120
  case "--help": out.help = true; break
123
121
  default:
124
- // 容忍 PS 风格 flag(来自旧 bin 调用),静默忽略未知,避免炸
125
- if (a.startsWith("-")) {
126
- // 兼容 -Global/-DryRun/-Uninstall/-SkipBuild/-EnableLegacyTools
127
- const low = a.toLowerCase()
128
- if (low === "-global") out.mode = "global"
129
- else if (low === "-uninstall") out.action = "uninstall"
130
- else if (low === "-dryrun") out.dryRun = true
131
- else if (low === "-skipbuild") out.skipBuild = true
132
- else if (low === "-enablelegacytools") out.enableLegacyTools = true
133
- else if (low === "-verbose") out.verbose = true
134
- }
122
+ // 未知参数静默忽略
135
123
  break
136
124
  }
137
125
  }
@@ -172,7 +160,7 @@ function resolvePaths({ mode }) {
172
160
  // v0.1 之前装的目录(卸载时一并清掉)
173
161
  const LEGACY_DIRS = ["agent", "command", "tool", "tools", "plugin", "plugins", "lib"]
174
162
  // v0.1+ 才有的目录
175
- const MANAGED_DIRS = ["codeforge", "agents", "commands", "workflows", "context-templates", "review-profiles", "agent-templates"]
163
+ const MANAGED_DIRS = ["codeforge", "agents", "commands", "workflows", "review-profiles", "agent-templates"]
176
164
  // 细粒度卸载:只删 CodeForge 自己的 skill
177
165
  const OWNED_SKILLS = ["ambiguity-gate", "devils-advocate", "ears-zh", "example-mapping", "success-criteria", "weighted-dimensions"]
178
166
 
@@ -188,7 +176,6 @@ const MD_MANIFEST_REL = "codeforge/installed-md-manifest.json"
188
176
  // 整目录拷贝
189
177
  const COPY_DIRS = [
190
178
  ["workflows", "workflows"],
191
- ["context-templates", "context-templates"],
192
179
  ["review-profiles", "review-profiles"],
193
180
  ["agent-templates", "agent-templates"],
194
181
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andyqiu/codeforge",
3
- "version": "0.6.12",
3
+ "version": "0.7.0",
4
4
  "description": "CodeForge — opencode 的零侵入扩展包",
5
5
  "type": "module",
6
6
  "private": false,
@@ -48,16 +48,7 @@
48
48
  "bench:json": "node --experimental-strip-types --no-warnings ./scripts/bench-repo-map.mjs --json",
49
49
  "lint": "tsc --noEmit",
50
50
  "check:bun": "node ./scripts/check-bun.mjs",
51
- "install:local": "node ./install.mjs",
52
- "install:global": "node ./install.mjs --global",
53
- "uninstall:local": "node ./install.mjs --uninstall",
54
- "phase0:check": "node ./scripts/phase0-check.mjs",
55
51
  "phase1:check": "node ./scripts/check-dist-built.mjs && node ./scripts/check-layer-deps.mjs && node ./scripts/phase1-check.mjs",
56
- "phase15:check": "node ./scripts/phase15-check.mjs",
57
- "v13:check": "node ./scripts/v13-check.mjs",
58
- "phase2:check": "node ./scripts/phase2-check.mjs",
59
- "phase3:check": "node ./scripts/phase3-check.mjs",
60
- "phase4:check": "node ./scripts/phase4-check.mjs",
61
52
  "adr-check": "node ./scripts/adr-check.mjs",
62
53
  "adr-check:strict": "cross-env ADR_STRICT=1 node ./scripts/adr-check.mjs",
63
54
  "adr-index-sync": "node ./scripts/adr-index-sync.mjs",
@@ -65,7 +56,6 @@
65
56
  "adr-graph": "node ./scripts/adr-graph-gen.mjs",
66
57
  "adr-graph-check": "node ./scripts/adr-graph-gen.mjs --check",
67
58
  "adr-init": "node ./bin/codeforge.mjs adr-init",
68
- "phases:all": "npm run phase0:check && npm run phase1:check && npm run phase15:check && npm run phase2:check && npm run phase3:check && npm run phase4:check",
69
59
  "sync:models": "node ./scripts/sync-agent-models.mjs",
70
60
  "sync:models:check": "node ./scripts/sync-agent-models.mjs --check",
71
61
  "sync": "node ./scripts/sync-agent-models.mjs && node ./scripts/dev-sync.mjs --sync-only",
@@ -115,7 +105,6 @@
115
105
  "bin/",
116
106
  "commands/",
117
107
  "workflows/",
118
- "context-templates/",
119
108
  "skills/",
120
109
  "review-profiles/",
121
110
  "scripts/check-bun.mjs",
@@ -24,9 +24,6 @@ description: |
24
24
 
25
25
  trigger: /ship
26
26
 
27
- # 可选:会话开始注入的上下文模板(context-templates/<name>)
28
- # context_template: feature-dev
29
-
30
27
  steps:
31
28
  - name: 规划
32
29
  agent: planner