@piagent/platform 1.3.0-ie.8 → 1.3.0-ie.9

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 (48) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/docs/command-reference-vietnamese.md +2 -2
  3. package/docs/distribution-standard.md +6 -6
  4. package/docs/operator-manual-vietnamese.md +7 -7
  5. package/docs/release-install-policy.md +7 -4
  6. package/docs/team-onboarding.md +2 -2
  7. package/docs-site/architecture.html +1 -1
  8. package/docs-site/benchmark.html +1 -1
  9. package/docs-site/commands.html +1 -1
  10. package/docs-site/context-engine.html +1 -1
  11. package/docs-site/en/architecture.html +1 -1
  12. package/docs-site/en/benchmark.html +1 -1
  13. package/docs-site/en/commands.html +1 -1
  14. package/docs-site/en/context-engine.html +1 -1
  15. package/docs-site/en/index.html +1 -1
  16. package/docs-site/en/mcp-approval.html +1 -1
  17. package/docs-site/en/mcp-auth.html +1 -1
  18. package/docs-site/en/mcp-servers.html +1 -1
  19. package/docs-site/en/mcp.html +1 -1
  20. package/docs-site/en/permissions.html +1 -1
  21. package/docs-site/en/profiles.html +1 -1
  22. package/docs-site/en/quickstart.html +1 -1
  23. package/docs-site/en/runtime.html +1 -1
  24. package/docs-site/en/scope.html +1 -1
  25. package/docs-site/en/security.html +1 -1
  26. package/docs-site/en/team.html +1 -1
  27. package/docs-site/en/whats-new.html +1 -1
  28. package/docs-site/en/workflows.html +1 -1
  29. package/docs-site/index.html +1 -1
  30. package/docs-site/mcp-approval.html +1 -1
  31. package/docs-site/mcp-auth.html +1 -1
  32. package/docs-site/mcp-servers.html +1 -1
  33. package/docs-site/mcp.html +1 -1
  34. package/docs-site/permissions.html +1 -1
  35. package/docs-site/profiles.html +1 -1
  36. package/docs-site/quickstart.html +1 -1
  37. package/docs-site/runtime.html +1 -1
  38. package/docs-site/scope.html +1 -1
  39. package/docs-site/security.html +1 -1
  40. package/docs-site/team.html +1 -1
  41. package/docs-site/whats-new.html +1 -1
  42. package/docs-site/workflows.html +1 -1
  43. package/package.json +1 -1
  44. package/packages/piagent-core/package.json +1 -1
  45. package/scripts/benchmark-runner.mjs +2 -1
  46. package/scripts/piagent-cli.mjs +24 -2
  47. package/scripts/register-typescript-loader.mjs +3 -0
  48. package/scripts/typescript-loader.mjs +12 -0
package/CHANGELOG.md CHANGED
@@ -4,7 +4,25 @@ This file records release-facing changes for Pi Agent Platform. Copy the relevan
4
4
 
5
5
  ## Unreleased
6
6
 
7
- No changes after the `v1.3.0-ie.8` candidate boundary.
7
+ No changes after the `v1.3.0-ie.9` candidate boundary.
8
+
9
+ ## v1.3.0-ie.9 - 2026-08-12
10
+
11
+ ### Installed-package runtime parity
12
+
13
+ - Added a package-owned TypeScript loader for terminal entry points so the npm
14
+ installation can load the same audited TypeScript runtime that Pi loads,
15
+ even when the package lives under `node_modules`.
16
+ - Made the global benchmark helper use the matching exact Pi package Git source
17
+ installed by `piagent-install --stable`. It refuses to invent Git identity or
18
+ run against a mismatched helper/package version.
19
+ - Replaced the symlink-only binary smoke with a real packed-and-installed test:
20
+ all global commands print help from `node_modules`, and the installed benchmark
21
+ completes a provider-free dry run from an exact temporary Git source.
22
+ - Preserved IE8 as the first successfully published package. Its helper,
23
+ installer, doctor and capability commands work, but the route and benchmark
24
+ binaries cannot load TypeScript from `node_modules`; IE9 supersedes it on the
25
+ npm `next` channel. Product/model behavior remains unchanged from IE7/IE8.
8
26
 
9
27
  ## v1.3.0-ie.8 - 2026-08-12
10
28
 
@@ -501,8 +501,8 @@ Các lệnh này chạy ngoài Pi.
501
501
  | Command | Dùng khi nào |
502
502
  |---|---|
503
503
  | `npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1` | Cài Pi CLI tương thích với release hiện tại. |
504
- | `npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
505
- | `pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.8` | Cài pinned release khi cần reproducible team setup. |
504
+ | `npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
505
+ | `pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.9` | Cài pinned release khi cần reproducible team setup. |
506
506
  | `pi install git:github.com/Vt-mmm/piagent` | Cài latest package platform cho máy cá nhân/sandbox. |
507
507
  | `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ì. |
508
508
  | `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. |
@@ -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.3.0-ie.8` |
17
+ | Team pinned release | `git:github.com/Vt-mmm/piagent@v1.3.0-ie.9` |
18
18
  | Personal/sandbox dev | `git:github.com/Vt-mmm/piagent` |
19
- | Registry distribution | `npm:@piagent/platform@1.3.0-ie.8` |
19
+ | Registry distribution | `npm:@piagent/platform@1.3.0-ie.9` |
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
 
@@ -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.3.0-ie.8
56
+ pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.9
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.
@@ -65,12 +65,12 @@ Team nên install global package một lần:
65
65
  ```bash
66
66
  node --version # >= 22.19.0
67
67
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1
68
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
68
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
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.3.0-ie.8` 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.3.0-ie.8`.
73
+ `pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.9` 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.3.0-ie.9`.
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
 
@@ -120,7 +120,7 @@ Nếu muốn commit sẵn `.pi/piagent-profile.json` vào repo hoặc bootstrap
120
120
  ```bash
121
121
  bash scripts/setup.sh /path/to/project \
122
122
  --profile be-readonly-fe \
123
- --package-source git:github.com/Vt-mmm/piagent@v1.3.0-ie.8 \
123
+ --package-source git:github.com/Vt-mmm/piagent@v1.3.0-ie.9 \
124
124
  --mcp-preset core \
125
125
  --subagents-preset safe
126
126
  ```
@@ -18,12 +18,12 @@ Support matrix release hiện tại: macOS Apple Silicon + Bash và Linux x64 +
18
18
  ```bash
19
19
  node --version # >= 22.19.0
20
20
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1
21
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
21
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
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.3.0-ie.8`. Máy cá nhân có thể dùng `git:github.com/Vt-mmm/piagent` để theo latest.
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.3.0-ie.9`. 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
 
@@ -99,7 +99,7 @@ install package once
99
99
 
100
100
  ```bash
101
101
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1
102
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
102
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
103
103
  piagent-install --stable --dry-run
104
104
  piagent-install --stable
105
105
  ```
@@ -282,7 +282,7 @@ Không phải daily default. Dùng khi muốn tạo sẵn `.pi` files cho projec
282
282
  bash /path/to/piagent/scripts/setup.sh /path/to/project \
283
283
  --project-only \
284
284
  --profile auto \
285
- --package-source git:github.com/Vt-mmm/piagent@v1.3.0-ie.8 \
285
+ --package-source git:github.com/Vt-mmm/piagent@v1.3.0-ie.9 \
286
286
  --mcp-preset core \
287
287
  --subagents-preset safe
288
288
  ```
@@ -1039,8 +1039,8 @@ Watchdog là optional adversarial reviewer ở cuối turn, không bật mặc
1039
1039
 
1040
1040
  | Command | Dùng để |
1041
1041
  |---|---|
1042
- | `npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
1043
- | `pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.8` | Install pinned release cho reproducible team setup. |
1042
+ | `npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
1043
+ | `pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.9` | Install pinned release cho reproducible team setup. |
1044
1044
  | `pi install git:github.com/Vt-mmm/piagent` | Install latest platform package cho máy cá nhân/sandbox. |
1045
1045
  | 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). |
1046
1046
  | 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. |
@@ -1152,7 +1152,7 @@ Mở lại Pi session sau khi install.
1152
1152
  Cài lại terminal helper đúng release rồi kiểm tra `PATH`:
1153
1153
 
1154
1154
  ```bash
1155
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
1155
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
1156
1156
  command -v piagent-install
1157
1157
  ```
1158
1158
 
@@ -56,8 +56,11 @@ The completed IE7 production run is exact public-regression evidence for its
56
56
  frozen runtime and policy. It does not prove private-holdout generalization or
57
57
  production stability. Tag `v1.3.0-ie.7` failed in the deterministic publish-job
58
58
  test phase before npm was reached. `v1.3.0-ie.8` changes only that distribution
59
- job (complete tag checkout plus the Linux `ripgrep` prerequisite); it does not
60
- relabel the IE7 measurement as an exact IE8 performance run.
59
+ job (complete tag checkout plus the Linux `ripgrep` prerequisite); IE9 adds
60
+ installed-package parity for TypeScript-backed terminal commands and resolves
61
+ the benchmark source from the matching exact Pi package Git clone. Neither
62
+ distribution correction relabels the IE7 measurement as an exact IE8/IE9
63
+ performance run.
61
64
 
62
65
  ### Historical finite 1.3 RC transition
63
66
 
@@ -114,7 +117,7 @@ Use this flow when the team needs both terminal commands and the Pi package:
114
117
  ```bash
115
118
  node --version # >= 22.19.0
116
119
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1
117
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
120
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
118
121
  piagent-install --stable --dry-run
119
122
  piagent-install --stable
120
123
  ```
@@ -140,7 +143,7 @@ bash scripts/install-global.sh --stable
140
143
  Use this only when terminal commands are not needed:
141
144
 
142
145
  ```bash
143
- pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.8
146
+ pi install git:github.com/Vt-mmm/piagent@v1.3.0-ie.9
144
147
  ```
145
148
 
146
149
  Direct `pi install` does not create `piagent-*` commands on `PATH`.
@@ -9,7 +9,7 @@ Một thành viên mới không cần biết local path của maintainer. Luồn
9
9
  ```bash
10
10
  node --version # >= 22.19.0
11
11
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1
12
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
12
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
13
13
  piagent-install --stable
14
14
  cd /path/to/project
15
15
  pi
@@ -43,7 +43,7 @@ Mặc định team dùng stable helper:
43
43
  ```bash
44
44
  node --version # >= 22.19.0
45
45
  npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.84.1
46
- npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.8
46
+ npm install -g --ignore-scripts @piagent/platform@1.3.0-ie.9
47
47
  piagent-install --stable --dry-run
48
48
  piagent-install --stable
49
49
  ```
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/architecture" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/architecture" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/benchmark" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/benchmark" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/commands" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/commands" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/context-engine" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/context-engine" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/architecture" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/architecture" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/benchmark" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/benchmark" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/commands" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/commands" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/context-engine" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/context-engine" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/mcp-approval" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/mcp-approval" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/mcp-auth" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/mcp-auth" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/mcp-servers" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/mcp-servers" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/mcp" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/mcp" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/permissions" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/permissions" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/profiles" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/profiles" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/quickstart" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/quickstart" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/runtime" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/runtime" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/scope" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/scope" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/security" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/security" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/team" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/team" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/whats-new" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/whats-new" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · EN</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · EN</span>
34
34
  <nav class="language-switch" aria-label="Language">
35
35
  <a class="language-option" href="/workflows" hreflang="vi" lang="vi">VI</a>
36
36
  <a class="language-option current" href="/en/workflows" hreflang="en" lang="en" aria-current="true">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/mcp-approval" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/mcp-approval" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/mcp-auth" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/mcp-auth" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/mcp-servers" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/mcp-servers" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/mcp" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/mcp" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/permissions" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/permissions" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/profiles" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/profiles" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/quickstart" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/quickstart" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/runtime" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/runtime" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/scope" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/scope" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/security" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/security" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/team" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/team" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/whats-new" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/whats-new" hreflang="en" lang="en">EN</a>
@@ -30,7 +30,7 @@
30
30
  <span>Pi Agent Platform</span>
31
31
  </a>
32
32
  <div class="top-actions">
33
- <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.8 docs · VI</span>
33
+ <span class="pill"><span class="pill-dot"></span>v1.3.0-ie.9 docs · VI</span>
34
34
  <nav class="language-switch" aria-label="Ngôn ngữ">
35
35
  <a class="language-option current" href="/workflows" hreflang="vi" lang="vi" aria-current="true">VI</a>
36
36
  <a class="language-option" href="/en/workflows" hreflang="en" lang="en">EN</a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piagent/platform",
3
- "version": "1.3.0-ie.8",
3
+ "version": "1.3.0-ie.9",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piagent/core",
3
- "version": "1.3.0-ie.8",
3
+ "version": "1.3.0-ie.9",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "license": "MIT",
@@ -27,7 +27,8 @@ function terminate(child, signal) {
27
27
 
28
28
  function runChild(script, argv, env, cleanup) {
29
29
  return new Promise((resolve, reject) => {
30
- const child = spawn(process.execPath, [script, ...argv], {
30
+ const loader = path.join(path.dirname(script), "register-typescript-loader.mjs");
31
+ const child = spawn(process.execPath, ["--disable-warning=ExperimentalWarning", "--import", loader, script, ...argv], {
31
32
  cwd: process.cwd(),
32
33
  env,
33
34
  detached: process.platform !== "win32",
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from "node:child_process";
3
+ import fs from "node:fs";
4
+ import os from "node:os";
3
5
  import path from "node:path";
4
6
  import { fileURLToPath } from "node:url";
5
7
 
@@ -34,9 +36,29 @@ if (!script) {
34
36
  process.exit(2);
35
37
  }
36
38
 
37
- const target = path.join(packageRoot, script);
39
+ function benchmarkSourceRoot() {
40
+ if (fs.existsSync(path.join(packageRoot, ".git"))) return packageRoot;
41
+ if (process.argv.slice(2).some((value) => value === "--help" || value === "-h")) return packageRoot;
42
+ const agentRoot = path.resolve(process.env.PI_CODING_AGENT_DIR || path.join(os.homedir(), ".pi", "agent"));
43
+ const installed = path.join(agentRoot, "git", "github.com", "Vt-mmm", "piagent");
44
+ try {
45
+ const helperVersion = JSON.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8")).version;
46
+ const installedVersion = JSON.parse(fs.readFileSync(path.join(installed, "package.json"), "utf8")).version;
47
+ if (helperVersion === installedVersion && fs.existsSync(path.join(installed, ".git"))) return installed;
48
+ } catch {
49
+ // The controlled error below explains how to materialize the exact source.
50
+ }
51
+ console.error("piagent-benchmark requires the matching exact Pi package source. Run piagent-install --stable first.");
52
+ process.exit(1);
53
+ }
54
+
55
+ const sourceRoot = invokedAs === "piagent-benchmark" ? benchmarkSourceRoot() : packageRoot;
56
+ const target = path.join(sourceRoot, script);
38
57
  const runner = target.endsWith(".mjs") ? process.execPath : "bash";
39
- const child = spawn(runner, [target, ...process.argv.slice(2)], {
58
+ const runnerArgs = target.endsWith(".mjs")
59
+ ? ["--disable-warning=ExperimentalWarning", "--import", path.join(sourceRoot, "scripts", "register-typescript-loader.mjs"), target]
60
+ : [target];
61
+ const child = spawn(runner, [...runnerArgs, ...process.argv.slice(2)], {
40
62
  cwd: process.cwd(),
41
63
  env: process.env,
42
64
  stdio: "inherit"
@@ -0,0 +1,3 @@
1
+ import { register } from "node:module";
2
+
3
+ register("./typescript-loader.mjs", import.meta.url);
@@ -0,0 +1,12 @@
1
+ import fs from "node:fs/promises";
2
+ import { stripTypeScriptTypes } from "node:module";
3
+
4
+ export async function load(url, context, nextLoad) {
5
+ if (!url.endsWith(".ts")) return nextLoad(url, context);
6
+ const source = await fs.readFile(new URL(url), "utf8");
7
+ return {
8
+ format: "module",
9
+ shortCircuit: true,
10
+ source: stripTypeScriptTypes(source, { mode: "strip", sourceUrl: url })
11
+ };
12
+ }