@cr8rcho/alkahest 0.1.1 → 0.1.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.
- package/README.ko.md +7 -7
- package/README.md +7 -7
- package/dist/commands/update.d.ts +3 -4
- package/dist/commands/update.js +4 -3
- package/dist/commands/update.js.map +1 -1
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -36,18 +36,18 @@ UI 코드베이스를 **정적 분석**해 **제품 지도(Product Map)** 를
|
|
|
36
36
|
|
|
37
37
|
## 설치
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
```bash
|
|
40
|
+
npm i -g @cr8rcho/alkahest # 실행 명령은 `alkahest`
|
|
41
|
+
# 설치 없이 실행: npx @cr8rcho/alkahest <명령>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
소스에서 (컨트리뷰터):
|
|
40
45
|
|
|
41
46
|
```bash
|
|
42
47
|
git clone https://github.com/cr8rcho/alkahest.git
|
|
43
|
-
cd alkahest
|
|
44
|
-
npm install
|
|
45
|
-
npm run build
|
|
46
|
-
npm link # 'alkahest' 명령을 전역에 연결 (선택)
|
|
48
|
+
cd alkahest && npm install && npm run build && npm link
|
|
47
49
|
```
|
|
48
50
|
|
|
49
|
-
배포 후에는: `npm i -g @cr8rcho/alkahest` 또는 `npx @cr8rcho/alkahest …` (실행 명령은 그대로 `alkahest`)
|
|
50
|
-
|
|
51
51
|
## 빠른 시작 (Claude Code)
|
|
52
52
|
|
|
53
53
|
Claude Code 사용자가 0부터 대시보드에서 그래프 + PRD를 보기까지:
|
package/README.md
CHANGED
|
@@ -36,18 +36,18 @@ You ── "write a PRD for the checkout screen" ──▶ Agent (Claude Code /
|
|
|
36
36
|
|
|
37
37
|
## Install
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
```bash
|
|
40
|
+
npm i -g @cr8rcho/alkahest # the command is `alkahest`
|
|
41
|
+
# or run without installing: npx @cr8rcho/alkahest <command>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
From source (contributors):
|
|
40
45
|
|
|
41
46
|
```bash
|
|
42
47
|
git clone https://github.com/cr8rcho/alkahest.git
|
|
43
|
-
cd alkahest
|
|
44
|
-
npm install
|
|
45
|
-
npm run build
|
|
46
|
-
npm link # link the 'alkahest' command globally (optional)
|
|
48
|
+
cd alkahest && npm install && npm run build && npm link
|
|
47
49
|
```
|
|
48
50
|
|
|
49
|
-
After publish: `npm i -g @cr8rcho/alkahest` or `npx @cr8rcho/alkahest …` (the command stays `alkahest`)
|
|
50
|
-
|
|
51
51
|
## Quickstart (Claude Code)
|
|
52
52
|
|
|
53
53
|
The full flow for a Claude Code user, from zero to a graph + PRDs in the dashboard:
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Update the installed alkahest to the latest version.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Latest-version detection uses GitHub Releases (see core/version.ts). The update mechanism
|
|
5
5
|
* adapts to the install:
|
|
6
|
-
* - git checkout (`git clone` + `npm link`): `git pull` +
|
|
7
|
-
*
|
|
8
|
-
* - anything else (e.g. `npm i -g github:…`, which strips .git): print the reinstall command.
|
|
6
|
+
* - git checkout (`git clone` + `npm link`): `git pull` + rebuild in place.
|
|
7
|
+
* - npm global install (no .git): reinstall the latest from npm.
|
|
9
8
|
*
|
|
10
9
|
* `--check` only reports current-vs-latest and changes nothing.
|
|
11
10
|
*/
|
package/dist/commands/update.js
CHANGED
|
@@ -2,10 +2,11 @@ import { execFileSync } from "node:child_process";
|
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
|
-
import { checkForUpdate
|
|
5
|
+
import { checkForUpdate } from "../core/version.js";
|
|
6
6
|
export async function update(options = {}) {
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
8
|
const pkgRoot = dirname(require.resolve("../../package.json"));
|
|
9
|
+
const pkgName = require("../../package.json").name;
|
|
9
10
|
const { current, latest, behind } = await checkForUpdate();
|
|
10
11
|
console.log(`[alkahest] current version ${current}`);
|
|
11
12
|
if (latest && !behind) {
|
|
@@ -19,8 +20,8 @@ export async function update(options = {}) {
|
|
|
19
20
|
if (options.check)
|
|
20
21
|
return; // report-only
|
|
21
22
|
if (!existsSync(join(pkgRoot, ".git"))) {
|
|
22
|
-
console.log("[alkahest]
|
|
23
|
-
console.log(` npm install -g
|
|
23
|
+
console.log("[alkahest] update by reinstalling the latest from npm:");
|
|
24
|
+
console.log(` npm install -g ${pkgName}@latest`);
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
const run = (cmd, args) => execFileSync(cmd, args, { cwd: pkgRoot, stdio: "inherit" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAgBpD,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,UAAyB,EAAE;IACtD,MAAM,OAAO,GAAG,aAAa,CAAC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