@ycodium-ai/plugin-redteam-model 0.2.3120 → 0.2.3130
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.js +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -693,7 +693,7 @@ function openRuntime(ctx, now = () => (/* @__PURE__ */ new Date()).toISOString()
|
|
|
693
693
|
return skipped;
|
|
694
694
|
};
|
|
695
695
|
const project = async (threadId, session) => {
|
|
696
|
-
await ctx.sessionProjections.set({
|
|
696
|
+
await ctx.plugins.sessionProjections.set({
|
|
697
697
|
name: PROJECTION_NAME,
|
|
698
698
|
threadId,
|
|
699
699
|
value: sessionValue(session)
|
|
@@ -1018,7 +1018,7 @@ function createTools(host) {
|
|
|
1018
1018
|
// src/index.ts
|
|
1019
1019
|
var redteamModelPlugin = definePlugin({
|
|
1020
1020
|
id: "redteam-model",
|
|
1021
|
-
apiVersion:
|
|
1021
|
+
apiVersion: 14,
|
|
1022
1022
|
activate(ctx) {
|
|
1023
1023
|
const runtime = openRuntime(ctx);
|
|
1024
1024
|
ctx.sessionProjections.register({ name: PROJECTION_NAME });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-redteam-model",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3130",
|
|
4
4
|
"description": "Deploys ten session modes, a gate rail, and a tool guard. The executor keeps the model connection.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"redteam-model",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"react": "19.2.6",
|
|
26
26
|
"typescript": "~6.0.3",
|
|
27
27
|
"vite-plus": "0.2.2",
|
|
28
|
-
"@ycodium/
|
|
29
|
-
"@ycodium
|
|
28
|
+
"@ycodium-ai/plugin-api": "0.2.3130",
|
|
29
|
+
"@ycodium/contracts": "0.0.33"
|
|
30
30
|
},
|
|
31
31
|
"ycodium": {
|
|
32
32
|
"plugin": "./dist/index.js",
|