ProtectedcurrentProtected ReadonlyfileProtectedfileProtected ReadonlyloggerProtected ReadonlypromptProtected ReadonlytoProtected ReadonlyworkspaceProtectedclearProtectedgetProtectedgetProtectedgetProtectedgetProtectedhandleProtectedhandleProtectedinitializeProtectedisProtectedlistProtectedlistCalled when the application is started. The application shell is not attached yet when this method runs. Should return a promise if it runs asynchronously.
Called when an application is stopped or unloaded.
Note that this is implemented using window.beforeunload which doesn't allow any asynchronous code anymore.
I.e. this is the last tick.
ProtectedregisterProtectedregisterProtectedregisterProtectedsetup
TODO: multi-root workspace support - currently only discovers slash commands from the first workspace root. Should be updated to scan .claude/commands/ in all workspace roots, potentially merging or namespacing commands by root.