forked from 777genius/claude-code-source-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
20 lines (16 loc) · 655 Bytes
/
Copy pathindex.ts
File metadata and controls
20 lines (16 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
* /reload-plugins — Layer-3 refresh. Applies pending plugin changes to the
* running session. Implementation lazy-loaded.
*/
import type { Command } from '../../commands.js'
const reloadPlugins = {
type: 'local',
name: 'reload-plugins',
description: 'Activate pending plugin changes in the current session',
// SDK callers use query.reloadPlugins() (control request) instead of
// sending this as a text prompt — that returns structured data
// (commands, agents, plugins, mcpServers) for UI updates.
supportsNonInteractive: false,
load: () => import('./reload-plugins.js'),
} satisfies Command
export default reloadPlugins