@link-assistant/hive-mind 1.78.0 → 1.78.2
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 +37 -0
- package/package.json +1 -1
- package/src/agent.lib.mjs +2 -1
- package/src/claude.lib.mjs +2 -2
- package/src/claude.runtime-switch.lib.mjs +2 -1
- package/src/codex.lib.mjs +2 -1
- package/src/config.lib.mjs +2 -1
- package/src/contributing-guidelines.lib.mjs +2 -1
- package/src/gemini.lib.mjs +2 -1
- package/src/github-entity-validation.lib.mjs +2 -1
- package/src/github-error-reporter.lib.mjs +2 -1
- package/src/github.batch.lib.mjs +2 -1
- package/src/github.lib.mjs +2 -1
- package/src/handoff-skill.lib.mjs +2 -1
- package/src/hive.mjs +11 -10
- package/src/interactive-codex-events.lib.mjs +167 -0
- package/src/interactive-mode.lib.mjs +62 -152
- package/src/interactive-mode.shared.lib.mjs +1 -0
- package/src/interactive-system-events.lib.mjs +224 -0
- package/src/isolation-runner.lib.mjs +2 -1
- package/src/lenv-reader.lib.mjs +2 -1
- package/src/lib.mjs +2 -1
- package/src/lino.lib.mjs +2 -1
- package/src/local-ci-checks.lib.mjs +2 -1
- package/src/log-upload.lib.mjs +2 -1
- package/src/memory-check.mjs +2 -1
- package/src/models/index.mjs +2 -1
- package/src/npm-global-prefix.lib.mjs +160 -0
- package/src/opencode.lib.mjs +2 -1
- package/src/playwright-mcp.lib.mjs +2 -1
- package/src/protect-branch.mjs +2 -1
- package/src/queue-config.lib.mjs +2 -1
- package/src/qwen.lib.mjs +2 -1
- package/src/review.mjs +2 -1
- package/src/reviewers-hive.mjs +2 -1
- package/src/session-monitor.lib.mjs +82 -22
- package/src/solve.auto-continue.lib.mjs +2 -1
- package/src/solve.auto-ensure.lib.mjs +2 -1
- package/src/solve.auto-merge-helpers.lib.mjs +2 -1
- package/src/solve.auto-merge.lib.mjs +2 -1
- package/src/solve.bootstrap.lib.mjs +2 -1
- package/src/solve.escalate.lib.mjs +2 -1
- package/src/solve.execution.lib.mjs +2 -1
- package/src/solve.fork-detection.lib.mjs +2 -1
- package/src/solve.fork-sync.lib.mjs +2 -1
- package/src/solve.keep-working.lib.mjs +2 -1
- package/src/solve.mjs +2 -2
- package/src/solve.repository.lib.mjs +2 -1
- package/src/solve.restart-shared.lib.mjs +2 -1
- package/src/solve.results.lib.mjs +2 -1
- package/src/solve.validation.lib.mjs +2 -1
- package/src/solve.watch.lib.mjs +2 -1
- package/src/telegram-bot.mjs +2 -1
- package/src/token-sanitization.lib.mjs +2 -1
- package/src/tool-comments.lib.mjs +2 -1
- package/src/use-m-bootstrap.lib.mjs +23 -0
- package/src/useless-tools.lib.mjs +2 -1
- package/src/youtrack/youtrack.lib.mjs +2 -1
package/src/telegram-bot.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { ensureUseM } from './use-m-bootstrap.lib.mjs';
|
|
2
3
|
// Early exit for --version (issue #1318: avoid dotenvx MISSING_ENV_FILE warnings)
|
|
3
4
|
if (process.argv.includes('--version')) {
|
|
4
5
|
const v = await import('./version.lib.mjs').then(m => m.getVersion()).catch(() => 'unknown');
|
|
@@ -7,7 +8,7 @@ if (process.argv.includes('--version')) {
|
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
if (typeof use === 'undefined') {
|
|
10
|
-
|
|
11
|
+
await ensureUseM();
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
const { lino } = await import('./lino.lib.mjs');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { ensureUseM } from './use-m-bootstrap.lib.mjs';
|
|
2
3
|
/**
|
|
3
4
|
* Token sanitization utilities for log content
|
|
4
5
|
* Dual approach: Uses both secretlint AND custom patterns for comprehensive coverage
|
|
@@ -240,7 +241,7 @@ export const getGitHubTokensFromFiles = async () => {
|
|
|
240
241
|
*/
|
|
241
242
|
export const getGitHubTokensFromCommand = async () => {
|
|
242
243
|
if (typeof globalThis.use === 'undefined') {
|
|
243
|
-
|
|
244
|
+
await ensureUseM();
|
|
244
245
|
}
|
|
245
246
|
const { $ } = await globalThis.use('command-stream');
|
|
246
247
|
const tokens = [];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { ensureUseM } from './use-m-bootstrap.lib.mjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Centralized definitions for GitHub comments posted by solve.mjs itself
|
|
@@ -290,7 +291,7 @@ export const postTrackedCommentFromFile = async ({ $, owner, repo, targetNumber,
|
|
|
290
291
|
throw new Error('postTrackedCommentFromFile requires a command-stream $ helper');
|
|
291
292
|
}
|
|
292
293
|
if (typeof globalThis.use === 'undefined') {
|
|
293
|
-
|
|
294
|
+
await ensureUseM();
|
|
294
295
|
}
|
|
295
296
|
const fs = (await globalThis.use('fs')).promises;
|
|
296
297
|
let body;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { ensureWritableNpmGlobalPrefix } from './npm-global-prefix.lib.mjs';
|
|
4
|
+
|
|
5
|
+
const defaultFetchUseMCode = async () => (await fetch('https://unpkg.com/use-m/use.js')).text();
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Load the use-m bootstrap after npm's global prefix has been made safe for
|
|
9
|
+
* use-m's Node resolver.
|
|
10
|
+
*
|
|
11
|
+
* @param {object} [options]
|
|
12
|
+
* @param {(message: string) => void} [options.log]
|
|
13
|
+
* @param {() => Promise<string>} [options.fetchUseMCode]
|
|
14
|
+
* @returns {Promise<Function>} The global use-m `use` function.
|
|
15
|
+
*/
|
|
16
|
+
export const ensureUseM = async (options = {}) => {
|
|
17
|
+
const { log = message => console.log(message), fetchUseMCode = defaultFetchUseMCode } = options;
|
|
18
|
+
await ensureWritableNpmGlobalPrefix({ log });
|
|
19
|
+
if (typeof globalThis.use === 'undefined') {
|
|
20
|
+
globalThis.use = (await eval(await fetchUseMCode())).use;
|
|
21
|
+
}
|
|
22
|
+
return globalThis.use;
|
|
23
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { ensureUseM } from './use-m-bootstrap.lib.mjs';
|
|
2
3
|
// Useless Claude Code tools and MCP servers for autonomous headless workflows.
|
|
3
4
|
//
|
|
4
5
|
// Hive-mind runs `claude` inside Docker with `--print --dangerously-skip-permissions`
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
// Related issue: https://github.com/link-assistant/hive-mind/issues/1627
|
|
18
19
|
|
|
19
20
|
if (typeof globalThis.use === 'undefined') {
|
|
20
|
-
|
|
21
|
+
await ensureUseM();
|
|
21
22
|
}
|
|
22
23
|
const fs = (await use('fs')).promises;
|
|
23
24
|
const os = await use('os');
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { ensureUseM } from '../use-m-bootstrap.lib.mjs';
|
|
2
3
|
// YouTrack-related utility functions
|
|
3
4
|
|
|
4
5
|
// Check if use is already defined (when imported from other modules)
|
|
5
6
|
// If not, fetch it (when running standalone)
|
|
6
7
|
if (typeof use === 'undefined') {
|
|
7
|
-
|
|
8
|
+
await ensureUseM();
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
// Import log and other utilities from general lib
|