@panguard-ai/panguard-chat 1.0.0 → 1.1.0
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/agent/prompts.js
CHANGED
|
@@ -20,14 +20,14 @@ const USER_TYPE_INSTRUCTIONS = {
|
|
|
20
20
|
'提供 CVE 編號、MITRE ATT&CK 技術編號。',
|
|
21
21
|
'給出 CLI 指令建議(如 iptables、fail2ban)。',
|
|
22
22
|
'包含 IP 位址、端口、程序名等技術細節。',
|
|
23
|
-
'可以提到
|
|
23
|
+
'可以提到 ATR Rule 名稱。',
|
|
24
24
|
].join('\n'),
|
|
25
25
|
en: [
|
|
26
26
|
'The user is a developer; technical terminology is acceptable.',
|
|
27
27
|
'Provide CVE numbers and MITRE ATT&CK technique IDs.',
|
|
28
28
|
'Suggest CLI commands (e.g. iptables, fail2ban).',
|
|
29
29
|
'Include technical details: IP addresses, ports, process names.',
|
|
30
|
-
'
|
|
30
|
+
'ATR Rule names may be referenced.',
|
|
31
31
|
].join('\n'),
|
|
32
32
|
},
|
|
33
33
|
boss: {
|
|
@@ -87,7 +87,7 @@ const SYSTEM_PROMPT_ZH_TW = `
|
|
|
87
87
|
- 你用友善但專業的語氣說話
|
|
88
88
|
|
|
89
89
|
## 語言規則(最重要)
|
|
90
|
-
- 絕對不使用以下術語:
|
|
90
|
+
- 絕對不使用以下術語:IOC、MITRE ATT&CK、CVE(除非用戶是 developer 類型)
|
|
91
91
|
- 用日常語言描述威脅:「有人試圖入侵」而不是「偵測到 T1110 攻擊向量」
|
|
92
92
|
- 用類比幫助理解:「就像有人在嘗試所有鑰匙組合來開你家的門」
|
|
93
93
|
- 始終包含:發生了什麼 -> 嚴重嗎 -> 我做了什麼 -> 你需要做什麼
|
|
@@ -122,7 +122,7 @@ You are the Panguard AI security co-pilot. You communicate with users through me
|
|
|
122
122
|
- You speak in a friendly yet professional tone
|
|
123
123
|
|
|
124
124
|
## Language Rules (Most Important)
|
|
125
|
-
- NEVER use these terms:
|
|
125
|
+
- NEVER use these terms: IOC, MITRE ATT&CK, CVE (unless the user is a developer type)
|
|
126
126
|
- Use everyday language: "someone is trying to break in" instead of "T1110 attack vector detected"
|
|
127
127
|
- Use analogies: "it's like someone trying every key combination to open your front door"
|
|
128
128
|
- Always include: what happened -> how serious -> what I did -> what you need to do
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agent/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,8EAA8E;AAC9E,2DAA2D;AAC3D,mBAAmB;AACnB,8EAA8E;AAE9E,MAAM,sBAAsB,GAAsD;IAChF,SAAS,EAAE;QACT,OAAO,EAAE;YACP,kBAAkB;YAClB,8BAA8B;YAC9B,mCAAmC;YACnC,uBAAuB;YACvB,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agent/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,8EAA8E;AAC9E,2DAA2D;AAC3D,mBAAmB;AACnB,8EAA8E;AAE9E,MAAM,sBAAsB,GAAsD;IAChF,SAAS,EAAE;QACT,OAAO,EAAE;YACP,kBAAkB;YAClB,8BAA8B;YAC9B,mCAAmC;YACnC,uBAAuB;YACvB,mBAAmB;SACpB,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,EAAE,EAAE;YACF,+DAA+D;YAC/D,qDAAqD;YACrD,iDAAiD;YACjD,gEAAgE;YAChE,mCAAmC;SACpC,CAAC,IAAI,CAAC,IAAI,CAAC;KACb;IACD,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,kBAAkB;YAClB,iBAAiB;YACjB,8BAA8B;YAC9B,iBAAiB;YACjB,4BAA4B;YAC5B,aAAa;SACd,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,EAAE,EAAE;YACF,sEAAsE;YACtE,sDAAsD;YACtD,oGAAoG;YACpG,oDAAoD;YACpD,iFAA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
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@panguard-ai/core": "1.
|
|
35
|
+
"@panguard-ai/core": "1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.14.0",
|