@plosson/agentio 0.5.8 → 0.5.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.
- package/package.json +2 -2
- package/src/polyfills.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plosson/agentio",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "CLI for LLM agents to interact with communication and tracking services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"commander": "^14.0.2",
|
|
58
58
|
"google-auth-library": "^10.0.0",
|
|
59
59
|
"libsodium-wrappers": "^0.8.1",
|
|
60
|
-
"
|
|
60
|
+
"long": "^5.3.2",
|
|
61
61
|
"qrcode-terminal": "^0.12.0",
|
|
62
62
|
"rss-parser": "^3.13.0"
|
|
63
63
|
}
|
package/src/polyfills.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// This must be imported BEFORE any code that uses protobufjs (e.g., Baileys)
|
|
3
3
|
|
|
4
4
|
import Long from 'long';
|
|
5
|
-
import protobuf from 'protobufjs';
|
|
6
5
|
|
|
7
|
-
// Fix for protobufjs Long support in Bun native binaries
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
// Fix for protobufjs Long support in Bun native binaries.
|
|
7
|
+
// protobufjs/minimal uses inquire("long") with eval-based require that fails in Bun bundles.
|
|
8
|
+
// It falls back to checking global.Long (util/minimal.js:181), so we set it on globalThis
|
|
9
|
+
// BEFORE any protobufjs code initializes (WAProto evaluates $util.Long at module load time).
|
|
10
|
+
(globalThis as any).Long = Long;
|