@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
22 lines • 974 B
JavaScript
import React from 'react';
/**
* The /context-max command sets the maximum context length for the current session.
*
* Note: The actual command logic is handled in app-util.ts handleContextMaxCommand()
* because it requires access to app state that isn't available through the standard
* command handler interface.
*
* Usage:
* /context-max <number> - Set context limit (supports k/K suffix, e.g. 128k)
* /context-max - Show current effective context limit
* /context-max --reset - Clear session override
*/
export const contextMaxCommand = {
name: 'context-max',
description: 'Set maximum context length for this session (e.g. /context-max 128k, --reset to clear)',
handler: async (_args, _messages, _metadata) => {
// Handler returns empty fragment - actual logic in app-util.ts handleContextMaxCommand()
return Promise.resolve(React.createElement(React.Fragment));
},
};
//# sourceMappingURL=context-max.js.map