Commit 571ca61
authored
fix: repair .zip download and serve raw SKILL.md without attribution comment (#241)
* fix: generate SKILL.zip for every skill, not just multi-file ones
The skill detail page shows an unconditional 'Download .zip' link for
every skill (introduced in #169), but the zip endpoint only generated a
file for multi-file skills. Single-file skills therefore linked to a
zip that was never built, returning 404.
Drop the multi-file guard so a zip is generated for every skill:
single-file skills get a zip containing just SKILL.md; multi-file skills
continue to bundle SKILL.md plus their references/ tree.
* fix: stop prepending attribution comment to raw SKILL.md
The /skills/<name>/SKILL.md endpoint prepended an HTML comment with
source/origin/publisher/license/updated metadata (added in #171). This
made the served markdown non-identical to the repo file and cluttered
the top of the document.
Serve the raw SKILL.md bytes unchanged. Provenance is still carried in
the X-Content-Source and X-License response headers, so nothing is lost
for machine consumers.1 parent 6165991 commit 571ca61
2 files changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | | - | |
| 25 | + | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
0 commit comments