@one2x/merouter 0.8.1-win32-x64 → 0.8.2-darwin-x64
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
CHANGED
|
@@ -9,6 +9,24 @@ merouter --help
|
|
|
9
9
|
|
|
10
10
|
Works on macOS (x64, arm64), Linux (x64, arm64), and Windows x64. `npm`/`pnpm`/`yarn`/`bun` all supported.
|
|
11
11
|
|
|
12
|
+
## Function calls
|
|
13
|
+
|
|
14
|
+
Set `MEROUTER_API_KEY` to an API key authorized for the function. Function commands
|
|
15
|
+
use API-key authentication independently of the admin `MEROUTER_SERVICE_KEY`.
|
|
16
|
+
Set `MEROUTER_BASE_URL=https://merouter-dev.play.one2x.ai` to use dev.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
merouter functions list
|
|
20
|
+
merouter functions get firecrawl.search
|
|
21
|
+
merouter functions call firecrawl.search --arguments '{"query":"Firecrawl docs","limit":1}'
|
|
22
|
+
merouter functions call firecrawl.scrape --arguments-file arguments.json
|
|
23
|
+
cat arguments.json | merouter functions call firecrawl.scrape --arguments-file -
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`function` aliases `functions`, and `invoke` aliases `call`. Output is JSON.
|
|
27
|
+
Use `--contract-revision sha256:...` to pin the discovered contract. Calls are
|
|
28
|
+
sent once without automatic retries; failed invocations exit with status 1.
|
|
29
|
+
|
|
12
30
|
---
|
|
13
31
|
|
|
14
32
|
## How it works
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@one2x/merouter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2-darwin-x64",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
|
-
"description": "merouter CLI native binary for
|
|
5
|
+
"description": "merouter CLI native binary for darwin/x64.",
|
|
6
6
|
"os": [
|
|
7
|
-
"
|
|
7
|
+
"darwin"
|
|
8
8
|
],
|
|
9
9
|
"cpu": [
|
|
10
10
|
"x64"
|
|
index f16e044..3045420
|
|
|
Binary file
|