@link-assistant/hive-mind 0.48.2 → 0.48.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 +21 -0
- package/package.json +1 -1
- package/src/config.lib.mjs +1 -1
- package/src/hive.config.lib.mjs +2 -2
- package/src/hive.mjs +1 -1
- package/src/memory-check.mjs +3 -3
- package/src/solve.config.lib.mjs +2 -2
- package/src/solve.mjs +1 -1
- package/src/solve.validation.lib.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 0.48.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b010ce6: Increase minimum disk space requirement from 512 MB to 2 GB to provide more room for commands to gracefully finish before running out of disk space and prevent potential OS issues
|
|
8
|
+
|
|
9
|
+
## 0.48.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ba6d6e4: Add comprehensive research on folder naming best practices for documentation
|
|
14
|
+
|
|
15
|
+
Added expanded documentation in `docs/case-studies/folder-naming-best-practices.md` covering:
|
|
16
|
+
- Industry standards (Google SRE, ITIL, NIST, Diataxis, Oxide RFD, NASA FRB, FEMA AAR)
|
|
17
|
+
- Terminology mapping for alternative document type names (PIR, AAR, RCA, TDR, etc.)
|
|
18
|
+
- Recommended folder structure for incidents, investigations, problems, case studies, decisions, reviews, retrospectives, and runbooks
|
|
19
|
+
- Extended folder structure for larger organizations
|
|
20
|
+
- File naming conventions for 18+ document types following kebab-case and ISO 8601 date formats
|
|
21
|
+
- Document templates with YAML front matter including RFD, Spike, AAR, Retrospective, and One-Pager templates
|
|
22
|
+
- 30+ verified authoritative sources from industry leaders
|
|
23
|
+
|
|
3
24
|
## 0.48.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/package.json
CHANGED
package/src/config.lib.mjs
CHANGED
|
@@ -64,7 +64,7 @@ export const githubLimits = {
|
|
|
64
64
|
|
|
65
65
|
// Memory and disk configurations
|
|
66
66
|
export const systemLimits = {
|
|
67
|
-
minDiskSpaceMb: parseIntWithDefault('HIVE_MIND_MIN_DISK_SPACE_MB',
|
|
67
|
+
minDiskSpaceMb: parseIntWithDefault('HIVE_MIND_MIN_DISK_SPACE_MB', 2048),
|
|
68
68
|
defaultPageSizeKb: parseIntWithDefault('HIVE_MIND_DEFAULT_PAGE_SIZE_KB', 16),
|
|
69
69
|
};
|
|
70
70
|
|
package/src/hive.config.lib.mjs
CHANGED
|
@@ -128,8 +128,8 @@ export const createYargsConfig = yargsInstance => {
|
|
|
128
128
|
})
|
|
129
129
|
.option('min-disk-space', {
|
|
130
130
|
type: 'number',
|
|
131
|
-
description: 'Minimum required disk space in MB (default:
|
|
132
|
-
default:
|
|
131
|
+
description: 'Minimum required disk space in MB (default: 2048)',
|
|
132
|
+
default: 2048,
|
|
133
133
|
})
|
|
134
134
|
.option('auto-cleanup', {
|
|
135
135
|
type: 'boolean',
|
package/src/hive.mjs
CHANGED
package/src/memory-check.mjs
CHANGED
|
@@ -27,7 +27,7 @@ const lib = await import('./lib.mjs');
|
|
|
27
27
|
const { log: libLog, setLogFile } = lib;
|
|
28
28
|
|
|
29
29
|
// Function to check available disk space
|
|
30
|
-
export const checkDiskSpace = async (minSpaceMB =
|
|
30
|
+
export const checkDiskSpace = async (minSpaceMB = 2048, options = {}) => {
|
|
31
31
|
const log = options.log || libLog;
|
|
32
32
|
|
|
33
33
|
try {
|
|
@@ -290,7 +290,7 @@ export const getResourceSnapshot = async () => {
|
|
|
290
290
|
|
|
291
291
|
// Combined system check function
|
|
292
292
|
export const checkSystem = async (requirements = {}, options = {}) => {
|
|
293
|
-
const { minMemoryMB = 256, minDiskSpaceMB =
|
|
293
|
+
const { minMemoryMB = 256, minDiskSpaceMB = 2048, exitOnFailure = false } = requirements;
|
|
294
294
|
|
|
295
295
|
// Note: log is passed through options to checkDiskSpace and checkRAM
|
|
296
296
|
const results = {
|
|
@@ -336,7 +336,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
|
|
336
336
|
alias: 'd',
|
|
337
337
|
type: 'number',
|
|
338
338
|
description: 'Minimum required disk space in MB',
|
|
339
|
-
default:
|
|
339
|
+
default: 2048,
|
|
340
340
|
})
|
|
341
341
|
.option('exit-on-failure', {
|
|
342
342
|
alias: 'e',
|
package/src/solve.config.lib.mjs
CHANGED
|
@@ -181,8 +181,8 @@ export const createYargsConfig = yargsInstance => {
|
|
|
181
181
|
})
|
|
182
182
|
.option('min-disk-space', {
|
|
183
183
|
type: 'number',
|
|
184
|
-
description: 'Minimum required disk space in MB (default:
|
|
185
|
-
default:
|
|
184
|
+
description: 'Minimum required disk space in MB (default: 2048)',
|
|
185
|
+
default: 2048,
|
|
186
186
|
})
|
|
187
187
|
.option('log-dir', {
|
|
188
188
|
type: 'string',
|
package/src/solve.mjs
CHANGED
|
@@ -211,7 +211,7 @@ await validateAndExitOnInvalidModel(argv.model, tool, safeExit);
|
|
|
211
211
|
// Skip tool CONNECTION validation in dry-run mode or when --skip-tool-connection-check or --no-tool-connection-check is enabled
|
|
212
212
|
// Note: This does NOT skip model validation which is performed above
|
|
213
213
|
const skipToolConnectionCheck = argv.dryRun || argv.skipToolConnectionCheck || argv.toolConnectionCheck === false;
|
|
214
|
-
if (!(await performSystemChecks(argv.minDiskSpace ||
|
|
214
|
+
if (!(await performSystemChecks(argv.minDiskSpace || 2048, skipToolConnectionCheck, argv.model, argv))) {
|
|
215
215
|
await safeExit(1, 'System checks failed');
|
|
216
216
|
}
|
|
217
217
|
// URL validation debug logging
|
|
@@ -42,7 +42,7 @@ const { reportError } = sentryLib;
|
|
|
42
42
|
const { validateClaudeConnection } = claudeLib;
|
|
43
43
|
|
|
44
44
|
// Wrapper function for disk space check using imported module
|
|
45
|
-
const checkDiskSpace = async (minSpaceMB =
|
|
45
|
+
const checkDiskSpace = async (minSpaceMB = 2048) => {
|
|
46
46
|
const result = await memoryCheck.checkDiskSpace(minSpaceMB, { log });
|
|
47
47
|
return result.success;
|
|
48
48
|
};
|
|
@@ -204,7 +204,7 @@ export const validateContinueOnlyOnFeedback = async (argv, isPrUrl, isIssueUrl)
|
|
|
204
204
|
// Perform all system checks (disk space, memory, tool connection, GitHub permissions)
|
|
205
205
|
// Note: skipToolConnection only skips the connection check, not model validation
|
|
206
206
|
// Model validation should be done separately before calling this function
|
|
207
|
-
export const performSystemChecks = async (minDiskSpace =
|
|
207
|
+
export const performSystemChecks = async (minDiskSpace = 2048, skipToolConnection = false, model = 'sonnet', argv = {}) => {
|
|
208
208
|
// Check disk space before proceeding
|
|
209
209
|
const hasEnoughSpace = await checkDiskSpace(minDiskSpace);
|
|
210
210
|
if (!hasEnoughSpace) {
|