@gguf/coder 0.4.1 → 0.4.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome-message.d.ts","sourceRoot":"","sources":["../../source/components/welcome-message.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"welcome-message.d.ts","sourceRoot":"","sources":["../../source/components/welcome-message.tsx"],"names":[],"mappings":";AAmBA,wBAkEG"}
|
|
@@ -4,10 +4,10 @@ import { memo } from 'react';
|
|
|
4
4
|
import { TitledBox } from '../components/ui/titled-box.js';
|
|
5
5
|
import { useResponsiveTerminal } from '../hooks/useTerminalWidth.js';
|
|
6
6
|
import { useTheme } from '../hooks/useTheme.js';
|
|
7
|
-
import fs from 'fs';
|
|
8
|
-
import path from 'path';
|
|
9
7
|
import { fileURLToPath } from 'url';
|
|
10
|
-
import
|
|
8
|
+
import path from 'path';
|
|
9
|
+
import fs from 'fs';
|
|
10
|
+
// import BigText from 'ink-big-text';
|
|
11
11
|
import Gradient from 'ink-gradient';
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = path.dirname(__filename);
|
|
@@ -16,12 +16,14 @@ const packageJson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../packa
|
|
|
16
16
|
export default memo(function WelcomeMessage() {
|
|
17
17
|
const { boxWidth, isNarrow, isNormal } = useResponsiveTerminal();
|
|
18
18
|
const { colors } = useTheme();
|
|
19
|
-
return (_jsx(_Fragment, { children: isNarrow ? (_jsxs(_Fragment, { children: [_jsx(Gradient, { colors: [colors.primary, colors.tool], children: _jsx(
|
|
19
|
+
return (_jsx(_Fragment, { children: isNarrow ? (_jsxs(_Fragment, { children: [_jsx(Gradient, { colors: [colors.primary, colors.tool], children: _jsx(Text, { children: `
|
|
20
|
+
█▀▀▀▄█▄█▄▄█ █▀▀ █▀█
|
|
21
|
+
█▄▄ ▀▄▀▀▀▄▀ ██▄ █▀▄
|
|
22
|
+
` }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, borderStyle: "round", borderColor: colors.primary, paddingY: 1, paddingX: 2, children: [_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: colors.primary, bold: true, children: ["\u273B ", packageJson.version] }) }), _jsx(Text, { color: colors.white, children: "Tips:" }), _jsx(Text, { color: colors.secondary, children: "\u2022 /help for commands" }), _jsx(Text, { color: colors.secondary, children: "\u2022 Ctrl+C to quit" })] })] })) : (
|
|
20
23
|
/* Normal/Wide terminal: full version with TitledBox */
|
|
21
24
|
_jsxs(_Fragment, { children: [_jsx(Gradient, { colors: [colors.primary, colors.tool], children: _jsx(Text, { children: `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
▀████ ▀██▀▀▀▀██▀ ██▄▄▄ ██ ██
|
|
25
|
+
█▀▀▀▄█▄█▄▄█ █▀▀ █▀█
|
|
26
|
+
█▄▄ ▀▄▀▀▀▄▀ ██▄ █▀▄
|
|
25
27
|
` }) }), _jsx(TitledBox, { title: packageJson.version, width: boxWidth, borderColor: colors.primary, paddingX: 2, paddingY: 1, flexDirection: "column", marginBottom: 1, children: _jsx(Box, { children: _jsx(Text, { color: colors.white, children: "\uD83C\uDF8A\u2728 Happy New Year 2026!\uD83C\uDF89\uD83C\uDF88 /help for help" }) }) })] })) }));
|
|
26
28
|
});
|
|
27
29
|
//# sourceMappingURL=welcome-message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome-message.js","sourceRoot":"","sources":["../../source/components/welcome-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE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