feat: update JSON key access syntax in BOARD_HEARTBEAT.md.j2 and BOARD_TOOLS.md.j2
This commit is contained in:
@@ -98,7 +98,7 @@ jq -r '
|
||||
| .value | to_entries[]
|
||||
| select((.value.tags // []) | index("agent-lead"))
|
||||
| ((.value.summary // "") | gsub("\\s+"; " ")) as $summary
|
||||
| "\(.key|ascii_upcase)\t\($path)\t\(.value.operationId // "-")\t\(.value.\"x-llm-intent\" // "-")\t\(.value.\"x-when-to-use\" // [] | join(\" | \"))\t\(.value.\"x-routing-policy\" // [] | join(\" | \"))\t\($summary)"
|
||||
| "\(.key|ascii_upcase)\t\($path)\t\(.value.operationId // "-")\t\(.value[\"x-llm-intent\"] // "-")\t\(.value[\"x-when-to-use\"] // [] | join(\" | \"))\t\(.value[\"x-routing-policy\"] // [] | join(\" | \"))\t\($summary)"
|
||||
' /tmp/openapi.json | sort
|
||||
```
|
||||
{% else %}
|
||||
@@ -110,7 +110,7 @@ jq -r '
|
||||
| .value | to_entries[]
|
||||
| select((.value.tags // []) | index("agent-worker"))
|
||||
| ((.value.summary // "") | gsub("\\s+"; " ")) as $summary
|
||||
| "\(.key|ascii_upcase)\t\($path)\t\(.value.operationId // "-")\t\(.value.\"x-llm-intent\" // "-")\t\(.value.\"x-when-to-use\" // [] | join(\" | \"))\t\(.value.\"x-routing-policy\" // [] | join(\" | \"))\t\($summary)"
|
||||
| "\(.key|ascii_upcase)\t\($path)\t\(.value.operationId // "-")\t\(.value[\"x-llm-intent\"] // "-")\t\(.value[\"x-when-to-use\"] // [] | join(\" | \"))\t\(.value[\"x-routing-policy\"] // [] | join(\" | \"))\t\($summary)"
|
||||
' /tmp/openapi.json | sort
|
||||
```
|
||||
{% endif %}
|
||||
|
||||
@@ -32,7 +32,7 @@ jq -r '
|
||||
.paths | to_entries[] as $p
|
||||
| $p.value | to_entries[]
|
||||
| select((.value.tags // []) | index("{{ role_tag }}"))
|
||||
| "\(.key|ascii_upcase)\t\($p.key)\t\(.value.operationId // "-")\t\(.value.\"x-llm-intent\" // "-")\t\(.value.\"x-when-to-use\" // [] | join(\" | \") )\t\(.value.\"x-routing-policy\" // [] | join(\" | \"))"
|
||||
| "\(.key|ascii_upcase)\t\($p.key)\t\(.value.operationId // "-")\t\(.value[\"x-llm-intent\"] // "-")\t\(.value[\"x-when-to-use\"] // [] | join(\" | \"))\t\(.value[\"x-routing-policy\"] // [] | join(\" | \"))"
|
||||
' api/openapi.json | sort > api/{{ role_tag }}-operations.tsv
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user