@skydiveai/pi-extensions 0.1.0-beta.2886 → 0.1.0-beta.2888

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2721,7 +2721,7 @@ function startFeatureFlagPoller() {
2721
2721
  }
2722
2722
  //#endregion
2723
2723
  //#region src/closing-text-loop.ts
2724
- const CLOSING_TEXT_NUDGE = "<system_notification>You ended that turn on a tool call without writing any reply to the user. Write a brief closing message now: what you did and the outcome. Do not call any more tools unless you genuinely still need to.</system_notification>";
2724
+ const CLOSING_TEXT_NUDGE = "<system_notification>You ended that turn without writing any reply to the user. Write a brief reply now: what you did and the outcome, or the answer to their question. Do not call any more tools unless you genuinely still need to.</system_notification>";
2725
2725
  function isNonEmptyText(block) {
2726
2726
  return block.type === "text" && typeof block.text === "string" && block.text.trim().length > 0;
2727
2727
  }
@@ -2766,7 +2766,7 @@ async function runClosingTextLoop({ session, log, enabled = getPolledFlag("closi
2766
2766
  if (!enabled) return;
2767
2767
  if (turnEndedAbnormally(session.messages)) return;
2768
2768
  if (!turnEndedWithoutVisibleText(session.messages)) return;
2769
- log.info({ event: "closing_text_continuation_injected" }, "turn ended on a tool call with no visible reply; injecting a closing-text continuation");
2769
+ log.info({ event: "closing_text_continuation_injected" }, "turn produced no visible reply; injecting a closing-text continuation");
2770
2770
  await session.sendCustomMessage({
2771
2771
  customType: "closing-text-nudge",
2772
2772
  content: CLOSING_TEXT_NUDGE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skydiveai/pi-extensions",
3
- "version": "0.1.0-beta.2886",
3
+ "version": "0.1.0-beta.2888",
4
4
  "homepage": "https://skydive.com",
5
5
  "license": "MIT",
6
6
  "author": "Create, Inc.",