agenr 0.7.7 → 0.7.8
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/dist/cli-main.js
CHANGED
|
@@ -13777,7 +13777,7 @@ var TOOL_DEFINITIONS = [
|
|
|
13777
13777
|
type: "integer",
|
|
13778
13778
|
minimum: 1,
|
|
13779
13779
|
maximum: 10,
|
|
13780
|
-
default:
|
|
13780
|
+
default: 7
|
|
13781
13781
|
},
|
|
13782
13782
|
source: { type: "string" },
|
|
13783
13783
|
tags: {
|
|
@@ -14031,7 +14031,7 @@ function parseScope(value) {
|
|
|
14031
14031
|
return normalized;
|
|
14032
14032
|
}
|
|
14033
14033
|
function normalizeImportance2(value) {
|
|
14034
|
-
const parsed = value === void 0 ?
|
|
14034
|
+
const parsed = value === void 0 ? 7 : Number(value);
|
|
14035
14035
|
if (!Number.isInteger(parsed) || parsed < 1 || parsed > 10) {
|
|
14036
14036
|
throw new RpcError(JSON_RPC_INVALID_PARAMS, "importance must be an integer between 1 and 10");
|
|
14037
14037
|
}
|
|
@@ -631,18 +631,19 @@ var plugin = {
|
|
|
631
631
|
async (_event, ctx) => {
|
|
632
632
|
try {
|
|
633
633
|
const sessionKey = ctx.sessionKey ?? "";
|
|
634
|
+
const dedupeKey = ctx.sessionId ?? sessionKey;
|
|
634
635
|
if (shouldSkipSession(sessionKey)) {
|
|
635
636
|
return;
|
|
636
637
|
}
|
|
637
|
-
if (
|
|
638
|
+
if (dedupeKey && hasSeenSession(dedupeKey)) {
|
|
638
639
|
return;
|
|
639
640
|
}
|
|
640
641
|
const config = api.pluginConfig;
|
|
641
642
|
if (config?.enabled === false) {
|
|
642
643
|
return;
|
|
643
644
|
}
|
|
644
|
-
if (
|
|
645
|
-
markSessionSeen(
|
|
645
|
+
if (dedupeKey) {
|
|
646
|
+
markSessionSeen(dedupeKey);
|
|
646
647
|
}
|
|
647
648
|
const agenrPath = resolveAgenrPath(config);
|
|
648
649
|
const budget = resolveBudget(config);
|
package/openclaw.plugin.json
CHANGED