@bluehawks/cli 1.0.38 → 1.0.40
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/components/Header.d.ts.map +1 -1
- package/dist/cli/components/Header.js +13 -15
- package/dist/cli/components/Header.js.map +1 -1
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/constants.js +1 -1
- package/package.json +1 -1
- package/src/cli/components/Header.tsx +18 -27
- package/src/config/constants.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/cli/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/cli/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAoEzC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAMnE,CAAC"}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { Box, Text } from 'ink';
|
|
4
|
-
const Branding = () => (
|
|
5
|
-
|
|
6
|
-
|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
_
|
|
10
|
-
|
|
11
|
-
| __ || || | \\ / | _\\
|
|
12
|
-
|_||_||_||_| \\/ |__/
|
|
13
|
-
` }), _jsx(Text, { color: "blue", dimColor: true, children: "-------------------------" }), _jsx(Text, { color: "cyan", children: " OPERATIONAL" })] }));
|
|
4
|
+
const Branding = () => (_jsx(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 1, width: 60, height: 7, children: _jsx(Text, { color: "cyan", bold: true, children: `
|
|
5
|
+
____ _ _ _
|
|
6
|
+
| __ )| |_ _ ___| |__ __ ___ | | _____ __
|
|
7
|
+
| _ \\| | | | |/ _ \\ '_ \\ / _\` \\ \\ /\\ / / / __| \t/ /
|
|
8
|
+
| |_) | | |_| | __/ | | | (_| |\\ V V / \\__ \\/ /
|
|
9
|
+
|____/|_|\\__,_|\\___|_| |_|\\__,_| \\_/\\_/ |___/_/
|
|
10
|
+
` }) }));
|
|
14
11
|
const SystemMonitor = ({ events }) => {
|
|
15
|
-
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "green", flexGrow: 1, height:
|
|
12
|
+
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "green", flexGrow: 1, height: 7, marginLeft: 1, children: [_jsx(Box, { borderStyle: "single", borderBottom: true, borderColor: "green", paddingX: 1, children: _jsx(Text, { color: "green", children: "\u26A1 SYSTEM [Live]" }) }), _jsx(Box, { flexDirection: "column", paddingX: 1, children: events.slice(-3).map((event) => ( // Reduced to 3 to fit
|
|
13
|
+
_jsxs(Text, { wrap: "truncate", children: [_jsxs(Text, { color: "gray", children: ["[", event.timestamp.split('T')[1]?.split('.')[0], "] "] }), _jsx(Text, { color: event.type === 'error' ? 'red' : event.type === 'success' ? 'green' : 'white', children: event.message })] }, event.id))) })] }));
|
|
16
14
|
};
|
|
17
15
|
const NetworkActivity = ({ tps }) => {
|
|
18
16
|
// Simulated sparkline or bar chart
|
|
19
|
-
const [history, setHistory] = useState(new Array(
|
|
17
|
+
const [history, setHistory] = useState(new Array(15).fill(0));
|
|
20
18
|
useEffect(() => {
|
|
21
19
|
setHistory(prev => [...prev.slice(1), tps]);
|
|
22
20
|
}, [tps]);
|
|
23
|
-
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "magenta", width:
|
|
24
|
-
const height = Math.min(
|
|
25
|
-
return (_jsx(Box, { flexDirection: "column", marginRight:
|
|
21
|
+
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "magenta", width: 24, height: 7, marginLeft: 1, children: [_jsx(Box, { borderStyle: "single", borderBottom: true, borderColor: "magenta", paddingX: 1, children: _jsx(Text, { color: "magenta", children: "\uD83E\uDDE0 VELOCITY" }) }), _jsxs(Box, { flexDirection: "column", paddingX: 1, justifyContent: "flex-end", flexGrow: 1, children: [_jsxs(Text, { color: "magenta", bold: true, children: [tps.toFixed(1), " t/s"] }), _jsx(Box, { marginTop: 0, alignItems: "flex-end", height: 2, children: history.map((val, i) => {
|
|
22
|
+
const height = Math.min(2, Math.ceil(val / 15));
|
|
23
|
+
return (_jsx(Box, { flexDirection: "column", marginRight: 0, children: _jsx(Text, { color: "magenta", children: height === 0 ? '_' : height === 1 ? '▄' : '█' }) }, i));
|
|
26
24
|
}) })] })] }));
|
|
27
25
|
};
|
|
28
26
|
export const Header = ({ events, tps }) => (_jsxs(Box, { flexDirection: "row", width: "100%", children: [_jsx(Branding, {}), _jsx(SystemMonitor, { events: events }), _jsx(NetworkActivity, { tps: tps })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/cli/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAGhC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CACnB,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/cli/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAGhC,MAAM,QAAQ,G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AAG,EAAE,CAAC,EAAE,EAAE;4BACpB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;4BAChD,OAAO,CACH,KAAC,GAAG,IAAS,aAAa,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC,YAC9C,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,YAChB,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAC3C,IAHD,CAAC,CAIL,CACT,CAAC;wBACN,CAAC,CAAC,GACA,IACJ,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAqD,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CACzF,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,aACjC,KAAC,QAAQ,KAAG,EACZ,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,GAAI,EACjC,KAAC,eAAe,IAAC,GAAG,EAAE,GAAG,GAAI,IAC3B,CACT,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare const DEFAULT_MODEL = "Qwen/Qwen3-8B";
|
|
|
6
6
|
export declare const DEFAULT_EMBEDDING_MODEL = "Qwen/Qwen3-Embedding-0.6B";
|
|
7
7
|
export declare const DEFAULT_RERANK_MODEL = "Qwen/Qwen3-Reranker-0.6B";
|
|
8
8
|
export declare const CLI_NAME = "bluehawks";
|
|
9
|
-
export declare const CLI_VERSION = "1.0.
|
|
9
|
+
export declare const CLI_VERSION = "1.0.40";
|
|
10
10
|
export declare const CLI_DESCRIPTION = "A production-ready multi-agent AI CLI assistant";
|
|
11
11
|
export declare const CONFIG_DIR_NAME = ".bluehawks";
|
|
12
12
|
export declare const SETTINGS_FILE = "settings.json";
|
package/dist/config/constants.js
CHANGED
|
@@ -8,7 +8,7 @@ export const DEFAULT_EMBEDDING_MODEL = 'Qwen/Qwen3-Embedding-0.6B';
|
|
|
8
8
|
export const DEFAULT_RERANK_MODEL = 'Qwen/Qwen3-Reranker-0.6B';
|
|
9
9
|
// CLI Metadata
|
|
10
10
|
export const CLI_NAME = 'bluehawks';
|
|
11
|
-
export const CLI_VERSION = '1.0.
|
|
11
|
+
export const CLI_VERSION = '1.0.40';
|
|
12
12
|
export const CLI_DESCRIPTION = 'A production-ready multi-agent AI CLI assistant';
|
|
13
13
|
// Configuration Paths
|
|
14
14
|
export const CONFIG_DIR_NAME = '.bluehawks';
|
package/package.json
CHANGED
|
@@ -3,36 +3,30 @@ import { Box, Text } from 'ink';
|
|
|
3
3
|
import { SystemEvent } from './types.js';
|
|
4
4
|
|
|
5
5
|
const Branding = () => (
|
|
6
|
-
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1} width={
|
|
6
|
+
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1} width={60} height={7}>
|
|
7
7
|
<Text color="cyan" bold>
|
|
8
8
|
{`
|
|
9
|
-
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
_
|
|
14
|
-
| || | / \\ \\ \\/ /| _\\
|
|
15
|
-
| __ || || | \\ / | _\\
|
|
16
|
-
|_||_||_||_| \\/ |__/
|
|
9
|
+
____ _ _ _
|
|
10
|
+
| __ )| |_ _ ___| |__ __ ___ | | _____ __
|
|
11
|
+
| _ \\| | | | |/ _ \\ '_ \\ / _\` \\ \\ /\\ / / / __| \t/ /
|
|
12
|
+
| |_) | | |_| | __/ | | | (_| |\\ V V / \\__ \\/ /
|
|
13
|
+
|____/|_|\\__,_|\\___|_| |_|\\__,_| \\_/\\_/ |___/_/
|
|
17
14
|
`}
|
|
18
15
|
</Text>
|
|
19
|
-
<Text color="blue" dimColor>-------------------------</Text>
|
|
20
|
-
<Text color="cyan"> OPERATIONAL</Text>
|
|
21
16
|
</Box>
|
|
22
17
|
);
|
|
23
18
|
|
|
24
19
|
const SystemMonitor: React.FC<{ events: SystemEvent[] }> = ({ events }) => {
|
|
25
20
|
return (
|
|
26
|
-
<Box flexDirection="column" borderStyle="round" borderColor="green" flexGrow={1} height={
|
|
21
|
+
<Box flexDirection="column" borderStyle="round" borderColor="green" flexGrow={1} height={7} marginLeft={1}>
|
|
27
22
|
<Box borderStyle="single" borderBottom borderColor="green" paddingX={1}>
|
|
28
|
-
<Text color="green">⚡ SYSTEM
|
|
23
|
+
<Text color="green">⚡ SYSTEM [Live]</Text>
|
|
29
24
|
</Box>
|
|
30
25
|
<Box flexDirection="column" paddingX={1}>
|
|
31
|
-
{events.slice(-
|
|
26
|
+
{events.slice(-3).map((event) => ( // Reduced to 3 to fit
|
|
32
27
|
<Text key={event.id} wrap="truncate">
|
|
33
28
|
<Text color="gray">[{event.timestamp.split('T')[1]?.split('.')[0]}] </Text>
|
|
34
29
|
<Text color={event.type === 'error' ? 'red' : event.type === 'success' ? 'green' : 'white'}>
|
|
35
|
-
{event.type === 'success' ? '✓ ' : event.type === 'error' ? '✗ ' : 'ℹ '}
|
|
36
30
|
{event.message}
|
|
37
31
|
</Text>
|
|
38
32
|
</Text>
|
|
@@ -44,29 +38,26 @@ const SystemMonitor: React.FC<{ events: SystemEvent[] }> = ({ events }) => {
|
|
|
44
38
|
|
|
45
39
|
const NetworkActivity: React.FC<{ tps: number }> = ({ tps }) => {
|
|
46
40
|
// Simulated sparkline or bar chart
|
|
47
|
-
const [history, setHistory] = useState<number[]>(new Array(
|
|
41
|
+
const [history, setHistory] = useState<number[]>(new Array(15).fill(0));
|
|
48
42
|
|
|
49
43
|
useEffect(() => {
|
|
50
44
|
setHistory(prev => [...prev.slice(1), tps]);
|
|
51
45
|
}, [tps]);
|
|
52
46
|
|
|
53
47
|
return (
|
|
54
|
-
<Box flexDirection="column" borderStyle="round" borderColor="magenta" width={
|
|
48
|
+
<Box flexDirection="column" borderStyle="round" borderColor="magenta" width={24} height={7} marginLeft={1}>
|
|
55
49
|
<Box borderStyle="single" borderBottom borderColor="magenta" paddingX={1}>
|
|
56
|
-
<Text color="magenta">🧠
|
|
50
|
+
<Text color="magenta">🧠 VELOCITY</Text>
|
|
57
51
|
</Box>
|
|
58
|
-
<Box flexDirection="column" paddingX={1}
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
<Text color="magenta" bold>{tps.toFixed(1)} t/s</Text>
|
|
62
|
-
</Box>
|
|
63
|
-
<Box marginTop={1} alignItems="flex-end" height={3}>
|
|
52
|
+
<Box flexDirection="column" paddingX={1} justifyContent="flex-end" flexGrow={1}>
|
|
53
|
+
<Text color="magenta" bold>{tps.toFixed(1)} t/s</Text>
|
|
54
|
+
<Box marginTop={0} alignItems="flex-end" height={2}>
|
|
64
55
|
{history.map((val, i) => {
|
|
65
|
-
const height = Math.min(
|
|
56
|
+
const height = Math.min(2, Math.ceil(val / 15));
|
|
66
57
|
return (
|
|
67
|
-
<Box key={i} flexDirection="column" marginRight={
|
|
58
|
+
<Box key={i} flexDirection="column" marginRight={0}>
|
|
68
59
|
<Text color="magenta">
|
|
69
|
-
{height === 0 ? '_' : height === 1 ? '
|
|
60
|
+
{height === 0 ? '_' : height === 1 ? '▄' : '█'}
|
|
70
61
|
</Text>
|
|
71
62
|
</Box>
|
|
72
63
|
);
|
package/src/config/constants.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const DEFAULT_RERANK_MODEL = 'Qwen/Qwen3-Reranker-0.6B';
|
|
|
10
10
|
|
|
11
11
|
// CLI Metadata
|
|
12
12
|
export const CLI_NAME = 'bluehawks';
|
|
13
|
-
export const CLI_VERSION = '1.0.
|
|
13
|
+
export const CLI_VERSION = '1.0.40';
|
|
14
14
|
export const CLI_DESCRIPTION = 'A production-ready multi-agent AI CLI assistant';
|
|
15
15
|
|
|
16
16
|
// Configuration Paths
|