@e4779/pi-fabric 0.92.24-fork.4 → 0.92.28-fork.5
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/actors/host-event-payload.d.ts.map +1 -1
- package/dist/agents/request.d.ts +4 -0
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents.js +2 -1
- package/dist/agents.js.map +1 -1
- package/dist/chunks/{chunk-VYXFSUWU.js → chunk-77PDIBK2.js} +12 -1
- package/dist/chunks/{chunk-VYXFSUWU.js.map → chunk-77PDIBK2.js.map} +2 -2
- package/dist/chunks/chunk-7TX532EG.js +134 -0
- package/dist/chunks/chunk-7TX532EG.js.map +7 -0
- package/dist/chunks/chunk-BJOJX2UW.js +59 -0
- package/dist/chunks/chunk-BJOJX2UW.js.map +7 -0
- package/dist/chunks/{chunk-2PZWDVJB.js → chunk-BYOGRJME.js} +13 -4
- package/dist/chunks/chunk-BYOGRJME.js.map +7 -0
- package/dist/chunks/{chunk-RERA6YWA.js → chunk-CIODQX77.js} +12 -4
- package/dist/chunks/chunk-CIODQX77.js.map +7 -0
- package/dist/chunks/{chunk-ZMIJ6AT4.js → chunk-D6YSBP3R.js} +2 -2
- package/dist/chunks/{chunk-WVH324VF.js → chunk-FAMBJFFF.js} +1 -1
- package/dist/chunks/{chunk-WVH324VF.js.map → chunk-FAMBJFFF.js.map} +1 -1
- package/dist/chunks/{chunk-VWSXAEX6.js → chunk-G7UJLM33.js} +6 -198
- package/dist/chunks/chunk-G7UJLM33.js.map +7 -0
- package/dist/chunks/chunk-JNMTTJMQ.js +50 -0
- package/dist/chunks/chunk-JNMTTJMQ.js.map +7 -0
- package/dist/chunks/{chunk-KFZYTGF5.js → chunk-JOEFBOFN.js} +7 -3
- package/dist/chunks/chunk-JOEFBOFN.js.map +7 -0
- package/dist/chunks/chunk-KI277YNS.js +218 -0
- package/dist/chunks/chunk-KI277YNS.js.map +7 -0
- package/dist/chunks/{chunk-Y7KNRAFL.js → chunk-M3ZNZ6EZ.js} +28 -3
- package/dist/chunks/chunk-M3ZNZ6EZ.js.map +7 -0
- package/dist/chunks/{chunk-QX3TUAWO.js → chunk-M7W57BRC.js} +2 -2
- package/dist/chunks/{chunk-4SSMGBF4.js → chunk-QLV2IZ3F.js} +6 -7
- package/dist/chunks/chunk-QLV2IZ3F.js.map +7 -0
- package/dist/chunks/{chunk-7OH6DD3S.js → chunk-RAEGNBRA.js} +2 -2
- package/dist/chunks/{chunk-BOTRGFQQ.js → chunk-RWDKJ24D.js} +26 -19
- package/dist/chunks/chunk-RWDKJ24D.js.map +7 -0
- package/dist/chunks/{chunk-3CPWRPCE.js → chunk-RZKN534S.js} +2 -2
- package/dist/chunks/{chunk-3ZX76BVU.js → chunk-ULLIZPBH.js} +7 -7
- package/dist/chunks/{chunk-32BNQ75J.js → chunk-WG24VI7K.js} +56 -2
- package/dist/chunks/{chunk-32BNQ75J.js.map → chunk-WG24VI7K.js.map} +2 -2
- package/dist/chunks/{chunk-4JETKRFE.js → chunk-ZHJNWM6A.js} +2 -2
- package/dist/components/configuration.d.ts +42 -0
- package/dist/components/configuration.d.ts.map +1 -0
- package/dist/components/configuration.js +18 -0
- package/dist/components/configuration.js.map +7 -0
- package/dist/components/control.d.ts +76 -0
- package/dist/components/control.d.ts.map +1 -0
- package/dist/components/loader.d.ts +12 -0
- package/dist/components/loader.d.ts.map +1 -1
- package/dist/components/supervisor.d.ts.map +1 -1
- package/dist/components/types.d.ts +2 -0
- package/dist/components/types.d.ts.map +1 -1
- package/dist/components/validation.d.ts +6 -0
- package/dist/components/validation.d.ts.map +1 -0
- package/dist/config.d.ts +4 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.d.ts +1 -0
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +2 -2
- package/dist/core/media-sanitize.d.ts +45 -0
- package/dist/core/media-sanitize.d.ts.map +1 -0
- package/dist/core/model-resolution.d.ts +20 -3
- package/dist/core/model-resolution.d.ts.map +1 -1
- package/dist/execution-service.d.ts +3 -1
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +398 -47
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/index.js +64 -17
- package/dist/index.js.map +2 -2
- package/dist/jev/browser.d.ts.map +1 -1
- package/dist/jev/browser.js +1 -1
- package/dist/jev/observation.js +3 -2
- package/dist/jev.js +5 -4
- package/dist/output-budget.d.ts.map +1 -1
- package/dist/protocol.d.ts +1 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -1
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/captured-tools-provider.d.ts.map +1 -1
- package/dist/providers/components-provider.d.ts +5 -3
- package/dist/providers/components-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.js +4 -3
- package/dist/residency/actor-client.d.ts +2 -2
- package/dist/residency/actor-client.d.ts.map +1 -1
- package/dist/residency/actor-client.js +2 -2
- package/dist/residency/client.d.ts.map +1 -1
- package/dist/residency/host.js +5 -4
- package/dist/residency/pi-entry.js +5 -4
- package/dist/residency/pi-entry.js.map +1 -1
- package/dist/residency/protocol.d.ts +11 -2
- package/dist/residency/protocol.d.ts.map +1 -1
- package/dist/runtime/core-override-guest-types.js +2 -2
- package/dist/runtime/guest-types.d.ts +1 -1
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/monty-runtime.js +2 -1
- package/dist/runtime/monty-runtime.js.map +1 -1
- package/dist/runtime/node-process-runtime.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.js +2 -2
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.js +1 -1
- package/dist/runtime/typescript-kernel.js +7 -7
- package/dist/schema/policy.d.ts.map +1 -1
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/settings.js +2 -1
- package/dist/ui/settings.js.map +1 -1
- package/dist/ui/widget.d.ts +12 -1
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/worker.js +11 -3
- package/dist/worker.js.map +2 -2
- package/docs/architecture.md +1 -1
- package/docs/components.md +30 -1
- package/docs/configuration.md +5 -3
- package/docs/jev.md +66 -1
- package/package.json +1 -1
- package/skillsets/typescript/fabric-exec/SKILL.md +5 -1
- package/skillsets/typescript/fabric-exec/references/agents.md +2 -0
- package/dist/chunks/chunk-2PZWDVJB.js.map +0 -7
- package/dist/chunks/chunk-4SSMGBF4.js.map +0 -7
- package/dist/chunks/chunk-BOTRGFQQ.js.map +0 -7
- package/dist/chunks/chunk-KFZYTGF5.js.map +0 -7
- package/dist/chunks/chunk-RERA6YWA.js.map +0 -7
- package/dist/chunks/chunk-TSRKCXNI.js +0 -17
- package/dist/chunks/chunk-TSRKCXNI.js.map +0 -7
- package/dist/chunks/chunk-VWSXAEX6.js.map +0 -7
- package/dist/chunks/chunk-Y7KNRAFL.js.map +0 -7
- /package/dist/chunks/{chunk-ZMIJ6AT4.js.map → chunk-D6YSBP3R.js.map} +0 -0
- /package/dist/chunks/{chunk-QX3TUAWO.js.map → chunk-M7W57BRC.js.map} +0 -0
- /package/dist/chunks/{chunk-7OH6DD3S.js.map → chunk-RAEGNBRA.js.map} +0 -0
- /package/dist/chunks/{chunk-3CPWRPCE.js.map → chunk-RZKN534S.js.map} +0 -0
- /package/dist/chunks/{chunk-3ZX76BVU.js.map → chunk-ULLIZPBH.js.map} +0 -0
- /package/dist/chunks/{chunk-4JETKRFE.js.map → chunk-ZHJNWM6A.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fabric-state.d.ts","sourceRoot":"","sources":["../src/fabric-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO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ACvC,IAAI,EAAE,gBAAgB,CAAC;QACvB,MAAM,EAAE,QAAQ,GAAG,kBAAkB,CAAC;QACtC,eAAe,EAAE,MAAM,CAAC;KACzB;IAuBK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAoIhC"}
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
restoreBorrowedInPlaceMain,
|
|
70
70
|
settleInPlacePrewalk,
|
|
71
71
|
withTrajectoryRearmDirective
|
|
72
|
-
} from "./chunks/chunk-
|
|
72
|
+
} from "./chunks/chunk-M7W57BRC.js";
|
|
73
73
|
import {
|
|
74
74
|
AgentTranscriptReader,
|
|
75
75
|
countNewlines,
|
|
@@ -79,10 +79,10 @@ import "./chunks/chunk-DLXPTBPL.js";
|
|
|
79
79
|
import {
|
|
80
80
|
GUEST_TYPE_DECLARATIONS,
|
|
81
81
|
PI_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES
|
|
82
|
-
} from "./chunks/chunk-
|
|
82
|
+
} from "./chunks/chunk-WG24VI7K.js";
|
|
83
83
|
import {
|
|
84
84
|
NESTED_TOOL_CALL_ID_PREFIX
|
|
85
|
-
} from "./chunks/chunk-
|
|
85
|
+
} from "./chunks/chunk-JOEFBOFN.js";
|
|
86
86
|
import "./chunks/chunk-LMAVZN7J.js";
|
|
87
87
|
import {
|
|
88
88
|
AUTO_APPLY_PROPOSAL_KINDS,
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
readFabricPeerCardsRequestV1,
|
|
196
196
|
readFabricPrewalkRequestV1,
|
|
197
197
|
readFabricToolResultProxyDetailsV1
|
|
198
|
-
} from "./chunks/chunk-
|
|
198
|
+
} from "./chunks/chunk-FAMBJFFF.js";
|
|
199
199
|
import {
|
|
200
200
|
awaitPeerSettle,
|
|
201
201
|
buildPeerCards
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
loadFabricConfig,
|
|
211
211
|
loadFabricConfigForScope,
|
|
212
212
|
saveFabricConfig
|
|
213
|
-
} from "./chunks/chunk-
|
|
213
|
+
} from "./chunks/chunk-G7UJLM33.js";
|
|
214
214
|
import {
|
|
215
215
|
defaultCodePreviewSettings
|
|
216
216
|
} from "./chunks/chunk-OKOHRXGF.js";
|
|
@@ -232,6 +232,7 @@ import "./chunks/chunk-ZDNGXLEC.js";
|
|
|
232
232
|
import {
|
|
233
233
|
FABRIC_ACTOR_PI_HOST_EVENTS
|
|
234
234
|
} from "./chunks/chunk-OTCASLY2.js";
|
|
235
|
+
import "./chunks/chunk-KI277YNS.js";
|
|
235
236
|
import "./chunks/chunk-MGWQOKBV.js";
|
|
236
237
|
import "./chunks/chunk-3H7SDWZI.js";
|
|
237
238
|
import "./chunks/chunk-X3OD47CL.js";
|
|
@@ -2051,7 +2052,7 @@ var fabricExecutionKernelGuidance = (fullCodeMode, kernel = "typescript", python
|
|
|
2051
2052
|
// caches stay warm.
|
|
2052
2053
|
`Read every file the user provides (images, screenshots, code, text) with the ${fullCodeMode ? "`pi.read`" : "`read`"} tool before responding \u2014 never assume its contents.`
|
|
2053
2054
|
].join(" ");
|
|
2054
|
-
var defaultFabricExecutionGuidance = (fullCodeMode, kernel = "typescript", pythonRuntime = "monty") => kernel === "python" ? (pythonRuntime === "monty" ? "Python backend: Monty sandboxed subset, not CPython. Native filesystem/network/environment access and arbitrary imports are unavailable; use host tools for effects. Supply acyclic JSON host arguments; recursive containers are unsupported. Underscore-prefixed direct capability attributes are unavailable: use tools.call with the exact discovered ref instead. \u03C0 is an attribute object; payloads is a dict, not the same identity. " : "Python backend: CPython; native standard-library imports are available. ") + 'Python fabric_exec: write an async function body with `await` and `return`; each invocation starts fresh. Use imports supported by the configured backend, such as `import asyncio`. Host methods accept one dict or keyword arguments: `await tools.search(query="example")`, `await tools.call(ref="provider.action", args={"key": "value"})`; discover
|
|
2055
|
+
var defaultFabricExecutionGuidance = (fullCodeMode, kernel = "typescript", pythonRuntime = "monty") => kernel === "python" ? (pythonRuntime === "monty" ? "Python backend: Monty sandboxed subset, not CPython. Native filesystem/network/environment access and arbitrary imports are unavailable; use host tools for effects. Supply acyclic JSON host arguments; recursive containers are unsupported. Underscore-prefixed direct capability attributes are unavailable: use tools.call with the exact discovered ref instead. \u03C0 is an attribute object; payloads is a dict, not the same identity. " : "Python backend: CPython; native standard-library imports are available. ") + 'Python fabric_exec: write an async function body with `await` and `return`; each invocation starts fresh. Use imports supported by the configured backend, such as `import asyncio`. Host methods accept one dict or keyword arguments: `await tools.search(query="example")`, `await tools.call(ref="provider.action", args={"key": "value"})`; discover with tools.search instead of enumerating: tools.list is a capped page (default 100, hard cap 1000) with no truncation marker, so a short result never proves an action is absent (tools.list(envelope=True) reports totals). Known actions use mcp.<server>.<tool>, memory.*, state.*, schema.*, compact.*, components.*, agents.*, or mesh.*. Responses are native Python dicts/lists, not attribute objects. Use `asyncio.gather` for independent calls. `\u03C0.key` and `payloads["key"]` contain only the exact top-level payload keys. Return JSON-compatible data (convert sets, bytes, paths, and datetimes explicitly); print output is bounded. JavaScript callback helpers (workflow, memory.walk, and predicate callbacks) are not Python APIs; page with ordinary await/loops instead. Provider argument validation and approvals remain host-enforced. Schema enforce retains host gates and requires the selected runtime\u2019s isolation; no unrestricted fallback.' + (fullCodeMode ? ' `await pi.read("/x")`, `await pi.grep(pattern="TODO", path="src")`, `await pi.find(pattern="*.py", path="src")`, and `await pi.ls("src")` return strings. `await pi.bash(command="ls")`, `await pi.edit(path="/x", oldText="a", newText="b")`, and `await pi.write(path="/y", content=\u03C0.body)` return dicts; read `r["output"]`. Shell nonzero exits raise; `settle=True` returns a failure dict instead. Cancellation, timeout, approval and security errors still raise. A nested shell that exceeds executor.shellHangMs still resolves ok with a still-running notice, pid, and live output path; background=True detaches immediately. Inspect with pi.read and stop with kill <pid> through pi.bash. Captured tools are `await extensions.<name>(...)`.' : " Pi core and extensions are unavailable inside fabric_exec in orchestration-only mode.") : fullCodeMode ? "Examples and returns: `pi.read('/x')`, `pi.grep('TODO','src')` / `pi.grep({pattern:'TODO', path:'src', ignoreCase:true, context:2})`, `pi.find({pattern:'*.ts', path:'src', limit:20})`, and `pi.ls('src')` return strings; `pi.bash({cmd:'ls'})` (or `pi.powershell` on Windows), `pi.edit({path:'/x', old:'a', new:'b'})`, and `pi.write({path:'/y', text:'z'})` return `{ok, output, details}` (read `.output`); failed core calls reject, including shell tools on an ordinary nonzero exit; pass `settle: true` to `pi.bash` or `pi.powershell` to get `{ ok: false, exitCode, output, error }` instead. Timeout, cancellation, approval, and security failures still reject. A nested shell that exceeds `executor.shellHangMs` still resolves `ok: true` with a still-running notice, pid, and live output path; `background: true` detaches immediately. Inspect with `pi.read` and stop with `kill <pid>` through `pi.bash`.\n`tools` is discovery + generic calls only (`providers`/`catalog`/`list`/`search`/`describe`/`call`/`models`). Call known MCP tools as `mcp.<sanitized_server>.<sanitized_tool>(args)`, captured tools as `extensions.<tool>(args)`, and stable providers as `memory.*`, `state.*`, `schema.*`, or `compact.*`. Use `tools.call({ref,args})` for computed refs. `pi` is the core tools; `\u03C0.<key>` reads named `strings` (not a tool)." : "Call known actions through `mcp.<sanitized_server>.<sanitized_tool>(args)`, `memory.*`, `state.*`, `schema.*`, `components.*`, `compact.*`, `agents.*`, or `mesh.*`; use `tools.catalog`/`search`/`describe`/`list` for discovery and `tools.call({ref,args})` for computed refs. Other surfaces are opt-in via user-loaded skills.";
|
|
2055
2056
|
var manifestNameCache = /* @__PURE__ */ new Map();
|
|
2056
2057
|
var packageNameFromManifest = (startPath) => {
|
|
2057
2058
|
if (!startPath) return void 0;
|
|
@@ -2705,9 +2706,19 @@ var boundModelOutput = async (visible, maxChars, fullOutput = visible, writeArti
|
|
|
2705
2706
|
|
|
2706
2707
|
[Full output (${fullOutput.length} chars) saved to: ${artifactPath}]` : "";
|
|
2707
2708
|
const bodyBudget = Math.max(1, maxChars - suffix.length);
|
|
2708
|
-
const
|
|
2709
|
+
const body = truncateMiddle(visible, bodyBudget);
|
|
2710
|
+
let text = `${body}${suffix}`;
|
|
2711
|
+
if (text.length > maxChars) {
|
|
2712
|
+
const rebudget = maxChars - suffix.length;
|
|
2713
|
+
if (rebudget <= 0) {
|
|
2714
|
+
text = suffix.slice(-Math.max(1, maxChars));
|
|
2715
|
+
} else {
|
|
2716
|
+
const shrunk = truncateMiddle(body, rebudget);
|
|
2717
|
+
text = shrunk.length + suffix.length <= maxChars ? `${shrunk}${suffix}` : suffix;
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2709
2720
|
return {
|
|
2710
|
-
text
|
|
2721
|
+
text,
|
|
2711
2722
|
...artifactPath ? { artifactPath } : {},
|
|
2712
2723
|
originalChars: fullOutput.length,
|
|
2713
2724
|
omittedChars: Math.max(0, fullOutput.length - Math.min(fullOutput.length, bodyBudget))
|
|
@@ -3417,6 +3428,7 @@ ${recoveryHint}` : ""}`,
|
|
|
3417
3428
|
)).text;
|
|
3418
3429
|
const terminate = pendingHandoff !== void 0 || result.success && typeof result.value === "object" && result.value !== null && "terminate" in result.value && result.value.terminate === true;
|
|
3419
3430
|
const mediaBlocks = [];
|
|
3431
|
+
for (const block of result.media ?? []) mediaBlocks.push(block);
|
|
3420
3432
|
for (const audit of result.audits) {
|
|
3421
3433
|
if (audit.media) mediaBlocks.push(...audit.media);
|
|
3422
3434
|
}
|
|
@@ -3888,6 +3900,18 @@ var FabricState = class {
|
|
|
3888
3900
|
candidate.registerExternalComponent(component, { overwrite: true });
|
|
3889
3901
|
}
|
|
3890
3902
|
}
|
|
3903
|
+
if (!this.#managedHost && !reinitialize) {
|
|
3904
|
+
const { FabricComponentConfiguration } = await import("./components/configuration.js");
|
|
3905
|
+
try {
|
|
3906
|
+
config.components = new FabricComponentConfiguration({
|
|
3907
|
+
cwd: context.cwd,
|
|
3908
|
+
agentDir: resolveAgentDir(),
|
|
3909
|
+
projectTrusted: () => context.isProjectTrusted()
|
|
3910
|
+
}).read().entries;
|
|
3911
|
+
} catch (error) {
|
|
3912
|
+
if (context.hasUI) context.ui.notify(`Pi Fabric component configuration not applied: ${error instanceof Error ? error.message : String(error)}`, "error");
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3891
3915
|
await candidate.initialize(context, config);
|
|
3892
3916
|
assertCurrent();
|
|
3893
3917
|
for (const provider of this.#externalProviders.values()) {
|
|
@@ -4485,22 +4509,38 @@ var shouldShowFabricWidget = (snapshot, mode) => {
|
|
|
4485
4509
|
const finishedAt = run.finishedAt ?? run.updatedAt;
|
|
4486
4510
|
return finishedAt > (snapshot.widgetDismissedAt ?? 0);
|
|
4487
4511
|
};
|
|
4512
|
+
var WIDGET_TERMINAL_ROW_SHARE = 0.5;
|
|
4513
|
+
var widgetRowLimit = (maxRows, terminalRows) => {
|
|
4514
|
+
const configured = Math.max(1, maxRows);
|
|
4515
|
+
if (terminalRows === void 0 || !Number.isFinite(terminalRows) || terminalRows <= 0) {
|
|
4516
|
+
return configured;
|
|
4517
|
+
}
|
|
4518
|
+
const paneShare = Math.floor(terminalRows * WIDGET_TERMINAL_ROW_SHARE);
|
|
4519
|
+
return Math.max(1, Math.min(configured, paneShare));
|
|
4520
|
+
};
|
|
4488
4521
|
var FabricWidget = class {
|
|
4489
|
-
constructor(theme, snapshot, maxRows) {
|
|
4522
|
+
constructor(theme, snapshot, maxRows, terminalRows) {
|
|
4490
4523
|
this.theme = theme;
|
|
4491
4524
|
this.snapshot = snapshot;
|
|
4492
4525
|
this.maxRows = maxRows;
|
|
4526
|
+
this.terminalRows = terminalRows;
|
|
4527
|
+
}
|
|
4528
|
+
#rowLimit() {
|
|
4529
|
+
return widgetRowLimit(this.maxRows, this.terminalRows?.());
|
|
4493
4530
|
}
|
|
4494
4531
|
#lastWidth;
|
|
4532
|
+
#lastLimit;
|
|
4495
4533
|
#lastSnapshot;
|
|
4496
4534
|
#lastLines;
|
|
4497
4535
|
#pending;
|
|
4498
4536
|
render(width) {
|
|
4499
4537
|
if (width <= 0) return [];
|
|
4500
4538
|
const snapshot = this.snapshot();
|
|
4501
|
-
const
|
|
4539
|
+
const limit = this.#rowLimit();
|
|
4540
|
+
const lines = this.#pending?.width === width && this.#pending.limit === limit && this.#pending.snapshot === snapshot ? this.#pending.lines : this.#lastWidth === width && this.#lastLimit === limit && this.#lastSnapshot === snapshot && this.#lastLines ? this.#lastLines : this.#renderLines(snapshot, width, limit);
|
|
4502
4541
|
this.#pending = void 0;
|
|
4503
4542
|
this.#lastWidth = width;
|
|
4543
|
+
this.#lastLimit = limit;
|
|
4504
4544
|
this.#lastSnapshot = snapshot;
|
|
4505
4545
|
this.#lastLines = lines;
|
|
4506
4546
|
return lines;
|
|
@@ -4508,18 +4548,20 @@ var FabricWidget = class {
|
|
|
4508
4548
|
hasChanged() {
|
|
4509
4549
|
if (this.#lastWidth === void 0 || this.#lastLines === void 0) return true;
|
|
4510
4550
|
const snapshot = this.snapshot();
|
|
4511
|
-
const
|
|
4512
|
-
|
|
4551
|
+
const limit = this.#rowLimit();
|
|
4552
|
+
const lines = this.#renderLines(snapshot, this.#lastWidth, limit);
|
|
4553
|
+
this.#pending = { width: this.#lastWidth, limit, snapshot, lines };
|
|
4513
4554
|
return lines.length !== this.#lastLines.length || lines.some((line, index) => line !== this.#lastLines?.[index]);
|
|
4514
4555
|
}
|
|
4515
4556
|
invalidate() {
|
|
4516
4557
|
this.#pending = void 0;
|
|
4517
4558
|
this.#lastWidth = void 0;
|
|
4559
|
+
this.#lastLimit = void 0;
|
|
4518
4560
|
this.#lastSnapshot = void 0;
|
|
4519
4561
|
this.#lastLines = void 0;
|
|
4520
4562
|
}
|
|
4521
|
-
#renderLines(snapshot, width) {
|
|
4522
|
-
return this.#boundContent(this.#buildContent(snapshot), width);
|
|
4563
|
+
#renderLines(snapshot, width, limit) {
|
|
4564
|
+
return this.#boundContent(this.#buildContent(snapshot), width, limit);
|
|
4523
4565
|
}
|
|
4524
4566
|
#buildContent(snapshot) {
|
|
4525
4567
|
const candidateRun = snapshot.runs[0];
|
|
@@ -4582,8 +4624,8 @@ var FabricWidget = class {
|
|
|
4582
4624
|
);
|
|
4583
4625
|
return lines;
|
|
4584
4626
|
}
|
|
4585
|
-
#boundContent(content, width) {
|
|
4586
|
-
const bounded = content.slice(0,
|
|
4627
|
+
#boundContent(content, width, limit) {
|
|
4628
|
+
const bounded = content.slice(0, limit);
|
|
4587
4629
|
if (content.length > bounded.length && bounded.length > 0) {
|
|
4588
4630
|
const marker = this.theme.fg("dim", `+${content.length - bounded.length}`);
|
|
4589
4631
|
const available = Math.max(0, width - visibleWidth2(marker) - 1);
|
|
@@ -5218,7 +5260,12 @@ var FabricUiController = class {
|
|
|
5218
5260
|
WIDGET_ID,
|
|
5219
5261
|
(tui, theme) => {
|
|
5220
5262
|
this.#widgetTui = tui;
|
|
5221
|
-
this.#widget = new FabricWidget(
|
|
5263
|
+
this.#widget = new FabricWidget(
|
|
5264
|
+
theme,
|
|
5265
|
+
() => this.#snapshot,
|
|
5266
|
+
config.maxRows,
|
|
5267
|
+
() => tui.terminal?.rows ?? process.stdout.rows
|
|
5268
|
+
);
|
|
5222
5269
|
return this.#widget;
|
|
5223
5270
|
},
|
|
5224
5271
|
{ placement: "aboveEditor" }
|