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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/6f7e40bf-a960-4f51-8a2e-bb1fffeaa5e8.json +1 -0
- package/.output/server/chunks/_/nitro.mjs +662 -662
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/scripts/home-bootstrap.mjs +18 -0
- package/server/data/dcw-rollback.json +1 -1
- package/.output/public/_nuxt/builds/meta/998b4cce-8563-44e5-b0ef-ff3d71a8480f.json +0 -1
package/package.json
CHANGED
|
@@ -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 }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"998b4cce-8563-44e5-b0ef-ff3d71a8480f","timestamp":1788355139060,"prerendered":[]}
|