@lievclouds/dsh-cortex 0.3.4 → 0.3.6

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/index.js CHANGED
@@ -41,14 +41,16 @@ export function apply(ctx, config) {
41
41
  name: 'dsh-cortex.tools',
42
42
  order: 500,
43
43
  text: [
44
- '## Cortex (dsh-cortex plugin, no MCP needed)',
45
- 'The local Cortex database (schema v5) is available through native tools. The old `mcp__cortex__*` servers/skills are not required; prefer the `cortex_*` tools whenever the user mentions Cortex, 漏洞库/漏洞, 资产, 快照, 内网作战 or 记忆星云.',
46
- '- Cortex findings: `cortex_list_vulns` / `cortex_get_vuln`; save with `cortex_save_vuln` (dedupe by host first).',
44
+ '## Cortex (dsh-cortex plugin, always active)',
45
+ 'This plugin is installed and injects this guide automatically: the cortex_* tools below are available in every conversation without a skill or an MCP server.',
46
+ 'When the user asks for ANY authorized penetration-testing work (渗透测试 / SRC / 漏洞挖掘 / 安全评估 / 资产与接口侦察 / 内网横向 / 漏洞复测), use the Cortex tools proactively instead of relying on memory:',
47
+ '- Reuse memory first: `cortex_list_snapshots` + `cortex_get_snapshot` for task progress, `cortex_list_vulns` + `cortex_get_asset` for existing findings/assets; `cortex_list_assets` before repeating recon.',
48
+ '- Persist confirmed findings: dedupe with `cortex_list_vulns`, then `cortex_save_vuln` (reproduction_steps in Markdown).',
49
+ '- Persist recon context: `cortex_sync_asset_info` (mode=merge) for fingerprints, interfaces (raw HTTP), leaks and test parameters.',
47
50
  '- Status / retest: `cortex_update_vuln_status`, `cortex_append_retest` (append-only, never overwrite original evidence).',
48
- '- Assets: `cortex_list_assets`, `cortex_get_asset`, `cortex_sync_asset_info` (fingerprints, interfaces, leaks, test parameters).',
49
- '- Snapshots / internal / nebula: `cortex_list_snapshots`, `cortex_get_snapshot`, `cortex_internal_overview`, `cortex_graph_summary`.',
50
- 'Examples that should call the tools: “列出 Cortex 里的高危漏洞”, “把刚才确认的漏洞写入 Cortex”, “把 127.0.0.1:8080 的接口同步到资产库”, “把 VULN-… 标记为已确认并追加复测结论”.',
51
- 'If a tools call fails, report the failure; never claim a record was stored without a successful result.',
51
+ '- Summaries: `cortex_internal_overview`, `cortex_graph_summary`.',
52
+ 'Do not skip these calls merely because no skill was loaded. If a tool call fails, report the failure; never claim a record was saved without a successful result.',
53
+ 'Examples: “列出 Cortex 里的高危漏洞”, “把刚才确认的漏洞写入 Cortex”, “把 127.0.0.1:8080 的接口同步到资产库”, “把 VULN-… 标记为已确认并追加复测结论”.',
52
54
  ].join('\n'),
53
55
  }),
54
56
  'dsh-cortex: usage prompt',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lievclouds/dsh-cortex",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "Cortex workbench for DeepSeek Harness: the original Cortex UI (vulnerabilities, assets, internal operations, Memory Nebula, snapshots, retest) as a native DSH panel, plus 12 native agent tools so DSH conversations use the local Cortex SQLite without MCP.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -99,6 +99,14 @@
99
99
  border: 3px solid transparent;
100
100
  }
101
101
 
102
+ /* DSH draws its native window buttons above the page in the top-right corner.
103
+ Right-hand inspector sheets start at the very top edge, so their header
104
+ actions (export / close) ended up underneath those buttons. Move every sheet
105
+ below that band; the overlay still dims the area behind it. */
106
+ .dshc-cortex-root .sheet-content {
107
+ top: calc(0.875rem + 2.25rem);
108
+ }
109
+
102
110
  /* ------------------------------------------------------------------------- */
103
111
  /* DSH shell adaptations */
104
112
  /* ------------------------------------------------------------------------- */