index.ts
commands/reload-plugins/index.ts
19
Lines
653
Bytes
0
Exports
1
Imports
10
Keywords
What this is
This page documents one file from the repository and includes its full source so you can read it without leaving the docs site.
Beginner explanation
This file lives in the command layer. It likely turns a user action into concrete program behavior.
How it is used
Start from the exports list and related files. Those are the easiest clues for where this file fits into the system.
Expert explanation
Architecturally, this file intersects with commands. It contains 19 lines, 1 detected imports, and 0 detected exports.
Important relationships
- commands/reload-plugins/reload-plugins.ts
- commands/add-dir/index.ts
- commands/agents/index.ts
- commands/branch/index.ts
- commands/bridge/index.ts
- commands/btw/index.ts
- commands/chrome/index.ts
- commands/clear/index.ts
- commands/color/index.ts
- commands/compact/index.ts
- commands/config/index.ts
- commands/context/index.ts
Detected exports
- No clear exports detected.
Keywords
reload-pluginsreloadpluginspendingpluginchangessessioncommandcommandslayer-3refresh
Detected imports
../../commands.js
Source notes
This page embeds the full file contents. Small or leaf files are still indexed honestly instead of being over-explained.
Full source
/**
* /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