@piagent/platform 1.0.1 → 1.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/CHANGELOG.md +52 -23
- package/README.md +78 -333
- package/docs/command-reference-vietnamese.md +47 -4
- package/docs/distribution-standard.md +9 -9
- package/docs/herdr-workflow.md +22 -1
- package/docs/mcp-and-tools.md +27 -3
- package/docs/operator-manual-vietnamese.md +16 -12
- package/docs/publishing-for-teams.md +2 -1
- package/docs/quickstart-vietnamese.md +55 -222
- package/docs/release-install-policy.md +54 -10
- package/docs/security-threat-model.md +1 -1
- package/docs/task-lifecycle-vietnamese.md +139 -0
- package/docs/team-onboarding.md +22 -7
- package/docs-site/index.html +43 -65
- package/package.json +7 -5
- package/packages/piagent-core/README.md +2 -1
- package/packages/piagent-core/extensions/document-intake.ts +436 -0
- package/packages/piagent-core/extensions/guard-types.ts +1 -0
- package/packages/piagent-core/extensions/piagent-guard.ts +120 -0
- package/packages/piagent-core/package.json +2 -2
- package/schemas/project-profile.schema.json +8 -0
- package/scripts/check-published-site.mjs +189 -0
- package/scripts/configure-mcp.sh +34 -1
- package/scripts/init-project.sh +19 -0
- package/scripts/install-global.sh +26 -8
- package/scripts/piagent-cli.mjs +1 -0
- package/scripts/setup.sh +14 -0
- package/scripts/team-doctor.sh +1 -1
- package/scripts/uninstall-global.sh +231 -0
- package/scripts/verify-local.sh +131 -72
|
@@ -177,6 +177,45 @@ Tech stack option theo profile:
|
|
|
177
177
|
|
|
178
178
|
Sau khi chọn tech, platform tạo `.pi/tech-stack.json` và các file `.pi/tech-context/<tech>.json`. `/onboard-project` sẽ đưa các pointer này vào `.pi/context-index.json`. File context chỉ nên chứa tóm tắt ngắn/citation từ Context7, không lưu nguyên văn docs dài, token, session, hoặc secret.
|
|
179
179
|
|
|
180
|
+
## Đọc tài liệu ngoài project
|
|
181
|
+
|
|
182
|
+
Tài liệu tải về `~/Downloads` rồi kéo vào CLI thường không đọc được, vì mặc định agent chỉ làm việc trong project. Tool `piagent_document_read` mở đúng một khe: đọc **tài liệu**, **chỉ đọc**, trong các folder đã cấp trước.
|
|
183
|
+
|
|
184
|
+
| Thành phần | Giá trị |
|
|
185
|
+
|---|---|
|
|
186
|
+
| Tool | `piagent_document_read` |
|
|
187
|
+
| Input | `path` — absolute, `~/...`, hoặc relative theo project |
|
|
188
|
+
| Định dạng | `.md`, `.markdown`, `.txt`, `.text`, `.csv`, `.tsv`, `.json`, `.yaml`, `.yml`, `.pdf`, `.docx` |
|
|
189
|
+
| Giới hạn | 12 MB/file; 400.000 ký tự sau khi trích, dài hơn thì cắt và báo `truncated` |
|
|
190
|
+
| Cấp quyền | `additionalReadRoots` trong `.pi/piagent-profile.json`, hoặc biến môi trường `PIAGENT_ADDITIONAL_READ_ROOTS` |
|
|
191
|
+
|
|
192
|
+
Cấp folder cố định trong profile:
|
|
193
|
+
|
|
194
|
+
```json
|
|
195
|
+
{
|
|
196
|
+
"additionalReadRoots": ["~/Downloads", "~/Documents/specs"]
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Cấp tạm cho một session, ngăn cách bằng `:` giống `PATH`:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
PIAGENT_ADDITIONAL_READ_ROOTS="$HOME/Downloads:$HOME/Documents/specs" pi
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Sau đó nói thẳng path là được: `Đọc ~/Downloads/spec-v2.docx rồi tóm tắt yêu cầu`.
|
|
207
|
+
|
|
208
|
+
Bốn ràng buộc không đổi khi cấp thêm root:
|
|
209
|
+
|
|
210
|
+
- **Chỉ đọc.** Root được cấp không mở quyền ghi, xoá, hay chạy lệnh trong đó.
|
|
211
|
+
- **Chỉ tài liệu.** File nằm trong root được cấp nhưng sai đuôi — `.pem`, `.sh`, `.env` — vẫn bị từ chối.
|
|
212
|
+
- **`protectedPaths` luôn thắng.** Root được cấp không mở được path mà project đang bảo vệ.
|
|
213
|
+
- **Nội dung là dữ liệu, không phải lệnh.** Text trả về đã qua redaction và có header nói rõ đây là dữ liệu người dùng; câu lệnh viết trong tài liệu không được thi hành.
|
|
214
|
+
|
|
215
|
+
Cả hai kiểm tra — nằm trong root và đúng đuôi — đều chạy trên path đã canonical hoá. Nên symlink trong root mà trỏ ra ngoài bị chặn, và symlink tên `notes.md` trỏ vào `id_rsa` cũng bị chặn.
|
|
216
|
+
|
|
217
|
+
`.docx` đọc trực tiếp, không cần cài gì; text bị xoá bởi tracked change chưa accept sẽ không lẫn vào nội dung. `.pdf` cần `pdftotext` (macOS `brew install poppler`, Debian/Ubuntu `apt install poppler-utils`); thiếu binary thì tool báo thiếu chứ không trả tài liệu rỗng.
|
|
218
|
+
|
|
180
219
|
## Command native của Pi
|
|
181
220
|
|
|
182
221
|
Các command này thuộc Pi core hoặc package Pi chính. Tên/availability có thể phụ thuộc version Pi.
|
|
@@ -379,11 +418,11 @@ Các lệnh này chạy ngoài Pi.
|
|
|
379
418
|
|
|
380
419
|
| Command | Dùng khi nào |
|
|
381
420
|
|---|---|
|
|
382
|
-
| `npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
383
|
-
| `npm install -g --ignore-scripts @piagent/platform@1.0
|
|
384
|
-
| `pi install git:github.com/Vt-mmm/piagent@v1.0
|
|
421
|
+
| `npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0` | Cài Pi CLI tương thích với release hiện tại. |
|
|
422
|
+
| `npm install -g --ignore-scripts @piagent/platform@1.1.0` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
|
|
423
|
+
| `pi install git:github.com/Vt-mmm/piagent@v1.1.0` | Cài pinned release khi cần reproducible team setup. |
|
|
385
424
|
| `pi install git:github.com/Vt-mmm/piagent` | Cài latest package platform cho máy cá nhân/sandbox. |
|
|
386
|
-
| Cài exact Pi host của release, rồi `npm install -g --ignore-scripts @piagent/platform@X.Y.Z` và `piagent-install --stable` | Full update: đồng bộ host, npm-global helper và Pi package.
|
|
425
|
+
| Cài exact Pi host của release, rồi `npm install -g --ignore-scripts @piagent/platform@X.Y.Z` và `piagent-install --stable` | Full update: đồng bộ host, npm-global helper và Pi package. Mỗi release pin một Pi host chính xác; lấy đúng version của release đang cài trong [release/install policy](release-install-policy.md). |
|
|
387
426
|
| Cài exact Pi host ghi trong release cũ, rồi helper `vPREVIOUS` và `piagent-install --stable` | Full rollback; đánh giá dependency risk của host cũ trước khi hạ version. |
|
|
388
427
|
| `piagent-install --stable --dry-run` | Preview Pi package matching với helper hiện tại; stable resolve tag → commit SHA. |
|
|
389
428
|
| `piagent-install --stable` | Cài Pi package matching với helper hiện tại bằng resolved commit SHA. |
|
|
@@ -410,6 +449,10 @@ Các lệnh này chạy ngoài Pi.
|
|
|
410
449
|
| `piagent-setup <project> --with-web-access` | Setup project + optional web access cho research subagents. |
|
|
411
450
|
| `piagent-usage /path/to/project` | Lấy exact session usage từ terminal khác. |
|
|
412
451
|
| `piagent-doctor /path/to/project --strict-share` | Kiểm tra project có share/open-source được không. |
|
|
452
|
+
| `piagent-uninstall` | Báo cáo những gì sẽ được gỡ. Dry run, không đụng gì. |
|
|
453
|
+
| `piagent-uninstall --apply` | Gỡ Pi package của platform khỏi Pi settings global. |
|
|
454
|
+
| `piagent-uninstall --apply --with-addons --with-host` | Gỡ thêm pi-mcp-adapter, pi-subagents, pi-web-access và Pi host. |
|
|
455
|
+
| `piagent-uninstall --apply --project /path/to/project` | Gỡ thêm state của platform trong project: profile, lock, `piagent-state/`. |
|
|
413
456
|
| `piagent-benchmark ...` | Ghi quality benchmark bằng package bin. |
|
|
414
457
|
| `bash scripts/verify-local.sh` | Verify repo platform trước khi commit/tag. |
|
|
415
458
|
| `bash scripts/verify-local.sh --offline` | Verify trong CI/máy sạch, bỏ qua local Pi model catalog. |
|
|
@@ -14,9 +14,9 @@ Repo này phải chạy được cho nhiều project/domain khác nhau. Vì vậ
|
|
|
14
14
|
|
|
15
15
|
| Use case | Package source |
|
|
16
16
|
|---|---|
|
|
17
|
-
| Team pinned release | `git:github.com/Vt-mmm/piagent@v1.0
|
|
17
|
+
| Team pinned release | `git:github.com/Vt-mmm/piagent@v1.1.0` |
|
|
18
18
|
| Personal/sandbox dev | `git:github.com/Vt-mmm/piagent` |
|
|
19
|
-
| Registry distribution | `npm:@piagent/platform@1.0
|
|
19
|
+
| Registry distribution | `npm:@piagent/platform@1.1.0` |
|
|
20
20
|
| Enterprise npm (fork under another scope) | `npm:@your-scope/platform@x.y.z` |
|
|
21
21
|
| Local platform dev | `/path/to/piagent` |
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ Latest tiện cho máy cá nhân muốn nhận cập nhật nhanh. Pin tag/commi
|
|
|
26
26
|
|
|
27
27
|
| Channel | Command | Target | Policy |
|
|
28
28
|
|---|---|---|---|
|
|
29
|
-
| `stable` | `bash scripts/install-global.sh --stable` | Helper release tag resolved to commit SHA, currently `v1.0
|
|
29
|
+
| `stable` | `bash scripts/install-global.sh --stable` | Helper release tag resolved to commit SHA, currently `v1.1.0` | Install the Pi package matching the helper. |
|
|
30
30
|
| `exact` | `bash scripts/install-global.sh --version vX.Y.Z --resolve-tag` | Requested tag resolved to commit SHA | Pi-package-only rollout, rollback, and incident recovery. |
|
|
31
31
|
| `dev` | `bash scripts/install-global.sh --dev` | Moving Git source | Personal/sandbox only; do not commit into project settings. |
|
|
32
32
|
| `local` | `bash scripts/install-global.sh --local` | Current checkout path | Platform development only. |
|
|
@@ -53,7 +53,7 @@ Root `package.json` có `pi` manifest trỏ tới:
|
|
|
53
53
|
Do đó team có thể:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
pi install git:github.com/Vt-mmm/piagent@v1.0
|
|
56
|
+
pi install git:github.com/Vt-mmm/piagent@v1.1.0
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Không cần biết internal folder `packages/piagent-core`. Source không pin chỉ dành cho personal/sandbox như bảng channel ở trên.
|
|
@@ -64,13 +64,13 @@ Team nên install global package một lần:
|
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
node --version # >= 22.19.0
|
|
67
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
68
|
-
npm install -g --ignore-scripts @piagent/platform@1.0
|
|
67
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
68
|
+
npm install -g --ignore-scripts @piagent/platform@1.1.0
|
|
69
69
|
piagent-install --stable --dry-run
|
|
70
70
|
piagent-install --stable
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
`pi install git:github.com/Vt-mmm/piagent@v1.0
|
|
73
|
+
`pi install git:github.com/Vt-mmm/piagent@v1.1.0` vẫn hợp lệ nếu chỉ cần cài Pi package. Lệnh đó không tự tạo các binary terminal `piagent-*`; muốn có helper global thì dùng `npm install -g --ignore-scripts @piagent/platform@1.1.0`.
|
|
74
74
|
|
|
75
75
|
Support matrix hiện tại: macOS Apple Silicon + Bash và Linux x64 + Bash đã được verify; macOS Intel + Bash và Linux ARM64 + Bash là supported target cần chạy smoke trước rollout; native Windows chưa phải target rollout team; WSL2 experimental. Chi tiết và version runtime nằm trong [release/install policy](release-install-policy.md).
|
|
76
76
|
|
|
@@ -103,7 +103,7 @@ Nếu muốn commit sẵn `.pi/piagent-profile.json` vào repo hoặc bootstrap
|
|
|
103
103
|
```bash
|
|
104
104
|
bash scripts/setup.sh /path/to/project \
|
|
105
105
|
--profile be-readonly-fe \
|
|
106
|
-
--package-source git:github.com/Vt-mmm/piagent@v1.0
|
|
106
|
+
--package-source git:github.com/Vt-mmm/piagent@v1.1.0 \
|
|
107
107
|
--mcp-preset core \
|
|
108
108
|
--subagents-preset safe
|
|
109
109
|
```
|
|
@@ -175,7 +175,7 @@ Files không commit:
|
|
|
175
175
|
Full platform update phải đồng bộ Pi host, npm-global helper và Pi package:
|
|
176
176
|
|
|
177
177
|
```bash
|
|
178
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
178
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
179
179
|
npm install -g --ignore-scripts @piagent/platform@X.Y.Z
|
|
180
180
|
piagent-install --stable --dry-run
|
|
181
181
|
piagent-install --stable
|
package/docs/herdr-workflow.md
CHANGED
|
@@ -4,11 +4,32 @@
|
|
|
4
4
|
|
|
5
5
|
Herdr dùng để quản lý nhiều session/pane agent. Pi core không cần tự làm subagent ngay từ đầu.
|
|
6
6
|
|
|
7
|
+
## Cài Herdr
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
brew install herdr # macOS
|
|
11
|
+
curl -fsSL https://herdr.dev/install.sh | sh # macOS hoặc Linux
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Bản `curl` là cách herdr.dev đặt làm mặc định, nhưng nó chạy script tải về ngay lúc cài. Muốn xem được thứ mình chạy thì dùng `brew`, hoặc tải binary từ [GitHub releases](https://github.com/ogulcancelik/herdr/releases) rồi `chmod +x` và đưa vào `PATH`.
|
|
15
|
+
|
|
16
|
+
Stable chỉ hỗ trợ macOS và Linux. Windows mới có bản preview, và cũng nằm ngoài runtime matrix của platform này.
|
|
17
|
+
|
|
7
18
|
## Setup integration
|
|
8
19
|
|
|
20
|
+
`piagent-setup` đã chạy `herdr integration install pi` giùm, với điều kiện `herdr` có sẵn trên `PATH` lúc đó. Không có thì nó bỏ qua kèm cảnh báo ra stderr — nên thứ tự đúng là cài Herdr trước, rồi mới `piagent-setup`.
|
|
21
|
+
|
|
22
|
+
Cài Herdr sau khi đã setup thì chạy lại:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
piagent-setup --global-only
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Kiểm tra hoặc cài tay:
|
|
29
|
+
|
|
9
30
|
```bash
|
|
10
|
-
herdr integration install pi
|
|
11
31
|
herdr integration status
|
|
32
|
+
herdr integration install pi
|
|
12
33
|
```
|
|
13
34
|
|
|
14
35
|
Nếu dùng custom Pi agent dir:
|
package/docs/mcp-and-tools.md
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Kết luận hiện tại
|
|
4
4
|
|
|
5
|
-
Pi core không hard-code MCP. Platform của mình cài `pi-mcp-adapter` để Pi dùng MCP theo kiểu token-efficient: một proxy tool `mcp
|
|
5
|
+
Pi core không hard-code MCP. Platform của mình cài `pi-mcp-adapter` để Pi dùng MCP theo kiểu token-efficient: một proxy tool tên `mcp`, server lazy-connect, metadata cache, output guard. Project profile chỉ khai báo capability được phép; MCP config mới khai báo server thật.
|
|
6
|
+
|
|
7
|
+
**Ba thứ tên giống nhau nhưng không liên quan nhau** — chỗ này gây nhầm nhiều nhất:
|
|
8
|
+
|
|
9
|
+
| Thứ | Ở đâu | Là gì |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `mcpCapabilities: ["github", ...]` | `.pi/piagent-profile.json` | Nhãn capability dùng cho tool registry |
|
|
12
|
+
| `toolCapabilities: { "github": ["github"] }` | `base-policy.json` | Map một tool **tên là `github`** sang capability |
|
|
13
|
+
| server `github` | `~/.config/mcp/mcp.json` | Server MCP thật, chạy qua Docker |
|
|
14
|
+
|
|
15
|
+
Không có dòng code nào map capability name sang MCP server id. Khai `"github"` trong `mcpCapabilities` **không** bật server MCP `github`, và ngược lại.
|
|
16
|
+
|
|
17
|
+
`toolPrefix` trong MCP config (`"server" | "none" | "short"`) chỉ đặt tên cho **direct tools** khi bật `directTools: true`. Nó không đổi tên proxy tool — proxy luôn là `mcp`.
|
|
6
18
|
|
|
7
19
|
Từ `v0.3.7`, repo có thêm:
|
|
8
20
|
|
|
@@ -13,7 +25,17 @@ Từ `v0.3.7`, repo có thêm:
|
|
|
13
25
|
|
|
14
26
|
## Cấu hình một lần cho máy cá nhân/team
|
|
15
27
|
|
|
16
|
-
|
|
28
|
+
Cả `piagent-setup` và `piagent-install` đều cài adapter và seed preset `core` **mặc định**. Muốn bỏ qua thì thêm `--no-mcp`.
|
|
29
|
+
|
|
30
|
+
Ghi config **không** bằng dùng được ngay. Server connect lazy, nên mỗi server còn cần thứ của nó trước lần gọi đầu:
|
|
31
|
+
|
|
32
|
+
| Server (preset `core`) | Còn cần gì |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `context7` | Không bắt buộc. `CONTEXT7_API_KEY` chỉ để tăng quota |
|
|
35
|
+
| `chrome-devtools` | Chrome cài sẵn trên máy |
|
|
36
|
+
| `github` | **Docker đang chạy** + `export GITHUB_PERSONAL_ACCESS_TOKEN` |
|
|
37
|
+
|
|
38
|
+
`piagent-mcp --list` in ra yêu cầu của từng server; lệnh apply cũng in danh sách này ra stderr ngay sau khi ghi config.
|
|
17
39
|
|
|
18
40
|
```bash
|
|
19
41
|
bash /path/to/piagent/scripts/setup.sh . \
|
|
@@ -237,7 +259,9 @@ Tool:
|
|
|
237
259
|
piagent_tool_policy_check
|
|
238
260
|
```
|
|
239
261
|
|
|
240
|
-
Default `toolRegistry=advisory`:
|
|
262
|
+
Default `toolRegistry=advisory`: tool chưa map capability vẫn chạy, nhưng guard phát một notice mức `warning` — **một lần cho mỗi tool trong mỗi session**, không phải mỗi lần gọi.
|
|
263
|
+
|
|
264
|
+
`toolRegistry=enforce` thì đổi notice đó thành block. Cân nhắc trước khi bật: proxy tool của MCP tên là `mcp`, không nằm trong `alwaysAllowedTools` cũng không có trong `toolCapabilities`, nên **enforce sẽ chặn toàn bộ MCP**. Khai thêm `mcpCapabilities` không gỡ được, vì không có mapping nào từ capability name sang MCP server. Ngoại lệ duy nhất là permission profile `trusted-full-access`.
|
|
241
265
|
|
|
242
266
|
Protected-path gate độc lập với registry mode. Dù tool registry đang `advisory`, mọi raw tool call có path-like string trỏ vào protected path sẽ bị block trước khi tool chạy. Cơ chế này áp dụng cho Pi built-ins (`read`, `write`, `edit`, `grep`, `find`, `ls`) và custom/MCP tools nếu tool call đi qua Pi `tool_call` hook.
|
|
243
267
|
|
|
@@ -13,17 +13,17 @@ Từ đó Pi có thể login provider, chọn model, onboard project, chạy tas
|
|
|
13
13
|
|
|
14
14
|
Runtime team nên pin release tag hoặc commit đã review. Latest chỉ dùng cho máy cá nhân/sandbox khi chấp nhận cập nhật nhanh.
|
|
15
15
|
|
|
16
|
-
Support matrix release hiện tại: macOS Apple Silicon + Bash và Linux x64 + Bash đã được verify; macOS Intel + Bash và Linux ARM64 + Bash là supported target cần chạy `piagent-doctor` + smoke test trước khi rollout rộng; native Windows chưa phải target rollout team; WSL2 experimental/chưa release-gate. Node.js tối thiểu là `22.19.0`, Pi Coding Agent là `0.
|
|
16
|
+
Support matrix release hiện tại: macOS Apple Silicon + Bash và Linux x64 + Bash đã được verify; macOS Intel + Bash và Linux ARM64 + Bash là supported target cần chạy `piagent-doctor` + smoke test trước khi rollout rộng; native Windows chưa phải target rollout team; WSL2 experimental/chưa release-gate. Node.js tối thiểu là `22.19.0`, Pi Coding Agent là `0.82.0`.
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
node --version # >= 22.19.0
|
|
20
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
21
|
-
npm install -g --ignore-scripts @piagent/platform@1.0
|
|
20
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
21
|
+
npm install -g --ignore-scripts @piagent/platform@1.1.0
|
|
22
22
|
piagent-install --stable --dry-run
|
|
23
23
|
piagent-install --stable
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Khi seed `.pi/settings.json` cho team/repo cần audit lặp lại, giữ package source dạng pinned tag như `git:github.com/Vt-mmm/piagent@v1.0
|
|
26
|
+
Khi seed `.pi/settings.json` cho team/repo cần audit lặp lại, giữ package source dạng pinned tag như `git:github.com/Vt-mmm/piagent@v1.1.0`. Máy cá nhân có thể dùng `git:github.com/Vt-mmm/piagent` để theo latest.
|
|
27
27
|
|
|
28
28
|
Nếu đang ở source checkout của platform, dùng helper theo channel để preview trước khi đổi:
|
|
29
29
|
|
|
@@ -37,7 +37,7 @@ bash scripts/install-global.sh --stable
|
|
|
37
37
|
Full update phải đồng bộ exact Pi host trước, rồi npm-global helper và Pi package matching:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
40
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
41
41
|
npm install -g --ignore-scripts @piagent/platform@X.Y.Z
|
|
42
42
|
piagent-install --stable --dry-run
|
|
43
43
|
piagent-install --stable
|
|
@@ -98,8 +98,8 @@ install package once
|
|
|
98
98
|
### Cài Pi và package platform
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
102
|
-
npm install -g --ignore-scripts @piagent/platform@1.0
|
|
101
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
102
|
+
npm install -g --ignore-scripts @piagent/platform@1.1.0
|
|
103
103
|
piagent-install --stable --dry-run
|
|
104
104
|
piagent-install --stable
|
|
105
105
|
```
|
|
@@ -269,7 +269,7 @@ Không phải daily default. Dùng khi muốn tạo sẵn `.pi` files cho projec
|
|
|
269
269
|
bash /path/to/piagent/scripts/setup.sh /path/to/project \
|
|
270
270
|
--project-only \
|
|
271
271
|
--profile auto \
|
|
272
|
-
--package-source git:github.com/Vt-mmm/piagent@v1.0
|
|
272
|
+
--package-source git:github.com/Vt-mmm/piagent@v1.1.0 \
|
|
273
273
|
--mcp-preset core \
|
|
274
274
|
--subagents-preset safe
|
|
275
275
|
```
|
|
@@ -842,11 +842,15 @@ Watchdog là optional adversarial reviewer ở cuối turn, không bật mặc
|
|
|
842
842
|
|
|
843
843
|
| Command | Dùng để |
|
|
844
844
|
|---|---|
|
|
845
|
-
| `npm install -g --ignore-scripts @piagent/platform@1.0
|
|
846
|
-
| `pi install git:github.com/Vt-mmm/piagent@v1.0
|
|
845
|
+
| `npm install -g --ignore-scripts @piagent/platform@1.1.0` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
|
|
846
|
+
| `pi install git:github.com/Vt-mmm/piagent@v1.1.0` | Install pinned release cho reproducible team setup. |
|
|
847
847
|
| `pi install git:github.com/Vt-mmm/piagent` | Install latest platform package cho máy cá nhân/sandbox. |
|
|
848
|
-
| Cài exact Pi host của release, rồi `npm install -g --ignore-scripts @piagent/platform@X.Y.Z` và `piagent-install --stable` | Full update: đồng bộ host, terminal helper và Pi package.
|
|
848
|
+
| Cài exact Pi host của release, rồi `npm install -g --ignore-scripts @piagent/platform@X.Y.Z` và `piagent-install --stable` | Full update: đồng bộ host, terminal helper và Pi package. Mỗi release pin một Pi host chính xác; lấy đúng version của release đang cài trong [release/install policy](release-install-policy.md). |
|
|
849
849
|
| Cài exact Pi host ghi trong release cũ, rồi helper `vPREVIOUS` và `piagent-install --stable` | Full rollback; đánh giá lại dependency findings của host cũ trước khi hạ version. |
|
|
850
|
+
| `piagent-uninstall` | Báo cáo sẽ gỡ những gì. Dry run, không đụng gì. |
|
|
851
|
+
| `piagent-uninstall --apply` | Gỡ Pi package của platform khỏi Pi settings global. |
|
|
852
|
+
| `piagent-uninstall --apply --with-addons --with-host` | Gỡ thêm add-on đã pin và Pi host. |
|
|
853
|
+
| `piagent-uninstall --apply --project <path>` | Gỡ thêm profile, lock và `piagent-state/` của project. Không đụng credential, trust, session, todo, `.pi/memory/`. |
|
|
850
854
|
| `piagent-install --stable --dry-run` | Preview Pi package matching với helper hiện tại; stable resolve tag → commit SHA. |
|
|
851
855
|
| `piagent-install --stable` | Apply Pi package matching với helper hiện tại bằng resolved commit SHA. |
|
|
852
856
|
| `piagent-install --version vX.Y.Z --resolve-tag` | Chỉ đổi Pi package; terminal helper giữ nguyên version. |
|
|
@@ -936,7 +940,7 @@ Mở lại Pi session sau khi install.
|
|
|
936
940
|
Cài lại terminal helper đúng release rồi kiểm tra `PATH`:
|
|
937
941
|
|
|
938
942
|
```bash
|
|
939
|
-
npm install -g --ignore-scripts @piagent/platform@1.0
|
|
943
|
+
npm install -g --ignore-scripts @piagent/platform@1.1.0
|
|
940
944
|
command -v piagent-install
|
|
941
945
|
```
|
|
942
946
|
|
|
@@ -42,7 +42,8 @@ pi install /path/to/piagent
|
|
|
42
42
|
|
|
43
43
|
- `0.1.x`: local/internal pilot.
|
|
44
44
|
- `0.2.x`: có guard ổn định và docs team.
|
|
45
|
-
- `1.0.
|
|
45
|
+
- `1.0.2`: đủ security review, MCP registry, adapter schema versioned.
|
|
46
|
+
- `1.1.0`: đọc document ngoài project qua `additionalReadRoots`, MCP baseline bật mặc định ở cả hai lệnh install, pin Pi host `0.82.0`.
|
|
46
47
|
|
|
47
48
|
## Không publish
|
|
48
49
|
|