@piagent/platform 1.40.0 → 1.42.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 +1012 -2035
- package/CONTRIBUTING.md +2 -0
- package/README.md +128 -325
- package/README.vi.md +149 -143
- package/architecture/layers.json +10 -0
- package/docs/command-reference-vietnamese.md +2 -2
- package/docs/distribution-standard.md +6 -6
- package/docs/en/architecture.md +1 -0
- package/docs/languages.json +4 -4
- package/docs/operator-manual-vietnamese.md +7 -7
- package/docs/publishing-for-teams.md +2 -0
- package/docs/release-install-policy.md +3 -3
- package/docs/team-onboarding.md +2 -2
- package/docs/vi/architecture.md +1 -0
- package/docs-site/architecture.html +71 -63
- package/docs-site/assets/docs.css +2736 -1030
- package/docs-site/assets/docs.js +451 -43
- package/docs-site/assets/og.png +0 -0
- package/docs-site/assets/piagent-logo.svg +9 -31
- package/docs-site/assets/search-en.json +1 -0
- package/docs-site/assets/search-vi.json +1 -0
- package/docs-site/benchmark.html +71 -63
- package/docs-site/commands.html +72 -64
- package/docs-site/content/en/index.html +220 -131
- package/docs-site/content/en/quickstart.html +74 -90
- package/docs-site/content/en/update.html +80 -0
- package/docs-site/content/en/whats-new.html +1 -678
- package/docs-site/content/index.html +220 -131
- package/docs-site/content/quickstart.html +73 -108
- package/docs-site/content/update.html +80 -0
- package/docs-site/content/whats-new.html +1 -678
- package/docs-site/context-engine.html +73 -65
- package/docs-site/ecosystem.html +73 -65
- package/docs-site/en/architecture.html +67 -59
- package/docs-site/en/benchmark.html +67 -59
- package/docs-site/en/commands.html +68 -60
- package/docs-site/en/context-engine.html +68 -60
- package/docs-site/en/ecosystem.html +68 -60
- package/docs-site/en/index.html +281 -220
- package/docs-site/en/mcp-approval.html +67 -59
- package/docs-site/en/mcp-auth.html +67 -59
- package/docs-site/en/mcp-servers.html +68 -60
- package/docs-site/en/mcp.html +64 -56
- package/docs-site/en/permissions.html +68 -60
- package/docs-site/en/profiles.html +68 -60
- package/docs-site/en/quickstart.html +142 -150
- package/docs-site/en/runtime.html +67 -59
- package/docs-site/en/scope.html +68 -60
- package/docs-site/en/security.html +64 -56
- package/docs-site/en/team.html +67 -59
- package/docs-site/en/update.html +228 -0
- package/docs-site/en/whats-new.html +1601 -719
- package/docs-site/en/windows.html +71 -63
- package/docs-site/en/workflows.html +68 -60
- package/docs-site/favicon.svg +9 -14
- package/docs-site/index.html +281 -220
- package/docs-site/mcp-approval.html +70 -62
- package/docs-site/mcp-auth.html +70 -62
- package/docs-site/mcp-servers.html +71 -63
- package/docs-site/mcp.html +70 -62
- package/docs-site/permissions.html +72 -64
- package/docs-site/profiles.html +72 -64
- package/docs-site/quickstart.html +145 -172
- package/docs-site/releases.json +4449 -0
- package/docs-site/runtime.html +73 -65
- package/docs-site/scope.html +73 -65
- package/docs-site/security.html +73 -65
- package/docs-site/team.html +71 -63
- package/docs-site/update.html +228 -0
- package/docs-site/whats-new.html +1605 -723
- package/docs-site/windows.html +75 -67
- package/docs-site/workflows.html +73 -65
- package/evals/fixtures/piagent-webui/document-asset-v1.invalid.json +12 -0
- package/evals/fixtures/piagent-webui/document-asset-v1.valid.json +12 -0
- package/evals/private-holdout-v1/public-exposure.v2.json +2 -2
- package/package.json +1 -1
- package/packages/piagent-core/package.json +1 -1
- package/packages/piagent-core/runtime/inspection/document-workspace-projection.ts +78 -15
- package/packages/piagent-core/skills/fe-change-report/SKILL.md +175 -0
- package/packages/piagent-core/skills/fe-change-report/scripts/build-report.mjs +183 -0
- package/packages/piagent-core/skills/fe-change-report/scripts/capture.mjs +150 -0
- package/packages/piagent-core/skills/fe-change-report/scripts/diff-regions.mjs +110 -0
- package/packages/piagent-webui/dist/client/assets/App-DBx4BU3F.js +5 -0
- package/packages/piagent-webui/dist/client/assets/LineReview-DzonwD-g.js +3 -0
- package/packages/piagent-webui/dist/client/assets/{MarkdownMessage-BpoF2k2-.js → MarkdownMessage-DchODuO7.js} +2 -2
- package/packages/piagent-webui/dist/client/assets/SessionInspectorDrawer-BHHNlct3.js +1 -0
- package/packages/piagent-webui/dist/client/assets/SettingsPage-DX28MsZA.js +1 -0
- package/packages/piagent-webui/dist/client/assets/TerminalPanel-C--BiN0p.js +2 -0
- package/packages/piagent-webui/dist/client/assets/{TerminalView-Dw9xqakv.js → TerminalView-BML7uS6R.js} +3 -3
- package/packages/piagent-webui/dist/client/assets/WorkspaceCodeEditor-B7ieqDnt.js +2 -0
- package/packages/piagent-webui/dist/client/assets/WorkspaceExplorer-BOafuPU-.js +5 -0
- package/packages/piagent-webui/dist/client/assets/WorkspaceQuickOpen-CGoGfUPk.js +1 -0
- package/packages/piagent-webui/dist/client/assets/api-BUjrtT1B.js +1 -0
- package/packages/piagent-webui/dist/client/assets/index-C7Azrwpq.js +132 -0
- package/packages/piagent-webui/dist/client/assets/index-Dqb2hNan.css +1 -0
- package/packages/piagent-webui/dist/client/assets/tab-close-Crj8vsUq.js +1 -0
- package/packages/piagent-webui/dist/client/assets/ui-preferences-B3UfDp-5.js +1 -0
- package/packages/piagent-webui/dist/client/assets/vendor-Ch5hIe0W.js +136 -0
- package/packages/piagent-webui/dist/client/index.html +5 -8
- package/packages/piagent-webui/extension/piagent-webui.ts +1 -0
- package/packages/piagent-webui/server/core-inspection-provider.ts +5 -0
- package/packages/piagent-webui/server/ipc-read-model-client.ts +1 -0
- package/packages/piagent-webui/server/read-model-provider.ts +1 -0
- package/packages/piagent-webui/server/read-only-router.ts +6 -0
- package/schemas/piagent-webui/catalog-v1.json +9 -0
- package/schemas/piagent-webui/document-asset-v1.schema.json +57 -0
- package/scripts/build-docs-site.mjs +205 -348
- package/scripts/check-public-wording.mjs +2 -1
- package/scripts/docs-site-icons.mjs +84 -0
- package/scripts/docs-site-nav.mjs +302 -0
- package/scripts/docs-site-releases.mjs +227 -0
- package/packages/piagent-webui/dist/client/assets/Alert-DGWhP2MM.js +0 -1
- package/packages/piagent-webui/dist/client/assets/Button-QItfZUNj.js +0 -1
- package/packages/piagent-webui/dist/client/assets/DialogTitle-CyaFPaiW.js +0 -3
- package/packages/piagent-webui/dist/client/assets/TerminalPanel-Dg3eghy4.js +0 -2
- package/packages/piagent-webui/dist/client/assets/Typography-B9om7Evq.js +0 -1
- package/packages/piagent-webui/dist/client/assets/WorkspaceCodeEditor-DtwXZAgK.js +0 -2
- package/packages/piagent-webui/dist/client/assets/WorkspaceExplorer-WS-yLlnb.js +0 -5
- package/packages/piagent-webui/dist/client/assets/WorkspaceQuickOpen-CYCY-s44.js +0 -1
- package/packages/piagent-webui/dist/client/assets/index-BgJgso6j.js +0 -102
- package/packages/piagent-webui/dist/client/assets/index-Brs_HjIo.css +0 -1
- package/packages/piagent-webui/dist/client/assets/tab-close-CqPDs-w5.js +0 -1
- package/packages/piagent-webui/dist/client/assets/ui-preferences-BO3AV7QE.js +0 -10
- package/packages/piagent-webui/dist/client/assets/useId-DEefKUAT.js +0 -124
package/README.vi.md
CHANGED
|
@@ -1,193 +1,199 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://piagent.io.vn"><img src="https://piagent.io.vn/assets/piagent-logo.svg" alt="Piagent" width="72" height="72"></a>
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">Pi Agent Platform</h1>
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
<p align="center"><strong>Coding agent cho cả team, kiểm tra từng bước.</strong></p>
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/package/@piagent/platform"><img alt="npm" src="https://img.shields.io/npm/v/@piagent/platform?color=c6f432&labelColor=111114"></a>
|
|
11
|
+
<a href="https://github.com/Vt-mmm/piagent/actions/workflows/verify.yml"><img alt="verify" src="https://github.com/Vt-mmm/piagent/actions/workflows/verify.yml/badge.svg"></a>
|
|
12
|
+
<img alt="node" src="https://img.shields.io/badge/node-%E2%89%A522.19-111114?labelColor=111114">
|
|
13
|
+
<a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-MIT-111114?labelColor=111114"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://piagent.io.vn">Website</a> ·
|
|
18
|
+
<a href="https://piagent.io.vn/quickstart">Cài đặt</a> ·
|
|
19
|
+
<a href="https://piagent.io.vn/whats-new">Changelog</a> ·
|
|
20
|
+
<a href="https://piagent.io.vn/benchmark">Benchmark</a> ·
|
|
21
|
+
<a href="README.md">English</a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<img src="https://piagent.io.vn/assets/shots/company-run-done.jpg" alt="Dashboard Piagent: một lượt ở chế độ công ty đọc, sửa và chạy test, dòng cuối báo kết quả check và review" width="900">
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
Piagent là một Pi package biến coding agent thành thứ cả team tin dùng được. **Guard** kiểm tra mọi tool call trước khi chạy. Ở chế độ công ty, **Harness** của team chạy check của project và cho một subagent review bản sửa trước khi lượt được báo là xong. Một **dashboard** cho cả Terminal và trình duyệt, dùng tài khoản model của bạn hoặc model của công ty qua Agent Watch và Agent Studio.
|
|
29
|
+
|
|
30
|
+
## Vì sao chọn Piagent
|
|
31
|
+
|
|
32
|
+
- **Fail-closed.** File bảo vệ (`.env`, khoá), profile quyền, file quá lớn và sửa trên bản đọc đã cũ bị chặn trước khi chạy, không phải giải thích sau.
|
|
33
|
+
- **Duyệt từng lần.** Push, publish, ghi lên GitHub và lệnh có mạng chờ **Cho phép một lần**. Stage cả loạt như `git add .` cũng hỏi trước.
|
|
34
|
+
- **Lượt có kiểm chứng.** Ở chế độ công ty, mỗi lượt kết thúc bằng một dòng: check đã qua trên code cuối, review có hay không có lỗi chặn.
|
|
35
|
+
- **Chạy được việc dài.** Lỗi tạm thời của nhà cung cấp được hỏi lại, lúc Studio cập nhật thì chờ rồi làm tiếp, một lượt chạy được tới 24 giờ.
|
|
36
|
+
- **Đo được.** Trên [benchmark production](https://piagent.io.vn/benchmark) (v1.6.0, 108 session, cùng model và thinking), Piagent giải 54/54 task so với 48/54 của `codex-cli`, dùng ít hơn 61,43% fresh token (khoảng tin cậy 95%: ít nhất 51,60%).
|
|
8
37
|
|
|
9
38
|
## Cài đặt
|
|
10
39
|
|
|
11
|
-
|
|
40
|
+
Node.js `>=22.19.0`. Chạy trong project cần dùng:
|
|
12
41
|
|
|
13
42
|
```bash
|
|
14
43
|
npm install -g @piagent/platform
|
|
15
44
|
piagent-setup
|
|
16
45
|
```
|
|
17
46
|
|
|
18
|
-
|
|
47
|
+
`piagent-setup` cài đúng bản Pi host mà release này pin, cài package, khởi tạo `.pi/`, thêm MCP baseline và subagent, rồi chạy doctor. Bỏ bớt bằng `--no-mcp`, `--no-subagents`, `--no-herdr` hoặc `--global-only`. Muốn dùng [Herdr](https://herdr.dev/docs/install/) thì cài Herdr trước.
|
|
48
|
+
|
|
49
|
+
**Windows** — một lệnh PowerShell cài WSL2, Ubuntu, Piagent và Agent Watch; chạy lại để cập nhật:
|
|
50
|
+
|
|
51
|
+
```powershell
|
|
52
|
+
irm https://raw.githubusercontent.com/Vt-mmm/agentwatch/main/windows/setup.ps1 | iex
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
| Môi trường | Trạng thái |
|
|
56
|
+
|---|---|
|
|
57
|
+
| macOS Apple Silicon | Đã kiểm chứng cho release này |
|
|
58
|
+
| Linux x64 | Đã kiểm chứng trong CI |
|
|
59
|
+
| macOS Intel, Linux ARM64 | Hỗ trợ; chạy `piagent-doctor` và smoke test trước khi rollout rộng |
|
|
60
|
+
| Windows (WSL2) | Chế độ cá nhân và công ty, sandbox bubblewrap, Agent Watch cho Windows ([hướng dẫn](https://piagent.io.vn/windows)) |
|
|
61
|
+
| Windows native | Bản xem trước cho chế độ cá nhân; chưa chạy được `piagent-update` |
|
|
62
|
+
|
|
63
|
+
## Sử dụng
|
|
19
64
|
|
|
20
65
|
```bash
|
|
21
|
-
|
|
22
|
-
pi
|
|
66
|
+
piagent dashboard # trình duyệt, chế độ cá nhân
|
|
67
|
+
pi # Terminal, chế độ cá nhân
|
|
68
|
+
piagent studio --web # chế độ công ty, sau khi nhập key ở Agent Watch
|
|
23
69
|
```
|
|
24
70
|
|
|
25
|
-
|
|
71
|
+
Nói việc bằng lời thường: "sửa lỗi phân trang ở /orders rồi chạy test", "review diff hiện tại, chỉ đọc". Không có task contract hay lệnh workflow phải học. Từ 1.9.0 các launcher `/workflow`, `/task`, `/fresh`, `/onboard` và `/commands` đã bỏ; mở session mới bằng `/new` của Pi.
|
|
72
|
+
|
|
73
|
+
## Cập nhật
|
|
26
74
|
|
|
27
|
-
|
|
75
|
+
Dashboard và Terminal kiểm tra bản mới mỗi giờ, hỏi **Cập nhật ngay** hay **Để sau**. Tự cập nhật:
|
|
28
76
|
|
|
29
|
-
|
|
77
|
+
```bash
|
|
78
|
+
piagent-update # bản mới nhất
|
|
79
|
+
piagent-update --check # chỉ kiểm tra
|
|
80
|
+
piagent-update --version X.Y.Z # đúng một bản, mới hơn hay cũ hơn
|
|
81
|
+
```
|
|
30
82
|
|
|
31
|
-
|
|
83
|
+
Lệnh cài Pi host được pin trước, kiểm tra version trên đĩa rồi mới chạy installer; với `--project` nó migrate project và chạy doctor. Pin cho team, rollback và gỡ cài đặt: [Cập nhật và gỡ](https://piagent.io.vn/update) và [release and install policy](docs/release-install-policy.md).
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
piagent-uninstall # chỉ báo sẽ gỡ gì
|
|
87
|
+
piagent-uninstall --apply # gỡ thật
|
|
88
|
+
```
|
|
32
89
|
|
|
33
|
-
|
|
90
|
+
Credential, trust, session, todo và memory của project không bao giờ bị xoá.
|
|
34
91
|
|
|
35
|
-
|
|
92
|
+
## Hai chế độ, một dashboard
|
|
36
93
|
|
|
37
|
-
|
|
94
|
+
| | Cá nhân | Công ty |
|
|
95
|
+
|---|---|---|
|
|
96
|
+
| Mở | `pi`, `piagent dashboard` | `piagent studio`, `piagent studio --web` |
|
|
97
|
+
| Model | Tài khoản của bạn, model nào Pi hỗ trợ | Chọn theo vai (main · research · review) trong Agent Studio |
|
|
98
|
+
| Key | Trên máy bạn, do Pi quản lý | Trong Keychain qua Agent Watch; model không bao giờ thấy |
|
|
99
|
+
| Lệnh | Mạng bình thường; push và publish chờ duyệt | Sandbox (Seatbelt / bubblewrap) không mạng; mạng mở theo từng lần duyệt |
|
|
100
|
+
| Kiểm chứng | Bạn yêu cầu | Harness của team chạy check và review mỗi lượt |
|
|
38
101
|
|
|
39
|
-
|
|
102
|
+
## Có gì bên trong
|
|
40
103
|
|
|
41
|
-
|
|
104
|
+
| Phần | Bạn có |
|
|
105
|
+
|---|---|
|
|
106
|
+
| Guard | Protected và read-only path, profile quyền, kiểm tra bản đọc cũ và file lớn, che secret trong output, hỏi trước việc bên ngoài và việc phá huỷ |
|
|
107
|
+
| Dashboard | Cuộc trò chuyện, cây thư mục, editor, terminal, review từng hunk, Timeline khôi phục và `/undo`, Tài liệu, 13 theme màu, bảng lệnh ⌘K |
|
|
108
|
+
| Harness công ty | Plan · check · review mỗi lượt, câu hỏi hiện từng cái một, team memory với `memory_ask`, cảnh báo sai project, chạy bền cho task dài |
|
|
109
|
+
| Context Engine | Index local tăng dần, tìm kiếm lai, pack theo ngân sách token, compaction theo ngữ nghĩa — `/context` |
|
|
110
|
+
| MCP | `pi-mcp-adapter` với preset đã pin, bốn scope cấu hình, approval gate cho server đến từ repo — `piagent-mcp` |
|
|
111
|
+
| Profile | 11 profile có sẵn (frontend, backend, fullstack, data, DevOps, mobile, docs…) với protected path và verify command — `/profile` |
|
|
112
|
+
| Báo cáo | `fe-change-report`: ảnh trước/sau khung đỏ đánh số, check và E2E, xem trong Tài liệu |
|
|
42
113
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
tự động; credential không được đưa vào project hoặc browser state. Ảnh được gửi
|
|
46
|
-
dưới dạng native image input cho model của session, không qua OCR service riêng
|
|
47
|
-
do Piagent vận hành. Dashboard hiển thị đúng route tại **Cài đặt → Nhà cung cấp &
|
|
48
|
-
model**: `Codex Web Search` khi route đó sẵn sàng, và `Codex Vision` chỉ khi model
|
|
49
|
-
Codex hiện tại công bố hỗ trợ image input.
|
|
114
|
+
<details>
|
|
115
|
+
<summary><strong>Permission profile</strong></summary>
|
|
50
116
|
|
|
51
|
-
|
|
117
|
+
| Profile | Dùng khi | Guard làm gì |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| `read-only` | Khảo sát, audit, review | Cho `read`, `grep`, `find`, `ls` và tool state của piagent; chặn shell, sửa file và tool lạ. |
|
|
120
|
+
| `workspace-write` | Code bình thường | Mặc định. Kiểm tra protected path, read-only path, shell và capability; hỏi trước việc phá huỷ hay bên ngoài. |
|
|
121
|
+
| `trusted-full-access` | Tự động hoá tin cậy trên máy | Tự chủ hơn, vẫn giữ protected path, che secret, toàn vẹn capability lock và xác nhận việc phá huỷ/bên ngoài. |
|
|
122
|
+
| `bypass` | Bạn chấp nhận mọi rủi ro | Không gate nào hỏi hay chặn. Output vẫn được che secret và mỗi lượt vẫn có checkpoint `/undo`. Bỏ khỏi `permissionProfiles.allowedModes` để cấm; ở chế độ công ty admin Studio tắt được (`bypass_mode`). |
|
|
52
123
|
|
|
53
|
-
|
|
54
|
-
chuyện mới hay session đang mở. File Markdown, text, PDF và DOCX được trích xuất
|
|
55
|
-
cục bộ với giới hạn rõ ràng; chat chỉ giữ card file gọn, còn workspace **Tài
|
|
56
|
-
liệu** hiển thị preview dễ đọc mà không tạo model turn. File vượt giới hạn gửi
|
|
57
|
-
trực tiếp vẫn nằm trong workspace của project thay vì bị nhét vào prompt. Runtime
|
|
58
|
-
tiếp tục áp protected path, redaction, session binding và attachment ref dùng một
|
|
59
|
-
lần.
|
|
124
|
+
Trong Pi dùng `/permission` (menu), `/permission status`, `/permission read-only`, `/permission workspace-write`, `/permission full-access [việc]` hoặc `/permission bypass`. Cho một lần chạy: `PIAGENT_PERMISSION_PROFILE=…` hoặc `piagent-auto --read-only|--workspace-write|--full-access|--bypass`.
|
|
60
125
|
|
|
61
|
-
|
|
62
|
-
workflow. Trong **Cài đặt → Điều khiển project**, operator có thể xem
|
|
63
|
-
runtime/usage, profile, Context Engine, memory và MCP governance mà không cần nhớ
|
|
64
|
-
slash command. WebUI gửi đúng command vào Pi runtime; thao tác read-only được
|
|
65
|
-
kiểm tra là 0 model token, còn thao tác ghi hoặc semantic compact bắt buộc xác
|
|
66
|
-
nhận rõ ràng. Muốn onboard project, hãy nhờ agent trong chat đọc project (chỉ
|
|
67
|
-
đọc) và ghi lại context.
|
|
126
|
+
</details>
|
|
68
127
|
|
|
69
|
-
|
|
128
|
+
<details>
|
|
129
|
+
<summary><strong>Lệnh trong session</strong></summary>
|
|
70
130
|
|
|
71
|
-
|
|
72
|
-
hình chỉ đọc, không command nào mở lượt model.
|
|
131
|
+
Đây là cài đặt và màn xem chỉ đọc; không lệnh nào mở lượt model. Giải thích từng lệnh ở [command reference](docs/command-reference-vietnamese.md).
|
|
73
132
|
|
|
74
|
-
|
|
|
133
|
+
| Lệnh | Dùng để |
|
|
75
134
|
|---|---|
|
|
76
|
-
| `/profile` | Xem hoặc
|
|
77
|
-
| `/permission` |
|
|
78
|
-
| `/context` |
|
|
79
|
-
| `/usage` |
|
|
80
|
-
| `/
|
|
81
|
-
|
|
|
82
|
-
| `/
|
|
83
|
-
| `/piagent-
|
|
84
|
-
| `/piagent-
|
|
85
|
-
|
|
86
|
-
Các command workflow (`/workflow`, `/task`, `/scout`, `/fresh`, `/onboard`,
|
|
87
|
-
`/commands`, `/model-options`) đã bỏ từ bản 1.9.0. Hãy nói điều mình cần, ví dụ
|
|
88
|
-
"scout luồng thanh toán, chỉ đọc, không sửa", "review diff hiện tại", "commit hai
|
|
89
|
-
file này". Session đã nặng thì mở session mới bằng `/new` của Pi. `git push`,
|
|
90
|
-
thao tác ghi lên GitHub và publish đều hỏi xác nhận trước.
|
|
91
|
-
|
|
92
|
-
## Architecture
|
|
93
|
-
|
|
94
|
-
Code được quản lý theo các layer:
|
|
95
|
-
|
|
96
|
-
1. Composition root đăng ký Pi extension.
|
|
97
|
-
2. Runtime adapter xử lý Pi hook, command, tool và session UI.
|
|
98
|
-
3. Core service xử lý policy, context và state (bản ghi task cũ chỉ còn để đọc lịch sử).
|
|
99
|
-
4. Integration quản lý MCP, capability và security primitive.
|
|
100
|
-
5. CLI trong `scripts/` chỉ parse argument và gọi use case.
|
|
101
|
-
|
|
102
|
-
Chạy gate kiến trúc:
|
|
135
|
+
| `/profile` | Xem hoặc áp profile. `/profile setup`, `/profile tech`, `/profile auto` chọn tech cho từng vai. |
|
|
136
|
+
| `/permission` | Xem hoặc đổi permission profile của session. |
|
|
137
|
+
| `/context` | Index, tìm kiếm, pack, test impact và compaction của Context Engine. |
|
|
138
|
+
| `/usage` | Usage của session, model, thinking và context; `/usage logs` xem output tool đã thu gọn. |
|
|
139
|
+
| `/memory` | Memory của project. |
|
|
140
|
+
| `/piagent-mcp` | MCP server, scope và approval. |
|
|
141
|
+
| `/piagent-status` | Trạng thái profile, guard, runtime và model đã đăng nhập. |
|
|
142
|
+
| `/piagent-inspector` | Diff, lệnh và lỗi, cảnh báo an toàn và ngân sách context trong một menu chỉ đọc. |
|
|
143
|
+
| `/piagent-orchestration` | Chế độ helper, giới hạn và lý do dispatch. |
|
|
103
144
|
|
|
104
|
-
|
|
105
|
-
npm run architecture:check
|
|
106
|
-
```
|
|
145
|
+
Git vẫn là capability: nói "commit hai file này" hay "mở PR" (prompt `/commit` và `/pr` cho cùng flow). Chọn model bằng `/model` hoặc `Ctrl+L` của Pi; xem [Model options](docs/model-options.md).
|
|
107
146
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
- [Architecture tiếng Việt](docs/vi/architecture.md)
|
|
111
|
-
- [Maintainer guide tiếng Việt](docs/vi/maintainer-guide.md)
|
|
112
|
-
- [Tài liệu tiếng Việt](docs/vi/README.md)
|
|
113
|
-
- [Operator manual tiếng Việt](docs/operator-manual-vietnamese.md)
|
|
114
|
-
- [Command reference tiếng Việt](docs/command-reference-vietnamese.md)
|
|
115
|
-
|
|
116
|
-
## Cấu trúc repository
|
|
117
|
-
|
|
118
|
-
```text
|
|
119
|
-
piagent/
|
|
120
|
-
├─ architecture/ quy tắc layer và giới hạn file cho máy kiểm tra
|
|
121
|
-
├─ adapters/ profile project tái sử dụng
|
|
122
|
-
├─ catalog/ capability index xác định
|
|
123
|
-
├─ docs/ tài liệu chuẩn EN/VI và hướng dẫn vận hành ổn định
|
|
124
|
-
├─ evals/ kịch bản đánh giá có governance
|
|
125
|
-
├─ packs/ capability manifest và recipe có version
|
|
126
|
-
├─ packages/
|
|
127
|
-
│ ├─ piagent-core/ Pi package: extension, runtime, skill, managed harness
|
|
128
|
-
│ └─ piagent-webui/ dashboard: contract, client, server, gateway, ownership
|
|
129
|
-
├─ schemas/ JSON schema
|
|
130
|
-
├─ scripts/ setup, doctor và helper kiểm tra
|
|
131
|
-
└─ templates/ template project/global
|
|
132
|
-
```
|
|
147
|
+
</details>
|
|
133
148
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
platform nhưng platform không phụ thuộc ngược vào WebUI, nên runtime vẫn hoạt động
|
|
137
|
-
khi không mở dashboard. Cả hai sơ đồ layer đều được kiểm tra bằng
|
|
138
|
-
`npm run architecture:check`; xem [Architecture](docs/vi/architecture.md).
|
|
149
|
+
<details>
|
|
150
|
+
<summary><strong>Subagent và MCP</strong></summary>
|
|
139
151
|
|
|
140
|
-
|
|
152
|
+
Model chính lo suy luận, sửa code và kiểm chứng. Khi bật helper, nó được giao tối đa hai helper chỉ đọc (khảo sát, hoặc review bản sửa); helper không sửa code và không mở helper khác. `piagent-setup` cài runtime `pi-subagents` với preset giới hạn; `/subagents-doctor` kiểm tra sức khoẻ. Chi tiết: [Subagent orchestration capabilities](docs/subagent-orchestration-capabilities.md), [auto-delegation](docs/auto-delegation-policy.md), [subagents and multi-agent](docs/subagents-and-multiagent.md).
|
|
141
153
|
|
|
142
|
-
|
|
143
|
-
Chỉ `--execute --yes` mới mở provider-backed Pi process; `/model`/CLI pin luôn
|
|
144
|
-
được giữ và extension không đổi model giữa conversation.
|
|
154
|
+
`piagent-setup` cài `pi-mcp-adapter` và preset `core` (Context7, Chrome DevTools, GitHub); `popular` thêm Playwright và Figma. Bước này chỉ ghi định nghĩa server, server kết nối khi cần. Giữ key của nhà cung cấp trong biến môi trường. Tìm kiếm web qua add-on `pi-web-access` đã pin. Xem [MCP and tools](docs/mcp-and-tools.md).
|
|
145
155
|
|
|
146
|
-
|
|
156
|
+
</details>
|
|
147
157
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
```
|
|
158
|
+
<details>
|
|
159
|
+
<summary><strong>Mô hình bảo mật</strong></summary>
|
|
151
160
|
|
|
152
|
-
|
|
153
|
-
baseline Luna/medium so với `codex-cli`:
|
|
161
|
+
Guard là lớp chống sự cố ở tầng ứng dụng, không phải OS sandbox. Nó chặn truy cập dạng đường dẫn tới protected path trên tool có sẵn, tool tự viết và MCP (object lồng nhau, `file://`, percent-encoding, không phân biệt hoa thường, symlink thoát ra ngoài), tách operand của shell để chặn `bash` truy cập trực tiếp, hỏi trước khi shell ghi ra bên ngoài, và che dữ liệu nhạy cảm trong output. [Redaction benchmark](docs/security-redaction-benchmark.md) bắt 52/52 mẫu secret theo ngữ cảnh, 0/30 văn bản thường bị che nhầm; đây là cổng nội bộ, không phải audit độc lập.
|
|
154
162
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
163
|
+
Với code hoặc prompt không tin cậy, chạy Pi trong container hoặc VM có ranh giới filesystem, process, mạng và credential. Threat model: [docs/security-threat-model.md](docs/security-threat-model.md). Báo lỗ hổng riêng tư theo [SECURITY.md](SECURITY.md).
|
|
164
|
+
|
|
165
|
+
</details>
|
|
166
|
+
|
|
167
|
+
## Bằng chứng
|
|
160
168
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
169
|
+
| Đo gì | Kết quả | Nguồn |
|
|
170
|
+
|---|---|---|
|
|
171
|
+
| Task giải được, production-v1 (v1.6.0, GPT-5.6 Luna Medium) | Piagent 54/54 · `codex-cli` 48/54 | [benchmark](https://piagent.io.vn/benchmark) |
|
|
172
|
+
| Fresh token, family fixed-workload chính | tỷ lệ `0.3857` (−61,43%), CI 95% `0.3073..0.4840` | [phương pháp](docs/quality-benchmark.md) |
|
|
173
|
+
| Đếm usage | 108/108 session chính xác, không retry | cùng lần chạy |
|
|
174
|
+
| Che secret | 52/52 mẫu theo ngữ cảnh, 0/30 báo nhầm | [redaction benchmark](docs/security-redaction-benchmark.md) |
|
|
175
|
+
| Nhịp phát hành | mọi bản trong [CHANGELOG.md](CHANGELOG.md) | [trang changelog](https://piagent.io.vn/whats-new) |
|
|
168
176
|
|
|
169
|
-
|
|
170
|
-
`production-v1-20260824T040017Z-05b7cf`, được đo trên đúng commit
|
|
171
|
-
`3bba8f0b3ff521bc2a355e1f6bef6d1bbdc09511` bằng GPT-5.6 Luna Medium với
|
|
172
|
-
108 session. Piagent hoàn thành 54/54 task, so với 48/54 của `codex-cli`. Tỷ lệ
|
|
173
|
-
fresh token theo family fixed-workload chính là `0,3857` (thấp hơn 61,43%), với
|
|
174
|
-
khoảng tin cậy 95% `0,3073..0,4840`; cận trên cho phép phát biểu thận trọng rằng
|
|
175
|
-
Piagent dùng ít hơn ít nhất 51,60% fresh token trên đúng workload đã khai báo
|
|
176
|
-
trước và đúng release này. Usage của cả 108 session đều exact và không có retry.
|
|
177
|
-
Xem [bằng chứng benchmark](https://piagent.io.vn/benchmark) và
|
|
178
|
-
[phương pháp](docs/quality-benchmark.md).
|
|
177
|
+
Benchmark là bộ bài tổng hợp do maintainer dựng, đo ở v1.6.0 và chưa đo lại cho các bản sau; không có kết luận nào về thời gian hay chi phí. Tự chạy bằng `piagent-benchmark --production --dry-run`, hoặc bản nhanh `core-v1` bằng `piagent-benchmark --dry-run`.
|
|
179
178
|
|
|
180
|
-
|
|
179
|
+
## Đóng góp
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
npm ci
|
|
183
|
+
npm run verify
|
|
184
|
+
```
|
|
181
185
|
|
|
182
|
-
|
|
183
|
-
hoặc một commit đã review thay vì dựa vào nguồn package không cố định.
|
|
186
|
+
`npm run verify` chạy typecheck, test, capability catalog, doctor và các check kiến trúc, câu chữ, docs site. Docs site và `CHANGELOG.md` được sinh tự động: sửa `docs-site/content/` và `docs-site/releases.json`, rồi chạy `node scripts/build-docs-site.mjs`. Quy trình: [CONTRIBUTING.md](CONTRIBUTING.md). Bố cục và luật layer: [Kiến trúc](docs/vi/architecture.md).
|
|
184
187
|
|
|
185
|
-
|
|
188
|
+
Repo này không bao giờ chứa OAuth token, `auth.json`, file `.env`, key MCP hay nhà cung cấp, session của Pi, dữ liệu project hay đường dẫn trên máy.
|
|
186
189
|
|
|
187
|
-
|
|
190
|
+
## Tài liệu
|
|
188
191
|
|
|
189
|
-
|
|
192
|
+
- **Bắt đầu:** [Website](https://piagent.io.vn) · [Cài đặt](https://piagent.io.vn/quickstart) · [Hệ sinh thái](https://piagent.io.vn/ecosystem) · [Quickstart tiếng Việt](docs/quickstart-vietnamese.md) · [Team onboarding](docs/team-onboarding.md)
|
|
193
|
+
- **Sử dụng:** [Command reference](docs/command-reference-vietnamese.md) · [Workflow recipes](docs/workflow-recipes.md) · [Model options](docs/model-options.md) · [OAuth providers](docs/oauth-providers.md) · [Context Engine](docs/context-engine.md) · [Memory policy](docs/memory-policy.md)
|
|
194
|
+
- **Vận hành:** [Operator manual](docs/operator-manual-vietnamese.md) · [Release and install policy](docs/release-install-policy.md) · [Publishing for teams](docs/publishing-for-teams.md) · [Usage observability](docs/usage-observability.md)
|
|
195
|
+
- **Bên trong:** [Kiến trúc](docs/vi/architecture.md) · [Runtime policy design](docs/runtime-policy-design.md) · [Security threat model](docs/security-threat-model.md) · [Quality benchmark](docs/quality-benchmark.md) · [Mọi tài liệu](docs/README.md)
|
|
190
196
|
|
|
191
|
-
##
|
|
197
|
+
## Giấy phép
|
|
192
198
|
|
|
193
|
-
MIT
|
|
199
|
+
MIT. Xem [LICENSE](LICENSE).
|
package/architecture/layers.json
CHANGED
|
@@ -97,6 +97,12 @@
|
|
|
97
97
|
"packages/piagent-webui"
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"name": "skills",
|
|
102
|
+
"roots": [
|
|
103
|
+
"packages/piagent-core/skills"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
100
106
|
{
|
|
101
107
|
"name": "entrypoints",
|
|
102
108
|
"roots": [
|
|
@@ -140,6 +146,9 @@
|
|
|
140
146
|
"benchmark": [
|
|
141
147
|
"benchmark"
|
|
142
148
|
],
|
|
149
|
+
"skills": [
|
|
150
|
+
"skills"
|
|
151
|
+
],
|
|
143
152
|
"webui-contracts": [
|
|
144
153
|
"webui-contracts"
|
|
145
154
|
],
|
|
@@ -219,6 +228,7 @@
|
|
|
219
228
|
"capabilities": 1200,
|
|
220
229
|
"security": 400,
|
|
221
230
|
"benchmark": 1000,
|
|
231
|
+
"skills": 500,
|
|
222
232
|
"webui-contracts": 2000,
|
|
223
233
|
"webui-client": 500,
|
|
224
234
|
"webui-server": 500,
|
|
@@ -477,8 +477,8 @@ Các lệnh này chạy ngoài Pi.
|
|
|
477
477
|
| Command | Dùng khi nào |
|
|
478
478
|
|---|---|
|
|
479
479
|
| `npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0` | Cài Pi CLI tương thích với release hiện tại. |
|
|
480
|
-
| `npm install -g --ignore-scripts @piagent/platform@1.
|
|
481
|
-
| `pi install git:github.com/Vt-mmm/piagent@v1.
|
|
480
|
+
| `npm install -g --ignore-scripts @piagent/platform@1.42.0` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
|
|
481
|
+
| `pi install git:github.com/Vt-mmm/piagent@v1.42.0` | Cài pinned release khi cần reproducible team setup. |
|
|
482
482
|
| `pi install git:github.com/Vt-mmm/piagent` | Cài latest package platform cho máy cá nhân/sandbox. |
|
|
483
483
|
| `piagent-update --check` | Báo version hiện tại vs version sẽ lên cho cả ba thành phần; không cài gì. |
|
|
484
484
|
| `piagent-update` | Full update global một lệnh cho cả máy: Pi host → npm-global helper → Pi package, đúng thứ tự release yêu cầu. |
|
|
@@ -15,9 +15,9 @@ Repo này phải chạy được cho nhiều project/domain khác nhau. Vì vậ
|
|
|
15
15
|
|
|
16
16
|
| Use case | Package source |
|
|
17
17
|
|---|---|
|
|
18
|
-
| Team pinned release | `git:github.com/Vt-mmm/piagent@v1.
|
|
18
|
+
| Team pinned release | `git:github.com/Vt-mmm/piagent@v1.42.0` |
|
|
19
19
|
| Personal/sandbox dev | `git:github.com/Vt-mmm/piagent` |
|
|
20
|
-
| Registry distribution | `npm:@piagent/platform@1.
|
|
20
|
+
| Registry distribution | `npm:@piagent/platform@1.42.0` |
|
|
21
21
|
| Enterprise npm (fork under another scope) | `npm:@your-scope/platform@x.y.z` |
|
|
22
22
|
| Local platform dev | `/path/to/piagent` |
|
|
23
23
|
|
|
@@ -54,7 +54,7 @@ Root `package.json` có `pi` manifest trỏ tới:
|
|
|
54
54
|
Do đó team có thể:
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
pi install git:github.com/Vt-mmm/piagent@v1.
|
|
57
|
+
pi install git:github.com/Vt-mmm/piagent@v1.42.0
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
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.
|
|
@@ -66,12 +66,12 @@ Team nên install global package một lần:
|
|
|
66
66
|
```bash
|
|
67
67
|
node --version # >= 22.19.0
|
|
68
68
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0
|
|
69
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
69
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
70
70
|
piagent-install --stable --dry-run
|
|
71
71
|
piagent-install --stable
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
`pi install git:github.com/Vt-mmm/piagent@v1.
|
|
74
|
+
`pi install git:github.com/Vt-mmm/piagent@v1.42.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.42.0`.
|
|
75
75
|
|
|
76
76
|
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).
|
|
77
77
|
|
|
@@ -118,7 +118,7 @@ Nếu muốn commit sẵn `.pi/piagent-profile.json` vào repo hoặc bootstrap
|
|
|
118
118
|
```bash
|
|
119
119
|
bash scripts/setup.sh /path/to/project \
|
|
120
120
|
--profile be-readonly-fe \
|
|
121
|
-
--package-source git:github.com/Vt-mmm/piagent@v1.
|
|
121
|
+
--package-source git:github.com/Vt-mmm/piagent@v1.42.0 \
|
|
122
122
|
--mcp-preset core \
|
|
123
123
|
--subagents-preset safe
|
|
124
124
|
```
|
package/docs/en/architecture.md
CHANGED
|
@@ -44,6 +44,7 @@ The machine-readable rule is `architecture/layers.json`; `npm run architecture:c
|
|
|
44
44
|
| Capabilities | `packages/piagent-core/capabilities/` | Profile resolution, pack validation, locks, source roots | Pi session lifecycle |
|
|
45
45
|
| Security foundation | `packages/piagent-core/security/` | Sensitive-data primitives | Workflow behavior |
|
|
46
46
|
| Benchmark | `packages/piagent-core/benchmark/`, `benchmarks/` | Suite validation, scoring, evidence | Runtime enforcement |
|
|
47
|
+
| Skills | `packages/piagent-core/skills/` | Skill instructions and the helper scripts a skill runs in the member's project | Runtime enforcement, imports from other layers |
|
|
47
48
|
| WebUI contracts | `packages/piagent-webui/contracts/` | Wire types shared by browser and server | Any runtime behavior; it depends on nothing |
|
|
48
49
|
| WebUI shared | `packages/piagent-webui/shared/` | Dependency-free deterministic helpers shared by browser, server, and gateway | Browser state, transport, filesystem access, or runtime policy |
|
|
49
50
|
| WebUI client | `packages/piagent-webui/client/` | Browser views, view models, UI preferences | Server state, filesystem, Pi APIs |
|
package/docs/languages.json
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"en": "README.md",
|
|
22
22
|
"vi": "README.vi.md",
|
|
23
23
|
"consistentAt": {
|
|
24
|
-
"en": "
|
|
25
|
-
"vi": "
|
|
24
|
+
"en": "ad3f53b99174fa8a622daf5fd12b913fbf7c39d5",
|
|
25
|
+
"vi": "8226fcd96616a25cad27922a358b2b2adf1de735"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"en": "docs/en/architecture.md",
|
|
40
40
|
"vi": "docs/vi/architecture.md",
|
|
41
41
|
"consistentAt": {
|
|
42
|
-
"en": "
|
|
43
|
-
"vi": "
|
|
42
|
+
"en": "d4615bd0f084a71c2f1a8863c36b8ffb3e407932",
|
|
43
|
+
"vi": "72a9e0de0ccf28e97e7ece548287c0201585910b"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
{
|
|
@@ -19,12 +19,12 @@ Support matrix release hiện tại: macOS Apple Silicon + Bash và Linux x64 +
|
|
|
19
19
|
```bash
|
|
20
20
|
node --version # >= 22.19.0
|
|
21
21
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0
|
|
22
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
22
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
23
23
|
piagent-install --stable --dry-run
|
|
24
24
|
piagent-install --stable
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
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.
|
|
27
|
+
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.42.0`. Máy cá nhân có thể dùng `git:github.com/Vt-mmm/piagent` để theo latest.
|
|
28
28
|
|
|
29
29
|
Nếu đang ở source checkout của platform, dùng helper theo channel để preview trước khi đổi:
|
|
30
30
|
|
|
@@ -100,7 +100,7 @@ install package once
|
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
102
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0
|
|
103
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
103
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
104
104
|
piagent-install --stable --dry-run
|
|
105
105
|
piagent-install --stable
|
|
106
106
|
```
|
|
@@ -285,7 +285,7 @@ Không phải daily default. Dùng khi muốn tạo sẵn `.pi` files cho projec
|
|
|
285
285
|
bash /path/to/piagent/scripts/setup.sh /path/to/project \
|
|
286
286
|
--project-only \
|
|
287
287
|
--profile auto \
|
|
288
|
-
--package-source git:github.com/Vt-mmm/piagent@v1.
|
|
288
|
+
--package-source git:github.com/Vt-mmm/piagent@v1.42.0 \
|
|
289
289
|
--mcp-preset core \
|
|
290
290
|
--subagents-preset safe
|
|
291
291
|
```
|
|
@@ -999,8 +999,8 @@ Watchdog là optional adversarial reviewer ở cuối turn, không bật mặc
|
|
|
999
999
|
|
|
1000
1000
|
| Command | Dùng để |
|
|
1001
1001
|
|---|---|
|
|
1002
|
-
| `npm install -g --ignore-scripts @piagent/platform@1.
|
|
1003
|
-
| `pi install git:github.com/Vt-mmm/piagent@v1.
|
|
1002
|
+
| `npm install -g --ignore-scripts @piagent/platform@1.42.0` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
|
|
1003
|
+
| `pi install git:github.com/Vt-mmm/piagent@v1.42.0` | Install pinned release cho reproducible team setup. |
|
|
1004
1004
|
| `pi install git:github.com/Vt-mmm/piagent` | Install latest platform package cho máy cá nhân/sandbox. |
|
|
1005
1005
|
| 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). |
|
|
1006
1006
|
| 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. |
|
|
@@ -1096,7 +1096,7 @@ Mở lại Pi session sau khi install.
|
|
|
1096
1096
|
Cài lại terminal helper đúng release rồi kiểm tra `PATH`:
|
|
1097
1097
|
|
|
1098
1098
|
```bash
|
|
1099
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
1099
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
1100
1100
|
command -v piagent-install
|
|
1101
1101
|
```
|
|
1102
1102
|
|
|
@@ -41,7 +41,9 @@ pi install /path/to/piagent
|
|
|
41
41
|
|
|
42
42
|
## Versioning
|
|
43
43
|
|
|
44
|
+
- `1.42.0`: dashboard thiết kế lại (một thang thiết kế, 13 theme tô tới mọi khung, header 52px, trang tạo mới có việc mẫu); tin cũ tự tải khi cuộn lên và giữ nguyên chỗ đang đọc, lịch sử hiện đúng định dạng ngay từ đầu, cửa sổ lịch sử 1.000 mục có nút về tin mới nhất; mỗi lượt đang chạy chỉ một hiệu ứng chạy; website và README viết lại; ghi chú phát hành có một nguồn `docs-site/releases.json` sinh ra `CHANGELOG.md`.
|
|
44
45
|
- `1.39.0`: cuộc trò chuyện công ty gửi Studio danh sách repository (`POST /studio/v1/managed/workspace`, chỉ khi Studio có `managed.workspace.v1`, Agent Studio 0.39.0); repo thuộc team khác hoặc ngoài danh sách repo của team hiện một dòng cho member (`agent-watch-project`, `managedProjectWarning`), không chặn; dashboard lưu ngôn ngữ và theme ở Gateway (`piagent-gateway/ui-preferences.json`) nên giữ sau khi khởi động lại.
|
|
46
|
+
- `1.41.0`: skill `fe-change-report` (chụp ảnh cũ/mới headless, khung đỏ đánh số, `report.html` không script); dashboard vẽ `reports/fe-change/<slug>/report.json` trong Tài liệu, ảnh qua `GET /api/v1/documents/<ref>/assets/<name>` (`document-asset-v1`), chỉ PNG trong `shots/` cạnh `report.json`.
|
|
45
47
|
- `1.40.0`: thư mục không có remote đọc được được báo cho Studio như project local (`local/git/<root commit>` hoặc `local/dir/<hash máy + đường dẫn>`, kèm tên thư mục, chỉ khi Studio có `managed.workspace.v2`, Agent Studio 0.40.0); mỗi run báo một lần; member thấy dòng cảnh báo cho mọi loại (`other_team`, `unlisted`, `unregistered`, `no_repository`; `managedProjectWarning` có thêm `name`).
|
|
46
48
|
- `1.38.2`: khung Tệp là cây thư mục như VS Code; theme màu (Piagent, Dracula, One Dark, Monokai, Nord, Tokyo Night, Catppuccin Mocha, Gruvbox, Solarized, GitHub) cho giao diện, editor và terminal, lưu trên trình duyệt (`piagent-webui-theme`); editor và terminal ghim dưới header khi hội thoại cuộn, có thanh chia độ rộng.
|
|
47
49
|
- `1.38.1`: nội dung như 1.38.0; 1.38.0 có tag nhưng không được publish vì hai test của bước kiểm tra phát hành (fixture Linux của terminal công ty, thời gian chờ thẻ duyệt).
|
|
@@ -153,7 +153,7 @@ Use this flow when the team needs both terminal commands and the Pi package:
|
|
|
153
153
|
```bash
|
|
154
154
|
node --version # >= 22.19.0
|
|
155
155
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0
|
|
156
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
156
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
157
157
|
piagent-install --stable --dry-run
|
|
158
158
|
piagent-install --stable
|
|
159
159
|
```
|
|
@@ -179,7 +179,7 @@ bash scripts/install-global.sh --stable
|
|
|
179
179
|
Use this only when terminal commands are not needed:
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
|
-
pi install git:github.com/Vt-mmm/piagent@v1.
|
|
182
|
+
pi install git:github.com/Vt-mmm/piagent@v1.42.0
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
Direct `pi install` does not create `piagent-*` commands on `PATH`.
|
|
@@ -389,7 +389,7 @@ gh run rerun <run-id> --failed
|
|
|
389
389
|
|
|
390
390
|
Re-running the workflow from a branch instead skips publishing, because the publish step requires a tag ref.
|
|
391
391
|
|
|
392
|
-
1. Update package versions,
|
|
392
|
+
1. Update package versions, install examples, and docs metadata on a release-candidate branch. Add the release to the top of `docs-site/releases.json` (title, one-sentence summary, items tagged `new`, `improved`, `fixed`, `security` or `breaking`, in English and Vietnamese, plus any Studio or Agent Watch it `requires`), then run `node scripts/build-docs-site.mjs`: it regenerates `CHANGELOG.md`, the Changelog page in both languages and the landing page's latest releases. Do not edit `CHANGELOG.md` by hand; `build-docs-site.mjs --check` fails when it drifts.
|
|
393
393
|
2. Verify the exact release-candidate source:
|
|
394
394
|
|
|
395
395
|
```bash
|
package/docs/team-onboarding.md
CHANGED
|
@@ -10,7 +10,7 @@ Một thành viên mới không cần biết local path của maintainer. Luồn
|
|
|
10
10
|
```bash
|
|
11
11
|
node --version # >= 22.19.0
|
|
12
12
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0
|
|
13
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
13
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
14
14
|
piagent-install --stable
|
|
15
15
|
cd /path/to/project
|
|
16
16
|
pi
|
|
@@ -45,7 +45,7 @@ Mặc định team dùng stable helper:
|
|
|
45
45
|
```bash
|
|
46
46
|
node --version # >= 22.19.0
|
|
47
47
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.3.0
|
|
48
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
48
|
+
npm install -g --ignore-scripts @piagent/platform@1.42.0
|
|
49
49
|
piagent-install --stable --dry-run
|
|
50
50
|
piagent-install --stable
|
|
51
51
|
```
|
package/docs/vi/architecture.md
CHANGED
|
@@ -44,6 +44,7 @@ Rule máy đọc nằm tại `architecture/layers.json`; chạy `npm run archite
|
|
|
44
44
|
| Capabilities | `packages/piagent-core/capabilities/` | Profile resolution, pack validation, lock, source root | Pi session lifecycle |
|
|
45
45
|
| Security foundation | `packages/piagent-core/security/` | Sensitive-data primitive | Workflow behavior |
|
|
46
46
|
| Benchmark | `packages/piagent-core/benchmark/`, `benchmarks/` | Suite validation, scoring, evidence | Runtime enforcement |
|
|
47
|
+
| Skills | `packages/piagent-core/skills/` | Hướng dẫn skill và script phụ trợ skill chạy trong project của member | Thực thi runtime, import từ layer khác |
|
|
47
48
|
| WebUI contracts | `packages/piagent-webui/contracts/` | Wire type dùng chung giữa browser và server | Mọi hành vi runtime; layer này không phụ thuộc gì |
|
|
48
49
|
| WebUI shared | `packages/piagent-webui/shared/` | Helper xác định, không có dependency, dùng chung cho browser, server và gateway | Browser state, transport, truy cập filesystem hoặc runtime policy |
|
|
49
50
|
| WebUI client | `packages/piagent-webui/client/` | View trên browser, view model, UI preference | Server state, filesystem, Pi API |
|