dsh-plugin-admin 0.4.3 → 0.5.1

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.
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Shipped tool-name seed for the subagent management panel's tool-constraint
3
+ * picker. Generated from this harness checkout's generated tool catalog
4
+ * (docs/tool-catalog.md, "Tool Package Map"), so the picker offers every real
5
+ * model-visible tool name the shipped tool plugins register — including the
6
+ * preset-plane tools the web surface mounts per session, which the host-plane
7
+ * global registry alone cannot see.
8
+ *
9
+ * Validation truth at delegation time stays with the harness: a restriction
10
+ * naming a tool the child cannot see fails loud at start. The seed only powers
11
+ * suggestions and blocks obviously unknown names.
12
+ */
13
+
14
+ /** Tool name -> registering plugin package (shipped products only). */
15
+ export const TOOL_SEED = {
16
+ ask_user_question: 'dsh-tool-ask-user',
17
+ bash: 'dsh-tool-bash',
18
+ cordis_define: 'dsh-tool-cordis',
19
+ cordis_inspect_list: 'dsh-tool-cordis',
20
+ cordis_inspect_query: 'dsh-tool-cordis',
21
+ cordis_inspect_self: 'dsh-tool-cordis',
22
+ cordis_run: 'dsh-tool-cordis',
23
+ cordis_stop: 'dsh-tool-cordis',
24
+ cordis_undefine: 'dsh-tool-cordis',
25
+ create_goal: 'dsh-tool-goal',
26
+ edit: 'dsh-tool-fs',
27
+ exit_plan_mode: 'dsh-plan-mode',
28
+ followup_task: 'dsh-experimental-tool-agent-team',
29
+ get_goal: 'dsh-tool-goal',
30
+ glob: 'dsh-tool-fs-search',
31
+ grep: 'dsh-tool-fs-search',
32
+ interrupt_agent: 'dsh-tool-subagent-control',
33
+ job_kill: 'dsh-tool-jobs',
34
+ job_list: 'dsh-tool-jobs',
35
+ job_output: 'dsh-tool-jobs',
36
+ list_agents: 'dsh-tool-subagent-control',
37
+ lsp: 'dsh-tool-lsp',
38
+ pwsh: 'dsh-tool-pwsh',
39
+ ralph: 'dsh-tool-ralph',
40
+ read: 'dsh-tool-fs',
41
+ read_image: 'dsh-tool-fs',
42
+ report: 'dsh-tool-subagent-report',
43
+ spawn_teammate: 'dsh-experimental-tool-agent-team',
44
+ str_replace_editor: 'dsh-tool-str-replace-editor',
45
+ subagent: 'dsh-tool-subagent',
46
+ subagent_fork: 'dsh-tool-subagent',
47
+ team_task_create: 'dsh-experimental-tool-agent-team',
48
+ team_task_get: 'dsh-experimental-tool-agent-team',
49
+ team_task_list: 'dsh-experimental-tool-agent-team',
50
+ team_task_update: 'dsh-experimental-tool-agent-team',
51
+ terminal_close: 'dsh-tool-terminal',
52
+ terminal_list: 'dsh-tool-terminal',
53
+ terminal_open: 'dsh-tool-terminal',
54
+ terminal_read: 'dsh-tool-terminal',
55
+ terminal_send: 'dsh-tool-terminal',
56
+ terminal_signal: 'dsh-tool-terminal',
57
+ todo_write: 'dsh-tool-todo',
58
+ update_goal: 'dsh-tool-goal',
59
+ wait_agent: 'dsh-experimental-tool-agent-team',
60
+ web_fetch: 'dsh-tool-web',
61
+ web_search: 'dsh-tool-web',
62
+ workflow: 'dsh-tool-workflow',
63
+ write: 'dsh-tool-fs',
64
+ }
65
+
66
+ /** Tool names the model-facing restriction seam reserves or the shipped presets own. */
67
+ export const RESERVED_TOOL_NAMES = ['run_code', 'subagent', 'subagent_fork']
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-plugin-admin",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
- "description": "dsh web UI plugin: administration surfaces for the settings UI 扩展插件 tab in the Plugins page, plus MCP服务器 and 历史会话 settings pages (host remote + browser panel)",
5
+ "description": "dsh web UI admin plugin: extension-plugin marketplace tab, MCP server & session-history settings pages, and subagent management (named delegation-tool instances with persona/tool-filter/model config, plus external CLI backend mounting) all persisted as profile cordis.patch.yml rows that Cordis HMR hot-reloads",
6
6
  "main": "lib/index.js",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -13,10 +13,13 @@
13
13
  "dsh",
14
14
  "dsh-plugin",
15
15
  "admin",
16
+ "subagent",
17
+ "mcp",
18
+ "session",
16
19
  "cordis"
17
20
  ],
18
21
  "scripts": {
19
- "test": "node scripts/self-check.mjs && node scripts/host-check.mjs && node scripts/verify-mcp-cache.mjs && node scripts/verify-update-reminders.mjs"
22
+ "test": "node scripts/self-check.mjs && node scripts/host-check.mjs && node scripts/verify-mcp-cache.mjs && node scripts/verify-update-reminders.mjs && node scripts/verify-subagents-host.mjs && node scripts/verify-subagents-client.mjs"
20
23
  },
21
24
  "exports": {
22
25
  ".": "./lib/index.js",