agentk8 2.3.1 → 2.3.3

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.
package/dist/cli.js CHANGED
@@ -2,9 +2,11 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { render } from 'ink';
4
4
  import meow from 'meow';
5
+ import { createRequire } from 'module';
5
6
  import { App } from './components/App.js';
6
7
  import { checkClaudeInstalled } from './lib/claude.js';
7
- const VERSION = '2.3.0';
8
+ const require = createRequire(import.meta.url);
9
+ const { version: VERSION } = require('../package.json');
8
10
  const cli = meow(`
9
11
  Usage
10
12
  $ agentk8 [options]
@@ -25,7 +27,7 @@ const cli = meow(`
25
27
  /exit Exit AGENT-K
26
28
 
27
29
  Keyboard
28
- Ctrl+C Exit
30
+ Esc Esc Exit (double-press)
29
31
  Ctrl+U Clear input line
30
32
  `, {
31
33
  importMeta: import.meta,
@@ -95,7 +95,7 @@ export const Input = ({ onSubmit, placeholder = 'Type a message...', prefix = '
95
95
  setCursorPosition(pos => Math.min(value.length, pos + 1));
96
96
  }
97
97
  else if (key.ctrl && input === 'c') {
98
- process.exit(0);
98
+ // Do nothing - allow text selection copy, use double-escape to exit
99
99
  }
100
100
  else if (key.ctrl && input === 'u') {
101
101
  setValue('');
@@ -54,6 +54,6 @@ export const ThinkingIndicator = ({ startTime, tokens = 0, }) => {
54
54
  return `${(t / 1000).toFixed(1)}k`;
55
55
  return t.toString();
56
56
  };
57
- return (_jsxs(Box, { marginY: 1, marginLeft: 1, children: [_jsxs(Text, { color: theme.purple, bold: true, children: [symbols[frame], " "] }), _jsxs(Text, { color: theme.highlight, italic: true, children: [verb, "\u2026"] }), _jsx(Text, { color: theme.dim, children: " (" }), _jsx(Text, { color: theme.dim, children: "ctrl+c to interrupt" }), _jsx(Text, { color: theme.dim, children: " \u00B7 " }), _jsx(Text, { color: theme.accent, children: elapsed }), tokens > 0 && (_jsxs(_Fragment, { children: [_jsx(Text, { color: theme.dim, children: " \u00B7 " }), _jsxs(Text, { color: theme.accent, children: ["\u2193 ", formatTokens(tokens)] }), _jsx(Text, { color: theme.dim, children: " tokens" })] })), _jsx(Text, { color: theme.dim, children: " \u00B7 " }), _jsx(Text, { color: theme.purple, children: "thinking" }), _jsx(Text, { color: theme.dim, children: ")" })] }));
57
+ return (_jsxs(Box, { marginY: 1, marginLeft: 1, children: [_jsxs(Text, { color: theme.purple, bold: true, children: [symbols[frame], " "] }), _jsxs(Text, { color: theme.highlight, italic: true, children: [verb, "\u2026"] }), _jsx(Text, { color: theme.dim, children: " (" }), _jsx(Text, { color: theme.dim, children: "esc esc to exit" }), _jsx(Text, { color: theme.dim, children: " \u00B7 " }), _jsx(Text, { color: theme.accent, children: elapsed }), tokens > 0 && (_jsxs(_Fragment, { children: [_jsx(Text, { color: theme.dim, children: " \u00B7 " }), _jsxs(Text, { color: theme.accent, children: ["\u2193 ", formatTokens(tokens)] }), _jsx(Text, { color: theme.dim, children: " tokens" })] })), _jsx(Text, { color: theme.dim, children: " \u00B7 " }), _jsx(Text, { color: theme.purple, children: "thinking" }), _jsx(Text, { color: theme.dim, children: ")" })] }));
58
58
  };
59
59
  export default ThinkingIndicator;
@@ -9,5 +9,7 @@ export { RetroBox } from './Box.js';
9
9
  export { AgentStatus } from './AgentStatus.js';
10
10
  export { AgentPanel } from './AgentPanel.js';
11
11
  export type { AgentName, AgentState } from './AgentPanel.js';
12
+ export { Confirmation } from './Confirmation.js';
13
+ export type { ConfirmationOption } from './Confirmation.js';
12
14
  export { QuestionWizard } from './QuestionWizard.js';
13
15
  export type { Question, QuestionOption, QuestionWizardProps } from './QuestionWizard.js';
@@ -8,4 +8,5 @@ export { ThinkingIndicator } from './ThinkingIndicator.js';
8
8
  export { RetroBox } from './Box.js';
9
9
  export { AgentStatus } from './AgentStatus.js';
10
10
  export { AgentPanel } from './AgentPanel.js';
11
+ export { Confirmation } from './Confirmation.js';
11
12
  export { QuestionWizard } from './QuestionWizard.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentk8",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Multi-LLM Council Terminal Suite - Three-stage consensus with GPT, Gemini, and Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",