@tdk-landscape/tdk-cli-core 1.3.57 → 1.3.58
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ Notable changes to the `tdk` CLI. Versions match [npm](https://www.npmjs.com/pac
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
- Dropped the `ink-select-input` dependency in favor of a small built-in list in `tdk ui` (same keys: arrows or j/k, 1-9, Enter). Removes 4 packages: ink-select-input, figures, to-rotated and is-unicode-supported.
|
|
8
|
+
|
|
9
|
+
## 1.3.57 (2026-09-27)
|
|
10
|
+
|
|
7
11
|
- Binary installs (`tdk-landscape.github.io/install.sh`) ship the Docker helper scripts generated Dockerfiles run. Before, `tdk project` warned "TDK runtime assets not found" and image builds could fail. The release script now smoke-tests the built binary.
|
|
8
12
|
|
|
9
13
|
## 1.3.56 (2026-09-27)
|
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "ink";
|
|
3
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text, useInput } from "ink";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
// Keys match what ink-select-input handled: up/down or k/j (wrapping), 1-9 to pick, Enter to select.
|
|
4
5
|
export const ResourceSelectInput = ({ items, onSelect, highlightedIndex, }) => {
|
|
5
|
-
|
|
6
|
+
const [selected, setSelected] = useState(() => Math.max(0, Math.min(highlightedIndex, items.length - 1)));
|
|
7
|
+
const itemKeys = items.map((item) => item.value).join("\0");
|
|
8
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: reset only when the item list changes
|
|
9
|
+
useEffect(() => setSelected(0), [itemKeys]);
|
|
10
|
+
useInput((input, key) => {
|
|
11
|
+
if (items.length === 0)
|
|
12
|
+
return;
|
|
13
|
+
if (input === "k" || key.upArrow)
|
|
14
|
+
setSelected((i) => (i === 0 ? items.length - 1 : i - 1));
|
|
15
|
+
if (input === "j" || key.downArrow)
|
|
16
|
+
setSelected((i) => (i === items.length - 1 ? 0 : i + 1));
|
|
17
|
+
if (/^[1-9]$/.test(input)) {
|
|
18
|
+
const item = items[Number(input) - 1];
|
|
19
|
+
if (item)
|
|
20
|
+
onSelect(item);
|
|
21
|
+
}
|
|
22
|
+
if (key.return)
|
|
23
|
+
onSelect(items[selected]);
|
|
24
|
+
});
|
|
25
|
+
return (_jsx(Box, { flexDirection: "column", children: items.map((item, index) => {
|
|
26
|
+
const isSelected = index === selected;
|
|
27
|
+
return (_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? "cyan" : undefined, children: isSelected ? "▓▒░ " : " " }), _jsx(Text, { color: isSelected ? "cyan" : "white", bold: isSelected, backgroundColor: isSelected ? "black" : undefined, children: item.label })] }, item.value));
|
|
28
|
+
}) }));
|
|
6
29
|
};
|
|
7
30
|
//# sourceMappingURL=ResourceSelectInput.js.map
|
package/cli/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tdk-cli-internal",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.58",
|
|
5
5
|
"description": "TDK CLI - Tilt Development Kit command line interface",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tdk",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"commander": "^15.0.0",
|
|
58
58
|
"handlebars": "^4.7.8",
|
|
59
59
|
"ink": "^7.1.1",
|
|
60
|
-
"ink-select-input": "^6.2.0",
|
|
61
60
|
"react": "^19.3.0"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tdk-landscape/tdk-cli-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.58",
|
|
4
4
|
"description": "Run 100 microservices on a 16 GB laptop without Kubernetes. Scaffold services and run them locally with hot reload, built on Tilt.",
|
|
5
5
|
"homepage": "https://tdk-landscape.github.io/tdk-website",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"commander": "^15.0.0",
|
|
71
71
|
"handlebars": "^4.7.8",
|
|
72
72
|
"ink": "^7.1.1",
|
|
73
|
-
"ink-select-input": "^6.2.0",
|
|
74
73
|
"react": "^19.3.0"
|
|
75
74
|
},
|
|
76
75
|
"devDependencies": {
|