fix: use # comments, remove broken _w_line function
This commit is contained in:
parent
cb0f37753b
commit
70481ad17b
@ -1,4 +1,4 @@
|
||||
// cockpit_chat.dspy - SDLC Agent Loop v3.1 (streaming NDJSON)
|
||||
# cockpit_chat.dspy - SDLC Agent Loop v3.1 (streaming NDJSON)
|
||||
import aiohttp, json, os
|
||||
|
||||
action = (params_kw or {}).get('action', 'list_messages')
|
||||
@ -105,10 +105,6 @@ def _w_card(title, body, kind="success"):
|
||||
body
|
||||
]}
|
||||
def _w_progress(text): return {"widgettype":"Text","options":{"text":text,"css":"agent-progress","style":{"color":"#f59e0b","fontSize":"12px","padding":"2px 8px"}}}
|
||||
def _w_line():
|
||||
parts = []
|
||||
parts.append(json.dumps({"type":"widget","widget":w}, ensure_ascii=False))
|
||||
return '\n'.join(parts)
|
||||
|
||||
_tool_labels = {'switch_project':'切换项目','create_task':'创建任务','check_progress':'检查进度','list_tasks':'查询任务','add_repo':'关联仓库','list_repos':'查看仓库','add_bug':'报告Bug'}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user