@vtstech/pi-security 1.0.8 → 1.0.9
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/package.json +2 -2
- package/security.js +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtstech/pi-security",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Security extension for Pi Coding Agent",
|
|
5
5
|
"main": "security.js",
|
|
6
6
|
"keywords": ["pi-extensions"],
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/VTSTech/pi-coding-agent"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@vtstech/pi-shared": "1.0.
|
|
17
|
+
"@vtstech/pi-shared": "1.0.9"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@mariozechner/pi-coding-agent": ">=0.66"
|
package/security.js
CHANGED
|
@@ -18,7 +18,7 @@ function security_temp_default(pi) {
|
|
|
18
18
|
byRule: {}
|
|
19
19
|
};
|
|
20
20
|
const branding = [
|
|
21
|
-
` \u26A1 Pi Security Extension v1.0.
|
|
21
|
+
` \u26A1 Pi Security Extension v1.0.9`,
|
|
22
22
|
` Written by VTSTech`,
|
|
23
23
|
` GitHub: https://github.com/VTSTech`,
|
|
24
24
|
` Website: www.vts-tech.org`
|
|
@@ -87,7 +87,7 @@ function security_temp_default(pi) {
|
|
|
87
87
|
toolCallId,
|
|
88
88
|
action: "allowed",
|
|
89
89
|
rule: result.rule || "none",
|
|
90
|
-
detail: "
|
|
90
|
+
detail: "Bash/tool executed (allowed)",
|
|
91
91
|
input: sanitizeInputForLog(input)
|
|
92
92
|
});
|
|
93
93
|
}
|
|
@@ -189,7 +189,10 @@ function security_temp_default(pi) {
|
|
|
189
189
|
promptGuidelines: [
|
|
190
190
|
"When the user asks about security, blocked operations, or audit log, call security_audit."
|
|
191
191
|
],
|
|
192
|
-
parameters: {
|
|
192
|
+
parameters: {
|
|
193
|
+
type: "object",
|
|
194
|
+
properties: {}
|
|
195
|
+
},
|
|
193
196
|
execute: async (_toolCallId, _params, _signal, _onUpdate, _ctx) => {
|
|
194
197
|
try {
|
|
195
198
|
const report = await generateAuditReport();
|