mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 15:00:45 +08:00
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
30 lines
611 B
Markdown
30 lines
611 B
Markdown
---
|
|
name: bootstrap-extra-files
|
|
description: "Inject additional workspace bootstrap files via glob/path patterns"
|
|
metadata:
|
|
oclaw:
|
|
emoji: "📎"
|
|
events: ["agent:bootstrap"]
|
|
---
|
|
|
|
# Bootstrap Extra Files Hook (Python)
|
|
|
|
On `agent:bootstrap`, expands extra file glob patterns and appends them to `event.context.bootstrapFiles`.
|
|
|
|
Config example (hook key `bootstrap-extra-files`):
|
|
|
|
```json
|
|
{
|
|
"hooks": {
|
|
"internal": {
|
|
"entries": {
|
|
"bootstrap-extra-files": {
|
|
"enabled": true,
|
|
"paths": ["packages/*/AGENTS.md", "packages/*/TOOLS.md"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|