@human-agent/rago 0.0.0-stage → 0.3.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 +20 -2
- package/bin/fractalrag.cjs +2 -0
- package/bin/frag.cjs +2 -0
- package/bin/launch.cjs +44 -0
- package/bin/rago.cjs +2 -0
- package/notices/FractalRAG-LICENSE.txt +21 -0
- package/notices/ripgrep-LICENSE-MIT.txt +21 -0
- package/notices/ripgrep-UNLICENSE.txt +24 -0
- package/package.json +20 -4
- package/prebuilt/darwin-arm64/bundle.json +16 -0
- package/prebuilt/darwin-arm64/fractalrag +0 -0
- package/prebuilt/darwin-arm64/frag +0 -0
- package/prebuilt/darwin-arm64/rago +0 -0
- package/prebuilt/darwin-arm64/rg +0 -0
- package/prebuilt/darwin-x64/bundle.json +16 -0
- package/prebuilt/darwin-x64/fractalrag +0 -0
- package/prebuilt/darwin-x64/frag +0 -0
- package/prebuilt/darwin-x64/rago +0 -0
- package/prebuilt/darwin-x64/rg +0 -0
- package/prebuilt/linux-arm64/bundle.json +16 -0
- package/prebuilt/linux-arm64/fractalrag +0 -0
- package/prebuilt/linux-arm64/frag +0 -0
- package/prebuilt/linux-arm64/rago +0 -0
- package/prebuilt/linux-arm64/rg +0 -0
- package/prebuilt/linux-x64/bundle.json +16 -0
- package/prebuilt/linux-x64/fractalrag +0 -0
- package/prebuilt/linux-x64/frag +0 -0
- package/prebuilt/linux-x64/rago +0 -0
- package/prebuilt/linux-x64/rg +0 -0
- package/prebuilt/win32-x64/bundle.json +16 -0
- package/prebuilt/win32-x64/fractalrag.exe +0 -0
- package/prebuilt/win32-x64/frag.exe +0 -0
- package/prebuilt/win32-x64/rago.exe +0 -0
- package/prebuilt/win32-x64/rg.exe +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RAGO Agent — native MCP for local-first retrieval
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Run the same npm package on supported Windows, macOS and Linux machines:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx --yes @human-agent/rago
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The command starts the RAGO native Rust Agent on `127.0.0.1:47743` and prints a one-time local pairing code. No RAGO account or internet connection is needed **after the package has been installed**. Folder permissions are granted through the native on-device picker, not by arbitrary MCP callers or webpage parameters.
|
|
10
|
+
|
|
11
|
+
For a local MCP client that supports stdio, configure:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{"command":"npx","args":["--yes","@human-agent/rago","--mcp-stdio"]}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
On first use after upgrading from a pre-identity RAGO QA bundle, reapprove existing folders through the on-device picker; old grants fail closed and their indexes are not reused.\n\nThe MCP server offers separate BM25, FractalRAG and ripgrep search tools; the host LLM chooses a tool. Each request names an actual device and native absolute path; the Rust Agent restricts access to human-approved folders and their requested subtrees. The relay and Siglet login are optional and are not required for local operation.
|
|
18
|
+
|
|
19
|
+
The package embeds native RAGO, FractalRAG and ripgrep binaries for `win32-x64`, `darwin-x64`, `darwin-arm64`, `linux-x64` and `linux-arm64`. FractalRAG and ripgrep third-party license notices are included in `notices/`. There are no install-time download/build scripts. Install or cache this package first if you intend to work offline.
|
|
20
|
+
|
|
21
|
+
For an interactive version check, run `npx --yes @human-agent/rago --check-bundle`. To configure a local browser session, start the Agent normally and use the one-time pairing code in the RAGO static frontend. The code is local-only and must not be shared with a remote website.
|
package/bin/frag.cjs
ADDED
package/bin/launch.cjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const { spawn } = require("node:child_process");
|
|
3
|
+
const { existsSync } = require("node:fs");
|
|
4
|
+
const { join } = require("node:path");
|
|
5
|
+
|
|
6
|
+
const targets = new Set(["win32-x64", "darwin-x64", "darwin-arm64", "linux-x64", "linux-arm64"]);
|
|
7
|
+
|
|
8
|
+
function binaryPath(command, platform = process.platform, arch = process.arch) {
|
|
9
|
+
const target = platform + "-" + arch;
|
|
10
|
+
if (!targets.has(target)) {
|
|
11
|
+
throw new Error("Unsupported RAGO platform: " + target);
|
|
12
|
+
}
|
|
13
|
+
const executable = command + (platform === "win32" ? ".exe" : "");
|
|
14
|
+
return join(__dirname, "..", "prebuilt", target, executable);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function launch(command) {
|
|
18
|
+
try {
|
|
19
|
+
const executable = binaryPath(command);
|
|
20
|
+
if (!existsSync(executable)) {
|
|
21
|
+
throw new Error("Native RAGO bundle is missing: " + process.platform + "-" + process.arch);
|
|
22
|
+
}
|
|
23
|
+
const child = spawn(executable, process.argv.slice(2), { stdio: "inherit", windowsHide: true });
|
|
24
|
+
child.on("error", (error) => {
|
|
25
|
+
process.stderr.write("RAGO launch failed: " + error.message + "\n");
|
|
26
|
+
process.exitCode = 1;
|
|
27
|
+
});
|
|
28
|
+
child.on("exit", (code, signal) => {
|
|
29
|
+
process.exitCode = code === null ? (signal ? 1 : 0) : code;
|
|
30
|
+
});
|
|
31
|
+
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
32
|
+
process.on(signal, () => {
|
|
33
|
+
if (!child.killed) {
|
|
34
|
+
child.kill(signal);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
} catch (error) {
|
|
39
|
+
process.stderr.write("RAGO: " + error.message + "\n");
|
|
40
|
+
process.exitCode = 1;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = { binaryPath, launch };
|
package/bin/rago.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VDG Solutions
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Andrew Gallant
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <http://unlicense.org/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@human-agent/rago",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "RAGO native MCP and local-first retrieval for Windows, macOS and Linux",
|
|
5
|
+
"bin": {
|
|
6
|
+
"rago": "bin/rago.cjs",
|
|
7
|
+
"fractalrag": "bin/fractalrag.cjs",
|
|
8
|
+
"frag": "bin/frag.cjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/*.cjs",
|
|
12
|
+
"prebuilt/**",
|
|
13
|
+
"notices/**",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prepack": "node scripts/verify.cjs"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"target": "darwin-arm64",
|
|
4
|
+
"rago": {
|
|
5
|
+
"sha256": "924e02f78a89bb5d86026e34c8249d7df0d13254e4bcd41fe603a66f426f9513"
|
|
6
|
+
},
|
|
7
|
+
"fractalrag": {
|
|
8
|
+
"sha256": "4bbb122ecca0191530e1c5c696f0d4b8d73d40dbb4f25e3c10ff85ac1bac9501"
|
|
9
|
+
},
|
|
10
|
+
"frag": {
|
|
11
|
+
"sha256": "2470521cb5a7f0da4c6e921b35c581f61e675ecd4f1af9f1ddaf1fe9492ea2a7"
|
|
12
|
+
},
|
|
13
|
+
"ripgrep": {
|
|
14
|
+
"sha256": "d8335e316eb567660ea76eaabf1d827ea0092d8ec9bbcc85dd0b951fa0556029"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"target": "darwin-x64",
|
|
4
|
+
"rago": {
|
|
5
|
+
"sha256": "c5df30a8d3d50dfab744d2c3831517b054614e71d0436eae92fcb7b1a8e185e8"
|
|
6
|
+
},
|
|
7
|
+
"fractalrag": {
|
|
8
|
+
"sha256": "0b53396d38789ddbf65aefd69abbfcb1f6620dd50b988778ca02824a5b8d96bb"
|
|
9
|
+
},
|
|
10
|
+
"frag": {
|
|
11
|
+
"sha256": "68019547bd4ce277de38941dbbb9d7cf53f9c9466044d9b36f429a156e62537e"
|
|
12
|
+
},
|
|
13
|
+
"ripgrep": {
|
|
14
|
+
"sha256": "85c546cb08b1086610945a723bc27e5bb58a34ee928eaafb00ca78adef6596d7"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"target": "linux-arm64",
|
|
4
|
+
"rago": {
|
|
5
|
+
"sha256": "ba1c1da36d2d4dc5f938a8b1688580d4becc333566d6f723601da0b952217710"
|
|
6
|
+
},
|
|
7
|
+
"fractalrag": {
|
|
8
|
+
"sha256": "f9cdd7f5d6752965d3ff11a61815e418e2391d9f00669a2ba9b425f84fdcf898"
|
|
9
|
+
},
|
|
10
|
+
"frag": {
|
|
11
|
+
"sha256": "64e3ab772a83bfaff1d6fb2cbbe4daae3525d68ea8c7989c527c15bd2396725f"
|
|
12
|
+
},
|
|
13
|
+
"ripgrep": {
|
|
14
|
+
"sha256": "6f019a99b6fecc2b45c0d8b0dbbb243811d4c24fc7e1ed10949bbb07a6cdb69f"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"target": "linux-x64",
|
|
4
|
+
"rago": {
|
|
5
|
+
"sha256": "24b9f88804404135e1635a7c5121a47797f56e92f330b9e0cdc5d3b0d6f06b17"
|
|
6
|
+
},
|
|
7
|
+
"fractalrag": {
|
|
8
|
+
"sha256": "3f60820ded12c45fcd58876b632af0412ad5eef659bd342b953243effd3493ff"
|
|
9
|
+
},
|
|
10
|
+
"frag": {
|
|
11
|
+
"sha256": "6f9e1f84021b68e8fb0ccc980fe68912491f1d3c8c1f46344f9669bed049dbed"
|
|
12
|
+
},
|
|
13
|
+
"ripgrep": {
|
|
14
|
+
"sha256": "e960e58966965f212650aaa6ee330f505c954d5c7712b497e322ee4eda7030db"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"target": "win32-x64",
|
|
4
|
+
"rago": {
|
|
5
|
+
"sha256": "a09531283f0949f8423f8f6a6d41e2c571632466bf60c71c61cfd4bf013ea596"
|
|
6
|
+
},
|
|
7
|
+
"fractalrag": {
|
|
8
|
+
"sha256": "24bfc0eb18a3c060a2d44d3c203095200c6f90cde8254873b16929a2820c6356"
|
|
9
|
+
},
|
|
10
|
+
"frag": {
|
|
11
|
+
"sha256": "ae824c5b4e91204c5dd0d0ce89cbbf0c479d25668da723a432408e432ca0e420"
|
|
12
|
+
},
|
|
13
|
+
"ripgrep": {
|
|
14
|
+
"sha256": "723228522320d876e732e041a8525ea4f2e63bc056856f0d731b8742111716c4"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|