blun-king-cli 9.1.550 → 9.1.562
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/LIESMICH.txt +2 -2
- package/README.md +1 -1
- package/agent-spine-plugin/scripts/check-hosts.js +196 -0
- package/bin/compaction-transaction-policy.cjs +122 -0
- package/bin/default-model-output-budget-policy.cjs +28 -0
- package/bin/file-observation-policy.cjs +133 -0
- package/bin/launcher-runtime.js +0 -1
- package/bin/micro-compaction-policy.cjs +64 -0
- package/bin/mnemo-connect-heartbeat.cjs +1 -3
- package/bin/retry-checkpoint-policy.cjs +13 -0
- package/bin/session-checkpoint-policy.cjs +25 -0
- package/bin/startup-preferences.cjs +1 -0
- package/bin/tool-file-persistence.cjs +141 -0
- package/bin/tool-result-offload-policy.cjs +12 -33
- package/bin/turn-thinking-policy.cjs +2 -26
- package/bin/update-notice.js +16 -0
- package/blun.mjs +482 -170
- package/package.json +2 -1
- package/telegram-plugin/bin/telegram-mnemo-capture.cjs +1 -3
- package/bin/empty-response-retry-policy.cjs +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blun-king-cli",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.562",
|
|
4
4
|
"description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"agent-spine-plugin/hooks/",
|
|
46
46
|
"agent-spine-plugin/LICENSE",
|
|
47
47
|
"agent-spine-plugin/package.json",
|
|
48
|
+
"agent-spine-plugin/scripts/check-hosts.js",
|
|
48
49
|
"agent-spine-plugin/skill/",
|
|
49
50
|
"agent-spine-plugin/skills/",
|
|
50
51
|
"agent-spine-plugin/src/",
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const fs = require('node:fs');
|
|
4
4
|
const path = require('node:path');
|
|
5
5
|
|
|
6
|
-
const DEFAULT_HUB_URL = 'http://100.85.21.103:7117';
|
|
7
6
|
const DEFAULT_TIMEOUT_MS = 5_000;
|
|
8
7
|
const DEFAULT_RETRY_MS = 15_000;
|
|
9
8
|
|
|
@@ -42,7 +41,7 @@ function readProfileMnemoConfig(profileHome) {
|
|
|
42
41
|
const configuredUrl = cleanString(env.BLUN_MNEMO_HUB_URL)
|
|
43
42
|
|| cleanString(env.MNEMO_HUB_URL)
|
|
44
43
|
|| cleanString(env.MNEMO_URL);
|
|
45
|
-
const baseUrl = configuredUrl ? cleanHubUrl(configuredUrl) :
|
|
44
|
+
const baseUrl = configuredUrl ? cleanHubUrl(configuredUrl) : null;
|
|
46
45
|
return baseUrl ? { agentName, baseUrl } : null;
|
|
47
46
|
} catch {
|
|
48
47
|
return null;
|
|
@@ -289,7 +288,6 @@ function createTelegramMnemoCapture(options = {}) {
|
|
|
289
288
|
}
|
|
290
289
|
|
|
291
290
|
module.exports = {
|
|
292
|
-
DEFAULT_HUB_URL,
|
|
293
291
|
buildTelegramCapturePayload,
|
|
294
292
|
createTelegramMnemoCapture,
|
|
295
293
|
isLoopOnlyMessage,
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const EMPTY_LENGTH_EFFORT_DOWNGRADE = Object.freeze({
|
|
4
|
-
max: 'high',
|
|
5
|
-
xhigh: 'high',
|
|
6
|
-
high: 'low',
|
|
7
|
-
medium: 'low',
|
|
8
|
-
low: 'off',
|
|
9
|
-
minimal: 'off',
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
function nextThinkingEffortForExhaustedEmpty(input = {}) {
|
|
13
|
-
const budget = Number(input.maxCompletionTokens);
|
|
14
|
-
const completion = Number(input.completionTokens);
|
|
15
|
-
if (
|
|
16
|
-
input.emptyResponseKind !== 'length'
|
|
17
|
-
|| !Number.isFinite(budget)
|
|
18
|
-
|| budget <= 0
|
|
19
|
-
|| !Number.isFinite(completion)
|
|
20
|
-
|| completion < budget
|
|
21
|
-
) return undefined;
|
|
22
|
-
|
|
23
|
-
return EMPTY_LENGTH_EFFORT_DOWNGRADE[String(input.thinkingEffort || '').toLowerCase()];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
module.exports = {
|
|
27
|
-
EMPTY_LENGTH_EFFORT_DOWNGRADE,
|
|
28
|
-
nextThinkingEffortForExhaustedEmpty,
|
|
29
|
-
};
|