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: 5
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 ? 5 : Number(value);
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
  }
@@ -7,6 +7,7 @@ type BeforeAgentStartEvent = {
7
7
  };
8
8
  type PluginHookAgentContext = {
9
9
  sessionKey?: string;
10
+ sessionId?: string;
10
11
  workspaceDir?: string;
11
12
  [key: string]: unknown;
12
13
  };
@@ -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 (sessionKey && hasSeenSession(sessionKey)) {
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 (sessionKey) {
645
- markSessionSeen(sessionKey);
645
+ if (dedupeKey) {
646
+ markSessionSeen(dedupeKey);
646
647
  }
647
648
  const agenrPath = resolveAgenrPath(config);
648
649
  const budget = resolveBudget(config);
@@ -2,7 +2,7 @@
2
2
  "id": "agenr",
3
3
  "name": "agenr Memory",
4
4
  "description": "Local memory layer - injects agenr context at session start",
5
- "version": "0.7.5",
5
+ "version": "0.7.7",
6
6
  "skills": [
7
7
  "skills"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenr",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "openclaw": {
5
5
  "extensions": [
6
6
  "dist/openclaw-plugin/index.js"