Skip to content

Commit ef26a0d

Browse files
Copilotcyanzhong
andcommitted
Add GitHub latest release fallback for extension URL resolution
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
1 parent 2ffcc24 commit ef26a0d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

markedit/SKILL.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ When a user requests a "lite" build, it is located in the `lite` subfolder under
4343

4444
The filename is identical to the standard build; do not add a `-lite` suffix.
4545

46+
If the dist file is not found (non-200 response), fall back to the GitHub **latest release** asset:
47+
48+
```
49+
https://github.com/MarkEdit-app/extension-name/releases/latest/download/extension-name-kebab-cased.js
50+
```
51+
52+
For example, if `dist/markedit-preview.js` is not available in the repository, try:
53+
`https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest/download/markedit-preview.js`
54+
4655
If the user provides a URL ending with `.js`, use that URL directly.
4756

4857
## Common Tasks
@@ -114,7 +123,7 @@ When users ask questions:
114123

115124
## Error Handling
116125

117-
- If extension download fails (non-200), suggest checking the extension name or URL
126+
- If extension download fails from both the dist URL and the latest release, suggest checking the extension name or URL
118127
- If `settings.json` is malformed, suggest validating JSON syntax
119128
- If MarkEdit is not installed, suggest installation methods
120129

0 commit comments

Comments
 (0)