pi-fabric 0.132.9 → 0.133.0

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/README.md CHANGED
@@ -146,6 +146,14 @@ Pi loads advanced patterns after direct user invocation. Run `/skill:fabric-guid
146
146
 
147
147
  Execution references stay progressive: the model loads the selected kernel's skill after argument-shape errors or when exact advanced contracts are needed. Kernel changes reload Pi so execution and the selected physical skill tree switch together; see [kernel-specific skills](docs/kernels.md#kernel-specific-skills-and-guidance).
148
148
 
149
+ ## Pasted images
150
+
151
+ Clipboard screenshots are attached when you submit the prompt, so the model can inspect them on its first response instead of spending a turn calling `read`. Fabric recognizes Pi-generated `pi-clipboard-<uuid>` image files directly in the OS temporary directory and keeps `[Attached image: <path>]` as provenance. Existing image attachments are preserved and duplicate bytes are attached only once.
152
+
153
+ Native vision models receive the image directly. With [pi-vision-handoff](https://github.com/monotykamary/pi-vision-handoff), text-only models receive its description before their first request. Install the companion extension and configure a describer for that route; Fabric does not make its own vision-model calls.
154
+
155
+ This runs only for interactive input, including queued steering/follow-up prompts, not RPC or extension-injected text. Ordinary image paths, inline/fenced code, and arbitrary temporary files still require an explicit read. Missing, unsupported, oversized, or symlinked clipboard files stay as paths with a warning. Automatic attachments are limited to 8 images, 20 MiB per file and 32 MiB of raw image bytes per message; Pi applies its own normalization and model limits afterwards. Image handling loads only at first use, not at startup.
156
+
149
157
  ## Agent conversations
150
158
 
151
159
  Press **↓** in an empty editor and **Enter** on an agent in the list at the bottom of the screen, or run **`/fabric chat <agent-id-or-name>`**, to open a live, full-screen child conversation with a multiline editor. Send steering or follow-ups directly, switch between nested agents, and return to Main without stopping its work. Drafts and scroll positions stay with each conversation. Completed one-shot agents are read-only; persistent actors accept further messages. Drag to select transcript text, use `/copy` or `/copy selection`, and type `/help` for the small set of preview-local commands with slash completion. See [focused conversations](docs/interface.md#focused-conversations) for controls and current limitations.
@@ -6054,6 +6054,13 @@ function createFabricExtension(entryUrl) {
6054
6054
  return;
6055
6055
  }
6056
6056
  if (!options.managedHost) registerJevAuth(pi);
6057
+ pi.on("input", async (event, context) => {
6058
+ if (event.source !== "interactive" || !event.text.includes("pi-clipboard-")) return;
6059
+ const { attachPastedImages } = await import("../core/pasted-images.js");
6060
+ const result = await attachPastedImages(event.text, event.images);
6061
+ for (const warning of result.warnings) context.ui.notify(warning, "warning");
6062
+ if (result.changed) return { action: "transform", text: result.text, images: result.images };
6063
+ });
6057
6064
  const codePreviewSettings = defaultCodePreviewSettings();
6058
6065
  const decorateShell = withCodePreviewShell;
6059
6066
  let compatibilityWarningShown = false;
@@ -7053,4 +7060,4 @@ export {
7053
7060
  FABRIC_MANAGED_HOST_VERSION,
7054
7061
  createFabricExtension
7055
7062
  };
7056
- //# sourceMappingURL=chunk-6NSPFTXC.js.map
7063
+ //# sourceMappingURL=chunk-ECW3TB7R.js.map