Skip to content

Commit 616b460

Browse files
preserve plugin-declared optional fields in build-and-release catalog generator
1 parent 89dff03 commit 616b460

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-and-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ jobs:
416416
AUTHORS=$(echo "$MANIFEST" | jq -c '.authors // ["Dinoki Labs"]')
417417
MIN_MACOS=$(echo "$MANIFEST" | jq -r '.min_macos // "13.0"')
418418
MIN_OSAURUS=$(echo "$MANIFEST" | jq -r '.min_osaurus // "0.5.0"')
419-
TOOLS=$(echo "$MANIFEST" | jq -c '[.capabilities.tools // [] | .[] | {name: .id, description: .description}]')
419+
# Preserve plugin-author-set optional fields (widget, defaultRender) when
420+
# summarising tools. Mirrors the projection in build-plugin.yml.
421+
TOOLS=$(echo "$MANIFEST" | jq -c '[.capabilities.tools // [] | .[] | (.name = .id) | del(.id, .parameters, .requirements, .permission_policy)]')
420422
421423
# Extract v2 routes from manifest (if present)
422424
ROUTES=$(echo "$MANIFEST" | jq -c '[.capabilities.routes // [] | .[] | {name: (.id // .name), description: (.description // "")}]')

0 commit comments

Comments
 (0)