@bolt-cli/cli 0.15.2 → 0.15.3
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/lib/agent.js +11 -2
- package/package.json +36 -36
package/lib/agent.js
CHANGED
|
@@ -109,8 +109,17 @@ function summarizeDetail(detail, seenDetails = null) {
|
|
|
109
109
|
return s;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
// The reply-discipline line sits at the VERY END of the first prompt, after
|
|
113
|
+
// the ~12KB protocol. Every saved session showed the same failure: turn 1
|
|
114
|
+
// returned zero tokens, then the empty-reply nudge (also at the end) made the
|
|
115
|
+
// model work immediately. The relay runs a reasoning model whose hidden
|
|
116
|
+
// thinking is not streamed; with the task buried mid-prompt it spent the whole
|
|
117
|
+
// reply there and emitted nothing. This says, in the position that demonstrably
|
|
118
|
+
// works, to answer visibly now - removing the wasted ~30s inference entirely.
|
|
119
|
+
const OUTPUT_DIRECTIVE = `The operator's task above is still active - do it in THIS reply. Emit operator-visible text only: either plain prose or a fenced tool block. Internal reasoning and hidden thinking are NOT delivered to the operator and leave them staring at an empty screen - do not spend the reply on them. If you need to think, first emit a short visible progress line, then continue. Never end a turn with no visible output.`;
|
|
120
|
+
|
|
112
121
|
function buildAgentPrompt({ target, objective, evidence, history, memory, session, account }) {
|
|
113
|
-
return `${api.buildPrompt({ target, objective, evidence, history, memory, session, account })}\n\n${TOOL_PROTOCOL}`;
|
|
122
|
+
return `${api.buildPrompt({ target, objective, evidence, history, memory, session, account })}\n\n${TOOL_PROTOCOL}\n\n${OUTPUT_DIRECTIVE}`;
|
|
114
123
|
}
|
|
115
124
|
|
|
116
125
|
const EMPTY_REPLY_NUDGE = `Your previous reply arrived at this terminal empty - no prose and no tool block. That is a protocol failure, not an answer. The ORIGINAL TASK is still in this message, above this note: do it now. Do not ask what the task is, do not ask for a target, and do not describe what you could do. Do not re-send internal reasoning, 自知 blocks or tool call syntax in any other shape. Either continue the task with one or more \`\`\`tool blocks, or give the finished answer in plain prose.`;
|
|
@@ -366,4 +375,4 @@ function toolFenceWriter(write) {
|
|
|
366
375
|
return toolparse.createMarkupFilter(write);
|
|
367
376
|
}
|
|
368
377
|
|
|
369
|
-
module.exports = { TOOL_PROTOCOL, TOOL_PROTOCOL_BODY, TERMINAL_BEGIN, TERMINAL_END, DEFAULT_MAX_ITERS, buildAgentPrompt, buildFollowup, runAgentLoop, truncateResult, summarizeDetail, toolFenceWriter, scrubOutbound };
|
|
378
|
+
module.exports = { TOOL_PROTOCOL, TOOL_PROTOCOL_BODY, TERMINAL_BEGIN, TERMINAL_END, OUTPUT_DIRECTIVE, DEFAULT_MAX_ITERS, buildAgentPrompt, buildFollowup, runAgentLoop, truncateResult, summarizeDetail, toolFenceWriter, scrubOutbound };
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bolt-cli/cli",
|
|
3
|
-
"version": "0.15.
|
|
4
|
-
"description": "Bolt terminal CLI — authorized testing and tool-building from your terminal or VS Code.",
|
|
5
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
-
"type": "commonjs",
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": ">=18"
|
|
9
|
-
},
|
|
10
|
-
"bin": {
|
|
11
|
-
"bolt": "bin/bolt.js"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"bin/",
|
|
15
|
-
"lib/",
|
|
16
|
-
"templates/",
|
|
17
|
-
"README.md",
|
|
18
|
-
"LICENSE"
|
|
19
|
-
],
|
|
20
|
-
"keywords": [
|
|
21
|
-
"security",
|
|
22
|
-
"pentest",
|
|
23
|
-
"red-team",
|
|
24
|
-
"nmap",
|
|
25
|
-
"bolt"
|
|
26
|
-
],
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/WarrenMu/Beera-Cyber-new-.git",
|
|
30
|
-
"directory": "cli"
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://github.com/WarrenMu/Beera-Cyber-new-#readme",
|
|
33
|
-
"publishConfig": {
|
|
34
|
-
"access": "public"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bolt-cli/cli",
|
|
3
|
+
"version": "0.15.3",
|
|
4
|
+
"description": "Bolt terminal CLI — authorized testing and tool-building from your terminal or VS Code.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"bolt": "bin/bolt.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"bin/",
|
|
15
|
+
"lib/",
|
|
16
|
+
"templates/",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"security",
|
|
22
|
+
"pentest",
|
|
23
|
+
"red-team",
|
|
24
|
+
"nmap",
|
|
25
|
+
"bolt"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/WarrenMu/Beera-Cyber-new-.git",
|
|
30
|
+
"directory": "cli"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/WarrenMu/Beera-Cyber-new-#readme",
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
}
|
|
36
|
+
}
|