Files
weichenandCursor ef590bd0c3 Add example brief and script workflows
Why: The example plugin needs a bound intent and a plugin-shipped script so the three P4 paths can be checked against a real plugin.
Evidence: TestRepoExamplePluginLoads accepts the plugin, asks 主题是什么?, and keeps the topic slot.
Impact: demo.brief starts the five-step workflow. demo.script stays unbound and needs runtime.workflowScripts.
Refs: feature/agent-harness-p4
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 16:22:14 +00:00

26 lines
680 B
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[
{
"id": "demo.show",
"domain": "demo",
"version": 1,
"description": "示例意图:命中『示例/演示』关键词(slots 声明即 HITL 该问什么;本示例无必填槽位)",
"matcher": { "includes_any": ["示例", "演示"] },
"slots": []
},
{
"id": "demo.brief",
"domain": "demo",
"version": 1,
"description": "写一份简报。必填槽位 topic,没写就问「主题是什么?」。",
"matcher": { "includes_any": ["简报"] },
"slots": [
{
"key": "topic",
"required": true,
"pattern": "主题[::]\\s*(\\S+)",
"question": "主题是什么?"
}
]
}
]