feat: add command center chat loop widget
This commit is contained in:
@@ -88,7 +88,8 @@ assert data.get('success') is True
|
||||
command = json.load(open('/tmp/casan-cp-local-command.json'))
|
||||
widgets = command.get('data', {}).get('widgets', {})
|
||||
assert command.get('success') is True
|
||||
assert len(widgets) == 8, widgets.keys()
|
||||
assert len(widgets) == 9, widgets.keys()
|
||||
assert 'chat_loop' in widgets, widgets.keys()
|
||||
for widget in widgets.values():
|
||||
envelope = widget.get('envelope', {})
|
||||
assert {'source', 'artifact_path', 'commit', 'run_at', 'verified', 'status'} <= set(envelope), envelope
|
||||
|
||||
@@ -85,7 +85,8 @@ assert actor.get("role") and actor.get("role") != "unknown", actor
|
||||
command = json.load(open(sys.argv[2]))
|
||||
assert command.get("success") is True, command
|
||||
widgets = command.get("data", {}).get("widgets", {})
|
||||
assert len(widgets) == 8, widgets.keys()
|
||||
assert len(widgets) == 9, widgets.keys()
|
||||
assert "chat_loop" in widgets, widgets.keys()
|
||||
for widget in widgets.values():
|
||||
envelope = widget.get("envelope", {})
|
||||
required = {"source", "artifact_path", "commit", "run_at", "verified", "status"}
|
||||
|
||||
Reference in New Issue
Block a user