aamp-openclaw-plugin 0.1.17 → 0.1.18

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/index.js CHANGED
@@ -16657,6 +16657,11 @@ Suggested options: ${help.suggestedOptions.join(", ")}` : ""}`,
16657
16657
  api.on(
16658
16658
  "before_prompt_build",
16659
16659
  (_event, ctx) => {
16660
+ if (pendingTasks.size > 0) {
16661
+ api.logger.info(
16662
+ `[AAMP] before_prompt_build \u2014 pending=${pendingTasks.size} session=${ctx?.sessionKey ?? "unknown"} currentSession=${currentSessionKey}`
16663
+ );
16664
+ }
16660
16665
  if (ctx?.sessionKey && !String(ctx.sessionKey).startsWith("aamp:")) {
16661
16666
  currentSessionKey = ctx.sessionKey;
16662
16667
  }
@@ -16752,6 +16757,9 @@ ${task.contextLinks.map((l) => ` - ${l}`).join("\n")}` : "",
16752
16757
  pendingTasks.size > 1 ? `
16753
16758
  (+${pendingTasks.size - 1} more tasks queued)` : ""
16754
16759
  ].filter(Boolean).join("\n");
16760
+ api.logger.info(
16761
+ `[AAMP] Injecting pending task into prompt \u2014 taskId=${task.taskId} notification=${isNotification ? "yes" : "no"} remaining=${pendingTasks.size}`
16762
+ );
16755
16763
  return { prependContext: lines };
16756
16764
  },
16757
16765
  { priority: 5 }