@ycodium-ai/plugin-pentest 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 +42 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "@ycodium-ai/plugin-api";
|
|
6
6
|
|
|
7
7
|
// ../../packages/plugin-api/src/version.ts
|
|
8
|
-
var PLUGIN_API_VERSION =
|
|
8
|
+
var PLUGIN_API_VERSION = 171;
|
|
9
9
|
|
|
10
10
|
// locales/en.json
|
|
11
11
|
var en_default = {
|
|
@@ -667,6 +667,11 @@ function recordTools(service) {
|
|
|
667
667
|
}
|
|
668
668
|
},
|
|
669
669
|
["target", "objective"],
|
|
670
|
+
{
|
|
671
|
+
argumentUsage: {
|
|
672
|
+
valid: { target: "Inventory document", objective: "Review the asset list." }
|
|
673
|
+
}
|
|
674
|
+
},
|
|
670
675
|
(args, invocation) => mutate(
|
|
671
676
|
service,
|
|
672
677
|
invocation,
|
|
@@ -689,6 +694,11 @@ function recordTools(service) {
|
|
|
689
694
|
detail: { type: "string" }
|
|
690
695
|
},
|
|
691
696
|
["anchorKind", "anchorId", "title"],
|
|
697
|
+
{
|
|
698
|
+
argumentUsage: {
|
|
699
|
+
valid: { anchorKind: "goal", anchorId: "goal-1", title: "Review the inventory" }
|
|
700
|
+
}
|
|
701
|
+
},
|
|
692
702
|
(args, invocation) => mutate(
|
|
693
703
|
service,
|
|
694
704
|
invocation,
|
|
@@ -713,6 +723,11 @@ function recordTools(service) {
|
|
|
713
723
|
confidence: { type: "number", description: "From 0 to 1. Defaults to 0.5." }
|
|
714
724
|
},
|
|
715
725
|
["intentId", "factKind", "detail"],
|
|
726
|
+
{
|
|
727
|
+
argumentUsage: {
|
|
728
|
+
valid: { intentId: "intent-1", factKind: "info", detail: "Inventory reviewed." }
|
|
729
|
+
}
|
|
730
|
+
},
|
|
716
731
|
(args, invocation) => mutate(
|
|
717
732
|
service,
|
|
718
733
|
invocation,
|
|
@@ -743,6 +758,16 @@ function recordTools(service) {
|
|
|
743
758
|
affectedAssetId: { type: "string" }
|
|
744
759
|
},
|
|
745
760
|
["intentId", "title", "severity", "steps"],
|
|
761
|
+
{
|
|
762
|
+
argumentUsage: {
|
|
763
|
+
valid: {
|
|
764
|
+
intentId: "intent-1",
|
|
765
|
+
title: "Missing owner",
|
|
766
|
+
severity: "info",
|
|
767
|
+
steps: ["Read the inventory entry."]
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
},
|
|
746
771
|
(args, invocation) => mutate(
|
|
747
772
|
service,
|
|
748
773
|
invocation,
|
|
@@ -771,6 +796,7 @@ function recordTools(service) {
|
|
|
771
796
|
parentId: { type: "string" }
|
|
772
797
|
},
|
|
773
798
|
["type", "value"],
|
|
799
|
+
{ argumentUsage: { valid: { type: "app", value: "Example app" } } },
|
|
774
800
|
(args, invocation) => mutate(
|
|
775
801
|
service,
|
|
776
802
|
invocation,
|
|
@@ -789,6 +815,7 @@ function recordTools(service) {
|
|
|
789
815
|
"Read counts and the goal for this session's full store, not the panel window.",
|
|
790
816
|
{},
|
|
791
817
|
[],
|
|
818
|
+
{ argumentUsage: { valid: {} } },
|
|
792
819
|
async (_args, invocation) => {
|
|
793
820
|
const threadId = invocation.threadId;
|
|
794
821
|
if (threadId === null) return failure("no session");
|
|
@@ -805,6 +832,7 @@ function recordTools(service) {
|
|
|
805
832
|
"Read the full assessment graph for this session.",
|
|
806
833
|
{},
|
|
807
834
|
[],
|
|
835
|
+
{ argumentUsage: { valid: {} } },
|
|
808
836
|
async (_args, invocation) => {
|
|
809
837
|
const threadId = invocation.threadId;
|
|
810
838
|
if (threadId === null) return failure("no session");
|
|
@@ -828,6 +856,7 @@ function recordTools(service) {
|
|
|
828
856
|
"Read a Markdown report of the full store. When the session workspace is writable, also save pentest/report.md.",
|
|
829
857
|
{},
|
|
830
858
|
[],
|
|
859
|
+
{ argumentUsage: { valid: {} } },
|
|
831
860
|
async (_args, invocation) => {
|
|
832
861
|
const threadId = invocation.threadId;
|
|
833
862
|
if (threadId === null) return failure("no session");
|
|
@@ -865,6 +894,16 @@ function recordTools(service) {
|
|
|
865
894
|
affectedAssetId: { type: "string" }
|
|
866
895
|
},
|
|
867
896
|
["intentId", "recordKind"],
|
|
897
|
+
{
|
|
898
|
+
argumentUsage: {
|
|
899
|
+
valid: {
|
|
900
|
+
intentId: "intent-1",
|
|
901
|
+
recordKind: "fact",
|
|
902
|
+
factKind: "info",
|
|
903
|
+
detail: "Inventory reviewed."
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
},
|
|
868
907
|
async (args, invocation) => {
|
|
869
908
|
const threadId = invocation.threadId;
|
|
870
909
|
if (threadId === null) return failure("no session");
|
|
@@ -884,11 +923,12 @@ function recordTools(service) {
|
|
|
884
923
|
)
|
|
885
924
|
];
|
|
886
925
|
}
|
|
887
|
-
function tool(name, description, properties, required, handle) {
|
|
926
|
+
function tool(name, description, properties, required, { argumentUsage }, handle) {
|
|
888
927
|
return {
|
|
889
928
|
name,
|
|
890
929
|
description,
|
|
891
930
|
...name === SUBMIT_TOOL ? {} : { whenPresetId: PRESET_ID },
|
|
931
|
+
argumentUsage,
|
|
892
932
|
inputSchema: {
|
|
893
933
|
type: "object",
|
|
894
934
|
properties,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-pentest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5448",
|
|
4
4
|
"description": "Records an assessment graph on a session: goal, intents, evidence, assets, and findings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sessions",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typescript": "~6.0.3",
|
|
26
26
|
"vite-plus": "0.2.2",
|
|
27
27
|
"@ycodium-ai/plugin-api": "0.2.0",
|
|
28
|
-
"ycodium-
|
|
29
|
-
"ycodium-
|
|
28
|
+
"ycodium-ui-hooks": "0.0.0",
|
|
29
|
+
"ycodium-plugin-testing": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"ycodium": {
|
|
32
32
|
"plugin": "./dist/index.js",
|