@denizokcu/haze 0.6.0 → 0.8.0

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.
Files changed (160) hide show
  1. package/CHANGELOG.md +42 -7
  2. package/README.md +81 -34
  3. package/dist/cli/chat/TaskBar.d.ts +9 -0
  4. package/dist/cli/chat/TaskBar.js +40 -0
  5. package/dist/cli/chat/chatMetrics.d.ts +11 -0
  6. package/dist/cli/chat/chatMetrics.js +50 -0
  7. package/dist/cli/chat/inputSuggestions.d.ts +16 -0
  8. package/dist/cli/chat/inputSuggestions.js +55 -0
  9. package/dist/cli/chat/messages.d.ts +9 -0
  10. package/dist/cli/chat/messages.js +76 -0
  11. package/dist/cli/chat/sessionRecorder.d.ts +12 -0
  12. package/dist/cli/chat/sessionRecorder.js +21 -0
  13. package/dist/cli/chat/startupInfo.d.ts +4 -0
  14. package/dist/cli/chat/startupInfo.js +53 -0
  15. package/dist/cli/chat/turnState.d.ts +5 -0
  16. package/dist/cli/chat/turnState.js +20 -0
  17. package/dist/cli/commands/chat.d.ts +0 -1
  18. package/dist/cli/commands/chat.js +331 -906
  19. package/dist/cli/commands/chatModes.d.ts +8 -0
  20. package/dist/cli/commands/chatModes.js +44 -0
  21. package/dist/cli/commands/commandHelp.d.ts +6 -0
  22. package/dist/cli/commands/commandHelp.js +25 -0
  23. package/dist/cli/commands/commands.d.ts +1 -1
  24. package/dist/cli/commands/commands.js +41 -267
  25. package/dist/cli/commands/formatters.d.ts +6 -0
  26. package/dist/cli/commands/formatters.js +50 -4
  27. package/dist/cli/commands/initCommand.d.ts +2 -0
  28. package/dist/cli/commands/initCommand.js +19 -0
  29. package/dist/cli/commands/logsCommand.d.ts +2 -0
  30. package/dist/cli/commands/logsCommand.js +63 -0
  31. package/dist/cli/commands/lspWizard.d.ts +14 -0
  32. package/dist/cli/commands/lspWizard.js +44 -0
  33. package/dist/cli/commands/mcpWizard.d.ts +15 -0
  34. package/dist/cli/commands/mcpWizard.js +69 -0
  35. package/dist/cli/commands/modelCommand.d.ts +2 -0
  36. package/dist/cli/commands/modelCommand.js +36 -0
  37. package/dist/cli/commands/providerWizard.d.ts +30 -0
  38. package/dist/cli/commands/providerWizard.js +114 -0
  39. package/dist/cli/commands/runCommand.d.ts +16 -0
  40. package/dist/cli/commands/runCommand.js +170 -0
  41. package/dist/cli/commands/settingsSummary.d.ts +3 -0
  42. package/dist/cli/commands/settingsSummary.js +40 -0
  43. package/dist/cli/commands/skillConfirmRemove.d.ts +11 -0
  44. package/dist/cli/commands/skillConfirmRemove.js +19 -0
  45. package/dist/cli/commands/skillCreation.d.ts +12 -0
  46. package/dist/cli/commands/skillCreation.js +14 -0
  47. package/dist/cli/commands/skillWizard.d.ts +15 -0
  48. package/dist/cli/commands/skillWizard.js +38 -0
  49. package/dist/cli/commands/streaming/assistantText.d.ts +17 -0
  50. package/dist/cli/commands/streaming/assistantText.js +115 -0
  51. package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +55 -0
  52. package/dist/cli/commands/streaming/toolGroupRenderer.js +102 -0
  53. package/dist/cli/commands/streaming/toolResultState.d.ts +13 -0
  54. package/dist/cli/commands/streaming/toolResultState.js +25 -0
  55. package/dist/cli/commands/streaming/turnRuntime.d.ts +78 -0
  56. package/dist/cli/commands/streaming/turnRuntime.js +86 -0
  57. package/dist/cli/commands/streaming.d.ts +9 -25
  58. package/dist/cli/commands/streaming.js +109 -363
  59. package/dist/cli/commands/wizardActions.d.ts +40 -0
  60. package/dist/cli/commands/wizardActions.js +40 -0
  61. package/dist/cli/commands/wizardInput.d.ts +4 -0
  62. package/dist/cli/commands/wizardInput.js +19 -0
  63. package/dist/cli/commands/wizardPrompts.d.ts +22 -0
  64. package/dist/cli/commands/wizardPrompts.js +52 -0
  65. package/dist/cli/commands/wizardSuggestions.d.ts +23 -0
  66. package/dist/cli/commands/wizardSuggestions.js +139 -0
  67. package/dist/cli/index.js +62 -4
  68. package/dist/config/contextFiles.d.ts +8 -1
  69. package/dist/config/contextFiles.js +25 -12
  70. package/dist/config/lspSettings.js +3 -6
  71. package/dist/config/mcpSettings.js +5 -5
  72. package/dist/config/providers.js +8 -12
  73. package/dist/config/settings.d.ts +1 -0
  74. package/dist/config/settings.js +54 -2
  75. package/dist/config/skillSettings.js +4 -3
  76. package/dist/core/agent/budgets.d.ts +6 -0
  77. package/dist/core/agent/budgets.js +6 -0
  78. package/dist/core/agent/compaction.js +3 -3
  79. package/dist/core/agent/errors.js +1 -1
  80. package/dist/core/agent/requestAssembly.d.ts +1 -7
  81. package/dist/core/agent/requestAssembly.js +40 -5
  82. package/dist/core/agent/toolOutputStore.js +5 -4
  83. package/dist/core/agent/toolResults.d.ts +31 -0
  84. package/dist/core/agent/toolResults.js +42 -0
  85. package/dist/core/agent/turnPolicy.d.ts +8 -0
  86. package/dist/core/agent/turnPolicy.js +23 -0
  87. package/dist/core/agent/workState.d.ts +18 -5
  88. package/dist/core/agent/workState.js +39 -20
  89. package/dist/core/bashOutput/reducers/content.d.ts +1 -0
  90. package/dist/core/bashOutput/reducers/content.js +1 -1
  91. package/dist/core/bashOutput/reducers/gh.d.ts +1 -0
  92. package/dist/core/bashOutput/reducers/gh.js +77 -0
  93. package/dist/core/bashOutput/registry.js +18 -8
  94. package/dist/core/goal/completionPolicy.js +1 -1
  95. package/dist/core/goal/sessionGoal.d.ts +6 -30
  96. package/dist/core/goal/sessionGoal.js +3 -68
  97. package/dist/core/safety/bashClassifier.js +30 -0
  98. package/dist/core/safety/urlGuard.d.ts +1 -0
  99. package/dist/core/safety/urlGuard.js +6 -1
  100. package/dist/core/session/sessionSlimming.d.ts +5 -0
  101. package/dist/core/session/sessionSlimming.js +78 -0
  102. package/dist/core/session/sessionStore.d.ts +23 -3
  103. package/dist/core/session/sessionStore.js +30 -10
  104. package/dist/core/subagent/subagentRunner.d.ts +258 -5
  105. package/dist/core/subagent/subagentRunner.js +14 -18
  106. package/dist/core/toolOutput/reduction.d.ts +2 -0
  107. package/dist/core/toolOutput/reduction.js +12 -0
  108. package/dist/core/validation/outputParser.js +5 -3
  109. package/dist/llm/capabilities.d.ts +12 -0
  110. package/dist/llm/capabilities.js +10 -0
  111. package/dist/llm/client.d.ts +3 -2
  112. package/dist/llm/client.js +26 -4
  113. package/dist/llm/hazeTools.d.ts +7710 -366
  114. package/dist/llm/hazeTools.js +46 -567
  115. package/dist/llm/initPrompt.js +1 -1
  116. package/dist/llm/lsp.d.ts +46 -1
  117. package/dist/llm/lsp.js +19 -10
  118. package/dist/llm/lspTools.d.ts +2310 -119
  119. package/dist/llm/mcp.js +9 -0
  120. package/dist/llm/requestContext.js +7 -22
  121. package/dist/llm/systemPrompt.d.ts +1 -0
  122. package/dist/llm/systemPrompt.js +3 -3
  123. package/dist/llm/tools/bashTool.d.ts +251 -0
  124. package/dist/llm/tools/bashTool.js +82 -0
  125. package/dist/llm/tools/editMatch.d.ts +55 -0
  126. package/dist/llm/tools/editMatch.js +99 -0
  127. package/dist/llm/tools/failures.d.ts +36 -0
  128. package/dist/llm/tools/failures.js +38 -0
  129. package/dist/llm/tools/fetchTool.d.ts +1201 -0
  130. package/dist/llm/tools/fetchTool.js +46 -0
  131. package/dist/llm/tools/fileToolShared.d.ts +10 -0
  132. package/dist/llm/tools/fileToolShared.js +43 -0
  133. package/dist/llm/tools/grepParse.d.ts +13 -0
  134. package/dist/llm/tools/grepParse.js +67 -0
  135. package/dist/llm/tools/outputCap.d.ts +53 -0
  136. package/dist/llm/tools/outputCap.js +67 -0
  137. package/dist/llm/tools/storedOutputTool.d.ts +351 -0
  138. package/dist/llm/tools/storedOutputTool.js +17 -0
  139. package/dist/llm/tools/taskTool.d.ts +629 -0
  140. package/dist/llm/tools/taskTool.js +41 -0
  141. package/dist/llm/tools/toolContext.d.ts +74 -0
  142. package/dist/llm/tools/toolContext.js +196 -0
  143. package/dist/llm/tools/workspaceFile.d.ts +33 -0
  144. package/dist/llm/tools/workspaceFile.js +27 -0
  145. package/dist/llm/webFetch.d.ts +13 -1
  146. package/dist/llm/webFetch.js +122 -28
  147. package/dist/skills/builder/SkillBuilder.d.ts +3 -0
  148. package/dist/skills/builder/SkillBuilder.js +8 -8
  149. package/dist/ui/components/TextInput.d.ts +7 -0
  150. package/dist/ui/components/TextInput.js +10 -98
  151. package/dist/ui/inputBuffer.d.ts +28 -0
  152. package/dist/ui/inputBuffer.js +99 -0
  153. package/dist/utils/collections.d.ts +6 -0
  154. package/dist/utils/collections.js +9 -0
  155. package/dist/utils/modelName.d.ts +2 -0
  156. package/dist/utils/modelName.js +15 -0
  157. package/dist/utils/path.d.ts +2 -0
  158. package/dist/utils/path.js +40 -0
  159. package/examples/skills/files/SKILL.md +1 -1
  160. package/package.json +14 -15
@@ -0,0 +1,76 @@
1
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import Spinner from 'ink-spinner';
4
+ import { formatElapsedTime, formatElapsedTimeWhole } from '../commands/formatters.js';
5
+ import { MarkdownText } from '../../ui/components/MarkdownText.js';
6
+ import { isSubstantiveAssistantText } from '../commands/streaming/assistantText.js';
7
+ import { theme } from '../../ui/theme.js';
8
+ function fullWidthLines(text, width, leftPadding = 0) {
9
+ const safeWidth = Math.max(1, width);
10
+ const prefix = ' '.repeat(leftPadding);
11
+ return text.replace(/\r\n|\r/g, '\n').split('\n').map(line => `${prefix}${line}`.padEnd(Math.max(safeWidth, line.length + leftPadding)));
12
+ }
13
+ function fullWidthBlankLine(width) {
14
+ return ''.padEnd(Math.max(1, width));
15
+ }
16
+ function ToolMessageText({ text, streaming }) {
17
+ const lines = text.split('\n');
18
+ return _jsx(Box, { flexDirection: "column", children: lines.map((line, index) => {
19
+ const diffRow = /^(\s*\d+\s+)([+-])(.*)$/.exec(line);
20
+ if (diffRow) {
21
+ const [, prefix, marker, rest] = diffRow;
22
+ const isAdd = marker === '+';
23
+ return _jsxs(Text, { color: "white", backgroundColor: isAdd ? theme.successBg : theme.dangerBg, children: [_jsxs(Text, { color: isAdd ? theme.success : theme.danger, backgroundColor: isAdd ? theme.successBg : theme.dangerBg, children: [prefix, marker] }), rest] }, `${index}-${line}`);
24
+ }
25
+ const contextRow = /^(\s*\d+\s+)\s(.*)$/.exec(line);
26
+ if (contextRow) {
27
+ const [, prefix, rest] = contextRow;
28
+ return _jsxs(Text, { color: "white", children: [_jsxs(Text, { color: theme.muted, children: [prefix, " "] }), rest] }, `${index}-${line}`);
29
+ }
30
+ const row = /^(\s*)([✓✗…])\s+(\S+)(.*)$/.exec(line);
31
+ if (!row) {
32
+ const timer = /(.*) (\([0-9]+(?:h [0-9]+m [0-9]+(?:\.[0-9])?s|m [0-9]+(?:\.[0-9])?s|(?:\.[0-9])?s)\))$/.exec(line);
33
+ return _jsxs(Text, { color: theme.muted, children: [index === 0 && streaming ? _jsxs(_Fragment, { children: [_jsx(Spinner, { type: "dots" }), " "] }) : null, timer ? timer[1] : line, timer ? _jsxs(Text, { color: theme.muted, bold: false, children: [" ", timer[2]] }) : null] }, `${index}-${line}`);
34
+ }
35
+ const [, indent, icon, toolName, rest] = row;
36
+ const iconColor = icon === '✓' ? theme.success : icon === '✗' ? theme.danger : theme.muted;
37
+ const timer = /(.*) (\([0-9]+(?:h [0-9]+m [0-9]+(?:\.[0-9])?s|m [0-9]+(?:\.[0-9])?s|(?:\.[0-9])?s)\))$/.exec(rest);
38
+ return _jsxs(Text, { color: theme.muted, children: [indent, _jsx(Text, { color: iconColor, children: icon }), " ", _jsx(Text, { color: theme.purple, children: toolName }), timer ? timer[1] : rest, timer ? _jsxs(Text, { color: theme.muted, bold: false, children: [" ", timer[2]] }) : null] }, `${index}-${line}`);
39
+ }) });
40
+ }
41
+ export function messageElapsedLabel(message) {
42
+ if (message.startedAt == null)
43
+ return '';
44
+ if (message.role === 'assistant' && !message.streaming && !isSubstantiveAssistantText(message.text))
45
+ return '';
46
+ const end = message.finishedAt ?? (message.streaming ? Date.now() : message.startedAt);
47
+ const elapsed = end - message.startedAt;
48
+ if (message.role === 'assistant' && !message.streaming && message.tokensPerSecond != null) {
49
+ return `✓ Done in ${formatElapsedTime(elapsed)} · ${Math.round(message.tokensPerSecond)} tok/s`;
50
+ }
51
+ return message.streaming ? formatElapsedTimeWhole(elapsed) : formatElapsedTime(elapsed);
52
+ }
53
+ export function MessageView({ message, width }) {
54
+ if (message.role === 'user') {
55
+ return _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { backgroundColor: theme.quoteBg, children: fullWidthBlankLine(width) }), _jsx(Text, { color: theme.success, bold: true, backgroundColor: theme.quoteBg, children: ' You asked'.padEnd(width) }), fullWidthLines(message.text, width, 2).map((line, lineIndex) => _jsx(Text, { color: "white", backgroundColor: theme.quoteBg, children: line }, lineIndex)), _jsx(Text, { backgroundColor: theme.quoteBg, children: fullWidthBlankLine(width) })] });
56
+ }
57
+ return _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsxs(Text, { children: [_jsx(Text, { color: message.role === 'assistant' ? theme.purple : message.role === 'tool' ? theme.blue : theme.muted, bold: true, children: message.role === 'assistant' ? 'haze' : message.role === 'tool' ? 'Tool' : 'Info' }), messageElapsedLabel(message) ? _jsxs(Text, { color: theme.muted, bold: false, children: [" \u00B7 ", messageElapsedLabel(message)] }) : null] }), message.role === 'tool'
58
+ ? _jsx(ToolMessageText, { text: message.text, streaming: message.streaming })
59
+ : message.role === 'assistant' && !message.streaming
60
+ ? _jsx(MarkdownText, { content: message.text })
61
+ : _jsx(Text, { children: message.text })] });
62
+ }
63
+ export function messageKey(message, index) {
64
+ return message.id ?? `${index}-${message.role}-${message.text}`;
65
+ }
66
+ export function orderedDisplayMessages(messages) {
67
+ return messages
68
+ .map((message, index) => ({ message, index }))
69
+ .sort((a, b) => {
70
+ if (a.message.displayOrder != null && b.message.displayOrder != null && a.message.displayOrder !== b.message.displayOrder) {
71
+ return a.message.displayOrder - b.message.displayOrder;
72
+ }
73
+ return a.index - b.index;
74
+ })
75
+ .map(item => item.message);
76
+ }
@@ -0,0 +1,12 @@
1
+ import type { ModelMessage } from 'ai';
2
+ import { type HazeSession } from '../../core/session/sessionStore.js';
3
+ import type { AgentEvent } from '../../core/agent/events.js';
4
+ import type { WorkState } from '../../core/agent/workState.js';
5
+ import type { Message } from '../commands/streaming.js';
6
+ export declare function createSessionRecorder(getSession: () => HazeSession | undefined): {
7
+ recordUiMessage(message: Message): void;
8
+ recordConversation(messages: ModelMessage[]): void;
9
+ recordWorkState(state: WorkState): void;
10
+ recordEvent(event: AgentEvent): void;
11
+ };
12
+ export type SessionRecorder = ReturnType<typeof createSessionRecorder>;
@@ -0,0 +1,21 @@
1
+ import { appendSessionEntry } from '../../core/session/sessionStore.js';
2
+ function appendFireAndForget(session, entry) {
3
+ if (session)
4
+ void appendSessionEntry(session, entry).catch(() => undefined);
5
+ }
6
+ export function createSessionRecorder(getSession) {
7
+ return {
8
+ recordUiMessage(message) {
9
+ appendFireAndForget(getSession(), { type: 'ui_message', at: new Date().toISOString(), role: message.role, text: message.text });
10
+ },
11
+ recordConversation(messages) {
12
+ appendFireAndForget(getSession(), { type: 'conversation_snapshot', at: new Date().toISOString(), messages });
13
+ },
14
+ recordWorkState(state) {
15
+ appendFireAndForget(getSession(), { type: 'work_state_snapshot', at: new Date().toISOString(), state });
16
+ },
17
+ recordEvent(event) {
18
+ appendFireAndForget(getSession(), { type: 'event', at: event.at, name: event.type, text: JSON.stringify(event) });
19
+ },
20
+ };
21
+ }
@@ -0,0 +1,4 @@
1
+ import type { HazeSettings } from '../../config/settings.js';
2
+ import type { ContextFile } from '../../config/contextFiles.js';
3
+ export declare function startupContextInfo(contextFiles: ContextFile[]): string;
4
+ export declare function startupProviderInfo(settings: HazeSettings): string;
@@ -0,0 +1,53 @@
1
+ import { activeModel, configuredProviders, providerHasKey } from '../../config/providers.js';
2
+ import { configuredLspServers } from '../../config/lspSettings.js';
3
+ import { configuredMcpServers } from '../../config/mcpSettings.js';
4
+ export function startupContextInfo(contextFiles) {
5
+ const lines = contextFiles.map(file => `- ${file.path}`);
6
+ return [
7
+ 'Context files sent with the system prompt',
8
+ ...(lines.length > 0 ? lines : ['- none']),
9
+ ].join('\n');
10
+ }
11
+ export function startupProviderInfo(settings) {
12
+ const selection = activeModel(settings);
13
+ const configuredCount = configuredProviders(settings).length;
14
+ const lspServers = configuredLspServers(settings);
15
+ const enabledLsp = lspServers.filter(server => server.enabled !== false);
16
+ const lspLine = enabledLsp.length > 0
17
+ ? `- LSP: ${enabledLsp.length} configured (${enabledLsp.map(server => server.name).join(', ')}; tools appear only when the command is installed)`
18
+ : '- LSP: none configured (optional: install a language server, then /lsp presets and /lsp add typescript for semantic code navigation)';
19
+ const mcpServers = configuredMcpServers(settings);
20
+ const enabledMcp = mcpServers.filter(server => server.enabled !== false);
21
+ const mcpLine = enabledMcp.length > 0
22
+ ? `- MCP: ${enabledMcp.length} configured (${enabledMcp.map(server => server.name).join(', ')}; tools load each turn)`
23
+ : '- MCP: none configured (optional: /mcp add context7 for up-to-date library docs)';
24
+ if (!selection) {
25
+ return [
26
+ 'Provider configuration',
27
+ '- Provider: not configured',
28
+ '- Model: not set',
29
+ '- Base URL: not configured',
30
+ '- API key: missing',
31
+ `- Configured providers: ${configuredCount}`,
32
+ lspLine,
33
+ mcpLine,
34
+ '',
35
+ 'Run /provider to choose or add a provider, then select a model.',
36
+ ].join('\n');
37
+ }
38
+ const model = selection.model;
39
+ const modelSource = settings.model ? 'settings' : 'provider default';
40
+ const baseURL = selection.provider.url;
41
+ const apiKeySource = providerHasKey(settings, selection.provider) ? `provider ${selection.provider.name}` : 'missing';
42
+ const provider = selection.provider.name;
43
+ return [
44
+ 'Provider configuration',
45
+ `- Provider: ${provider}`,
46
+ `- Model: ${model} (${modelSource})`,
47
+ `- Base URL: ${baseURL} (settings)`,
48
+ `- API key: ${apiKeySource === 'missing' ? 'not configured; local providers may not need one' : `configured via ${apiKeySource}`}`,
49
+ `- Configured providers: ${configuredCount}`,
50
+ lspLine,
51
+ mcpLine,
52
+ ].join('\n');
53
+ }
@@ -0,0 +1,5 @@
1
+ import type { Task } from '../../core/tasks/taskStorage.js';
2
+ import type { TokenUsage } from '../commands/streaming.js';
3
+ export declare const EMPTY_TOKEN_USAGE: TokenUsage;
4
+ export declare function shouldClearCompletedTasks(tasks: Task[]): boolean;
5
+ export declare function accumulateTokenUsage(current: TokenUsage, usage: TokenUsage): TokenUsage;
@@ -0,0 +1,20 @@
1
+ export const EMPTY_TOKEN_USAGE = { inputTokens: undefined, outputTokens: undefined, systemPrompt: 0, messages: 0, toolSchemas: 0, outputEstimate: 0, cacheReadTokens: 0, cacheWriteTokens: 0, noCacheTokens: 0, reasoningTokens: 0, logicalInputEstimate: 0, effectiveNonCachedInput: undefined };
2
+ export function shouldClearCompletedTasks(tasks) {
3
+ return tasks.length > 0 && tasks.every(task => task.status === 'completed');
4
+ }
5
+ export function accumulateTokenUsage(current, usage) {
6
+ return {
7
+ inputTokens: (current.inputTokens ?? 0) + (usage.inputTokens ?? 0) || usage.inputTokens,
8
+ outputTokens: (current.outputTokens ?? 0) + (usage.outputTokens ?? 0) || usage.outputTokens,
9
+ systemPrompt: current.systemPrompt + usage.systemPrompt,
10
+ messages: current.messages + usage.messages,
11
+ toolSchemas: current.toolSchemas + usage.toolSchemas,
12
+ outputEstimate: current.outputEstimate + usage.outputEstimate,
13
+ cacheReadTokens: current.cacheReadTokens + usage.cacheReadTokens,
14
+ cacheWriteTokens: current.cacheWriteTokens + usage.cacheWriteTokens,
15
+ noCacheTokens: current.noCacheTokens + usage.noCacheTokens,
16
+ reasoningTokens: current.reasoningTokens + usage.reasoningTokens,
17
+ logicalInputEstimate: current.logicalInputEstimate + usage.logicalInputEstimate,
18
+ effectiveNonCachedInput: (current.effectiveNonCachedInput ?? 0) + (usage.effectiveNonCachedInput ?? 0) || usage.effectiveNonCachedInput,
19
+ };
20
+ }
@@ -1,4 +1,3 @@
1
- export type Mode = 'chat' | 'provider' | 'providerAction' | 'model' | 'providerAddPreset' | 'providerAddName' | 'providerAddUrl' | 'providerAddKey' | 'providerAddModels' | 'providerAppendModels' | 'providerSetKey' | 'providerRemoveModels' | 'providerConfirmRemove' | 'skills' | 'skillsAction' | 'skillsAddName' | 'skillsAddDescription' | 'skillsConfirmRemove' | 'lsp' | 'lspAction' | 'lspAddPreset' | 'lspAddName' | 'lspAddCommand' | 'lspConfirmRemove' | 'mcp' | 'mcpAction' | 'mcpAddPreset' | 'mcpAddName' | 'mcpAddTransport' | 'mcpAddUrl' | 'mcpAddCommand' | 'mcpAddKey' | 'mcpSetKey' | 'mcpConfirmRemove';
2
1
  interface ChatOptions {
3
2
  debug?: boolean;
4
3
  version?: string;