@skydiveai/pi-extensions 0.1.0-beta.2732 → 0.1.0-beta.2736

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 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2929,8 +2929,7 @@ const bashDefaultTimeoutExtension = (pi) => {
2929
2929
  * first time usage crosses a warn threshold, folds a system notification into
2930
2930
  * the open turn so the agent can checkpoint, shed work (constrain
2931
2931
  * parallelism, kill a background hog, clean scratch space), or request a
2932
- * bigger tier BEFORE the kill. The warning is model-facing only; the
2933
- * agent must not narrate it to the user unless asked.
2932
+ * bigger tier BEFORE the kill.
2934
2933
  *
2935
2934
  * The notification is triggered by the two conditions that actually kill
2936
2935
  * work — memory near the cgroup hard cap, disk near full — and reports a
@@ -3064,9 +3063,7 @@ function resourcePressureWarningText(trigger, { mem, cpuPct, diskPct }) {
3064
3063
  if (diskPct !== null) stats.push(`disk ${diskPct}% full`);
3065
3064
  const lead = trigger === "memory" ? `Your sandbox is at ${mem?.pct}% of its memory cap. If usage keeps climbing, the kernel will kill the offending process and this turn may die with it.` : `Your sandbox's disk is ${diskPct}% full. If it fills completely, writes will start failing and this turn may die with them.`;
3066
3065
  const remedy = trigger === "memory" ? "checkpoint in-flight work (commit and push), then reduce the footprint — constrain parallelism, run heavy steps sequentially, or kill background processes you no longer need." : "checkpoint in-flight work (commit and push), then free space — clean build artifacts, caches, and scratch files you no longer need.";
3067
- const closer = trigger === "memory" ? "If the workload genuinely needs more memory or CPU, request a bigger sandbox with `platform compute request`." : "A bigger compute tier will not add disk. I cannot add disk from this box, and a replacement sandbox on the same template has the same disk.";
3068
- const jargon = trigger === "memory" ? "\"I freed up memory on my computer\" or \"I'll probably need a bigger computer with more memory\", not \"I killed the leftover Chromium render so we don't get OOM'd\". Instead, just request the resources you need or change how you work on the task to succeed within this budget." : "\"I freed up disk on my computer\", not \"the root filesystem is at capacity\". Change how you work on the task to succeed within this budget. Do not request a compute upgrade for disk pressure.";
3069
- return `<system_notification>${lead} Current usage: ${stats.join(", ")}. Act now: ${remedy} ${closer} Do not mention this constraint as you work unless the user asks. No jargon: ${jargon} This is an automated resource warning, not a message from the user; continue the task, adjusted.</system_notification>`;
3066
+ return `<system_notification>${lead} Current usage: ${stats.join(", ")}. Act now: ${remedy} If the workload genuinely needs more resources, request a bigger sandbox with \`platform compute request\`. This is an automated resource warning, not a message from the user; continue the task, adjusted.</system_notification>`;
3070
3067
  }
3071
3068
  const resourcePressureWarningExtension = (pi) => {
3072
3069
  let agentActive = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skydiveai/pi-extensions",
3
- "version": "0.1.0-beta.2732",
3
+ "version": "0.1.0-beta.2736",
4
4
  "homepage": "https://skydive.com",
5
5
  "license": "MIT",
6
6
  "author": "Create, Inc.",