agentworkshop 0.5.8 → 0.5.9

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentworkshop-prod",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentworkshop",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "type": "module",
5
5
  "description": "AgentWorkShop 软件开发系统 - 基于 Nuxt 4 的配置驱动运行范式",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",
@@ -146,6 +146,24 @@ export function runBootstrap({ quiet = false, env = process.env } = {}) {
146
146
  renameSync(stateTmp, stateFile)
147
147
  }
148
148
 
149
+ // 9. prompts 初始化(提示词规约):包内资产(.AgentWorkShop/prompts)→ AW Home/prompts,
150
+ // 只补缺失文件、绝不覆盖用户定制 —— 运行时目录引导即完整,服务端 loader.ts 另有
151
+ // 同规则兜底(懒播种),两处幂等互不冲突
152
+ const promptsSrc = join(packageRoot, '.AgentWorkShop', 'prompts')
153
+ if (existsSync(promptsSrc)) {
154
+ const promptsDest = join(home, 'prompts')
155
+ mkdirSync(promptsDest, { recursive: true })
156
+ for (const f of readdirSync(promptsSrc)) {
157
+ const dest = join(promptsDest, f)
158
+ if (existsSync(dest)) continue
159
+ try {
160
+ copyFileSync(join(promptsSrc, f), dest)
161
+ seeds.push(`prompts/${f}`)
162
+ }
163
+ catch { /* 单文件失败不阻断 */ }
164
+ }
165
+ }
166
+
149
167
  log(`[aw-home] ${home} ${created.length ? `(新建 ${created.length} 项)` : '(已就绪)'}`)
150
168
  if (seeds.length) log(`[aw-home] 种子文件: ${seeds.join(', ')}`)
151
169
  return { home, created, seeds }
@@ -3519,7 +3519,7 @@
3519
3519
  "channels": [],
3520
3520
  "degraded": true
3521
3521
  },
3522
- "evaluatedAt": "2026-09-02T13:20:19.492Z",
3522
+ "evaluatedAt": "2026-09-02T13:31:51.851Z",
3523
3523
  "windowAgg": {
3524
3524
  "at": "2026-08-31T16:25:17.398Z",
3525
3525
  "fromMs": 1788193396897,
@@ -1 +0,0 @@
1
- {"id":"998b4cce-8563-44e5-b0ef-ff3d71a8480f","timestamp":1788355139060,"prerendered":[]}