fix: detect bun relay assets
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
- macOS: prioritize main bundle for device resources to prevent crash (#73) — thanks @petter-b
|
- macOS: prioritize main bundle for device resources to prevent crash (#73) — thanks @petter-b
|
||||||
- Chat UI: clear composer input immediately and allow clear while editing to prevent duplicate sends (#72) — thanks @hrdwdmrbl
|
- Chat UI: clear composer input immediately and allow clear while editing to prevent duplicate sends (#72) — thanks @hrdwdmrbl
|
||||||
- Restart: use systemd on Linux (and report actual restart method) instead of always launchctl.
|
- Restart: use systemd on Linux (and report actual restart method) instead of always launchctl.
|
||||||
|
- Gateway relay: detect Bun binaries via execPath to resolve packaged assets on macOS.
|
||||||
- Docs: add manual OAuth setup for remote/headless deployments (#67) — thanks @wstock
|
- Docs: add manual OAuth setup for remote/headless deployments (#67) — thanks @wstock
|
||||||
- Docs/agent tools: clarify that browser `wait` should be avoided by default and used only in exceptional cases.
|
- Docs/agent tools: clarify that browser `wait` should be avoided by default and used only in exceptional cases.
|
||||||
- Browser tools: `upload` supports auto-click refs, direct `inputRef`/`element` file inputs, and emits input/change after `setFiles` so JS-heavy sites pick up attachments.
|
- Browser tools: `upload` supports auto-click refs, direct `inputRef`/`element` file inputs, and emits input/change after `setFiles` so JS-heavy sites pick up attachments.
|
||||||
|
|||||||
@@ -131,6 +131,10 @@
|
|||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@sinclair/typebox": "0.34.45"
|
"@sinclair/typebox": "0.34.45"
|
||||||
|
},
|
||||||
|
"patchedDependencies": {
|
||||||
|
"@mariozechner/pi-ai": "patches/@mariozechner__pi-ai.patch",
|
||||||
|
"@mariozechner/pi-coding-agent@0.30.2": "patches/@mariozechner__pi-coding-agent@0.30.2.patch"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vitest": {
|
"vitest": {
|
||||||
|
|||||||
17
patches/@mariozechner__pi-coding-agent@0.30.2.patch
Normal file
17
patches/@mariozechner__pi-coding-agent@0.30.2.patch
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/dist/config.js b/dist/config.js
|
||||||
|
index 7caa66d2676933b102431ec8d92c571eb9d6d82c..77103b9d9573e56c26014c8c7c918e1f853afcdc 100644
|
||||||
|
--- a/dist/config.js
|
||||||
|
+++ b/dist/config.js
|
||||||
|
@@ -10,8 +10,11 @@ const __dirname = dirname(__filename);
|
||||||
|
/**
|
||||||
|
* Detect if we're running as a Bun compiled binary.
|
||||||
|
* Bun binaries have import.meta.url containing "$bunfs", "~BUN", or "%7EBUN" (Bun's virtual filesystem path)
|
||||||
|
+ * Some packaging workflows keep import.meta.url as a file:// path, so fall back to execPath next to package.json.
|
||||||
|
*/
|
||||||
|
-export const isBunBinary = import.meta.url.includes("$bunfs") || import.meta.url.includes("~BUN") || import.meta.url.includes("%7EBUN");
|
||||||
|
+const bunBinaryByUrl = import.meta.url.includes("$bunfs") || import.meta.url.includes("~BUN") || import.meta.url.includes("%7EBUN");
|
||||||
|
+const bunBinaryByExecPath = existsSync(join(dirname(process.execPath), "package.json"));
|
||||||
|
+export const isBunBinary = bunBinaryByUrl || bunBinaryByExecPath;
|
||||||
|
// =============================================================================
|
||||||
|
// Package Asset Paths (shipped with executable)
|
||||||
|
// =============================================================================
|
||||||
7
pnpm-lock.yaml
generated
7
pnpm-lock.yaml
generated
@@ -11,6 +11,9 @@ patchedDependencies:
|
|||||||
'@mariozechner/pi-ai':
|
'@mariozechner/pi-ai':
|
||||||
hash: bf3e904ebaad236b8c3bb48c7d1150a1463735e783acaab6d15d6cd381b43832
|
hash: bf3e904ebaad236b8c3bb48c7d1150a1463735e783acaab6d15d6cd381b43832
|
||||||
path: patches/@mariozechner__pi-ai.patch
|
path: patches/@mariozechner__pi-ai.patch
|
||||||
|
'@mariozechner/pi-coding-agent@0.30.2':
|
||||||
|
hash: d0d5ffa1bfda8a0f9d14a5e73a074014346d3edbdb2ffc91444d3be5119f5745
|
||||||
|
path: patches/@mariozechner__pi-coding-agent@0.30.2.patch
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
@@ -33,7 +36,7 @@ importers:
|
|||||||
version: 0.30.2(patch_hash=bf3e904ebaad236b8c3bb48c7d1150a1463735e783acaab6d15d6cd381b43832)(ws@8.18.3)(zod@4.2.1)
|
version: 0.30.2(patch_hash=bf3e904ebaad236b8c3bb48c7d1150a1463735e783acaab6d15d6cd381b43832)(ws@8.18.3)(zod@4.2.1)
|
||||||
'@mariozechner/pi-coding-agent':
|
'@mariozechner/pi-coding-agent':
|
||||||
specifier: ^0.30.2
|
specifier: ^0.30.2
|
||||||
version: 0.30.2(ws@8.18.3)(zod@4.2.1)
|
version: 0.30.2(patch_hash=d0d5ffa1bfda8a0f9d14a5e73a074014346d3edbdb2ffc91444d3be5119f5745)(ws@8.18.3)(zod@4.2.1)
|
||||||
'@sinclair/typebox':
|
'@sinclair/typebox':
|
||||||
specifier: 0.34.45
|
specifier: 0.34.45
|
||||||
version: 0.34.45
|
version: 0.34.45
|
||||||
@@ -3503,7 +3506,7 @@ snapshots:
|
|||||||
- ws
|
- ws
|
||||||
- zod
|
- zod
|
||||||
|
|
||||||
'@mariozechner/pi-coding-agent@0.30.2(ws@8.18.3)(zod@4.2.1)':
|
'@mariozechner/pi-coding-agent@0.30.2(patch_hash=d0d5ffa1bfda8a0f9d14a5e73a074014346d3edbdb2ffc91444d3be5119f5745)(ws@8.18.3)(zod@4.2.1)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@mariozechner/pi-agent-core': 0.30.2(ws@8.18.3)(zod@4.2.1)
|
'@mariozechner/pi-agent-core': 0.30.2(ws@8.18.3)(zod@4.2.1)
|
||||||
'@mariozechner/pi-ai': 0.30.2(patch_hash=bf3e904ebaad236b8c3bb48c7d1150a1463735e783acaab6d15d6cd381b43832)(ws@8.18.3)(zod@4.2.1)
|
'@mariozechner/pi-ai': 0.30.2(patch_hash=bf3e904ebaad236b8c3bb48c7d1150a1463735e783acaab6d15d6cd381b43832)(ws@8.18.3)(zod@4.2.1)
|
||||||
|
|||||||
Reference in New Issue
Block a user