@bluehawks/cli 1.0.36 → 1.0.38

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../src/cli/components/Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEvD,UAAU,WAAW;IAEjB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,YAAY,EAAE,CAAC;IAG5B,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,eAAe,EAAE,GAAG,CAAC;CACxB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8BxC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box } from 'ink';
3
+ import { Header } from './Header.js';
4
+ import { Sidebar } from './Sidebar.js';
5
+ import { ChatArea } from './ChatArea.js';
6
+ export const Layout = (props) => {
7
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, height: "100%", children: [_jsx(Header, { events: props.systemEvents, tps: props.tps }), _jsxs(Box, { flexDirection: "row", flexGrow: 1, marginTop: 1, children: [_jsx(ChatArea, { messages: props.messages, streamingContent: props.streamingContent, currentTool: props.currentTool, isProcessing: props.isProcessing, input: props.input, setInput: props.setInput, onSubmit: props.onSubmit, pendingApproval: props.pendingApproval }), _jsx(Sidebar, { model: props.model, contextUsage: props.contextUsage, totalTokens: props.totalTokens, toolHistory: props.toolHistory })] })] }));
8
+ };
9
+ //# sourceMappingURL=Layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layout.js","sourceRoot":"","sources":["../../../src/cli/components/Layout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAyBzC,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,KAAK,EAAE,EAAE;IACnD,OAAO,CACH,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAC,MAAM,aAEjD,KAAC,MAAM,IAAC,MAAM,EAAE,KAAK,CAAC,YAAY,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,GAAI,EAGtD,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,aAE9C,KAAC,QAAQ,IACL,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EACxC,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,YAAY,EAAE,KAAK,CAAC,YAAY,EAChC,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,eAAe,EAAE,KAAK,CAAC,eAAe,GACxC,EAGF,KAAC,OAAO,IACJ,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,YAAY,EAAE,KAAK,CAAC,YAAY,EAChC,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,WAAW,EAAE,KAAK,CAAC,WAAW,GAChC,IACA,IACJ,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ToolActivity } from './types.js';
3
+ export declare const Sidebar: React.FC<{
4
+ model: string;
5
+ contextUsage: number;
6
+ totalTokens: number;
7
+ toolHistory: ToolActivity[];
8
+ }>;
9
+ //# sourceMappingURL=Sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/cli/components/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAuD1C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,YAAY,EAAE,CAAC;CAC/B,CAKA,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ const SessionInfo = ({ model, contextUsage, totalTokens }) => {
4
+ const bars = Math.floor(contextUsage * 20);
5
+ const emptyBars = 20 - bars;
6
+ const barStr = '█'.repeat(bars) + '░'.repeat(emptyBars);
7
+ return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "yellow", paddingX: 1, marginBottom: 1, children: [_jsx(Text, { color: "yellow", bold: true, children: "SESSION INTEL" }), _jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { color: "gray", children: "Model:" }), _jsx(Text, { color: "white", children: model }), _jsxs(Box, { marginTop: 1, flexDirection: "column", children: [_jsx(Text, { color: "gray", children: "Context Load:" }), _jsx(Text, { color: contextUsage > 0.8 ? 'red' : 'green', children: barStr }), _jsxs(Text, { color: "gray", children: [(contextUsage * 100).toFixed(1), "%"] })] }), _jsxs(Box, { marginTop: 1, flexDirection: "column", children: [_jsx(Text, { color: "gray", children: "Total Tokens:" }), _jsx(Text, { color: "white", children: totalTokens.toLocaleString() })] })] })] }));
8
+ };
9
+ const ToolMap = ({ history }) => {
10
+ // Create a fixed grid of 5x5 blocks (25 slots)
11
+ // Fill from end of history reversed
12
+ const slots = new Array(25).fill(null);
13
+ const recentHistory = history.slice(-25).reverse(); // Newest first
14
+ return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "blue", paddingX: 1, flexGrow: 1, children: [_jsx(Text, { color: "blue", bold: true, children: "TOOL ACTIVITY" }), _jsx(Box, { flexDirection: "row", flexWrap: "wrap", marginTop: 1, width: 15, children: slots.map((_, i) => {
15
+ const activity = recentHistory[i];
16
+ if (!activity) {
17
+ return _jsx(Text, { color: "gray", children: "\u25AA " }, i);
18
+ }
19
+ const color = activity.status === 'success' ? 'green' : activity.status === 'failed' ? 'red' : 'yellow';
20
+ return _jsx(Text, { color: color, children: "\u25A0 " }, i);
21
+ }) }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: "gray", dimColor: true, children: ["Latest: ", recentHistory[0]?.toolName || 'None'] }) })] }));
22
+ };
23
+ export const Sidebar = ({ model, contextUsage, totalTokens, toolHistory }) => (_jsxs(Box, { flexDirection: "column", width: 24, marginLeft: 1, children: [_jsx(SessionInfo, { model: model, contextUsage: contextUsage, totalTokens: totalTokens }), _jsx(ToolMap, { history: toolHistory })] }));
24
+ //# sourceMappingURL=Sidebar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.js","sourceRoot":"","sources":["../../../src/cli/components/Sidebar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KA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gBACjD,CAAC,CAAC,GACA,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACb,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,+BAAU,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,IAAI,MAAM,IAAQ,GAC/E,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAKf,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CACxD,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,aAChD,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,GAAI,EACnF,KAAC,OAAO,IAAC,OAAO,EAAE,WAAW,GAAI,IAC/B,CACT,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Shared types for the Cyberpunk Dashboard UI
3
+ */
4
+ export interface SystemEvent {
5
+ id: string;
6
+ timestamp: string;
7
+ message: string;
8
+ type: 'info' | 'success' | 'error' | 'warning';
9
+ }
10
+ export interface ToolActivity {
11
+ id: string;
12
+ toolName: string;
13
+ status: 'running' | 'success' | 'failed';
14
+ timestamp: number;
15
+ }
16
+ export interface DragMetric {
17
+ label: string;
18
+ value: string | number;
19
+ unit?: string;
20
+ color?: string;
21
+ }
22
+ export interface DashboardState {
23
+ events: SystemEvent[];
24
+ toolHistory: ToolActivity[];
25
+ tokensPerSecond: number;
26
+ contextUsage: number;
27
+ totalTokens: number;
28
+ }
29
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/components/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Shared types for the Cyberpunk Dashboard UI
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/cli/components/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -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.36";
9
+ export declare const CLI_VERSION = "1.0.38";
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";
@@ -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.36';
11
+ export const CLI_VERSION = '1.0.38';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluehawks/cli",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "A production-ready multi-agent AI CLI assistant",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",