pi-webdesk 0.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/README.md +111 -0
- package/dist/apps/daemon/src/appearance-preferences.js +218 -0
- package/dist/apps/daemon/src/auth.js +88 -0
- package/dist/apps/daemon/src/bin.js +123 -0
- package/dist/apps/daemon/src/cli.js +48 -0
- package/dist/apps/daemon/src/event-hub.js +155 -0
- package/dist/apps/daemon/src/index.js +102 -0
- package/dist/apps/daemon/src/launcher-control.js +114 -0
- package/dist/apps/daemon/src/launcher.js +73 -0
- package/dist/apps/daemon/src/pi-auth.js +290 -0
- package/dist/apps/daemon/src/pi-resources.js +182 -0
- package/dist/apps/daemon/src/pi-runtime-factory.js +19 -0
- package/dist/apps/daemon/src/pi-sessions.js +265 -0
- package/dist/apps/daemon/src/runtime-process.js +241 -0
- package/dist/apps/daemon/src/secret.js +71 -0
- package/dist/apps/daemon/src/server.js +1662 -0
- package/dist/apps/daemon/src/session-projection.js +117 -0
- package/dist/apps/daemon/src/state-lock.js +31 -0
- package/dist/apps/daemon/src/static-web.js +53 -0
- package/dist/apps/daemon/src/task-archive.js +152 -0
- package/dist/apps/daemon/src/task-commit.js +503 -0
- package/dist/apps/daemon/src/task-merge.js +912 -0
- package/dist/apps/daemon/src/task-review.js +204 -0
- package/dist/apps/daemon/src/task-runtime.js +1124 -0
- package/dist/apps/daemon/src/task-validation.js +352 -0
- package/dist/apps/daemon/src/workspace-store.js +140 -0
- package/dist/apps/daemon/src/workspace.js +795 -0
- package/dist/extensions/webdesk.js +34 -0
- package/dist/packages/git/src/commit.js +675 -0
- package/dist/packages/git/src/errors.js +55 -0
- package/dist/packages/git/src/fingerprint.js +286 -0
- package/dist/packages/git/src/index.js +123 -0
- package/dist/packages/git/src/merge.js +1008 -0
- package/dist/packages/git/src/paths.js +58 -0
- package/dist/packages/git/src/repository.js +77 -0
- package/dist/packages/git/src/review.js +396 -0
- package/dist/packages/git/src/runner.js +110 -0
- package/dist/packages/git/src/validation.js +263 -0
- package/dist/packages/git/src/worktree.js +233 -0
- package/dist/packages/pi-bridge/extensions/pita-policy.js +117 -0
- package/dist/packages/pi-bridge/src/auth.js +80 -0
- package/dist/packages/pi-bridge/src/errors.js +19 -0
- package/dist/packages/pi-bridge/src/handshake.js +43 -0
- package/dist/packages/pi-bridge/src/index.js +76 -0
- package/dist/packages/pi-bridge/src/jsonl.js +105 -0
- package/dist/packages/pi-bridge/src/policy-approval.js +62 -0
- package/dist/packages/pi-bridge/src/resolve.js +59 -0
- package/dist/packages/pi-bridge/src/resources-child.mjs +23 -0
- package/dist/packages/pi-bridge/src/resources.js +481 -0
- package/dist/packages/pi-bridge/src/rpc/client.js +480 -0
- package/dist/packages/pi-bridge/src/rpc/runtime.js +496 -0
- package/dist/packages/pi-bridge/src/rpc/supervisor.mjs +129 -0
- package/dist/packages/pi-bridge/src/rpc/tool-events.js +78 -0
- package/dist/packages/pi-bridge/src/rpc/wire.js +263 -0
- package/dist/packages/pi-bridge/src/runtime.js +0 -0
- package/dist/packages/pi-bridge/src/sessions-child.mjs +38 -0
- package/dist/packages/pi-bridge/src/sessions.js +314 -0
- package/dist/packages/pi-bridge/src/tool-activity.js +56 -0
- package/dist/packages/protocol/src/index.js +1863 -0
- package/dist/web/assets/index-BOw_fhvO.css +2 -0
- package/dist/web/assets/index-oXs7yAAo.js +119 -0
- package/dist/web/index.html +14 -0
- package/package.json +69 -0
- package/scripts/prepare.mjs +7 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Pi Webdesk</title>
|
|
7
|
+
<meta name="description" content="An opinionated web UI for Pi, with isolated task worktrees and code review." />
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-oXs7yAAo.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BOw_fhvO.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pi-webdesk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "An opinionated web UI for Pi, with isolated task worktrees and code review",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/luka-zivkovic/pi-webdesk.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"pi-package",
|
|
12
|
+
"pi",
|
|
13
|
+
"web-ui",
|
|
14
|
+
"workspace",
|
|
15
|
+
"worktrees"
|
|
16
|
+
],
|
|
17
|
+
"bin": {
|
|
18
|
+
"pi-webdesk": "dist/apps/daemon/src/cli.js"
|
|
19
|
+
},
|
|
20
|
+
"pi": {
|
|
21
|
+
"extensions": [
|
|
22
|
+
"dist/extensions/webdesk.js"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/",
|
|
27
|
+
"scripts/prepare.mjs",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"packageManager": "pnpm@10.33.0",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=22.19"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "node scripts/build.mjs",
|
|
40
|
+
"prepare": "node scripts/prepare.mjs",
|
|
41
|
+
"prepack": "npm run build",
|
|
42
|
+
"typecheck": "pnpm -r run typecheck",
|
|
43
|
+
"test": "pnpm -r run test",
|
|
44
|
+
"test:process": "pnpm --filter @pita/pi-bridge exec vitest run test/supervisor-process.test.ts && pnpm --filter @pita/daemon run test:process",
|
|
45
|
+
"test:pi-smoke": "pnpm --filter @pita/pi-bridge run test:pi-smoke",
|
|
46
|
+
"test:package": "node --test scripts/package.test.mjs"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@base-ui/react": "1.7.0",
|
|
50
|
+
"@earendil-works/pi-coding-agent": "0.84.2",
|
|
51
|
+
"@tailwindcss/vite": "4.3.3",
|
|
52
|
+
"@vitejs/plugin-react": "6.0.5",
|
|
53
|
+
"esbuild": "0.28.2",
|
|
54
|
+
"lucide-react": "1.31.0",
|
|
55
|
+
"proper-lockfile": "4.1.2",
|
|
56
|
+
"react": "19.2.8",
|
|
57
|
+
"react-dom": "19.2.8",
|
|
58
|
+
"react-markdown": "10.1.0",
|
|
59
|
+
"remark-gfm": "4.0.1",
|
|
60
|
+
"tailwindcss": "4.3.3",
|
|
61
|
+
"vite": "8.2.1",
|
|
62
|
+
"ws": "8.21.3",
|
|
63
|
+
"zod": "4.4.3"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/luka-zivkovic/pi-webdesk#readme",
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/luka-zivkovic/pi-webdesk/issues"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
|
|
3
|
+
// Pi runs npm install for Git packages. Installed tarballs already contain
|
|
4
|
+
// the complete distribution and do not need development dependencies.
|
|
5
|
+
if (existsSync(new URL("../apps/web/src", import.meta.url))) {
|
|
6
|
+
await import("./build.mjs");
|
|
7
|
+
}
|