pi2dsh 0.16.1 → 0.16.2
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/host.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{runtime-Bjc6ijZg.mjs → runtime-t-5iWtFO.mjs} +7 -3
- package/dist/{runtime-Bjc6ijZg.mjs.map → runtime-t-5iWtFO.mjs.map} +1 -1
- package/dist/runtime.d.mts +2 -0
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -1
- package/package.json +1 -1
package/dist/host.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as registerVisionCompanions, t as applyPiPackage } from "./runtime-
|
|
2
|
+
import { a as registerVisionCompanions, t as applyPiPackage } from "./runtime-t-5iWtFO.mjs";
|
|
3
3
|
import { t as resolvePiPackage } from "./source-0sA5z08z.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as registerVisionCompanions } from "./runtime-
|
|
2
|
+
import { a as registerVisionCompanions } from "./runtime-t-5iWtFO.mjs";
|
|
3
3
|
import { t as resolvePiPackage } from "./source-0sA5z08z.mjs";
|
|
4
4
|
import { applyPiHost, applyPreparedPiHost, manifestForInstalled, preparePiHost } from "./host.mjs";
|
|
5
5
|
import { a as CONTEXT_RULES, c as PI_AI_PACKAGES, d as UI_CONTEXT_RULES, f as ruleForApi, g as ruleForUiContextProperty, h as ruleForHostImport, i as API_RULES, l as PI_CODING_AGENT_PACKAGES, m as ruleForEvent, n as convertPiMcpConfig, o as EVENT_RULES, p as ruleForContextProperty, r as renderMcpPatch, s as HOST_IMPORT_RULES, t as collectPiMcpServers, u as PI_TUI_PACKAGES } from "./mcp-config-BNL_uhE8.mjs";
|
|
@@ -6730,11 +6730,14 @@ async function applyPiPackage(ctx, options) {
|
|
|
6730
6730
|
resumeSessionIdFor: (file) => state.bridge.sessionIdOfArchiveFile(file),
|
|
6731
6731
|
parentModelRoute: () => {
|
|
6732
6732
|
const parent = currentAgent(state);
|
|
6733
|
-
|
|
6733
|
+
if (parent === void 0) return void 0;
|
|
6734
|
+
const live = currentPiModel(state, parent);
|
|
6735
|
+
const model = live?.id;
|
|
6734
6736
|
if (typeof model !== "string" || model.length === 0) return void 0;
|
|
6737
|
+
const provider = live?.provider;
|
|
6735
6738
|
return {
|
|
6736
6739
|
model,
|
|
6737
|
-
...typeof
|
|
6740
|
+
...typeof provider === "string" && provider.length > 0 ? { provider } : {}
|
|
6738
6741
|
};
|
|
6739
6742
|
}
|
|
6740
6743
|
});
|
|
@@ -6778,6 +6781,7 @@ async function applyPiPackage(ctx, options) {
|
|
|
6778
6781
|
const runtimeInternals = {
|
|
6779
6782
|
compactionReason,
|
|
6780
6783
|
resolveOfferedChoice,
|
|
6784
|
+
currentPiModel,
|
|
6781
6785
|
dshToPiContent,
|
|
6782
6786
|
expandPrompt,
|
|
6783
6787
|
isKnownImageTool,
|
|
@@ -6790,4 +6794,4 @@ const runtimeInternals = {
|
|
|
6790
6794
|
//#endregion
|
|
6791
6795
|
export { registerVisionCompanions as a, overlayProviderConfig as i, mergeProviderRegistration as n, runtimeInternals as o, normalizeToolSchema as r, applyPiPackage as t };
|
|
6792
6796
|
|
|
6793
|
-
//# sourceMappingURL=runtime-
|
|
6797
|
+
//# sourceMappingURL=runtime-t-5iWtFO.mjs.map
|