pi-fabric 0.61.1 → 0.61.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/index.d.ts.map +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,iCAAiC,CAAC;AAmIzC,wBAA8B,QAAQ,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,iCAAiC,CAAC;AAmIzC,wBAA8B,QAAQ,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAwpBtE;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4758,23 +4758,21 @@ async function piFabric(pi) {
|
|
|
4758
4758
|
resolvedGuidance.slotText,
|
|
4759
4759
|
fabricSchemaGuidance(schemaMode),
|
|
4760
4760
|
overrideGuidance,
|
|
4761
|
-
resolvedGuidance.appendText
|
|
4762
|
-
// Turn-derived skill dependencies stay last so the stable system prefix
|
|
4763
|
-
// remains reusable by provider prompt caches across ordinary turns.
|
|
4764
|
-
skillReferenceGuidance
|
|
4761
|
+
resolvedGuidance.appendText
|
|
4765
4762
|
].filter((section) => Boolean(section)).join("\n\n");
|
|
4766
4763
|
const captureSnapshot = state.cwd ? capturePolicy() : void 0;
|
|
4767
4764
|
const advisory = captureSnapshot && capabilityAdvisor.hasSources() ? capabilityAdvisor.evaluate(event.prompt, captureSnapshot.advisory) : void 0;
|
|
4765
|
+
const turnContent = [skillReferenceGuidance, advisory?.content].filter((section) => Boolean(section)).join("\n\n");
|
|
4768
4766
|
return {
|
|
4769
4767
|
systemPrompt: `${systemPrompt}
|
|
4770
4768
|
|
|
4771
4769
|
${guidance}`,
|
|
4772
|
-
...
|
|
4770
|
+
...turnContent ? {
|
|
4773
4771
|
message: {
|
|
4774
4772
|
customType: CAPABILITY_ADVISORY_CUSTOM_TYPE,
|
|
4775
|
-
content:
|
|
4776
|
-
display: advisory
|
|
4777
|
-
details: advisory
|
|
4773
|
+
content: turnContent,
|
|
4774
|
+
display: advisory?.display ?? false,
|
|
4775
|
+
details: advisory?.details ?? {}
|
|
4778
4776
|
}
|
|
4779
4777
|
} : {}
|
|
4780
4778
|
};
|