Skip to content

Commit 20fbcff

Browse files
authored
chore(deps): require Pi 0.85.1 and remove server shim (#410)
Co-authored-by: tt-a1i <tt-a1i@users.noreply.github.com>
1 parent 24d7407 commit 20fbcff

7 files changed

Lines changed: 37 additions & 65 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ jobs:
7373
rm -rf "$root"
7474
}
7575
trap cleanup EXIT
76-
mkdir "$root/app" "$root/workspace"
76+
mkdir "$root/app" "$root/workspace" "$root/agent"
7777
printf '{"private":true}\n' >"$root/app/package.json"
7878
npm pack --ignore-scripts --silent --pack-destination "$root" >/dev/null
7979
tarballs=("$root"/*.tgz)
8080
test "${#tarballs[@]}" -eq 1
81-
npm install --prefix "$root/app" --ignore-scripts --no-audit --no-fund "${tarballs[0]}"
81+
npm install --prefix "$root/app" --ignore-scripts --no-audit --no-fund "${tarballs[0]}" \
82+
@earendil-works/pi-coding-agent@0.85.1 @earendil-works/pi-ai@0.85.1 @earendil-works/pi-tui@0.85.1
83+
test ! -e "$root/app/node_modules/@earendil-works/pi-server"
84+
(cd "$root/app" && node --input-type=module -e 'await import("@earendil-works/pi-coding-agent")')
85+
PI_CODING_AGENT_DIR="$root/agent" \
8286
OPENPI_WEB_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
8387
"$root/app/node_modules/.bin/openpi" web "$root/workspace" --port 0 --no-open \
8488
>"$root/host.log" 2>&1 &

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<p align="center">
2121
<a href="https://www.npmjs.com/package/@tt-a1i/openpi"><img alt="npm version" src="https://img.shields.io/npm/v/@tt-a1i/openpi?style=flat-square&color=cb3837"></a>
2222
<a href="https://github.com/openpi-dev/openpi/actions/workflows/ci.yml"><img alt="CI status" src="https://github.com/openpi-dev/openpi/actions/workflows/ci.yml/badge.svg"></a>
23-
<a href="https://github.com/earendil-works/pi-mono"><img alt="Pi 0.84.1+" src="https://img.shields.io/badge/Pi-0.84.1%2B-2f81f7?style=flat-square"></a>
23+
<a href="https://github.com/earendil-works/pi-mono"><img alt="Pi 0.85.1+" src="https://img.shields.io/badge/Pi-0.85.1%2B-2f81f7?style=flat-square"></a>
2424
<img alt="Node.js 22.19+" src="https://img.shields.io/badge/Node.js-22.19%2B-3fb950?style=flat-square&logo=nodedotjs&logoColor=white">
2525
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-3fb950?style=flat-square"></a>
2626
</p>
@@ -448,7 +448,7 @@ Footer 布局以 `footerLines` 作为唯一持久化格式。旧版 `footerItems
448448
449449
### 安装要求与来源
450450
451-
- Pi `0.84.1` 或更新版本;
451+
- Pi `0.85.1` 或更新版本;
452452
- Node.js `22.19.0` 或更新版本;
453453
- npm 安装:`pi install npm:@tt-a1i/openpi`;
454454
- GitHub 安装:`pi install git:github.com/openpi-dev/openpi`。

‎SETUP.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Setup
22

3-
Use Node.js 22.19.0 or newer. Install the public Pi package:
3+
Use Pi 0.85.1 or newer and Node.js 22.19.0 or newer. Upgrade Pi before installing this OpenPI version; the temporary Pi 0.85.0 SDK import workaround has been removed. Install the public Pi package:
44

55
```sh
66
pi install npm:@tt-a1i/openpi

‎bun.lock‎

Lines changed: 14 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)