pi-fabric 0.117.0 → 0.117.1

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.
@@ -6687,7 +6687,7 @@ function createFabricExtension(entryUrl) {
6687
6687
  const { ExtractiveHistory } = await import("../memory/extractive-history.js");
6688
6688
  if (epoch !== extractiveEpoch || !extractiveConfig()?.enabled || context.signal?.aborted || context.sessionManager.getSessionId() !== sessionId || context.sessionManager.getLeafId() !== leaf) return;
6689
6689
  extractiveHistory ??= new ExtractiveHistory(extractiveConfig);
6690
- await extractiveHistory.prepare(context, event.prompt);
6690
+ await extractiveHistory.prepare(context, event.messageType !== "custom" ? event.prompt : "");
6691
6691
  });
6692
6692
  pi.on("context", async (event, context) => {
6693
6693
  const sessionId = context.sessionManager.getSessionId();
@@ -6745,7 +6745,7 @@ function createFabricExtension(entryUrl) {
6745
6745
  const skills = event.systemPromptOptions.skills ?? [];
6746
6746
  const captureSnapshot = state.bootstrapped ? capturePolicy() : void 0;
6747
6747
  const systemPrompt = restoreSkillsForFullCodePrompt(event.systemPrompt, skills, effectiveFullCodeMode);
6748
- const skillReferenceGuidance = effectiveFullCodeMode ? buildSkillReferenceGuidance(event.prompt, skills) : void 0;
6748
+ const skillReferenceGuidance = effectiveFullCodeMode ? buildSkillReferenceGuidance(event.messageType !== "custom" ? event.prompt : "", skills) : void 0;
6749
6749
  const currentModel = context.model ? `${context.model.provider}/${context.model.id}` : void 0;
6750
6750
  const resolvedGuidance = resolveFabricModelGuidance(state.modelGuidance(), {
6751
6751
  ...currentModel ? { model: currentModel } : {},
@@ -6793,7 +6793,7 @@ ${guidance}`,
6793
6793
  const names = rewritableHiddenCapturedToolNames(hiddenCapturedToolNames());
6794
6794
  if (names.length === 0) return;
6795
6795
  const mentioned = proxyContractMentionsInSkills(
6796
- event.prompt,
6796
+ event.messageType !== "custom" ? event.prompt : "",
6797
6797
  event.systemPrompt,
6798
6798
  names
6799
6799
  );
@@ -6902,4 +6902,4 @@ export {
6902
6902
  FABRIC_MANAGED_HOST_VERSION,
6903
6903
  createFabricExtension
6904
6904
  };
6905
- //# sourceMappingURL=chunk-X4HNDAZS.js.map
6905
+ //# sourceMappingURL=chunk-YKYWY722.js.map