@link-assistant/hive-mind 0.45.0 → 0.46.0
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/claude.prompts.lib.mjs +1 -1
- package/src/hive.config.lib.mjs +5 -0
- package/src/hive.mjs +3 -3
- package/src/solve.config.lib.mjs +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 0.46.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a436ee4: Add --prompt-case-studies CLI option for comprehensive issue analysis. When enabled, instructs the AI to download logs, create case study documentation in ./docs/case-studies/issue-{id}/, perform deep analysis, reconstruct timeline, identify root causes, and propose solutions. Works only with --tool claude, disabled by default.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 1110e7a: Add comprehensive changeset documentation to CONTRIBUTING.md explaining how contributors should use the changesets workflow for version management and changelog generation
|
|
12
|
+
|
|
3
13
|
## 0.45.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ Initial research.
|
|
|
145
145
|
- When you are fixing a bug, please make sure you first find the actual root cause, do as many experiments as needed.
|
|
146
146
|
- When you are fixing a bug and code does not have enough tracing/logs, add them and make sure they stay in the code, but are switched off by default.
|
|
147
147
|
- When you need latest comments on pull request (sorted newest first), use appropriate GitHub API commands.
|
|
148
|
-
- When you need latest comments on issue (sorted newest first), use appropriate GitHub API commands.${argv && argv.promptGeneralPurposeSubAgent ? '\n - When the task is big and requires processing of lots of files or folders, you should use the `general-purpose` sub agents to delegate work. Each separate file or folder can be delegated to a sub agent for more efficient processing.' : ''}
|
|
148
|
+
- When you need latest comments on issue (sorted newest first), use appropriate GitHub API commands.${argv && argv.promptGeneralPurposeSubAgent ? '\n - When the task is big and requires processing of lots of files or folders, you should use the `general-purpose` sub agents to delegate work. Each separate file or folder can be delegated to a sub agent for more efficient processing.' : ''}${argv && argv.promptCaseStudies ? `\n - When working on this issue, create a comprehensive case study in the ./docs/case-studies/issue-${issueNumber}/ directory. Download all logs and data related to the issue to the repository. Perform deep case study analysis by searching online for additional facts and data, reconstructing the timeline/sequence of events, identifying root causes of the problem, and proposing possible solutions. Include files like README.md (executive summary, problem statement, timeline, root cause), TECHNICAL_SUMMARY.md (deep technical analysis), ANALYSIS.md (detailed investigation findings), improvements.md (proposed solutions), and supporting logs/data files.` : ''}
|
|
149
149
|
|
|
150
150
|
Solution development and testing.
|
|
151
151
|
- When issue is solvable, implement code with tests.
|
package/src/hive.config.lib.mjs
CHANGED
|
@@ -261,6 +261,11 @@ export const createYargsConfig = (yargsInstance) => {
|
|
|
261
261
|
description: 'Enable automatic issue creation for spotted bugs/errors not related to main task. Issues will include reproducible examples, workarounds, and fix suggestions. Works for both current and third-party repositories. Only supported for --tool claude.',
|
|
262
262
|
default: false
|
|
263
263
|
})
|
|
264
|
+
.option('prompt-case-studies', {
|
|
265
|
+
type: 'boolean',
|
|
266
|
+
description: 'Create comprehensive case study documentation for the issue including logs, analysis, timeline, root cause investigation, and proposed solutions. Organizes findings into ./docs/case-studies/issue-{id}/ directory. Only supported for --tool claude.',
|
|
267
|
+
default: false
|
|
268
|
+
})
|
|
264
269
|
.parserConfiguration({
|
|
265
270
|
'boolean-negation': true,
|
|
266
271
|
'strip-dashed': false,
|
package/src/hive.mjs
CHANGED
|
@@ -758,7 +758,7 @@ async function worker(workerId) {
|
|
|
758
758
|
const interactiveModeFlag = argv.interactiveMode ? ' --interactive-mode' : '';
|
|
759
759
|
const promptExploreSubAgentFlag = argv.promptExploreSubAgent ? ' --prompt-explore-sub-agent' : '';
|
|
760
760
|
const promptIssueReportingFlag = argv.promptIssueReporting ? ' --prompt-issue-reporting' : '';
|
|
761
|
-
|
|
761
|
+
const promptCaseStudiesFlag = argv.promptCaseStudies ? ' --prompt-case-studies' : '';
|
|
762
762
|
// Use spawn to get real-time streaming output while avoiding command-stream's automatic quote addition
|
|
763
763
|
const { spawn } = await import('child_process');
|
|
764
764
|
|
|
@@ -808,9 +808,10 @@ async function worker(workerId) {
|
|
|
808
808
|
if (argv.interactiveMode) args.push('--interactive-mode');
|
|
809
809
|
if (argv.promptExploreSubAgent) args.push('--prompt-explore-sub-agent');
|
|
810
810
|
if (argv.promptIssueReporting) args.push('--prompt-issue-reporting');
|
|
811
|
+
if (argv.promptCaseStudies) args.push('--prompt-case-studies');
|
|
811
812
|
|
|
812
813
|
// Log the actual command being executed so users can investigate/reproduce
|
|
813
|
-
const command = `${solveCommand} "${issueUrl}" --model ${argv.model}${toolFlag}${forkFlag}${autoForkFlag}${verboseFlag}${attachLogsFlag}${targetBranchFlag}${logDirFlag}${dryRunFlag}${skipToolConnectionCheckFlag}${autoContinueFlag}${thinkFlag}${promptPlanSubAgentFlag}${noSentryFlag}${watchFlag}${prefixForkNameWithOwnerNameFlag}${interactiveModeFlag}${promptExploreSubAgentFlag}${promptIssueReportingFlag}`;
|
|
814
|
+
const command = `${solveCommand} "${issueUrl}" --model ${argv.model}${toolFlag}${forkFlag}${autoForkFlag}${verboseFlag}${attachLogsFlag}${targetBranchFlag}${logDirFlag}${dryRunFlag}${skipToolConnectionCheckFlag}${autoContinueFlag}${thinkFlag}${promptPlanSubAgentFlag}${noSentryFlag}${watchFlag}${prefixForkNameWithOwnerNameFlag}${interactiveModeFlag}${promptExploreSubAgentFlag}${promptIssueReportingFlag}${promptCaseStudiesFlag}`;
|
|
814
815
|
await log(` 📋 Command: ${command}`);
|
|
815
816
|
|
|
816
817
|
let exitCode = 0;
|
|
@@ -1497,5 +1498,4 @@ try {
|
|
|
1497
1498
|
console.error('\nPlease report this issue at: https://github.com/link-assistant/hive-mind/issues');
|
|
1498
1499
|
process.exit(1);
|
|
1499
1500
|
}
|
|
1500
|
-
|
|
1501
1501
|
} // End of main execution block
|
package/src/solve.config.lib.mjs
CHANGED
|
@@ -265,6 +265,11 @@ export const createYargsConfig = (yargsInstance) => {
|
|
|
265
265
|
description: 'Enable automatic issue creation for spotted bugs/errors not related to main task. Issues will include reproducible examples, workarounds, and fix suggestions. Works for both current and third-party repositories. Only supported for --tool claude.',
|
|
266
266
|
default: false
|
|
267
267
|
})
|
|
268
|
+
.option('prompt-case-studies', {
|
|
269
|
+
type: 'boolean',
|
|
270
|
+
description: 'Create comprehensive case study documentation for the issue including logs, analysis, timeline, root cause investigation, and proposed solutions. Organizes findings into ./docs/case-studies/issue-{id}/ directory. Only supported for --tool claude.',
|
|
271
|
+
default: false
|
|
272
|
+
})
|
|
268
273
|
.parserConfiguration({
|
|
269
274
|
'boolean-negation': true
|
|
270
275
|
})
|