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[]
|
| .value | to_entries[]
|
||||||
| select((.value.tags // []) | index("agent-lead"))
|
| select((.value.tags // []) | index("agent-lead"))
|
||||||
| ((.value.summary // "") | gsub("\\s+"; " ")) as $summary
|
| ((.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
|
' /tmp/openapi.json | sort
|
||||||
```
|
```
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -110,7 +110,7 @@ jq -r '
|
|||||||
| .value | to_entries[]
|
| .value | to_entries[]
|
||||||
| select((.value.tags // []) | index("agent-worker"))
|
| select((.value.tags // []) | index("agent-worker"))
|
||||||
| ((.value.summary // "") | gsub("\\s+"; " ")) as $summary
|
| ((.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
|
' /tmp/openapi.json | sort
|
||||||
```
|
```
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ jq -r '
|
|||||||
.paths | to_entries[] as $p
|
.paths | to_entries[] as $p
|
||||||
| $p.value | to_entries[]
|
| $p.value | to_entries[]
|
||||||
| select((.value.tags // []) | index("{{ role_tag }}"))
|
| 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
|
' api/openapi.json | sort > api/{{ role_tag }}-operations.tsv
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user