@link-assistant/hive-mind 1.49.0 → 1.49.1
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 1.49.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 00512d6: Fix broken screenshot URL in fork mode: use forked repo path instead of original repo path in screenshot URL template when operating in fork mode (#1561).
|
|
8
|
+
|
|
3
9
|
## 1.49.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -82,7 +82,10 @@ export const buildUserPrompt = params => {
|
|
|
82
82
|
* @returns {string} The formatted system prompt
|
|
83
83
|
*/
|
|
84
84
|
export const buildSystemPrompt = params => {
|
|
85
|
-
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv, modelSupportsVision } = params;
|
|
85
|
+
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv, modelSupportsVision, forkedRepo } = params;
|
|
86
|
+
|
|
87
|
+
// When in fork mode, screenshots are pushed to the fork, not the original repo
|
|
88
|
+
const screenshotRepoPath = argv?.fork && forkedRepo ? forkedRepo : `${owner}/${repo}`;
|
|
86
89
|
|
|
87
90
|
// Build thinking instruction based on --think level
|
|
88
91
|
let thinkLine = '';
|
|
@@ -245,7 +248,7 @@ GitHub CLI command patterns.
|
|
|
245
248
|
Visual UI work and screenshots.
|
|
246
249
|
- 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.
|
|
247
250
|
- 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).
|
|
248
|
-
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${
|
|
251
|
+
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${screenshotRepoPath}/blob/${branchName}/docs/screenshots/result.png?raw=true).
|
|
249
252
|
- 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).
|
|
250
253
|
- When the visual result is important for review, mention it explicitly in the pull request description with the embedded image.
|
|
251
254
|
- When fixing UI bugs, capture both the "before" (problem) and "after" (fixed) screenshots as evidence for human verification.
|
|
@@ -92,7 +92,10 @@ export const buildUserPrompt = params => {
|
|
|
92
92
|
* @returns {string} The formatted system prompt
|
|
93
93
|
*/
|
|
94
94
|
export const buildSystemPrompt = params => {
|
|
95
|
-
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv, modelSupportsVision } = params;
|
|
95
|
+
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv, modelSupportsVision, forkedRepo } = params;
|
|
96
|
+
|
|
97
|
+
// When in fork mode, screenshots are pushed to the fork, not the original repo
|
|
98
|
+
const screenshotRepoPath = argv?.fork && forkedRepo ? forkedRepo : `${owner}/${repo}`;
|
|
96
99
|
|
|
97
100
|
// Note: --think keywords are deprecated for Claude Code >= 2.1.12
|
|
98
101
|
// Thinking is now enabled by default with 31,999 token budget
|
|
@@ -339,7 +342,7 @@ Agent Commander usage (unified subagent delegation).
|
|
|
339
342
|
Visual UI work and screenshots.
|
|
340
343
|
- 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.
|
|
341
344
|
- 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).
|
|
342
|
-
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${
|
|
345
|
+
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${screenshotRepoPath}/blob/${branchName}/docs/screenshots/result.png?raw=true).
|
|
343
346
|
- 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).
|
|
344
347
|
- When the visual result is important for review, mention it explicitly in the pull request description with the embedded image.
|
|
345
348
|
- When fixing UI bugs, capture both the "before" (problem) and "after" (fixed) screenshots as evidence for human verification.
|
|
@@ -82,7 +82,10 @@ export const buildUserPrompt = params => {
|
|
|
82
82
|
* @returns {string} The formatted system prompt
|
|
83
83
|
*/
|
|
84
84
|
export const buildSystemPrompt = params => {
|
|
85
|
-
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv } = params;
|
|
85
|
+
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv, modelSupportsVision, forkedRepo } = params;
|
|
86
|
+
|
|
87
|
+
// When in fork mode, screenshots are pushed to the fork, not the original repo
|
|
88
|
+
const screenshotRepoPath = argv?.fork && forkedRepo ? forkedRepo : `${owner}/${repo}`;
|
|
86
89
|
|
|
87
90
|
// Build thinking instruction based on --think level
|
|
88
91
|
let thinkLine = '';
|
|
@@ -246,7 +249,22 @@ GitHub CLI command patterns.
|
|
|
246
249
|
- When adding PR comment, use gh pr comment NUMBER --body "text" --repo OWNER/REPO.
|
|
247
250
|
- When adding issue comment, use gh issue comment NUMBER --body "text" --repo OWNER/REPO.
|
|
248
251
|
- When viewing PR details, use gh pr view NUMBER --repo OWNER/REPO.
|
|
249
|
-
- When filtering with jq, use gh api repos/\${owner}/\${repo}/pulls/\${prNumber}/comments --paginate --jq 'reverse | .[0:5]'.${
|
|
252
|
+
- When filtering with jq, use gh api repos/\${owner}/\${repo}/pulls/\${prNumber}/comments --paginate --jq 'reverse | .[0:5]'.${
|
|
253
|
+
modelSupportsVision
|
|
254
|
+
? `
|
|
255
|
+
|
|
256
|
+
Visual UI work and screenshots.
|
|
257
|
+
- 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.
|
|
258
|
+
- 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).
|
|
259
|
+
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${screenshotRepoPath}/blob/${branchName}/docs/screenshots/result.png?raw=true).
|
|
260
|
+
- 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).
|
|
261
|
+
- When the visual result is important for review, mention it explicitly in the pull request description with the embedded image.
|
|
262
|
+
- When fixing UI bugs, capture both the "before" (problem) and "after" (fixed) screenshots as evidence for human verification.
|
|
263
|
+
- When reporting UI bugs, include a screenshot of the problem state to enable visual verification of the fix.
|
|
264
|
+
- When the fix is visual, include side-by-side or sequential comparison of before/after states in the PR description.
|
|
265
|
+
- When possible, create automated visual regression tests to prevent the UI bug from recurring.`
|
|
266
|
+
: ''
|
|
267
|
+
}${ciExamples}${getArchitectureCareSubPrompt(argv)}`;
|
|
250
268
|
};
|
|
251
269
|
|
|
252
270
|
// Export all functions as default object too
|
|
@@ -82,7 +82,10 @@ export const buildUserPrompt = params => {
|
|
|
82
82
|
* @returns {string} The formatted system prompt
|
|
83
83
|
*/
|
|
84
84
|
export const buildSystemPrompt = params => {
|
|
85
|
-
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv } = params;
|
|
85
|
+
const { owner, repo, issueNumber, prNumber, branchName, workspaceTmpDir, argv, modelSupportsVision, forkedRepo } = params;
|
|
86
|
+
|
|
87
|
+
// When in fork mode, screenshots are pushed to the fork, not the original repo
|
|
88
|
+
const screenshotRepoPath = argv?.fork && forkedRepo ? forkedRepo : `${owner}/${repo}`;
|
|
86
89
|
|
|
87
90
|
// Build thinking instruction based on --think level
|
|
88
91
|
let thinkLine = '';
|
|
@@ -239,7 +242,22 @@ GitHub CLI command patterns.
|
|
|
239
242
|
- When adding PR comment, use gh pr comment NUMBER --body "text" --repo OWNER/REPO.
|
|
240
243
|
- When adding issue comment, use gh issue comment NUMBER --body "text" --repo OWNER/REPO.
|
|
241
244
|
- When viewing PR details, use gh pr view NUMBER --repo OWNER/REPO.
|
|
242
|
-
- When filtering with jq, use gh api repos/${owner}/${repo}/pulls/${prNumber}/comments --paginate --jq 'reverse | .[0:5]'.${
|
|
245
|
+
- When filtering with jq, use gh api repos/${owner}/${repo}/pulls/${prNumber}/comments --paginate --jq 'reverse | .[0:5]'.${
|
|
246
|
+
modelSupportsVision
|
|
247
|
+
? `
|
|
248
|
+
|
|
249
|
+
Visual UI work and screenshots.
|
|
250
|
+
- 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.
|
|
251
|
+
- 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).
|
|
252
|
+
- When you save screenshots to the repository, use permanent links in the pull request description markdown (e.g., https://github.com/${screenshotRepoPath}/blob/${branchName}/docs/screenshots/result.png?raw=true).
|
|
253
|
+
- 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).
|
|
254
|
+
- When the visual result is important for review, mention it explicitly in the pull request description with the embedded image.
|
|
255
|
+
- When fixing UI bugs, capture both the "before" (problem) and "after" (fixed) screenshots as evidence for human verification.
|
|
256
|
+
- When reporting UI bugs, include a screenshot of the problem state to enable visual verification of the fix.
|
|
257
|
+
- When the fix is visual, include side-by-side or sequential comparison of before/after states in the PR description.
|
|
258
|
+
- When possible, create automated visual regression tests to prevent the UI bug from recurring.`
|
|
259
|
+
: ''
|
|
260
|
+
}${ciExamples}${getArchitectureCareSubPrompt(argv)}`;
|
|
243
261
|
};
|
|
244
262
|
|
|
245
263
|
// Export all functions as default object too
|