@cognipeer/agent-sdk 0.10.0 → 0.10.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.
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10327,7 +10327,14 @@ ${pluginAppend}`;
|
|
|
10327
10327
|
const reason = opened.denied.reason;
|
|
10328
10328
|
const blocked = {
|
|
10329
10329
|
...input,
|
|
10330
|
-
messages: [...opened.messages, { role: "assistant", name: "guardrail", content: reason }]
|
|
10330
|
+
messages: [...opened.messages, { role: "assistant", name: "guardrail", content: reason }],
|
|
10331
|
+
ctx: {
|
|
10332
|
+
...input.ctx || {},
|
|
10333
|
+
__guardrailBlocked: {
|
|
10334
|
+
phase: "request",
|
|
10335
|
+
incident: { reason, deniedBy: opened.denied.deniedBy, hook: "userPromptSubmit" }
|
|
10336
|
+
}
|
|
10337
|
+
}
|
|
10331
10338
|
};
|
|
10332
10339
|
sessionHolder.value = blocked;
|
|
10333
10340
|
const deniedResult = {
|