pan-stack-cli 0.2.7 → 0.3.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.
Files changed (3) hide show
  1. package/README.md +1 -69
  2. package/bin/pan.js +2409 -6592
  3. package/package.json +34 -5
package/README.md CHANGED
@@ -1,71 +1,3 @@
1
1
  # pan-stack-cli
2
2
 
3
- Global CLI for PAN Stack workspaces (`pan`). Cài một lần, dùng mọi project có `.project.yaml`.
4
-
5
- > **Tài liệu:** [docs/README.md](./docs/README.md) — overview, kiến trúc, tra lệnh đầy đủ.
6
- > Planning: `btp-csdl-cc/docs/projects/PANCLI/`.
7
-
8
- ```bash
9
- npm i -g pan-stack-cli
10
- # hoặc từ source:
11
- npm i -g /path/to/apps/pan-stack-tools/pan-stack-cli
12
- ```
13
-
14
- ## PAN Stack là gì?
15
-
16
- Lớp **điều phối** AI agent stack — skills, manifest, lệnh workspace — **không** chứa toàn bộ source sản phẩm. Repo sản phẩm liệt kê trong `.project.yaml`; `pan clone` kéo về `apps/`.
17
-
18
- ## Yêu cầu
19
-
20
- - Node.js 18+
21
- - Git (Git for Windows + bash cho lệnh `shell:` trong `.pan.yaml`)
22
-
23
- ## Bootstrap nhanh
24
-
25
- ```bash
26
- mkdir ~/work && cd ~/work
27
- pan create bookshop-stack
28
- cd bookshop-stack
29
- # Sửa .project.yaml — URL repo thật
30
- pan clone
31
- ```
32
-
33
- `pan create` cần **registry server** (`PAN_SKILL_REGISTRY_URL`, mặc định `http://localhost:4600`).
34
-
35
- ## Lệnh built-in (tóm tắt)
36
-
37
- | Nhóm | Lệnh |
38
- |------|------|
39
- | Workspace | `create`, `language` / `lang` |
40
- | Git bulk | `clone`, `pull`, `push`, `fetch`, `checkout`, `mr`, `sync-main`, `gst`, `branch`, `grv` |
41
- | Git menu | `git` (TTY chọn lệnh) |
42
- | Agent | `ai`, `skills` |
43
- | Pan Studio | `ui` (login, clone, sync, …) |
44
- | Pan Plans | `plan`, `task`, `project`, `usecase`, `testcase`, `decision` |
45
- | Khác | `serve`, `stats`, `select` |
46
-
47
- Gõ `pan` không tham số (TTY) → menu chọn project → chọn lệnh.
48
-
49
- **Tra cứu đầy đủ:** [docs/guides/cli-reference.md](./docs/guides/cli-reference.md) (~870 dòng — options, `.pan.yaml`, Pan Plans, Windows, …).
50
-
51
- ## Phát triển local
52
-
53
- ```bash
54
- cd apps/pan-stack-tools/pan-stack-cli
55
- npm install
56
- npm test
57
- npm run build
58
- npm link # hoặc npm i -g .
59
- ```
60
-
61
- Chi tiết: [docs/how-to/npm-development.md](./docs/how-to/npm-development.md) · [docs/how-to/npm-release.md](./docs/how-to/npm-release.md).
62
-
63
- ## Package layout
64
-
65
- ```text
66
- pan-stack-cli/
67
- ├── bin/pan.js # bundle (esbuild)
68
- ├── tools/pan-stack-cli/ # core CLI source
69
- ├── tools/pan-stack-plan/ # Pan Plans
70
- └── docs/ # tài liệu
71
- ```
3
+ Tài liệu đầy đủ (tạm thời): [docs/README.full.md](docs/README.full.md)