pi-fabric 0.132.8 → 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 +8 -0
- package/dist/chunks/{chunk-HWZ2HQZD.js → chunk-ECW3TB7R.js} +13 -6
- package/dist/chunks/{chunk-HWZ2HQZD.js.map → chunk-ECW3TB7R.js.map} +3 -3
- package/dist/chunks/{chunk-JWERGULW.js → chunk-EWEDOU7P.js} +5 -5
- package/dist/chunks/{chunk-NSV7WTCT.js → chunk-S6M5KCKA.js} +2 -2
- package/dist/chunks/{chunk-F6GIK5GO.js → chunk-S7NXPQDM.js} +1 -1
- package/dist/core/pasted-images.d.ts +12 -0
- package/dist/core/pasted-images.d.ts.map +1 -0
- package/dist/core/pasted-images.js +139 -0
- package/dist/core/pasted-images.js.map +7 -0
- package/dist/core/prompt-guidance.js +1 -1
- package/dist/core/prompt-guidance.js.map +2 -2
- package/dist/durable-extension.js +1 -1
- package/dist/durable-extension.js.map +1 -1
- package/dist/extension-bootstrap.js +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +2 -2
- package/dist/index.js +1 -1
- package/dist/jev.js +1 -1
- package/dist/providers/jev-provider.js +1 -1
- package/dist/residency/host.js +3 -3
- package/dist/residency/pi-entry.js +3 -3
- package/dist/runtime/node-process-runtime.js +1 -1
- package/dist/runtime/typescript-kernel.js +3 -3
- package/dist/ui/conversation-feedback.d.ts +8 -0
- package/dist/ui/conversation-feedback.d.ts.map +1 -0
- package/dist/ui/conversation-render.d.ts.map +1 -1
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +100 -59
- package/dist/ui/conversation.js.map +4 -4
- package/dist/ui/shell-hang-keys.d.ts.map +1 -1
- package/docs/interface.md +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{chunk-JWERGULW.js.map → chunk-EWEDOU7P.js.map} +0 -0
- /package/dist/chunks/{chunk-NSV7WTCT.js.map → chunk-S6M5KCKA.js.map} +0 -0
- /package/dist/chunks/{chunk-F6GIK5GO.js.map → chunk-S7NXPQDM.js.map} +0 -0
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.
|
|
@@ -5795,8 +5795,7 @@ function installFabricEscapeHalt(context, options) {
|
|
|
5795
5795
|
}
|
|
5796
5796
|
|
|
5797
5797
|
// src/ui/shell-hang-keys.ts
|
|
5798
|
-
|
|
5799
|
-
var CTRL_K = "\v";
|
|
5798
|
+
import { matchesKey as matchesKey3 } from "@earendil-works/pi-tui";
|
|
5800
5799
|
var CTRL_B_CHORD_MS = 1e3;
|
|
5801
5800
|
function installFabricShellHangKeys(context, options) {
|
|
5802
5801
|
if (context.mode !== "tui" || typeof context.ui.onTerminalInput !== "function") return () => {
|
|
@@ -5819,12 +5818,13 @@ function installFabricShellHangKeys(context, options) {
|
|
|
5819
5818
|
}
|
|
5820
5819
|
const jobs = options.jobs();
|
|
5821
5820
|
const shells = jobs?.waiting().length ?? 0;
|
|
5822
|
-
const
|
|
5821
|
+
const ctrlB = matchesKey3(data, "ctrl+b");
|
|
5822
|
+
const programs = shells === 0 && ctrlB && editorEmpty(context) ? options.programs?.() : void 0;
|
|
5823
5823
|
if (!jobs || shells === 0 && !programs?.waiting()) {
|
|
5824
5824
|
chordArmedAt = 0;
|
|
5825
5825
|
return void 0;
|
|
5826
5826
|
}
|
|
5827
|
-
if (
|
|
5827
|
+
if (ctrlB) {
|
|
5828
5828
|
const now = Date.now();
|
|
5829
5829
|
if (chordArmedAt > 0 && now - chordArmedAt <= CTRL_B_CHORD_MS) {
|
|
5830
5830
|
chordArmedAt = 0;
|
|
@@ -5852,7 +5852,7 @@ function installFabricShellHangKeys(context, options) {
|
|
|
5852
5852
|
return { consume: true };
|
|
5853
5853
|
}
|
|
5854
5854
|
chordArmedAt = 0;
|
|
5855
|
-
if (data
|
|
5855
|
+
if (matchesKey3(data, "ctrl+k")) {
|
|
5856
5856
|
const count = jobs.killWaiting();
|
|
5857
5857
|
if (count > 0) {
|
|
5858
5858
|
context.ui.notify(
|
|
@@ -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-
|
|
7063
|
+
//# sourceMappingURL=chunk-ECW3TB7R.js.map
|