@link-assistant/hive-mind 1.50.10 → 1.50.11
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 +6 -0
- package/README.md +13 -15
- package/package.json +1 -1
- package/src/claude.prompts.lib.mjs +1 -1
- package/src/opencode.prompts.lib.mjs +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -195,25 +195,23 @@ docker attach hive-mind
|
|
|
195
195
|
|
|
196
196
|
# --- Persisting auth data across restarts ---
|
|
197
197
|
|
|
198
|
-
#
|
|
199
|
-
mkdir -p
|
|
200
|
-
|
|
201
|
-
docker cp hive-mind:/workspace/.claude.json ~/.hive-mind/claude.json
|
|
202
|
-
docker cp hive-mind:/workspace/.config/gh ~/.hive-mind/gh
|
|
198
|
+
# On the host, create the directories used by the current Docker workflow:
|
|
199
|
+
mkdir -p /root/.hive-mind/claude /root/.hive-mind/codex /root/.hive-mind/gh
|
|
200
|
+
touch -a /root/.hive-mind/claude.json
|
|
203
201
|
|
|
204
|
-
#
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
chown $SANDBOX_UID:$SANDBOX_UID ~/.hive-mind/claude.json
|
|
208
|
-
|
|
209
|
-
# On subsequent runs, mount the auth data to keep it between restarts:
|
|
210
|
-
docker run -dit \
|
|
211
|
-
--name hive-mind \
|
|
212
|
-
--restart unless-stopped \
|
|
202
|
+
# In our Docker images HOME=/workspace, so Codex stores its data in /workspace/.codex.
|
|
203
|
+
# Mount the full Codex directory so auth.json, config.toml, and sessions survive restarts.
|
|
204
|
+
docker run -dit --user sandbox --name hive-mind --restart unless-stopped \
|
|
213
205
|
-v /root/.hive-mind/claude:/workspace/.claude \
|
|
206
|
+
-v /root/.hive-mind/codex:/workspace/.codex \
|
|
214
207
|
-v /root/.hive-mind/claude.json:/workspace/.claude.json \
|
|
215
208
|
-v /root/.hive-mind/gh:/workspace/.config/gh \
|
|
216
|
-
konard/hive-mind:latest
|
|
209
|
+
konard/hive-mind:latest bash -l -c 'bash /workspace/start-bot.sh'
|
|
210
|
+
|
|
211
|
+
# After the first start, fix ownership to match the sandbox user inside the container:
|
|
212
|
+
SANDBOX_UID=$(docker exec hive-mind id -u sandbox)
|
|
213
|
+
chown -R $SANDBOX_UID:$SANDBOX_UID /root/.hive-mind/claude /root/.hive-mind/codex /root/.hive-mind/gh
|
|
214
|
+
chown $SANDBOX_UID:$SANDBOX_UID /root/.hive-mind/claude.json
|
|
217
215
|
```
|
|
218
216
|
|
|
219
217
|
**Benefits of Docker:**
|
package/package.json
CHANGED
|
@@ -160,7 +160,7 @@ Initial research.
|
|
|
160
160
|
- When you start, create a detailed plan for yourself and follow your todo list step by step. Add as many relevant points from these guidelines to the todo list as practical so you can track the work clearly.
|
|
161
161
|
- When the user mentions CI failures or asks to investigate logs, consider adding these todos to track the investigation: (1) list recent CI runs with timestamps, (2) download logs from failed runs to the ci-logs/ directory, (3) analyze error messages and identify the root cause, (4) implement a fix, (5) verify that the fix resolves the specific errors found in the logs.
|
|
162
162
|
- When you read the issue, read all details and comments thoroughly.
|
|
163
|
-
- When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, download the image to a local file first, then use the Read tool to view and analyze it. Before reading downloaded images with the Read tool, verify that the file is a valid image rather than HTML by using a CLI tool such as the 'file' command. When corrupted or non-image files, such as GitHub "Not Found" pages saved as
|
|
163
|
+
- When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, download the image to a local file first, then use the Read tool to view and analyze it. Before reading downloaded images with the Read tool, verify that the file is a valid image rather than HTML by using a CLI tool such as the 'file' command. When corrupted or non-image files, such as GitHub "Not Found" pages saved as \`.png\`, are read, they can cause "Could not process image" errors and crash the AI solver process. When the file command shows "HTML", "text", or "ASCII text", the download failed, so do not call Read on that file. Instead: (1) when images are from GitHub issues or PRs, such as URLs containing "github.com/user-attachments", retry with: curl -L -H "Authorization: token $(gh auth token)" -o <filename> "<url>" (2) when the retry still fails, skip the image and note that it was unavailable.
|
|
164
164
|
- When you need issue details, use gh issue view https://github.com/${owner}/${repo}/issues/${issueNumber}.
|
|
165
165
|
- When you need related code, use gh search code --owner ${owner} [keywords].
|
|
166
166
|
- When you need repo context, read files in your working directory.${
|
|
@@ -137,7 +137,7 @@ ${workspaceInstructions}
|
|
|
137
137
|
Initial research.
|
|
138
138
|
- When you start, create a detailed plan for yourself and follow your todo list step by step. Add as many relevant points from these guidelines to the todo list as practical so you can track the work clearly.
|
|
139
139
|
- When you read the issue, read all details and comments thoroughly.
|
|
140
|
-
- When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, download the image to a local file first, then use the Read tool to view and analyze it. Before reading downloaded images with the Read tool, verify that the file is a valid image rather than HTML by using a CLI tool such as the 'file' command. When corrupted or non-image files, such as GitHub "Not Found" pages saved as
|
|
140
|
+
- When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, download the image to a local file first, then use the Read tool to view and analyze it. Before reading downloaded images with the Read tool, verify that the file is a valid image rather than HTML by using a CLI tool such as the 'file' command. When corrupted or non-image files, such as GitHub "Not Found" pages saved as \`.png\`, are read, they can cause "Could not process image" errors and crash the AI solver process. When the file command shows "HTML", "text", or "ASCII text", the download failed, so do not call Read on that file. Instead: (1) when images are from GitHub issues or PRs, such as URLs containing "github.com/user-attachments", retry with: curl -L -H "Authorization: token $(gh auth token)" -o <filename> "<url>" (2) when the retry still fails, skip the image and note that it was unavailable.
|
|
141
141
|
- When you need issue details, use gh issue view https://github.com/${owner}/${repo}/issues/${issueNumber}.
|
|
142
142
|
- When you need related code, use gh search code --owner ${owner} [keywords].
|
|
143
143
|
- When you need repo context, read files in your working directory.${
|