blun-king-cli 9.1.189 → 9.1.190
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/bin/loop-event-record-policy.cjs +14 -0
- package/blun.mjs +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function projectLoopEventForRecord(event) {
|
|
4
|
+
if (
|
|
5
|
+
event?.type !== 'tool.call'
|
|
6
|
+
|| (!Object.prototype.hasOwnProperty.call(event, 'display')
|
|
7
|
+
&& !Object.prototype.hasOwnProperty.call(event, 'description'))
|
|
8
|
+
) return event;
|
|
9
|
+
|
|
10
|
+
const { display: _display, description: _description, ...recordedEvent } = event;
|
|
11
|
+
return recordedEvent;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = { projectLoopEventForRecord };
|
package/blun.mjs
CHANGED
|
@@ -75986,7 +75986,7 @@ var init_full = __esmMin((() => {
|
|
|
75986
75986
|
}));
|
|
75987
75987
|
//#endregion
|
|
75988
75988
|
//#region ../../packages/agent-core/src/agent/compaction/micro.ts
|
|
75989
|
-
var selectMicroCompactionCutoff, MICRO_COMPACTION_RECENT_MESSAGES, MICRO_COMPACTION_TOOL_ARGUMENTS_ENABLED, MICRO_COMPACTION_TOOL_ARGUMENT_MIN_TOKENS, isPersistedToolResultReference, projectHistoricalUnaddressedTelegramMessages, dedupeRepeatedUserMessages, projectRepeatedAssistantResponses, compactHistoricalSkillActivations, dedupeRecurringCronWakeups, dedupeRepeatedInjections, DEFAULT_CONFIG, MicroCompaction;
|
|
75989
|
+
var selectMicroCompactionCutoff, MICRO_COMPACTION_RECENT_MESSAGES, MICRO_COMPACTION_TOOL_ARGUMENTS_ENABLED, MICRO_COMPACTION_TOOL_ARGUMENT_MIN_TOKENS, isPersistedToolResultReference, projectHistoricalUnaddressedTelegramMessages, dedupeRepeatedUserMessages, projectRepeatedAssistantResponses, compactHistoricalSkillActivations, dedupeRecurringCronWakeups, dedupeRepeatedInjections, projectLoopEventForRecord, DEFAULT_CONFIG, MicroCompaction;
|
|
75990
75990
|
var init_micro = __esmMin((() => {
|
|
75991
75991
|
({ selectMicroCompactionCutoff, MICRO_COMPACTION_RECENT_MESSAGES, MICRO_COMPACTION_TOOL_ARGUMENTS_ENABLED, MICRO_COMPACTION_TOOL_ARGUMENT_MIN_TOKENS } = createRequire(import.meta.url)("./bin/micro-compaction-policy.cjs"));
|
|
75992
75992
|
({ isPersistedToolResultReference } = createRequire(import.meta.url)("./bin/tool-result-offload-policy.cjs"));
|
|
@@ -75995,6 +75995,7 @@ var init_micro = __esmMin((() => {
|
|
|
75995
75995
|
({ projectRepeatedAssistantResponses } = createRequire(import.meta.url)("./bin/repeated-assistant-response-policy.cjs"));
|
|
75996
75996
|
({ compactHistoricalSkillActivations } = createRequire(import.meta.url)("./bin/skill-activation-performance-policy.cjs"));
|
|
75997
75997
|
({ dedupeRecurringCronWakeups, dedupeRepeatedInjections } = createRequire(import.meta.url)("./bin/repeated-injection-projection.cjs"));
|
|
75998
|
+
({ projectLoopEventForRecord } = createRequire(import.meta.url)("./bin/loop-event-record-policy.cjs"));
|
|
75998
75999
|
init_tokens();
|
|
75999
76000
|
DEFAULT_CONFIG = {
|
|
76000
76001
|
keepRecentMessages: MICRO_COMPACTION_RECENT_MESSAGES,
|
|
@@ -79084,7 +79085,7 @@ var init_context$2 = __esmMin((() => {
|
|
|
79084
79085
|
appendLoopEvent(event) {
|
|
79085
79086
|
this.agent.records.logRecord({
|
|
79086
79087
|
type: "context.append_loop_event",
|
|
79087
|
-
event
|
|
79088
|
+
event: projectLoopEventForRecord(event)
|
|
79088
79089
|
});
|
|
79089
79090
|
switch (event.type) {
|
|
79090
79091
|
case "step.begin": {
|