cctally 1.78.0 โ†’ 1.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,22 @@ _ITEM_HEADER = {
46
46
  "event": "## ๐Ÿ—“ Event",
47
47
  }
48
48
 
49
+ _META_LABEL_TEXT = {
50
+ "agents": "Project instructions",
51
+ "context_bundle": "Session context",
52
+ "delegation": "Delegation context",
53
+ "environment": "Environment context",
54
+ "heartbeat": "Harness heartbeat",
55
+ "instructions": "User instructions",
56
+ "memory": "Memory context",
57
+ "mode": "Agent mode",
58
+ "model_switch": "Model switch",
59
+ "permissions": "Permissions",
60
+ "plugins": "Available plugins",
61
+ "role": "Harness role",
62
+ "skill": "Skill context",
63
+ }
64
+
49
65
 
50
66
  def _render_block(b: dict) -> str:
51
67
  bk = b.get("kind")
@@ -75,7 +91,11 @@ def _render_block(b: dict) -> str:
75
91
 
76
92
  def _render_item(it: dict) -> str:
77
93
  kind = it.get("kind")
78
- header = _ITEM_HEADER.get(kind, f"## {kind}")
94
+ if kind == "meta":
95
+ label = _META_LABEL_TEXT.get(it.get("meta_label"), "Harness context")
96
+ header = f"## ๐Ÿงฉ Context: {label}"
97
+ else:
98
+ header = _ITEM_HEADER.get(kind, f"## {kind}")
79
99
  ts = it.get("timestamp_utc") or ""
80
100
  if ts:
81
101
  header += f" ยท {ts}"