@ycodium-ai/plugin-redteam-model 0.2.3024 → 0.2.3054

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -890,16 +890,15 @@ function openRuntime(ctx, now = () => (/* @__PURE__ */ new Date()).toISOString()
890
890
  if (threadId.length === 0) return { ok: false, error: "thread-missing" };
891
891
  const execution = await ctx.projections.getThreadExecution(threadId);
892
892
  if (execution === null) return { ok: false, error: "thread-missing" };
893
- await ctx.commands.dispatch(reminderCommand(threadId, execution, now()));
893
+ await ctx.threads.turns.start(reminderCommand(threadId, execution));
894
894
  return { ok: true };
895
895
  }
896
896
  };
897
897
  return runtime;
898
898
  }
899
- function reminderCommand(threadId, execution, at) {
899
+ function reminderCommand(threadId, execution) {
900
900
  return {
901
- type: "thread.turn.start",
902
- commandId: NodeCrypto.randomUUID(),
901
+ requestId: NodeCrypto.randomUUID(),
903
902
  threadId,
904
903
  message: {
905
904
  messageId: NodeCrypto.randomUUID(),
@@ -909,7 +908,6 @@ function reminderCommand(threadId, execution, at) {
909
908
  },
910
909
  runtimeMode: execution.runtimeMode,
911
910
  interactionMode: execution.interactionMode,
912
- createdAt: at,
913
911
  ...execution.modelSelection == null ? {} : { modelSelection: execution.modelSelection }
914
912
  };
915
913
  }
@@ -1020,7 +1018,7 @@ function createTools(host) {
1020
1018
  // src/index.ts
1021
1019
  var redteamModelPlugin = definePlugin({
1022
1020
  id: "redteam-model",
1023
- apiVersion: 9,
1021
+ apiVersion: 11,
1024
1022
  activate(ctx) {
1025
1023
  const runtime = openRuntime(ctx);
1026
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.3024",
3
+ "version": "0.2.3054",
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,7 +25,7 @@
25
25
  "react": "19.2.6",
26
26
  "typescript": "~6.0.3",
27
27
  "vite-plus": "0.2.2",
28
- "@ycodium-ai/plugin-api": "0.2.3024",
28
+ "@ycodium-ai/plugin-api": "0.2.3054",
29
29
  "@ycodium/contracts": "0.0.33"
30
30
  },
31
31
  "ycodium": {