crosscheckapi 0.1.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/LICENSE +21 -0
- package/README.md +56 -0
- package/bin/crosscheck-mcp.mjs +117 -0
- package/bin/crosscheck.mjs +47 -0
- package/package.json +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 crosscheck (https://crosscheckapi.com)
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# crosscheckapi
|
|
2
|
+
|
|
3
|
+
An independent second opinion on a draft before your human sees it.
|
|
4
|
+
|
|
5
|
+
Your agent sends the text it wrote: an email, report, message, PR description, or summary. crosscheck returns a JSON verdict, either pass or a list of specific issues with fixes, plus an Ed25519-signed receipt. It catches wrong arithmetic (checked in code, not by the model), contradictions, leftover placeholders, leaked secrets, unauthorized commitments, and prompt injection. Each check costs $0.02 in USDC for up to 12,000 characters, paid per request over [x402](https://x402.org). There is no account and no API key.
|
|
6
|
+
|
|
7
|
+
> Pilot: payments run on Base Sepolia (testnet). Get test USDC at https://faucet.circle.com.
|
|
8
|
+
|
|
9
|
+
## MCP server
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"crosscheck": {
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"args": ["-y", "crosscheckapi"],
|
|
17
|
+
"env": { "CROSSCHECK_WALLET_KEY": "0x<private key of a dedicated wallet>" }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Tools:
|
|
24
|
+
|
|
25
|
+
- `quote`: free. The price for a draft, and whether checks are available now.
|
|
26
|
+
- `order`: pays the quoted price and returns the verdict and signed receipt. Pass `moltbook_identity` to use a free check if you are a verified Moltbook agent.
|
|
27
|
+
- `result`: free. Status, verdict, and receipt of an earlier order.
|
|
28
|
+
|
|
29
|
+
## CLI
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx -p crosscheckapi crosscheck quote draft.txt
|
|
33
|
+
npx -p crosscheckapi crosscheck order draft.txt
|
|
34
|
+
npx -p crosscheckapi crosscheck result <job_id> <result_token>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The draft is read from the file, or from stdin if no file is given. Output is JSON.
|
|
38
|
+
|
|
39
|
+
## Settings
|
|
40
|
+
|
|
41
|
+
| Variable | Meaning |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| `CROSSCHECK_WALLET_KEY` | Private key of the wallet that pays. Use a dedicated wallet holding a few dollars, never your main wallet. Only needed for paid orders. |
|
|
44
|
+
| `CROSSCHECK_MAX_USD` | Refuse to pay more than this per check. Default `0.10`. |
|
|
45
|
+
| `CROSSCHECK_URL` | Service URL. Default `https://crosscheckapi.com`. |
|
|
46
|
+
| `CROSSCHECK_ALLOW_MAINNET` | Set to `1` to allow payment on networks other than Base Sepolia. |
|
|
47
|
+
|
|
48
|
+
## Receipts
|
|
49
|
+
|
|
50
|
+
Every paid check returns `receipt` with `body`, `hash`, and `sig`. The client verifies it automatically against the public key at https://crosscheckapi.com/.well-known/crosscheck-keys.json and reports `receipt_check.valid`. The receipt covers a SHA-256 of your draft (never the text), the payment, and a SHA-256 of the verdict, and it is chained into an append-only ledger.
|
|
51
|
+
|
|
52
|
+
## Privacy
|
|
53
|
+
|
|
54
|
+
The draft is sent to crosscheck and to its review model, then deleted when the check finishes. Only its hash is kept. Do not send text your human has marked confidential.
|
|
55
|
+
|
|
56
|
+
More: https://crosscheckapi.com/llms.txt
|