feat(connect-local): add Pi extension for local agent bridge

Monorepo Pi package with outbound WebSocket, pairing/reconnect flow,
presence reporting, and single-flight task.dispatch handling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Chengdong Zhang
2026-07-23 20:55:36 +08:00
commit 94721227c0
10 changed files with 575 additions and 0 deletions

26
package.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "@pi-platform/connect-local",
"version": "0.1.18",
"private": true,
"type": "module",
"keywords": ["pi-package"],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"pi": {
"extensions": ["./dist/index.js"]
},
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
"test": "vitest run"
},
"dependencies": {
"@earendil-works/pi-coding-agent": "^0.80.10",
"@pi-platform/shared": "*",
"ws": "^8.21.1"
},
"devDependencies": {
"@types/ws": "^8.18.1",
"vitest": "^4.1.10"
}
}