Merge doc query requirement into NEW_FEAT
This commit is contained in:
35
NEW_FEAT.md
35
NEW_FEAT.md
@@ -46,3 +46,38 @@ ${openclaw dir}/yonexus/organizations/<org-name>/teams/<team-name>/agents/<agent
|
|||||||
## Notes
|
## Notes
|
||||||
- The plugin must not store code in `${openclaw dir}/yonexus`, only data.
|
- The plugin must not store code in `${openclaw dir}/yonexus`, only data.
|
||||||
- If folders already exist, creation should be idempotent.
|
- If folders already exist, creation should be idempotent.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# NEW_FEAT — Document Query Tool
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
Add a tool to retrieve documentation files based on scope, topic, and keyword.
|
||||||
|
|
||||||
|
## Tool
|
||||||
|
`get_docs(scope, topic, keyword)`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
- **scope**: enum `organization | department | team | agent`
|
||||||
|
- **topic**: enum `docs | notes | knowledge | rules | lessons | workflows`
|
||||||
|
- **keyword**: string (supports regular expressions)
|
||||||
|
|
||||||
|
## Behavior
|
||||||
|
- Search matching files under `${openclaw dir}/yonexus/organizations/...` based on the given scope/topic.
|
||||||
|
- `keyword` is applied to filenames (regex supported).
|
||||||
|
- Output grouped by scope in the following format:
|
||||||
|
```
|
||||||
|
----ORG
|
||||||
|
<file list>
|
||||||
|
----DEPT
|
||||||
|
<file list>
|
||||||
|
----TEAM
|
||||||
|
<file list>
|
||||||
|
----AGENT
|
||||||
|
<file list>
|
||||||
|
```
|
||||||
|
- If no match in a group, output the header with no files beneath.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
- Search should be read-only.
|
||||||
|
- Pattern errors should return a structured error (invalid regex).
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
# NEW_FEAT — Document Query Tool
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
Add a tool to retrieve documentation files based on scope, topic, and keyword.
|
|
||||||
|
|
||||||
## Tool
|
|
||||||
`get_docs(scope, topic, keyword)`
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
- **scope**: enum `organization | department | team | agent`
|
|
||||||
- **topic**: enum `docs | notes | knowledge | rules | lessons | workflows`
|
|
||||||
- **keyword**: string (supports regular expressions)
|
|
||||||
|
|
||||||
## Behavior
|
|
||||||
- Search matching files under `${openclaw dir}/yonexus/organizations/...` based on the given scope/topic.
|
|
||||||
- `keyword` is applied to filenames (regex supported).
|
|
||||||
- Output grouped by scope in the following format:
|
|
||||||
```
|
|
||||||
----ORG
|
|
||||||
<file list>
|
|
||||||
----DEPT
|
|
||||||
<file list>
|
|
||||||
----TEAM
|
|
||||||
<file list>
|
|
||||||
----AGENT
|
|
||||||
<file list>
|
|
||||||
```
|
|
||||||
- If no match in a group, output the header with no files beneath.
|
|
||||||
|
|
||||||
## Notes
|
|
||||||
- Search should be read-only.
|
|
||||||
- Pattern errors should return a structured error (invalid regex).
|
|
||||||
Reference in New Issue
Block a user