@link-assistant/hive-mind 1.25.3 → 1.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/src/agent.lib.mjs +0 -1
- package/src/agent.prompts.lib.mjs +2 -2
- package/src/claude.prompts.lib.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 1.25.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2a670b0: fix: use universal GitHub blob URL format for screenshots to fix broken images in private repositories (Issue #1349)
|
|
8
|
+
|
|
9
|
+
Previously, the system prompt instructed AI agents to embed screenshots using `raw.githubusercontent.com` URLs. These URLs always return HTTP 404 for private repositories because GitHub does not authenticate raw content requests when rendering PR description markdown.
|
|
10
|
+
|
|
11
|
+
Now agents are instructed to use the `https://github.com/{owner}/{repo}/blob/{branch}/path?raw=true` URL format instead, which works for both public and private repositories. This simplifies the implementation by removing the need to check repository visibility at all.
|
|
12
|
+
|
|
3
13
|
## 1.25.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
package/src/agent.lib.mjs
CHANGED
|
@@ -408,7 +408,6 @@ export const executeAgent = async params => {
|
|
|
408
408
|
if (argv.verbose) {
|
|
409
409
|
await log(`👁️ Model vision capability: ${modelSupportsVision ? 'supported' : 'not supported'}`, { verbose: true });
|
|
410
410
|
}
|
|
411
|
-
|
|
412
411
|
// Build the user prompt
|
|
413
412
|
const prompt = buildUserPrompt({
|
|
414
413
|
issueUrl,
|
|
@@ -230,8 +230,8 @@ GitHub CLI command patterns.
|
|
|
230
230
|
Visual UI work and screenshots.
|
|
231
231
|
- When you work on visual UI changes (frontend, CSS, HTML, design), include a render or screenshot of the final result in the pull request description.
|
|
232
232
|
- When you need to show visual results, take a screenshot and save it to the repository (e.g., in a docs/screenshots/ or assets/ folder).
|
|
233
|
-
- When you save screenshots to the repository, use permanent
|
|
234
|
-
- When uploading images, commit them to the branch first, then reference them using the
|
|
233
|
+
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${owner}/${repo}/blob/${branchName}/docs/screenshots/result.png?raw=true).
|
|
234
|
+
- When uploading images, commit them to the branch first, then reference them using the GitHub blob URL format with ?raw=true suffix (works for both public and private repositories).
|
|
235
235
|
- When the visual result is important for review, mention it explicitly in the pull request description with the embedded image.`
|
|
236
236
|
: ''
|
|
237
237
|
}${ciExamples}${getArchitectureCareSubPrompt(argv)}`;
|
|
@@ -319,8 +319,8 @@ Agent Commander usage (unified subagent delegation).
|
|
|
319
319
|
Visual UI work and screenshots.
|
|
320
320
|
- When you work on visual UI changes (frontend, CSS, HTML, design), include a render or screenshot of the final result in the pull request description.
|
|
321
321
|
- When you need to show visual results, take a screenshot and save it to the repository (e.g., in a docs/screenshots/ or assets/ folder).
|
|
322
|
-
- When you save screenshots to the repository, use permanent
|
|
323
|
-
- When uploading images, commit them to the branch first, then reference them using the
|
|
322
|
+
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${owner}/${repo}/blob/${branchName}/docs/screenshots/result.png?raw=true).
|
|
323
|
+
- When uploading images, commit them to the branch first, then reference them using the GitHub blob URL format with ?raw=true suffix (works for both public and private repositories).
|
|
324
324
|
- When the visual result is important for review, mention it explicitly in the pull request description with the embedded image.`
|
|
325
325
|
: ''
|
|
326
326
|
}${ciExamples}${getArchitectureCareSubPrompt(argv)}`;
|