Skip to content

Commit 6a87a20

Browse files
docs: the report-extraction script the handover brief refers to
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
1 parent ada420d commit 6a87a20

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import sys,json
2+
out=[]
3+
for line in open(sys.argv[1]):
4+
try: o=json.loads(line)
5+
except: continue
6+
if o.get("type")!="assistant": continue
7+
for b in o.get("message",{}).get("content",[]):
8+
if isinstance(b,dict) and b.get("type")=="text": out=[b["text"]]
9+
print(out[0] if out else "")

0 commit comments

Comments
 (0)