更新资源协议文档,新增registry子标签的定义与示例,明确资源注册与抽象引用机制,提升文档的清晰度和实用性。同时,删除不再使用的执行流程部分,优化文档结构。
This commit is contained in:
19
core/resource/execution.resource.md
Normal file
19
core/resource/execution.resource.md
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
<resource protocol="execution">
|
||||
<location>
|
||||
执行模式资源位置使用以下格式:
|
||||
|
||||
```ebnf
|
||||
location ::= execution://{execution_id}
|
||||
execution_id ::= [a-zA-Z][a-zA-Z0-9_-]*
|
||||
```
|
||||
</location>
|
||||
|
||||
<registry>
|
||||
<!-- 执行模式ID到文件路径的映射表 -->
|
||||
| 执行ID | 文件路径 |
|
||||
|--------|---------|
|
||||
| deal-at-reference | @file://PromptX/core/execution/deal-at-reference.execution.md |
|
||||
</registry>
|
||||
</resource>
|
||||
16
core/resource/thought.resource.md
Normal file
16
core/resource/thought.resource.md
Normal file
@ -0,0 +1,16 @@
|
||||
<resource protocol="thought">
|
||||
<location>
|
||||
思维模式资源位置使用以下格式:
|
||||
|
||||
```ebnf
|
||||
location ::= thought://{thought_id}
|
||||
thought_id ::= [a-zA-Z][a-zA-Z0-9_-]*
|
||||
```
|
||||
</location>
|
||||
|
||||
<registry>
|
||||
<!-- 思维模式ID到文件路径的映射表 -->
|
||||
| 思维ID | 文件路径 |
|
||||
|--------|---------|
|
||||
</registry>
|
||||
</resource>
|
||||
Reference in New Issue
Block a user