@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.mjs
CHANGED
|
@@ -10317,7 +10317,14 @@ ${pluginAppend}`;
|
|
|
10317
10317
|
const reason = opened.denied.reason;
|
|
10318
10318
|
const blocked = {
|
|
10319
10319
|
...input,
|
|
10320
|
-
messages: [...opened.messages, { role: "assistant", name: "guardrail", content: reason }]
|
|
10320
|
+
messages: [...opened.messages, { role: "assistant", name: "guardrail", content: reason }],
|
|
10321
|
+
ctx: {
|
|
10322
|
+
...input.ctx || {},
|
|
10323
|
+
__guardrailBlocked: {
|
|
10324
|
+
phase: "request",
|
|
10325
|
+
incident: { reason, deniedBy: opened.denied.deniedBy, hook: "userPromptSubmit" }
|
|
10326
|
+
}
|
|
10327
|
+
}
|
|
10321
10328
|
};
|
|
10322
10329
|
sessionHolder.value = blocked;
|
|
10323
10330
|
const deniedResult = {
|