@ycodium-ai/plugin-redteam-model 0.2.5412 → 0.2.5448
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 +8 -1
- package/package.json +3 -10
- package/skills/redteam-model/SKILL.md +0 -19
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
3
3
|
|
|
4
4
|
// ../../packages/plugin-api/src/version.ts
|
|
5
|
-
var PLUGIN_API_VERSION =
|
|
5
|
+
var PLUGIN_API_VERSION = 171;
|
|
6
6
|
|
|
7
7
|
// src/catalog.ts
|
|
8
8
|
var PLUGIN_ID = "redteam-model";
|
|
@@ -935,6 +935,7 @@ function createTools(host) {
|
|
|
935
935
|
{
|
|
936
936
|
name: "gates_list",
|
|
937
937
|
description: "List the four workflow gates for the selected mode: authorization, scope, evidence, and report. Does not describe a procedure.",
|
|
938
|
+
argumentUsage: { valid: {} },
|
|
938
939
|
inputSchema: objectSchema2({}),
|
|
939
940
|
handle: async (_input, invocation) => {
|
|
940
941
|
await host.ready();
|
|
@@ -950,6 +951,7 @@ function createTools(host) {
|
|
|
950
951
|
{
|
|
951
952
|
name: "operation_goal",
|
|
952
953
|
description: "Store a short goal for this session. The text is a label, not a procedure.",
|
|
954
|
+
argumentUsage: { valid: { goal: "Review the inventory" } },
|
|
953
955
|
inputSchema: objectSchema2({ goal: { type: "string", description: "Short goal label." } }, [
|
|
954
956
|
"goal"
|
|
955
957
|
]),
|
|
@@ -964,6 +966,7 @@ function createTools(host) {
|
|
|
964
966
|
{
|
|
965
967
|
name: "operation_progress",
|
|
966
968
|
description: "Store done and total counts for the session progress chip.",
|
|
969
|
+
argumentUsage: { valid: { done: 1, total: 3 } },
|
|
967
970
|
inputSchema: objectSchema2(
|
|
968
971
|
{
|
|
969
972
|
done: { type: "number", description: "Completed count." },
|
|
@@ -986,6 +989,7 @@ function createTools(host) {
|
|
|
986
989
|
{
|
|
987
990
|
name: "publish",
|
|
988
991
|
description: "Open the report gate after authorization is recorded. The guard can refuse this call before it runs.",
|
|
992
|
+
argumentUsage: { valid: {} },
|
|
989
993
|
inputSchema: objectSchema2({}),
|
|
990
994
|
handle: async (_input, invocation) => {
|
|
991
995
|
await host.ready();
|
|
@@ -999,12 +1003,14 @@ function createTools(host) {
|
|
|
999
1003
|
{
|
|
1000
1004
|
name: "probe",
|
|
1001
1005
|
description: "Harmless call used to show a guard refusal. It does not touch the workspace.",
|
|
1006
|
+
argumentUsage: { valid: {} },
|
|
1002
1007
|
inputSchema: objectSchema2({}),
|
|
1003
1008
|
handle: async () => text("probe ran")
|
|
1004
1009
|
},
|
|
1005
1010
|
{
|
|
1006
1011
|
name: "ledger_note",
|
|
1007
1012
|
description: "Append a short note to this session ledger.",
|
|
1013
|
+
argumentUsage: { valid: { note: "Inventory reviewed." } },
|
|
1008
1014
|
inputSchema: objectSchema2({ note: { type: "string", description: "Short note." } }, ["note"]),
|
|
1009
1015
|
handle: async (input, invocation) => {
|
|
1010
1016
|
await host.ready();
|
|
@@ -1034,6 +1040,7 @@ var redteamModelPlugin = definePlugin({
|
|
|
1034
1040
|
handle: (event) => runtime.rememberCreated(event)
|
|
1035
1041
|
});
|
|
1036
1042
|
registerCommands(ctx, runtime);
|
|
1043
|
+
return runtime.ready();
|
|
1037
1044
|
}
|
|
1038
1045
|
});
|
|
1039
1046
|
var index_default = redteamModelPlugin;
|
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.5448",
|
|
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",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
13
|
"assets",
|
|
14
|
-
"skills",
|
|
15
14
|
"locales",
|
|
16
15
|
"README.md"
|
|
17
16
|
],
|
|
@@ -27,8 +26,8 @@
|
|
|
27
26
|
"vite-plus": "0.2.2",
|
|
28
27
|
"@ycodium-ai/plugin-api": "0.2.0",
|
|
29
28
|
"@ycodium/contracts": "0.0.33",
|
|
30
|
-
"ycodium-
|
|
31
|
-
"ycodium-
|
|
29
|
+
"ycodium-ui-hooks": "0.0.0",
|
|
30
|
+
"ycodium-plugin-testing": "0.0.0"
|
|
32
31
|
},
|
|
33
32
|
"ycodium": {
|
|
34
33
|
"plugin": "./dist/index.js",
|
|
@@ -67,12 +66,6 @@
|
|
|
67
66
|
]
|
|
68
67
|
}
|
|
69
68
|
],
|
|
70
|
-
"skills": [
|
|
71
|
-
{
|
|
72
|
-
"dir": "./skills/redteam-model",
|
|
73
|
-
"files": []
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
69
|
"ui": {
|
|
77
70
|
"assets": "./assets",
|
|
78
71
|
"entry": "ui.js",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: redteam-model
|
|
3
|
-
description: How to use the mode manager tools for gates, a short goal, progress, a report gate, a harmless probe, and a note. Load when the user message names one of those tools.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Mode manager
|
|
7
|
-
|
|
8
|
-
The mode manager records workflow gates. It does not describe a procedure.
|
|
9
|
-
|
|
10
|
-
Tools, when the matching module is installed:
|
|
11
|
-
|
|
12
|
-
- `redteam-model_gates_list` lists authorization, scope, evidence, and report.
|
|
13
|
-
- `redteam-model_operation_goal` stores a short label.
|
|
14
|
-
- `redteam-model_operation_progress` stores done and total counts.
|
|
15
|
-
- `redteam-model_publish` opens the report gate only after authorization is recorded. A guard can refuse it first.
|
|
16
|
-
- `redteam-model_probe` is a harmless call. It may be held.
|
|
17
|
-
- `redteam-model_ledger_note` appends a short note.
|
|
18
|
-
|
|
19
|
-
Do not invent steps, payloads, or a bypass. If a tool returns an error, stop and say which module or gate is missing.
|