@kairainy/ck 0.1.2 → 0.1.4
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/README.md +4 -2
- package/bin/ck.exe +0 -0
- package/package.json +1 -1
- package/scripts/postinstall.js +3 -2
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# `@kairainy/ck`
|
|
2
2
|
|
|
3
3
|
npm wrapper cho binary **`ck`** (Code Knowledge Graph CLI).
|
|
4
|
-
Scope npm: org **`kairainy
|
|
4
|
+
Scope npm: org **`kairainy`**.
|
|
5
|
+
|
|
6
|
+
Binary tải từ GitHub Releases ([kairainyomni/code-knowledge](https://github.com/kairainyomni/code-knowledge)) — **chỉ artifact**, không phải nơi push source (source = Bitbucket).
|
|
5
7
|
|
|
6
8
|
## Cài đặt
|
|
7
9
|
|
|
@@ -24,7 +26,7 @@ CK_CLI_USE_LOCAL=1 npm i -g ./packaging/npm/@codeknowledge/cli
|
|
|
24
26
|
| Biến | Mô tả |
|
|
25
27
|
|---|---|
|
|
26
28
|
| `CK_CLI_USE_LOCAL=1` | Copy `target/release/ck(.exe)` từ monorepo |
|
|
27
|
-
| `CK_RELEASE_BASE` |
|
|
29
|
+
| `CK_RELEASE_BASE` | Mặc định `https://github.com/kairainyomni/code-knowledge/releases` |
|
|
28
30
|
| `CK_CLI_BINARY_URL` | URL archive đầy đủ |
|
|
29
31
|
|
|
30
32
|
Chi tiết: [docs/install/cli.md](../../../../docs/install/cli.md).
|
package/bin/ck.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Env:
|
|
7
7
|
* CK_CLI_USE_LOCAL=1 — copy from repo target/release (dev)
|
|
8
|
-
* CK_RELEASE_BASE — release base
|
|
8
|
+
* CK_RELEASE_BASE — release base (default: github.com/kairainyomni/code-knowledge/releases)
|
|
9
|
+
* GitHub chỉ host binary Releases — không phải source repo (source = Bitbucket).
|
|
9
10
|
* CK_CLI_BINARY_URL — full URL override for the archive
|
|
10
11
|
*/
|
|
11
12
|
const fs = require("node:fs");
|
|
@@ -85,7 +86,7 @@ async function downloadRelease() {
|
|
|
85
86
|
const target = rustTarget();
|
|
86
87
|
const base =
|
|
87
88
|
process.env.CK_RELEASE_BASE ||
|
|
88
|
-
"https://github.com/
|
|
89
|
+
"https://github.com/kairainyomni/code-knowledge/releases";
|
|
89
90
|
const archive = isWin
|
|
90
91
|
? `ck-${target}.zip`
|
|
91
92
|
: `ck-${target}.tar.gz`;
|