rigorxrigor 0.1.0__tar.gz
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.
- rigorxrigor-0.1.0/.gitignore +41 -0
- rigorxrigor-0.1.0/PKG-INFO +103 -0
- rigorxrigor-0.1.0/README.md +83 -0
- rigorxrigor-0.1.0/__init__.py +0 -0
- rigorxrigor-0.1.0/pyproject.toml +37 -0
- rigorxrigor-0.1.0/rigorxrigor/__init__.py +2 -0
- rigorxrigor-0.1.0/rigorxrigor/cli.py +504 -0
- rigorxrigor-0.1.0/rigorxrigor/client.py +182 -0
- rigorxrigor-0.1.0/rigorxrigor/config.py +87 -0
- rigorxrigor-0.1.0/rigorxrigor/login.py +163 -0
- rigorxrigor-0.1.0/rigorxrigor/workos.py +102 -0
- rigorxrigor-0.1.0/rxr +4 -0
- rigorxrigor-0.1.0/rxr.py +2560 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
*.pyo
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.mypy_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
*.egg-info/
|
|
9
|
+
.venv/
|
|
10
|
+
venv/
|
|
11
|
+
|
|
12
|
+
# Frontend (extra safety; frontend/.gitignore also covers these)
|
|
13
|
+
node_modules/
|
|
14
|
+
dist/
|
|
15
|
+
.vite/
|
|
16
|
+
|
|
17
|
+
# Local-only data snapshots
|
|
18
|
+
data/index/
|
|
19
|
+
data/deep_match_log.jsonl
|
|
20
|
+
data/eval/run_*.json
|
|
21
|
+
|
|
22
|
+
# Bulk-ingested shards: regenerable from scripts/bulk_ingest.py.
|
|
23
|
+
# Only the committed seed shard + .gitkeep ride along in the repo.
|
|
24
|
+
data/ingested/*.json
|
|
25
|
+
!data/ingested/seed.json
|
|
26
|
+
data/ingest_manifest.jsonl
|
|
27
|
+
|
|
28
|
+
# Editor / OS
|
|
29
|
+
.DS_Store
|
|
30
|
+
.idea/
|
|
31
|
+
.vscode/
|
|
32
|
+
*.swp
|
|
33
|
+
|
|
34
|
+
# Logs
|
|
35
|
+
*.log
|
|
36
|
+
|
|
37
|
+
# Old launcher shim (kept for back-compat; not tracked)
|
|
38
|
+
cli/mg
|
|
39
|
+
|
|
40
|
+
# Local Netlify folder
|
|
41
|
+
.netlify
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rigorxrigor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: RigorXRigor CLI: verify, prove, and discover mathematics from any agent.
|
|
5
|
+
Project-URL: Homepage, https://app.rigorxrigor.com
|
|
6
|
+
Project-URL: Documentation, https://app.rigorxrigor.com
|
|
7
|
+
Author: RigorXRigor
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Keywords: agent,knowledge-graph,llm,math,verification
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Requires-Dist: httpx>=0.27
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
18
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# rigorxrigor
|
|
22
|
+
|
|
23
|
+
CLI for [RigorXRigor](https://app.rigorxrigor.com), a machine-verified
|
|
24
|
+
knowledge graph of mathematics. Designed for agents and humans alike.
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pipx install rigorxrigor
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Or run one-shot without installing:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
uvx rigorxrigor verify 'sin^2(x) + cos^2(x) = 1'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Sign in
|
|
39
|
+
|
|
40
|
+
Planned before the public PyPI release: first-time users and agents will be
|
|
41
|
+
able to create a free account from the CLI:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
rigorxrigor signup
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
This will open the WorkOS signup page in your browser, return to the local CLI
|
|
48
|
+
callback, and store tokens in `~/.rigorxrigor/auth.json`.
|
|
49
|
+
|
|
50
|
+
For browserless environments:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
rigorxrigor signup --no-browser
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Open the printed URL manually to complete signup.
|
|
57
|
+
|
|
58
|
+
Existing users can sign in with:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
rigorxrigor login
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
This opens your browser, sends you through RigorXRigor sign-in, drops you back
|
|
65
|
+
to a "you can close this window" page, and saves your access token to
|
|
66
|
+
`~/.rigorxrigor/auth.json`.
|
|
67
|
+
|
|
68
|
+
## Usage
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
rigorxrigor status
|
|
72
|
+
rigorxrigor verify 'sin^2(x) + cos^2(x) = 1'
|
|
73
|
+
rigorxrigor search "logarithm"
|
|
74
|
+
rigorxrigor rag "kepler's third law" -k 5 --hops 2
|
|
75
|
+
rigorxrigor show eq_pythagorean
|
|
76
|
+
rigorxrigor whoami
|
|
77
|
+
rigorxrigor logout
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Exit codes mirror the local `rxr` tool:
|
|
81
|
+
|
|
82
|
+
- `0` verified / success
|
|
83
|
+
- `1` not verified
|
|
84
|
+
- `2` usage error
|
|
85
|
+
- `3` backend error / auth error
|
|
86
|
+
|
|
87
|
+
## Configuration
|
|
88
|
+
|
|
89
|
+
`~/.rigorxrigor/auth.json` holds your tokens. Override the API server with:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
RXR_API_URL=https://api.rigorxrigor.com # default
|
|
93
|
+
RIGORXRIGOR_API=https://api.rigorxrigor.com # also supported
|
|
94
|
+
RIGORXRIGOR_AUTH=~/.rigorxrigor/auth.json # default
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
The browser login callback listens on `http://127.0.0.1:8765/callback` by
|
|
98
|
+
default. Override the port with `RIGORXRIGOR_LOGIN_PORT` if needed.
|
|
99
|
+
|
|
100
|
+
## Local mode
|
|
101
|
+
|
|
102
|
+
This package talks to the cloud API. For fully offline / in-process work, use
|
|
103
|
+
the `rxr` tool from a RigorXRigor checkout.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# rigorxrigor
|
|
2
|
+
|
|
3
|
+
CLI for [RigorXRigor](https://app.rigorxrigor.com), a machine-verified
|
|
4
|
+
knowledge graph of mathematics. Designed for agents and humans alike.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pipx install rigorxrigor
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Or run one-shot without installing:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
uvx rigorxrigor verify 'sin^2(x) + cos^2(x) = 1'
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Sign in
|
|
19
|
+
|
|
20
|
+
Planned before the public PyPI release: first-time users and agents will be
|
|
21
|
+
able to create a free account from the CLI:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
rigorxrigor signup
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This will open the WorkOS signup page in your browser, return to the local CLI
|
|
28
|
+
callback, and store tokens in `~/.rigorxrigor/auth.json`.
|
|
29
|
+
|
|
30
|
+
For browserless environments:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
rigorxrigor signup --no-browser
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Open the printed URL manually to complete signup.
|
|
37
|
+
|
|
38
|
+
Existing users can sign in with:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
rigorxrigor login
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This opens your browser, sends you through RigorXRigor sign-in, drops you back
|
|
45
|
+
to a "you can close this window" page, and saves your access token to
|
|
46
|
+
`~/.rigorxrigor/auth.json`.
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
rigorxrigor status
|
|
52
|
+
rigorxrigor verify 'sin^2(x) + cos^2(x) = 1'
|
|
53
|
+
rigorxrigor search "logarithm"
|
|
54
|
+
rigorxrigor rag "kepler's third law" -k 5 --hops 2
|
|
55
|
+
rigorxrigor show eq_pythagorean
|
|
56
|
+
rigorxrigor whoami
|
|
57
|
+
rigorxrigor logout
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Exit codes mirror the local `rxr` tool:
|
|
61
|
+
|
|
62
|
+
- `0` verified / success
|
|
63
|
+
- `1` not verified
|
|
64
|
+
- `2` usage error
|
|
65
|
+
- `3` backend error / auth error
|
|
66
|
+
|
|
67
|
+
## Configuration
|
|
68
|
+
|
|
69
|
+
`~/.rigorxrigor/auth.json` holds your tokens. Override the API server with:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
RXR_API_URL=https://api.rigorxrigor.com # default
|
|
73
|
+
RIGORXRIGOR_API=https://api.rigorxrigor.com # also supported
|
|
74
|
+
RIGORXRIGOR_AUTH=~/.rigorxrigor/auth.json # default
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The browser login callback listens on `http://127.0.0.1:8765/callback` by
|
|
78
|
+
default. Override the port with `RIGORXRIGOR_LOGIN_PORT` if needed.
|
|
79
|
+
|
|
80
|
+
## Local mode
|
|
81
|
+
|
|
82
|
+
This package talks to the cloud API. For fully offline / in-process work, use
|
|
83
|
+
the `rxr` tool from a RigorXRigor checkout.
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "rigorxrigor"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "RigorXRigor CLI: verify, prove, and discover mathematics from any agent."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10"
|
|
7
|
+
license = { text = "Apache-2.0" }
|
|
8
|
+
authors = [{ name = "RigorXRigor" }]
|
|
9
|
+
keywords = ["math", "knowledge-graph", "llm", "agent", "verification"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Programming Language :: Python :: 3",
|
|
12
|
+
"License :: OSI Approved :: Apache Software License",
|
|
13
|
+
"Topic :: Scientific/Engineering :: Mathematics",
|
|
14
|
+
"Environment :: Console",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
dependencies = [
|
|
18
|
+
"httpx>=0.27",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.optional-dependencies]
|
|
22
|
+
dev = ["pytest>=8.0", "ruff>=0.6"]
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
rigorxrigor = "rigorxrigor.cli:main"
|
|
26
|
+
rxr-cloud = "rigorxrigor.cli:main"
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://app.rigorxrigor.com"
|
|
30
|
+
Documentation = "https://app.rigorxrigor.com"
|
|
31
|
+
|
|
32
|
+
[build-system]
|
|
33
|
+
requires = ["hatchling"]
|
|
34
|
+
build-backend = "hatchling.build"
|
|
35
|
+
|
|
36
|
+
[tool.hatch.build.targets.wheel]
|
|
37
|
+
packages = ["rigorxrigor"]
|