@rk0429/agentic-relay 19.1.0 → 19.2.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.
- package/dist/interfaces/cli/components/Header.d.ts +6 -0
- package/dist/interfaces/cli/components/Header.js +8 -0
- package/dist/interfaces/cli/components/Header.js.map +1 -0
- package/dist/interfaces/cli/components/InputBar.d.ts +6 -0
- package/dist/interfaces/cli/components/InputBar.js +28 -0
- package/dist/interfaces/cli/components/InputBar.js.map +1 -0
- package/dist/interfaces/cli/components/MessageList.d.ts +6 -0
- package/dist/interfaces/cli/components/MessageList.js +27 -0
- package/dist/interfaces/cli/components/MessageList.js.map +1 -0
- package/dist/interfaces/cli/components/StatusBar.d.ts +6 -0
- package/dist/interfaces/cli/components/StatusBar.js +7 -0
- package/dist/interfaces/cli/components/StatusBar.js.map +1 -0
- package/dist/interfaces/cli/relay-shell.js +12 -49
- package/dist/interfaces/cli/relay-shell.js.map +1 -1
- package/dist/interfaces/cli/theme.d.ts +40 -0
- package/dist/interfaces/cli/theme.js +55 -0
- package/dist/interfaces/cli/theme.js.map +1 -0
- package/dist/interfaces/cli/visualization-renderer.js +11 -39
- package/dist/interfaces/cli/visualization-renderer.js.map +1 -1
- package/dist/interfaces/mcp/relay-mcp-server.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { theme } from "../theme.js";
|
|
4
|
+
export function Header({ session }) {
|
|
5
|
+
const currentSessionId = session.sessions[session.currentBackend]?.relaySessionId;
|
|
6
|
+
return (_jsxs(Box, { borderStyle: "round", borderColor: theme.chrome.border, paddingX: 1, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { bold: true, color: theme.chrome.title, children: "agentic-relay" }), _jsx(Text, { color: theme.chrome.dim, children: " \u00B7 " }), _jsx(Text, { bold: true, children: session.currentBackend }), _jsxs(Text, { color: theme.chrome.dim, children: [" \u00B7 ", session.availableBackends.join(" | ")] })] }), currentSessionId ? (_jsxs(Text, { dimColor: true, children: ["session: ", currentSessionId] })) : null] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/interfaces/cli/components/Header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMpC,MAAM,UAAU,MAAM,CAAC,EAAE,OAAO,EAAe;IAC7C,MAAM,gBAAgB,GACpB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IAE3D,OAAO,CACL,MAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAChC,QAAQ,EAAE,CAAC,EACX,aAAa,EAAC,QAAQ,aAEtB,MAAC,IAAI,eACH,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,8BAAsB,EAC1D,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,YAAG,UAAU,GAAQ,EAClD,KAAC,IAAI,IAAC,IAAI,kBAAE,OAAO,CAAC,cAAc,GAAQ,EAC1C,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,aAC1B,UAAU,EACV,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,IACjC,IACF,EACN,gBAAgB,CAAC,CAAC,CAAC,CAClB,MAAC,IAAI,IAAC,QAAQ,gCAAW,gBAAgB,IAAQ,CAClD,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { Box, Text } from "ink";
|
|
4
|
+
import { theme } from "../theme.js";
|
|
5
|
+
const SPINNER_FRAMES = [
|
|
6
|
+
"\u28CB", "\u28D9", "\u28F9", "\u28F8",
|
|
7
|
+
"\u28FC", "\u28F4", "\u28E6", "\u28E7",
|
|
8
|
+
"\u28C7", "\u28CF",
|
|
9
|
+
];
|
|
10
|
+
export function InputBar({ input, busy }) {
|
|
11
|
+
const spinner = useSpinner(busy);
|
|
12
|
+
return (_jsx(Box, { borderStyle: "round", borderColor: busy ? theme.chrome.busy : theme.chrome.accent, paddingX: 1, children: busy ? (_jsxs(Text, { color: theme.chrome.busy, children: [spinner, " working..."] })) : (_jsxs(Text, { children: [_jsx(Text, { color: theme.chrome.accent, bold: true, children: "\u276F " }), input, _jsx(Text, { dimColor: true, children: "\u2588" })] })) }));
|
|
13
|
+
}
|
|
14
|
+
function useSpinner(active) {
|
|
15
|
+
const [frame, setFrame] = useState(0);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!active) {
|
|
18
|
+
setFrame(0);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const timer = setInterval(() => {
|
|
22
|
+
setFrame((prev) => (prev + 1) % SPINNER_FRAMES.length);
|
|
23
|
+
}, 80);
|
|
24
|
+
return () => clearInterval(timer);
|
|
25
|
+
}, [active]);
|
|
26
|
+
return active ? (SPINNER_FRAMES[frame] ?? "\u28CB") : "";
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=InputBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputBar.js","sourceRoot":"","sources":["../../../../src/interfaces/cli/components/InputBar.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO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AG,EAAE;YAC7B,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QACzD,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { RelayInteractiveSession } from "../../../application/relay-cli-service.js";
|
|
3
|
+
export interface MessageListProps {
|
|
4
|
+
session: RelayInteractiveSession;
|
|
5
|
+
}
|
|
6
|
+
export declare function MessageList({ session }: MessageListProps): React.ReactNode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text, useStdout } from "ink";
|
|
3
|
+
import { theme } from "../theme.js";
|
|
4
|
+
const CHROME_LINES = 12; // header + input + controls + borders overhead
|
|
5
|
+
export function MessageList({ session }) {
|
|
6
|
+
const { stdout } = useStdout();
|
|
7
|
+
const terminalHeight = stdout?.rows ?? 24;
|
|
8
|
+
const maxMessages = Math.max(4, terminalHeight - CHROME_LINES);
|
|
9
|
+
const messages = session.messages.slice(-maxMessages);
|
|
10
|
+
return (_jsx(Box, { borderStyle: "round", borderColor: theme.chrome.border, flexDirection: "column", paddingX: 1, minHeight: 4, flexGrow: 1, children: messages.length === 0 ? (_jsx(Text, { dimColor: true, children: "No messages yet." })) : (messages.map((msg, i) => (_jsx(Box, { children: _jsxs(Text, { color: roleColor(msg.role), children: [_jsx(Text, { bold: true, children: rolePrefix(msg.role, msg.backend) }), " ", msg.content] }) }, `msg-${i}`)))) }));
|
|
11
|
+
}
|
|
12
|
+
function rolePrefix(role, backend) {
|
|
13
|
+
switch (role) {
|
|
14
|
+
case "user":
|
|
15
|
+
return `[user \u2192 ${backend ?? "unknown"}]`;
|
|
16
|
+
case "assistant":
|
|
17
|
+
return `[${backend ?? "assistant"}]`;
|
|
18
|
+
case "system":
|
|
19
|
+
return "[system]";
|
|
20
|
+
case "error":
|
|
21
|
+
return "[error]";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function roleColor(role) {
|
|
25
|
+
return theme.role[role];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=MessageList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageList.js","sourceRoot":"","sources":["../../../../src/interfaces/cli/components/MessageList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,YAAY,GAAG,EAAE,CAAC,CAAC,+CAA+C;AAMxE,MAAM,UAAU,WAAW,CAAC,EAAE,OAAO,EAAoB;IACvD,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/B,MAAM,cAAc,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;IAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,GAAG,YAAY,CAAC,CAAC;IAE/D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;IAEtD,OAAO,CACL,KAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAChC,aAAa,EAAC,QAAQ,EACtB,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,YAEV,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACvB,KAAC,IAAI,IAAC,QAAQ,uCAAwB,CACvC,CAAC,CAAC,CAAC,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,KAAC,GAAG,cACF,MAAC,IAAI,IAAC,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,aAC9B,KAAC,IAAI,IAAC,IAAI,kBAAE,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,GAAQ,EACpD,GAAG,EACH,GAAG,CAAC,OAAO,IACP,IALC,OAAO,CAAC,EAAE,CAMd,CACP,CAAC,CACH,GACG,CACP,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CACjB,IAAyD,EACzD,OAA+D;IAE/D,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,OAAO,gBAAgB,OAAO,IAAI,SAAS,GAAG,CAAC;QACjD,KAAK,WAAW;YACd,OAAO,IAAI,OAAO,IAAI,WAAW,GAAG,CAAC;QACvC,KAAK,QAAQ;YACX,OAAO,UAAU,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AAED,SAAS,SAAS,CAChB,IAAyD;IAEzD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { theme } from "../theme.js";
|
|
4
|
+
export function StatusBar({ notice, busy }) {
|
|
5
|
+
return (_jsxs(_Fragment, { children: [notice ? (_jsx(Box, { paddingX: 1, children: _jsx(Text, { color: busy ? theme.chrome.busy : theme.chrome.success, children: notice }) })) : null, _jsx(Box, { paddingX: 1, justifyContent: "center", children: _jsxs(Text, { dimColor: true, children: ["Enter send ", "\u00B7", " Ctrl+B backend ", "\u00B7", " Ctrl+C exit"] }) })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=StatusBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBar.js","sourceRoot":"","sources":["../../../../src/interfaces/cli/components/StatusBar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAOpC,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,EAAkB;IACxD,OAAO,CACL,8BACG,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,GAAG,IAAC,QAAQ,EAAE,CAAC,YACd,KAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,YAAG,MAAM,GAAQ,GACzE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,GAAG,IAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAC,QAAQ,YACvC,MAAC,IAAI,IAAC,QAAQ,kCACA,QAAQ,sBAAkB,QAAQ,oBACzC,GACH,IACL,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Box, render, useApp, useInput } from "ink";
|
|
4
|
+
import { Header } from "./components/Header.js";
|
|
5
|
+
import { MessageList } from "./components/MessageList.js";
|
|
6
|
+
import { InputBar } from "./components/InputBar.js";
|
|
7
|
+
import { StatusBar } from "./components/StatusBar.js";
|
|
3
8
|
export async function runRelayInteractiveShell(options) {
|
|
4
|
-
const instance = render(
|
|
5
|
-
service: options.service,
|
|
6
|
-
initialSession: options.initialSession,
|
|
7
|
-
}));
|
|
9
|
+
const instance = render(_jsx(RelayShellApp, { service: options.service, initialSession: options.initialSession }));
|
|
8
10
|
await instance.waitUntilExit();
|
|
9
11
|
return 0;
|
|
10
12
|
}
|
|
@@ -42,11 +44,9 @@ function RelayShellApp(props) {
|
|
|
42
44
|
.submitInteractivePrompt(session, prompt)
|
|
43
45
|
.then((result) => {
|
|
44
46
|
setSession(result.session);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
setNotice(undefined);
|
|
47
|
+
setNotice(result.handoff
|
|
48
|
+
? `Started ${result.session.currentBackend} with handoff from ${result.handoff.source_backend}.`
|
|
49
|
+
: undefined);
|
|
50
50
|
})
|
|
51
51
|
.catch((error) => {
|
|
52
52
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -71,43 +71,6 @@ function RelayShellApp(props) {
|
|
|
71
71
|
}
|
|
72
72
|
setInput((previous) => previous + keyInput);
|
|
73
73
|
});
|
|
74
|
-
|
|
75
|
-
return React.createElement(Box, { flexDirection: "column" }, React.createElement(Text, { color: "cyanBright" }, "agentic-relay"), React.createElement(Text, null, `backend: ${session.currentBackend} | available: ${session.availableBackends.join(", ")}`), React.createElement(Text, { color: "gray" }, currentSessionId ? `session: ${currentSessionId}` : "session: new relay-managed session"), React.createElement(Text, { color: "gray" }, "controls: Enter send | Ctrl+B switch backend | Ctrl+C exit"), notice
|
|
76
|
-
? React.createElement(Text, { color: busy ? "yellow" : "green" }, notice)
|
|
77
|
-
: null, React.createElement(Box, { flexDirection: "column", marginTop: 1 }, renderMessages(session)), React.createElement(Text, { color: busy ? "yellow" : "white" }, `${busy ? "working" : "input"}> ${input}`));
|
|
78
|
-
}
|
|
79
|
-
function renderMessages(session) {
|
|
80
|
-
const recentMessages = session.messages.slice(-12);
|
|
81
|
-
return recentMessages.map((message, index) => React.createElement(Text, {
|
|
82
|
-
key: `${message.role}-${index}`,
|
|
83
|
-
color: messageColor(message.role),
|
|
84
|
-
}, `${messagePrefix(message.role, message.backend)} ${singleLine(message.content)}`));
|
|
85
|
-
}
|
|
86
|
-
function messagePrefix(role, backend) {
|
|
87
|
-
switch (role) {
|
|
88
|
-
case "user":
|
|
89
|
-
return `[user -> ${backend ?? "unknown"}]`;
|
|
90
|
-
case "assistant":
|
|
91
|
-
return `[${backend ?? "assistant"}]`;
|
|
92
|
-
case "system":
|
|
93
|
-
return "[system]";
|
|
94
|
-
case "error":
|
|
95
|
-
return "[error]";
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
function messageColor(role) {
|
|
99
|
-
switch (role) {
|
|
100
|
-
case "user":
|
|
101
|
-
return "white";
|
|
102
|
-
case "assistant":
|
|
103
|
-
return "cyan";
|
|
104
|
-
case "system":
|
|
105
|
-
return "yellow";
|
|
106
|
-
case "error":
|
|
107
|
-
return "red";
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function singleLine(value) {
|
|
111
|
-
return value.replace(/\s+/g, " ").trim();
|
|
74
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, { session: session }), _jsx(MessageList, { session: session }), _jsx(InputBar, { input: input, busy: busy }), _jsx(StatusBar, { notice: notice, busy: busy })] }));
|
|
112
75
|
}
|
|
113
76
|
//# sourceMappingURL=relay-shell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relay-shell.js","sourceRoot":"","sources":["../../../src/interfaces/cli/relay-shell.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"relay-shell.js","sourceRoot":"","sources":["../../../src/interfaces/cli/relay-shell.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,K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BACjB,CAAC,CACH,CAAC;gBACF,SAAS,CAAC,OAAO,CAAC,CAAC;YACrB,CAAC,CAAC;iBACD,OAAO,CAAC,GAAG,EAAE;gBACZ,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC,CAAC,CAAC;YACL,OAAO;QACT,CAAC;QAED,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YAChC,QAAQ,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,OAAO;QACT,CAAC;QAED,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpD,OAAO;QACT,CAAC;QAED,QAAQ,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,GAAI,EAC5B,KAAC,WAAW,IAAC,OAAO,EAAE,OAAO,GAAI,EACjC,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI,EACtC,KAAC,SAAS,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAI,IACrC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { TaskStatus } from "../../core/types.js";
|
|
2
|
+
export declare const theme: {
|
|
3
|
+
readonly role: {
|
|
4
|
+
readonly user: "white";
|
|
5
|
+
readonly assistant: "cyan";
|
|
6
|
+
readonly system: "yellow";
|
|
7
|
+
readonly error: "red";
|
|
8
|
+
};
|
|
9
|
+
readonly status: {
|
|
10
|
+
backlog: string;
|
|
11
|
+
ready: string;
|
|
12
|
+
in_progress: string;
|
|
13
|
+
review: string;
|
|
14
|
+
blocked: string;
|
|
15
|
+
done: string;
|
|
16
|
+
superseded: string;
|
|
17
|
+
archived: string;
|
|
18
|
+
};
|
|
19
|
+
readonly chrome: {
|
|
20
|
+
readonly border: "gray";
|
|
21
|
+
readonly title: "cyanBright";
|
|
22
|
+
readonly dim: "gray";
|
|
23
|
+
readonly accent: "cyan";
|
|
24
|
+
readonly busy: "yellow";
|
|
25
|
+
readonly success: "green";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const ANSI: {
|
|
29
|
+
readonly reset: "\u001B[0m";
|
|
30
|
+
readonly bold: "\u001B[1m";
|
|
31
|
+
readonly dim: "\u001B[2m";
|
|
32
|
+
readonly red: "\u001B[31m";
|
|
33
|
+
readonly green: "\u001B[32m";
|
|
34
|
+
readonly yellow: "\u001B[33m";
|
|
35
|
+
readonly blue: "\u001B[34m";
|
|
36
|
+
readonly magenta: "\u001B[35m";
|
|
37
|
+
readonly cyan: "\u001B[36m";
|
|
38
|
+
readonly gray: "\u001B[90m";
|
|
39
|
+
};
|
|
40
|
+
export declare function statusAnsi(status: TaskStatus): string;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export const theme = {
|
|
2
|
+
role: {
|
|
3
|
+
user: "white",
|
|
4
|
+
assistant: "cyan",
|
|
5
|
+
system: "yellow",
|
|
6
|
+
error: "red",
|
|
7
|
+
},
|
|
8
|
+
status: {
|
|
9
|
+
backlog: "gray",
|
|
10
|
+
ready: "cyan",
|
|
11
|
+
in_progress: "blue",
|
|
12
|
+
review: "magenta",
|
|
13
|
+
blocked: "red",
|
|
14
|
+
done: "green",
|
|
15
|
+
superseded: "gray",
|
|
16
|
+
archived: "gray",
|
|
17
|
+
},
|
|
18
|
+
chrome: {
|
|
19
|
+
border: "gray",
|
|
20
|
+
title: "cyanBright",
|
|
21
|
+
dim: "gray",
|
|
22
|
+
accent: "cyan",
|
|
23
|
+
busy: "yellow",
|
|
24
|
+
success: "green",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const ANSI = {
|
|
28
|
+
reset: "\u001B[0m",
|
|
29
|
+
bold: "\u001B[1m",
|
|
30
|
+
dim: "\u001B[2m",
|
|
31
|
+
red: "\u001B[31m",
|
|
32
|
+
green: "\u001B[32m",
|
|
33
|
+
yellow: "\u001B[33m",
|
|
34
|
+
blue: "\u001B[34m",
|
|
35
|
+
magenta: "\u001B[35m",
|
|
36
|
+
cyan: "\u001B[36m",
|
|
37
|
+
gray: "\u001B[90m",
|
|
38
|
+
};
|
|
39
|
+
// ANSI.dim (intensity reduction) is used for superseded/archived instead of
|
|
40
|
+
// ANSI.gray to match the original visualization-renderer behavior. The Ink
|
|
41
|
+
// theme.status uses "gray" for these since Ink handles dim via the dimColor prop.
|
|
42
|
+
const STATUS_ANSI = {
|
|
43
|
+
backlog: ANSI.gray,
|
|
44
|
+
ready: ANSI.cyan,
|
|
45
|
+
in_progress: ANSI.blue,
|
|
46
|
+
review: ANSI.magenta,
|
|
47
|
+
blocked: ANSI.red,
|
|
48
|
+
done: ANSI.green,
|
|
49
|
+
superseded: ANSI.dim,
|
|
50
|
+
archived: ANSI.dim,
|
|
51
|
+
};
|
|
52
|
+
export function statusAnsi(status) {
|
|
53
|
+
return STATUS_ANSI[status];
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/interfaces/cli/theme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,MAAM;QACjB,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,KAAK;KACb;IACD,MAAM,EAAE;QACN,OAAO,EAAE,MAAM;QACf,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,MAAM;QACnB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32m";
|
|
6
|
-
const ANSI_YELLOW = "\u001B[33m";
|
|
7
|
-
const ANSI_BLUE = "\u001B[34m";
|
|
8
|
-
const ANSI_MAGENTA = "\u001B[35m";
|
|
9
|
-
const ANSI_CYAN = "\u001B[36m";
|
|
10
|
-
const ANSI_GRAY = "\u001B[90m";
|
|
1
|
+
import { ANSI, statusAnsi } from "./theme.js";
|
|
11
2
|
export function renderVisualization(snapshot) {
|
|
12
3
|
const lines = [
|
|
13
4
|
"Task Tree",
|
|
@@ -20,7 +11,7 @@ export function renderVisualization(snapshot) {
|
|
|
20
11
|
}
|
|
21
12
|
function renderTaskTree(nodes) {
|
|
22
13
|
if (nodes.length === 0) {
|
|
23
|
-
return [`${
|
|
14
|
+
return [`${ANSI.dim}(no tasks)${ANSI.reset}`];
|
|
24
15
|
}
|
|
25
16
|
const lines = [];
|
|
26
17
|
nodes.forEach((node, index) => {
|
|
@@ -29,25 +20,25 @@ function renderTaskTree(nodes) {
|
|
|
29
20
|
return lines;
|
|
30
21
|
}
|
|
31
22
|
function appendTaskNode(lines, node, prefix, isLast, isRoot = false) {
|
|
32
|
-
const branch = isRoot ? "" : `${prefix}${isLast ? "
|
|
33
|
-
const blockedMarker = node.status === "blocked" ? `${
|
|
23
|
+
const branch = isRoot ? "" : `${prefix}${isLast ? "\u2514\u2500 " : "\u251C\u2500 "}`;
|
|
24
|
+
const blockedMarker = node.status === "blocked" ? `${ANSI.red}${ANSI.bold}! ${ANSI.reset}` : "";
|
|
34
25
|
const taskLine = [
|
|
35
26
|
`${branch}${blockedMarker}${colorizeStatus(node.status)} `,
|
|
36
27
|
`${node.title} `,
|
|
37
|
-
`${
|
|
28
|
+
`${ANSI.dim}(${node.task_id})${ANSI.reset}`,
|
|
38
29
|
` agent=${node.agent_id ?? "-"}`,
|
|
39
30
|
` session=${node.current_relay_session_id ?? "-"}`,
|
|
40
31
|
` deps=${node.depends_on.length > 0 ? node.depends_on.join(",") : "-"}`,
|
|
41
32
|
].join("");
|
|
42
33
|
lines.push(taskLine);
|
|
43
|
-
const childPrefix = isRoot ? "" : `${prefix}${isLast ? " " : "
|
|
34
|
+
const childPrefix = isRoot ? "" : `${prefix}${isLast ? " " : "\u2502 "}`;
|
|
44
35
|
if (node.status === "blocked" && node.blocked_reason) {
|
|
45
36
|
const blockedLabel = node.blocked_kind === "dependency"
|
|
46
37
|
? "blocked by dependency"
|
|
47
38
|
: node.blocked_kind === "error"
|
|
48
39
|
? "blocked by error"
|
|
49
40
|
: "blocked";
|
|
50
|
-
lines.push(`${childPrefix}${
|
|
41
|
+
lines.push(`${childPrefix}${ANSI.red}!! ${blockedLabel}: ${node.blocked_reason}${ANSI.reset}`);
|
|
51
42
|
}
|
|
52
43
|
node.children.forEach((child, index) => {
|
|
53
44
|
appendTaskNode(lines, child, childPrefix, index === node.children.length - 1, false);
|
|
@@ -55,14 +46,14 @@ function appendTaskNode(lines, node, prefix, isLast, isRoot = false) {
|
|
|
55
46
|
}
|
|
56
47
|
function renderActiveAgents(activeAgents) {
|
|
57
48
|
if (activeAgents.length === 0) {
|
|
58
|
-
return [`${
|
|
49
|
+
return [`${ANSI.dim}(no active agents)${ANSI.reset}`];
|
|
59
50
|
}
|
|
60
51
|
return activeAgents.map((agent) => {
|
|
61
52
|
const taskLabel = agent.task_title
|
|
62
53
|
? `${agent.task_title} (${agent.task_id})`
|
|
63
54
|
: (agent.task_id ?? "-");
|
|
64
55
|
return [
|
|
65
|
-
`${
|
|
56
|
+
`${ANSI.blue}${agent.agent_id}${ANSI.reset}`,
|
|
66
57
|
` relay_session=${agent.relay_session_id}`,
|
|
67
58
|
` task=${taskLabel}`,
|
|
68
59
|
` backend=${agent.backend ?? "-"}`,
|
|
@@ -71,27 +62,8 @@ function renderActiveAgents(activeAgents) {
|
|
|
71
62
|
});
|
|
72
63
|
}
|
|
73
64
|
function colorizeStatus(status) {
|
|
74
|
-
const color =
|
|
75
|
-
return `${color}[${status}]${
|
|
76
|
-
}
|
|
77
|
-
function statusColor(status) {
|
|
78
|
-
switch (status) {
|
|
79
|
-
case "backlog":
|
|
80
|
-
return ANSI_GRAY;
|
|
81
|
-
case "ready":
|
|
82
|
-
return ANSI_CYAN;
|
|
83
|
-
case "in_progress":
|
|
84
|
-
return ANSI_BLUE;
|
|
85
|
-
case "review":
|
|
86
|
-
return ANSI_MAGENTA;
|
|
87
|
-
case "blocked":
|
|
88
|
-
return ANSI_RED;
|
|
89
|
-
case "done":
|
|
90
|
-
return ANSI_GREEN;
|
|
91
|
-
case "superseded":
|
|
92
|
-
case "archived":
|
|
93
|
-
return ANSI_DIM;
|
|
94
|
-
}
|
|
65
|
+
const color = statusAnsi(status);
|
|
66
|
+
return `${color}[${status}]${ANSI.reset}`;
|
|
95
67
|
}
|
|
96
68
|
function formatDuration(totalSeconds) {
|
|
97
69
|
const hours = Math.floor(totalSeconds / 3600);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualization-renderer.js","sourceRoot":"","sources":["../../../src/interfaces/cli/visualization-renderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"visualization-renderer.js","sourceRoot":"","sources":["../../../src/interfaces/cli/visualization-renderer.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,UAAU,mBAAmB,CAAC,QAA+B;IACjE,MAAM,KAAK,GAAG;QACZ,WAAW;QACX,GAAG,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC;QACrC,EAAE;QACF,eAAe;QACf,GAAG,kBAAkB,CAAC,QAAQ,CAAC,aAAa,CAAC;KAC9C,CAAC;IAEF,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACjC,CAAC;AAED,SAAS,cAAc,CAAC,KAAqB;IAC3C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,aAAa,IAAI,CA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
|
704
|
-
version: "19.
|
|
704
|
+
version: "19.2.0",
|
|
705
705
|
});
|
|
706
706
|
if (options.allowSpawnAgents) {
|
|
707
707
|
server.registerTool("spawn_agents", {
|