@thieung/agentkit-helper 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Thieu Nguyen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # AgentKit Helper
2
+
3
+ [Tiếng Việt](./README.vi.md)
4
+
5
+ A friendly TUI for installing and updating AgentKit Kits. It detects your
6
+ `ak` binary, asks a few questions, shows the official command, and runs it for
7
+ you.
8
+
9
+ ![AgentKit Helper TUI](./assets/tui-preview.en.svg)
10
+
11
+ ## Start
12
+
13
+ Requires Node.js 20.12+ and the `ak` CLI.
14
+
15
+ ```bash
16
+ npx --yes @thieung/agentkit-helper
17
+ ```
18
+
19
+ For the shorter `akh` command:
20
+
21
+ ```bash
22
+ npm install --global @thieung/agentkit-helper
23
+ akh
24
+ ```
25
+
26
+ In the TUI, use:
27
+
28
+ - ↑/↓ to navigate
29
+ - Space to select multiple runtimes
30
+ - Enter to confirm
31
+ - `← Back` to return to the previous step
32
+
33
+ Choose a project or user/global scope, Engineer or Marketing Kit, one or more
34
+ runtimes, and the Stable or Beta channel. AgentKit remains responsible for Kit
35
+ verification, ownership, snapshots, and runtime-specific files.
36
+
37
+ For global install, the helper first runs without `--force`. If the target
38
+ already exists or drift is detected, the TUI shows a WARNING and asks for
39
+ separate consent, defaulting to No. It retries with `--force` only after you
40
+ choose Yes. Global update is preserve-only: user-modified files are skipped
41
+ and the helper never adds `--force`.
42
+
43
+ <details>
44
+ <summary><strong>Advanced CLI usage</strong></summary>
45
+
46
+ Install into a project:
47
+
48
+ ```bash
49
+ akh install --project /path/to/project --kit engineer \
50
+ --runtime codex --channel stable
51
+ ```
52
+
53
+ Install into runtime user/global scope:
54
+
55
+ ```bash
56
+ akh install --global --kit engineer \
57
+ --runtime codex,omp,pi --channel stable
58
+ ```
59
+
60
+ Update Kit installs or only the signed `ak` binary:
61
+
62
+ ```bash
63
+ akh update --project /path/to/project
64
+ akh update-all --channel stable
65
+ akh self-update --channel stable
66
+ ```
67
+
68
+ Preview without applying changes:
69
+
70
+ ```bash
71
+ akh update --project /path/to/project --dry-run
72
+ ```
73
+
74
+ Targets:
75
+
76
+ - Install: `claude-code`, `codex`, `cursor`, `dsh`, `grok`, `omp`, `pi`
77
+ - Update: `claude-code`, `codex`, `cursor`, `grok`, `omp`, `pi`
78
+ - Export: `agy`, `portable`
79
+
80
+ Run `akh --help` for every command and option.
81
+
82
+ </details>
83
+
84
+ ## Development
85
+
86
+ ```bash
87
+ npm ci
88
+ npm run check
89
+ npm test
90
+ ```
91
+
92
+ MIT License
package/README.vi.md ADDED
@@ -0,0 +1,90 @@
1
+ # AgentKit Helper
2
+
3
+ [English](./README.md)
4
+
5
+ TUI thân thiện giúp cài đặt và cập nhật AgentKit Kit. Helper tự detect `ak`
6
+ binary, hỏi một vài lựa chọn, hiển thị command chính thức rồi chạy giúp bạn.
7
+
8
+ ![Giao diện AgentKit Helper](./assets/tui-preview.svg)
9
+
10
+ ## Bắt đầu
11
+
12
+ Yêu cầu Node.js 20.12+ và `ak` CLI.
13
+
14
+ ```bash
15
+ npx --yes @thieung/agentkit-helper
16
+ ```
17
+
18
+ Muốn dùng command ngắn `akh`:
19
+
20
+ ```bash
21
+ npm install --global @thieung/agentkit-helper
22
+ akh
23
+ ```
24
+
25
+ Trong TUI, dùng:
26
+
27
+ - ↑/↓ để di chuyển
28
+ - Space để chọn nhiều runtime
29
+ - Enter để xác nhận
30
+ - `← Quay lại` để trở về bước trước
31
+
32
+ Bạn chỉ cần chọn scope project hoặc user/global, Engineer hoặc Marketing Kit,
33
+ một hay nhiều runtime và release channel Stable hoặc Beta. AgentKit vẫn quản
34
+ lý việc xác minh Kit, ownership, snapshot và file riêng của từng runtime.
35
+
36
+ Khi cài global scope, helper chạy trước mà không có `--force`. Nếu target đã
37
+ tồn tại hoặc có drift, TUI hiển thị WARNING và hỏi consent riêng, mặc định No.
38
+ Chỉ khi chọn Yes, helper mới retry bằng `--force`. Global update luôn dùng
39
+ preserve-only: file do user chỉnh sửa được bỏ qua và helper không thêm `--force`.
40
+
41
+ <details>
42
+ <summary><strong>Cách dùng CLI nâng cao</strong></summary>
43
+
44
+ Cài vào project:
45
+
46
+ ```bash
47
+ akh install --project /path/to/project --kit engineer \
48
+ --runtime codex --channel stable
49
+ ```
50
+
51
+ Cài vào user/global scope của runtime:
52
+
53
+ ```bash
54
+ akh install --global --kit engineer \
55
+ --runtime codex,omp,pi --channel stable
56
+ ```
57
+
58
+ Cập nhật Kit install hoặc chỉ cập nhật signed `ak` binary:
59
+
60
+ ```bash
61
+ akh update --project /path/to/project
62
+ akh update-all --channel stable
63
+ akh self-update --channel stable
64
+ ```
65
+
66
+ Preview mà không áp dụng thay đổi:
67
+
68
+ ```bash
69
+ akh update --project /path/to/project --dry-run
70
+ ```
71
+
72
+ Các target:
73
+
74
+ - Cài đặt: `claude-code`, `codex`, `cursor`, `dsh`, `grok`, `omp`, `pi`
75
+ - Cập nhật: `claude-code`, `codex`, `cursor`, `grok`, `omp`, `pi`
76
+ - Export: `agy`, `portable`
77
+
78
+ Chạy `akh --help` để xem toàn bộ command và option.
79
+
80
+ </details>
81
+
82
+ ## Phát triển local
83
+
84
+ ```bash
85
+ npm ci
86
+ npm run check
87
+ npm test
88
+ ```
89
+
90
+ MIT License
@@ -0,0 +1,34 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="650" viewBox="0 0 1200 650" role="img" aria-labelledby="title description">
2
+ <title id="title">AgentKit Helper interactive terminal</title>
3
+ <desc id="description">AgentKit Helper showing the installed ak binary and its main action menu in English.</desc>
4
+ <rect width="1200" height="650" rx="18" fill="#18181b"/>
5
+ <rect x="1" y="1" width="1198" height="648" rx="17" fill="none" stroke="#3f3f46" stroke-width="2"/>
6
+ <circle cx="32" cy="30" r="7" fill="#ff5f57"/>
7
+ <circle cx="56" cy="30" r="7" fill="#febc2e"/>
8
+ <circle cx="80" cy="30" r="7" fill="#28c840"/>
9
+ <g font-family="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace" font-size="25">
10
+ <text x="30" y="88" fill="#f4f4f5">┌ AgentKit Helper</text>
11
+ <text x="30" y="128" fill="#71717a">│</text>
12
+ <text x="30" y="168" fill="#7dd3fc">◇</text>
13
+ <text x="72" y="168" fill="#a7f3d0" font-weight="700">Choose interface language / Chọn ngôn ngữ giao diện</text>
14
+ <text x="30" y="208" fill="#71717a">│</text>
15
+ <text x="72" y="208" fill="#e4e4e7">English</text>
16
+ <rect x="58" y="226" width="510" height="48" rx="8" fill="#27272a"/>
17
+ <text x="72" y="258" fill="#fbbf24" font-weight="700">Current ak binary: 2.14.0 (stable)</text>
18
+ <text x="30" y="310" fill="#71717a">│</text>
19
+ <text x="30" y="350" fill="#7dd3fc">◆</text>
20
+ <text x="72" y="350" fill="#a7f3d0" font-weight="700">What do you want to do?</text>
21
+ <text x="30" y="392" fill="#71717a">│</text>
22
+ <circle cx="82" cy="387" r="9" fill="#86efac"/>
23
+ <text x="108" y="396" fill="#fafafa">Install a Kit</text>
24
+ <text x="72" y="438" fill="#71717a">○</text>
25
+ <text x="108" y="438" fill="#d4d4d8">Update a Kit</text>
26
+ <text x="72" y="480" fill="#71717a">○</text>
27
+ <text x="108" y="480" fill="#d4d4d8">Update all detected AgentKit installs</text>
28
+ <text x="72" y="522" fill="#71717a">○</text>
29
+ <text x="108" y="522" fill="#d4d4d8">Run health checks</text>
30
+ <text x="30" y="572" fill="#71717a">│</text>
31
+ <text x="72" y="572" fill="#a1a1aa">↑/↓ to navigate • Enter: confirm</text>
32
+ <text x="30" y="618" fill="#71717a">└</text>
33
+ </g>
34
+ </svg>
@@ -0,0 +1,34 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="650" viewBox="0 0 1200 650" role="img" aria-labelledby="title description">
2
+ <title id="title">AgentKit Helper interactive terminal</title>
3
+ <desc id="description">AgentKit Helper showing the installed ak binary and its main action menu.</desc>
4
+ <rect width="1200" height="650" rx="18" fill="#18181b"/>
5
+ <rect x="1" y="1" width="1198" height="648" rx="17" fill="none" stroke="#3f3f46" stroke-width="2"/>
6
+ <circle cx="32" cy="30" r="7" fill="#ff5f57"/>
7
+ <circle cx="56" cy="30" r="7" fill="#febc2e"/>
8
+ <circle cx="80" cy="30" r="7" fill="#28c840"/>
9
+ <g font-family="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace" font-size="25">
10
+ <text x="30" y="88" fill="#f4f4f5">┌ AgentKit Helper</text>
11
+ <text x="30" y="128" fill="#71717a">│</text>
12
+ <text x="30" y="168" fill="#7dd3fc">◇</text>
13
+ <text x="72" y="168" fill="#a7f3d0" font-weight="700">Choose interface language / Chọn ngôn ngữ giao diện</text>
14
+ <text x="30" y="208" fill="#71717a">│</text>
15
+ <text x="72" y="208" fill="#e4e4e7">Tiếng Việt</text>
16
+ <rect x="58" y="226" width="525" height="48" rx="8" fill="#27272a"/>
17
+ <text x="72" y="258" fill="#fbbf24" font-weight="700">ak binary hiện tại: 2.14.0 (stable)</text>
18
+ <text x="30" y="310" fill="#71717a">│</text>
19
+ <text x="30" y="350" fill="#7dd3fc">◆</text>
20
+ <text x="72" y="350" fill="#a7f3d0" font-weight="700">Bạn muốn làm gì?</text>
21
+ <text x="30" y="392" fill="#71717a">│</text>
22
+ <circle cx="82" cy="387" r="9" fill="#86efac"/>
23
+ <text x="108" y="396" fill="#fafafa">Cài Kit</text>
24
+ <text x="72" y="438" fill="#71717a">○</text>
25
+ <text x="108" y="438" fill="#d4d4d8">Cập nhật Kit</text>
26
+ <text x="72" y="480" fill="#71717a">○</text>
27
+ <text x="108" y="480" fill="#d4d4d8">Cập nhật mọi AgentKit install đã detect</text>
28
+ <text x="72" y="522" fill="#71717a">○</text>
29
+ <text x="108" y="522" fill="#d4d4d8">Chạy health check</text>
30
+ <text x="30" y="572" fill="#71717a">│</text>
31
+ <text x="72" y="572" fill="#a1a1aa">↑/↓ to navigate • Enter: confirm</text>
32
+ <text x="30" y="618" fill="#71717a">└</text>
33
+ </g>
34
+ </svg>