@runtypelabs/ink-components 0.1.0 → 0.2.1
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/index.d.ts +59 -0
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -15
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import InkSpinner from 'ink-spinner';
|
|
4
|
+
|
|
5
|
+
type InkSpinnerType = ComponentProps<typeof InkSpinner>['type'];
|
|
6
|
+
interface SpinnerProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
type?: InkSpinnerType;
|
|
10
|
+
}
|
|
11
|
+
declare function Spinner({ label, color, type, }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
interface StatusBarProps {
|
|
14
|
+
left?: string;
|
|
15
|
+
center?: string;
|
|
16
|
+
right?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function StatusBar({ left, center, right }: StatusBarProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
interface StreamOutputProps {
|
|
21
|
+
content: string;
|
|
22
|
+
isStreaming: boolean;
|
|
23
|
+
enableMarkdown?: boolean;
|
|
24
|
+
maxVisibleLines?: number;
|
|
25
|
+
/** Lines to scroll up from the bottom (0 = follow latest) */
|
|
26
|
+
scrollOffset?: number;
|
|
27
|
+
}
|
|
28
|
+
declare function StreamOutput({ content, isStreaming, enableMarkdown, maxVisibleLines, scrollOffset, }: StreamOutputProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
interface ErrorDisplayProps {
|
|
31
|
+
error: Error | string;
|
|
32
|
+
context?: string;
|
|
33
|
+
}
|
|
34
|
+
declare function ErrorDisplay({ error, context }: ErrorDisplayProps): react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare const theme: {
|
|
37
|
+
readonly error: "red";
|
|
38
|
+
readonly success: "green";
|
|
39
|
+
readonly warning: "yellow";
|
|
40
|
+
readonly info: "cyan";
|
|
41
|
+
readonly muted: "gray";
|
|
42
|
+
readonly primary: "cyan";
|
|
43
|
+
readonly secondary: "blue";
|
|
44
|
+
readonly spinner: "green";
|
|
45
|
+
readonly progress: "cyan";
|
|
46
|
+
readonly label: "white";
|
|
47
|
+
readonly dimLabel: "gray";
|
|
48
|
+
readonly highlight: "bold";
|
|
49
|
+
};
|
|
50
|
+
type Theme = typeof theme;
|
|
51
|
+
|
|
52
|
+
type StreamPhase = 'idle' | 'thinking' | 'streaming' | 'tool' | 'complete' | 'error';
|
|
53
|
+
interface ToolResult {
|
|
54
|
+
name: string;
|
|
55
|
+
status: 'running' | 'complete' | 'error';
|
|
56
|
+
duration?: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { ErrorDisplay, type ErrorDisplayProps, Spinner, type SpinnerProps, StatusBar, type StatusBarProps, StreamOutput, type StreamOutputProps, type StreamPhase, type Theme, type ToolResult, theme };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// src/components/Spinner.tsx
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import InkSpinner from "ink-spinner";
|
|
4
|
+
|
|
5
|
+
// src/theme.ts
|
|
6
|
+
var theme = {
|
|
7
|
+
error: "red",
|
|
8
|
+
success: "green",
|
|
9
|
+
warning: "yellow",
|
|
10
|
+
info: "cyan",
|
|
11
|
+
muted: "gray",
|
|
12
|
+
primary: "cyan",
|
|
13
|
+
secondary: "blue",
|
|
14
|
+
spinner: "green",
|
|
15
|
+
progress: "cyan",
|
|
16
|
+
label: "white",
|
|
17
|
+
dimLabel: "gray",
|
|
18
|
+
highlight: "bold"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// src/components/Spinner.tsx
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function Spinner({
|
|
24
|
+
label = "Loading...",
|
|
25
|
+
color = theme.spinner,
|
|
26
|
+
type = "dots"
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Text, { color, children: /* @__PURE__ */ jsx(InkSpinner, { type }) }),
|
|
30
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
31
|
+
" ",
|
|
32
|
+
label
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// src/components/StatusBar.tsx
|
|
38
|
+
import { Box as Box2, Text as Text2 } from "ink";
|
|
39
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
40
|
+
function StatusBar({ left, center, right }) {
|
|
41
|
+
return /* @__PURE__ */ jsxs2(Box2, { borderStyle: "single", borderColor: theme.muted, paddingX: 1, children: [
|
|
42
|
+
/* @__PURE__ */ jsx2(Box2, { flexGrow: 1, children: /* @__PURE__ */ jsx2(Text2, { color: theme.dimLabel, children: left }) }),
|
|
43
|
+
center && /* @__PURE__ */ jsx2(Box2, { flexGrow: 1, justifyContent: "center", children: /* @__PURE__ */ jsx2(Text2, { color: theme.info, children: center }) }),
|
|
44
|
+
right && /* @__PURE__ */ jsx2(Box2, { children: /* @__PURE__ */ jsx2(Text2, { color: theme.dimLabel, children: right }) })
|
|
45
|
+
] });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/components/StreamOutput.tsx
|
|
49
|
+
import { useMemo } from "react";
|
|
50
|
+
import { Box as Box3, Text as Text3 } from "ink";
|
|
51
|
+
import InkSpinner2 from "ink-spinner";
|
|
52
|
+
import { marked } from "marked";
|
|
53
|
+
import { markedTerminal } from "marked-terminal";
|
|
54
|
+
import stripAnsi from "strip-ansi";
|
|
55
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
56
|
+
marked.use(markedTerminal());
|
|
57
|
+
function StreamOutput({
|
|
58
|
+
content,
|
|
59
|
+
isStreaming,
|
|
60
|
+
enableMarkdown = true,
|
|
61
|
+
maxVisibleLines,
|
|
62
|
+
scrollOffset = 0
|
|
63
|
+
}) {
|
|
64
|
+
const rendered = useMemo(() => {
|
|
65
|
+
const stripped = stripAnsi(content);
|
|
66
|
+
if (!stripped) return "";
|
|
67
|
+
if (enableMarkdown) {
|
|
68
|
+
return marked.parse(stripped).trimEnd();
|
|
69
|
+
}
|
|
70
|
+
return stripped;
|
|
71
|
+
}, [content, enableMarkdown]);
|
|
72
|
+
const visible = useMemo(() => {
|
|
73
|
+
if (!maxVisibleLines) return rendered;
|
|
74
|
+
const lines = rendered.split("\n");
|
|
75
|
+
const totalLines = lines.length;
|
|
76
|
+
const clampedOffset = Math.min(scrollOffset, Math.max(0, totalLines - maxVisibleLines));
|
|
77
|
+
const end = totalLines - clampedOffset;
|
|
78
|
+
const start = Math.max(0, end - maxVisibleLines);
|
|
79
|
+
return lines.slice(start, end).join("\n");
|
|
80
|
+
}, [rendered, maxVisibleLines, scrollOffset]);
|
|
81
|
+
return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
|
|
82
|
+
visible && /* @__PURE__ */ jsx3(Text3, { children: visible }),
|
|
83
|
+
isStreaming && /* @__PURE__ */ jsx3(Box3, { children: /* @__PURE__ */ jsx3(Text3, { color: theme.muted, children: /* @__PURE__ */ jsx3(InkSpinner2, { type: "dots" }) }) })
|
|
84
|
+
] });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// src/components/ErrorDisplay.tsx
|
|
88
|
+
import { Box as Box4, Text as Text4 } from "ink";
|
|
89
|
+
import { jsxs as jsxs4 } from "react/jsx-runtime";
|
|
90
|
+
function ErrorDisplay({ error, context }) {
|
|
91
|
+
const message = error instanceof Error ? error.message : error;
|
|
92
|
+
const cause = error instanceof Error && error.cause ? String(error.cause) : void 0;
|
|
93
|
+
return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", children: [
|
|
94
|
+
/* @__PURE__ */ jsxs4(Text4, { color: theme.error, bold: true, children: [
|
|
95
|
+
"Error",
|
|
96
|
+
context ? ` ${context}` : "",
|
|
97
|
+
": ",
|
|
98
|
+
message
|
|
99
|
+
] }),
|
|
100
|
+
cause && /* @__PURE__ */ jsxs4(Text4, { color: theme.muted, children: [
|
|
101
|
+
"Cause: ",
|
|
102
|
+
cause
|
|
103
|
+
] })
|
|
104
|
+
] });
|
|
105
|
+
}
|
|
106
|
+
export {
|
|
107
|
+
ErrorDisplay,
|
|
108
|
+
Spinner,
|
|
109
|
+
StatusBar,
|
|
110
|
+
StreamOutput,
|
|
111
|
+
theme
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Spinner.tsx","../src/theme.ts","../src/components/StatusBar.tsx","../src/components/StreamOutput.tsx","../src/components/ErrorDisplay.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\nimport { Box, Text } from 'ink'\nimport InkSpinner from 'ink-spinner'\nimport { theme } from '../theme.js'\n\ntype InkSpinnerType = ComponentProps<typeof InkSpinner>['type']\n\nexport interface SpinnerProps {\n label?: string\n color?: string\n type?: InkSpinnerType\n}\n\nexport function Spinner({\n label = 'Loading...',\n color = theme.spinner,\n type = 'dots',\n}: SpinnerProps) {\n return (\n <Box>\n <Text color={color}>\n <InkSpinner type={type} />\n </Text>\n <Text> {label}</Text>\n </Box>\n )\n}\n","export const theme = {\n error: 'red',\n success: 'green',\n warning: 'yellow',\n info: 'cyan',\n muted: 'gray',\n primary: 'cyan',\n secondary: 'blue',\n spinner: 'green',\n progress: 'cyan',\n label: 'white',\n dimLabel: 'gray',\n highlight: 'bold',\n} as const\n\nexport type Theme = typeof theme\n","import { Box, Text } from 'ink'\nimport { theme } from '../theme.js'\n\nexport interface StatusBarProps {\n left?: string\n center?: string\n right?: string\n}\n\nexport function StatusBar({ left, center, right }: StatusBarProps) {\n return (\n <Box borderStyle=\"single\" borderColor={theme.muted} paddingX={1}>\n <Box flexGrow={1}>\n <Text color={theme.dimLabel}>{left}</Text>\n </Box>\n {center && (\n <Box flexGrow={1} justifyContent=\"center\">\n <Text color={theme.info}>{center}</Text>\n </Box>\n )}\n {right && (\n <Box>\n <Text color={theme.dimLabel}>{right}</Text>\n </Box>\n )}\n </Box>\n )\n}\n","import { useMemo } from 'react'\nimport { Box, Text } from 'ink'\nimport InkSpinner from 'ink-spinner'\nimport { type MarkedExtension, marked } from 'marked'\n// @ts-expect-error marked-terminal has no type declarations\nimport { markedTerminal } from 'marked-terminal'\nimport stripAnsi from 'strip-ansi'\nimport { theme } from '../theme.js'\n\nexport interface StreamOutputProps {\n content: string\n isStreaming: boolean\n enableMarkdown?: boolean\n maxVisibleLines?: number\n /** Lines to scroll up from the bottom (0 = follow latest) */\n scrollOffset?: number\n}\n\n// Configure marked with terminal renderer once at module level\nmarked.use(markedTerminal() as MarkedExtension)\n\nexport function StreamOutput({\n content,\n isStreaming,\n enableMarkdown = true,\n maxVisibleLines,\n scrollOffset = 0,\n}: StreamOutputProps) {\n const rendered = useMemo(() => {\n // Strip incoming ANSI codes, then re-render via marked-terminal if enabled\n const stripped = stripAnsi(content)\n if (!stripped) return ''\n if (enableMarkdown) {\n return (marked.parse(stripped) as string).trimEnd()\n }\n return stripped\n }, [content, enableMarkdown])\n\n // Window to N lines with optional scroll offset from bottom\n const visible = useMemo(() => {\n if (!maxVisibleLines) return rendered\n const lines = rendered.split('\\n')\n const totalLines = lines.length\n const clampedOffset = Math.min(scrollOffset, Math.max(0, totalLines - maxVisibleLines))\n const end = totalLines - clampedOffset\n const start = Math.max(0, end - maxVisibleLines)\n return lines.slice(start, end).join('\\n')\n }, [rendered, maxVisibleLines, scrollOffset])\n\n return (\n <Box flexDirection=\"column\">\n {visible && <Text>{visible}</Text>}\n {isStreaming && (\n <Box>\n <Text color={theme.muted}>\n <InkSpinner type=\"dots\" />\n </Text>\n </Box>\n )}\n </Box>\n )\n}\n","import { Box, Text } from 'ink'\nimport { theme } from '../theme.js'\n\nexport interface ErrorDisplayProps {\n error: Error | string\n context?: string\n}\n\nexport function ErrorDisplay({ error, context }: ErrorDisplayProps) {\n const message = error instanceof Error ? error.message : error\n const cause =\n error instanceof Error && error.cause ? String(error.cause) : undefined\n\n return (\n <Box flexDirection=\"column\">\n <Text color={theme.error} bold>\n Error{context ? ` ${context}` : ''}: {message}\n </Text>\n {cause && <Text color={theme.muted}>Cause: {cause}</Text>}\n </Box>\n )\n}\n"],"mappings":"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","names":["Box","Text","jsx","jsxs","Box","Text","Box","Text","InkSpinner","jsx","jsxs","Box","Text","InkSpinner","Box","Text","jsxs","Box","Text"]}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/ink-components",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Shared Ink (React for CLI) components for the Runtype CLI — spinners, status bars, streaming output, and error displays.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"author": "",
|
|
6
|
+
"author": "Runtype Labs",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
@@ -13,18 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"directories": {
|
|
17
|
-
"test": "tests"
|
|
18
|
-
},
|
|
19
16
|
"files": [
|
|
20
|
-
"dist"
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
21
19
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsup",
|
|
24
|
-
"test": "vitest run",
|
|
25
|
-
"type-check": "tsc --noEmit",
|
|
26
|
-
"dev": "tsup --watch"
|
|
27
|
-
},
|
|
28
20
|
"dependencies": {
|
|
29
21
|
"chalk": "^5.3.0",
|
|
30
22
|
"ink": "6.7.0",
|
|
@@ -32,7 +24,7 @@
|
|
|
32
24
|
"marked": "^17.0.3",
|
|
33
25
|
"marked-terminal": "^7.0.0",
|
|
34
26
|
"react": "^19.2.0",
|
|
35
|
-
"strip-ansi": "^7.
|
|
27
|
+
"strip-ansi": "^7.2.0"
|
|
36
28
|
},
|
|
37
29
|
"devDependencies": {
|
|
38
30
|
"@types/react": "^19.0.0",
|
|
@@ -41,7 +33,35 @@
|
|
|
41
33
|
"typescript": "^5.3.3",
|
|
42
34
|
"vitest": "^4.0.18"
|
|
43
35
|
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"runtype",
|
|
38
|
+
"ink",
|
|
39
|
+
"cli",
|
|
40
|
+
"react",
|
|
41
|
+
"terminal",
|
|
42
|
+
"components",
|
|
43
|
+
"tui"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/runtypelabs/core",
|
|
48
|
+
"directory": "packages/ink-components"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://runtype.com",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/runtypelabs/core/issues"
|
|
53
|
+
},
|
|
44
54
|
"publishConfig": {
|
|
45
55
|
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=18.0.0"
|
|
59
|
+
},
|
|
60
|
+
"sideEffects": false,
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup",
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"type-check": "tsc --noEmit",
|
|
65
|
+
"dev": "tsup --watch"
|
|
46
66
|
}
|
|
47
|
-
}
|
|
67
|
+
}
|