sipi-bot 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.
- sipi_bot-0.1.0/LICENSE +21 -0
- sipi_bot-0.1.0/PKG-INFO +109 -0
- sipi_bot-0.1.0/README.md +84 -0
- sipi_bot-0.1.0/pyproject.toml +38 -0
- sipi_bot-0.1.0/setup.cfg +4 -0
- sipi_bot-0.1.0/sipi_bot.egg-info/PKG-INFO +109 -0
- sipi_bot-0.1.0/sipi_bot.egg-info/SOURCES.txt +21 -0
- sipi_bot-0.1.0/sipi_bot.egg-info/dependency_links.txt +1 -0
- sipi_bot-0.1.0/sipi_bot.egg-info/entry_points.txt +2 -0
- sipi_bot-0.1.0/sipi_bot.egg-info/requires.txt +3 -0
- sipi_bot-0.1.0/sipi_bot.egg-info/top_level.txt +1 -0
- sipi_bot-0.1.0/spendfirewall/__init__.py +8 -0
- sipi_bot-0.1.0/spendfirewall/api.py +409 -0
- sipi_bot-0.1.0/spendfirewall/billing.py +208 -0
- sipi_bot-0.1.0/spendfirewall/cli.py +57 -0
- sipi_bot-0.1.0/spendfirewall/core.py +70 -0
- sipi_bot-0.1.0/spendfirewall/engine.py +247 -0
- sipi_bot-0.1.0/spendfirewall/eval/__init__.py +0 -0
- sipi_bot-0.1.0/spendfirewall/eval/eval_scenarios.py +182 -0
- sipi_bot-0.1.0/spendfirewall/eval/run_eval.py +171 -0
- sipi_bot-0.1.0/spendfirewall/mcp_server.py +62 -0
- sipi_bot-0.1.0/spendfirewall/store.py +297 -0
- sipi_bot-0.1.0/spendfirewall/templates.py +635 -0
sipi_bot-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sipi (sipi.bot)
|
|
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.
|
sipi_bot-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sipi-bot
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The spend firewall for autonomous AI agents — approve, block, or flag every transaction before a dollar moves.
|
|
5
|
+
Author-email: Sipi <sales@sipiteno.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://sipi.bot
|
|
8
|
+
Project-URL: Repository, https://github.com/kindrat86/sipi-bot
|
|
9
|
+
Project-URL: Live Dashboard, https://sipi.bot/dashboard
|
|
10
|
+
Project-URL: Eval Report, https://sipi.bot/eval
|
|
11
|
+
Keywords: ai-agents,agent-economy,mcp,spend-control,guardrails,agent-safety,x402,autonomous-agents
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Security
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Provides-Extra: mcp
|
|
23
|
+
Requires-Dist: mcp>=1.0.0; extra == "mcp"
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# sipi.bot — the spend firewall for autonomous AI agents
|
|
27
|
+
|
|
28
|
+
> You gave an autonomous agent your credit card and no spending limit.
|
|
29
|
+
> **sipi.bot** is the firewall that approves, blocks, or flags every
|
|
30
|
+
> transaction against *your* rules — before a single dollar moves.
|
|
31
|
+
|
|
32
|
+
One capability, three surfaces:
|
|
33
|
+
|
|
34
|
+
- **MCP tool** — Claude Code / Cursor / Hermes call `evaluate_spend` natively.
|
|
35
|
+
- **HTTP API** — any agent `POST /v1/transactions/evaluate`.
|
|
36
|
+
- **CLI** — verify without an agent.
|
|
37
|
+
|
|
38
|
+
## 10-second test
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install sipi-bot
|
|
42
|
+
sipi-bot eval --amount 6200 --merchant unknown-gpu.ru --category compute
|
|
43
|
+
# -> {"decision": "BLOCKED", "reason": "Transaction $6,200.00 exceeds per-transaction limit $500.00."}
|
|
44
|
+
|
|
45
|
+
sipi-bot serve --port 8080 # landing + dashboard + API
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Or from source:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
python3.11 -m spendfirewall.cli eval --amount 6200 --merchant unknown-gpu.ru --category compute
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Then open http://localhost:8080 (landing), http://localhost:8080/dashboard (control room), http://localhost:8080/pricing (Team $99 / Business $499).
|
|
55
|
+
|
|
56
|
+
**Hosted:** [sipi.bot](https://sipi.bot) · [dashboard](https://sipi.bot/dashboard) · [get an API key →](https://sipi.bot/pricing)
|
|
57
|
+
|
|
58
|
+
## The core call an agent makes before spending
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
curl -X POST https://sipi.bot/v1/transactions/evaluate \
|
|
62
|
+
-H "Authorization: Bearer sk_live_..." \
|
|
63
|
+
-d '{"amount": 6200, "merchant": "unknown-gpu.ru", "category": "compute"}'
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Returns one of: `APPROVED` (go), `BLOCKED` (do not spend), `FLAGGED` (human must approve).
|
|
67
|
+
|
|
68
|
+
## Rule types
|
|
69
|
+
|
|
70
|
+
`per_transaction`, `daily_total`, `velocity` (runaway protection), `merchant_block`,
|
|
71
|
+
`merchant_allow` (allowlist), `category_limit`, `time_window`, `approval_threshold`.
|
|
72
|
+
|
|
73
|
+
First `BLOCKED` wins. `FLAGGED` is non-blocking (queued for human approval).
|
|
74
|
+
|
|
75
|
+
## Eval gym (the guarantee + the sales asset)
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
python3.11 -m spendfirewall.eval.run_eval # 53 scenarios -> eval_report.json + .md
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
53/53 passing. Served live at `/eval`. This is what backs the guarantee:
|
|
82
|
+
*if the firewall green-lights a spend that breaks your rule, that month is free.*
|
|
83
|
+
|
|
84
|
+
## MCP config
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{ "mcpServers": { "sipi-bot": { "command": "python", "args": ["-m", "spendfirewall.mcp_server"] } } }
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Framework integrations
|
|
91
|
+
|
|
92
|
+
Drop-in "spend guardrails" recipes — each verified live against https://sipi.bot:
|
|
93
|
+
|
|
94
|
+
- [LangChain & CrewAI](integrations/SPEND_GUARDRAILS_RECIPE.md) — `@tool` / `BaseTool` wrappers + zero-dep `sipi_guard.py` client
|
|
95
|
+
- [OpenAI Agents SDK](integrations/openai-agents-sdk.md) — `@function_tool` guard
|
|
96
|
+
- [Vercel AI SDK](integrations/vercel-ai-sdk.md) — `tool({execute})` guard + `sipiGuard.ts` client
|
|
97
|
+
|
|
98
|
+
The core call is always the same: `evaluate(amount, merchant, category)` → `APPROVED` / `BLOCKED` / `FLAGGED`.
|
|
99
|
+
|
|
100
|
+
## Deploy (Fly.io)
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
flyctl launch --no-deploy --copy-config --name sipi-bot-firewall
|
|
104
|
+
flyctl volumes create sf_data --size 1 --region iad --yes
|
|
105
|
+
flyctl deploy
|
|
106
|
+
flyctl certs add sipi.bot
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Stdlib-only (http.server, sqlite3). No framework, trivial deploy. `pip install mcp` only for the MCP surface.
|
sipi_bot-0.1.0/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# sipi.bot — the spend firewall for autonomous AI agents
|
|
2
|
+
|
|
3
|
+
> You gave an autonomous agent your credit card and no spending limit.
|
|
4
|
+
> **sipi.bot** is the firewall that approves, blocks, or flags every
|
|
5
|
+
> transaction against *your* rules — before a single dollar moves.
|
|
6
|
+
|
|
7
|
+
One capability, three surfaces:
|
|
8
|
+
|
|
9
|
+
- **MCP tool** — Claude Code / Cursor / Hermes call `evaluate_spend` natively.
|
|
10
|
+
- **HTTP API** — any agent `POST /v1/transactions/evaluate`.
|
|
11
|
+
- **CLI** — verify without an agent.
|
|
12
|
+
|
|
13
|
+
## 10-second test
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install sipi-bot
|
|
17
|
+
sipi-bot eval --amount 6200 --merchant unknown-gpu.ru --category compute
|
|
18
|
+
# -> {"decision": "BLOCKED", "reason": "Transaction $6,200.00 exceeds per-transaction limit $500.00."}
|
|
19
|
+
|
|
20
|
+
sipi-bot serve --port 8080 # landing + dashboard + API
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or from source:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
python3.11 -m spendfirewall.cli eval --amount 6200 --merchant unknown-gpu.ru --category compute
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then open http://localhost:8080 (landing), http://localhost:8080/dashboard (control room), http://localhost:8080/pricing (Team $99 / Business $499).
|
|
30
|
+
|
|
31
|
+
**Hosted:** [sipi.bot](https://sipi.bot) · [dashboard](https://sipi.bot/dashboard) · [get an API key →](https://sipi.bot/pricing)
|
|
32
|
+
|
|
33
|
+
## The core call an agent makes before spending
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
curl -X POST https://sipi.bot/v1/transactions/evaluate \
|
|
37
|
+
-H "Authorization: Bearer sk_live_..." \
|
|
38
|
+
-d '{"amount": 6200, "merchant": "unknown-gpu.ru", "category": "compute"}'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Returns one of: `APPROVED` (go), `BLOCKED` (do not spend), `FLAGGED` (human must approve).
|
|
42
|
+
|
|
43
|
+
## Rule types
|
|
44
|
+
|
|
45
|
+
`per_transaction`, `daily_total`, `velocity` (runaway protection), `merchant_block`,
|
|
46
|
+
`merchant_allow` (allowlist), `category_limit`, `time_window`, `approval_threshold`.
|
|
47
|
+
|
|
48
|
+
First `BLOCKED` wins. `FLAGGED` is non-blocking (queued for human approval).
|
|
49
|
+
|
|
50
|
+
## Eval gym (the guarantee + the sales asset)
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
python3.11 -m spendfirewall.eval.run_eval # 53 scenarios -> eval_report.json + .md
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
53/53 passing. Served live at `/eval`. This is what backs the guarantee:
|
|
57
|
+
*if the firewall green-lights a spend that breaks your rule, that month is free.*
|
|
58
|
+
|
|
59
|
+
## MCP config
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{ "mcpServers": { "sipi-bot": { "command": "python", "args": ["-m", "spendfirewall.mcp_server"] } } }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Framework integrations
|
|
66
|
+
|
|
67
|
+
Drop-in "spend guardrails" recipes — each verified live against https://sipi.bot:
|
|
68
|
+
|
|
69
|
+
- [LangChain & CrewAI](integrations/SPEND_GUARDRAILS_RECIPE.md) — `@tool` / `BaseTool` wrappers + zero-dep `sipi_guard.py` client
|
|
70
|
+
- [OpenAI Agents SDK](integrations/openai-agents-sdk.md) — `@function_tool` guard
|
|
71
|
+
- [Vercel AI SDK](integrations/vercel-ai-sdk.md) — `tool({execute})` guard + `sipiGuard.ts` client
|
|
72
|
+
|
|
73
|
+
The core call is always the same: `evaluate(amount, merchant, category)` → `APPROVED` / `BLOCKED` / `FLAGGED`.
|
|
74
|
+
|
|
75
|
+
## Deploy (Fly.io)
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
flyctl launch --no-deploy --copy-config --name sipi-bot-firewall
|
|
79
|
+
flyctl volumes create sf_data --size 1 --region iad --yes
|
|
80
|
+
flyctl deploy
|
|
81
|
+
flyctl certs add sipi.bot
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Stdlib-only (http.server, sqlite3). No framework, trivial deploy. `pip install mcp` only for the MCP surface.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sipi-bot"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "The spend firewall for autonomous AI agents — approve, block, or flag every transaction before a dollar moves."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
authors = [{ name = "Sipi", email = "sales@sipiteno.com" }]
|
|
13
|
+
keywords = ["ai-agents", "agent-economy", "mcp", "spend-control", "guardrails", "agent-safety", "x402", "autonomous-agents"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Topic :: Software Development :: Libraries",
|
|
21
|
+
"Topic :: Security",
|
|
22
|
+
]
|
|
23
|
+
dependencies = []
|
|
24
|
+
|
|
25
|
+
[project.optional-dependencies]
|
|
26
|
+
mcp = ["mcp>=1.0.0"]
|
|
27
|
+
|
|
28
|
+
[project.scripts]
|
|
29
|
+
sipi-bot = "spendfirewall.cli:main"
|
|
30
|
+
|
|
31
|
+
[project.urls]
|
|
32
|
+
Homepage = "https://sipi.bot"
|
|
33
|
+
Repository = "https://github.com/kindrat86/sipi-bot"
|
|
34
|
+
"Live Dashboard" = "https://sipi.bot/dashboard"
|
|
35
|
+
"Eval Report" = "https://sipi.bot/eval"
|
|
36
|
+
|
|
37
|
+
[tool.setuptools.packages.find]
|
|
38
|
+
include = ["spendfirewall*"]
|
sipi_bot-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sipi-bot
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The spend firewall for autonomous AI agents — approve, block, or flag every transaction before a dollar moves.
|
|
5
|
+
Author-email: Sipi <sales@sipiteno.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://sipi.bot
|
|
8
|
+
Project-URL: Repository, https://github.com/kindrat86/sipi-bot
|
|
9
|
+
Project-URL: Live Dashboard, https://sipi.bot/dashboard
|
|
10
|
+
Project-URL: Eval Report, https://sipi.bot/eval
|
|
11
|
+
Keywords: ai-agents,agent-economy,mcp,spend-control,guardrails,agent-safety,x402,autonomous-agents
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Security
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Provides-Extra: mcp
|
|
23
|
+
Requires-Dist: mcp>=1.0.0; extra == "mcp"
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# sipi.bot — the spend firewall for autonomous AI agents
|
|
27
|
+
|
|
28
|
+
> You gave an autonomous agent your credit card and no spending limit.
|
|
29
|
+
> **sipi.bot** is the firewall that approves, blocks, or flags every
|
|
30
|
+
> transaction against *your* rules — before a single dollar moves.
|
|
31
|
+
|
|
32
|
+
One capability, three surfaces:
|
|
33
|
+
|
|
34
|
+
- **MCP tool** — Claude Code / Cursor / Hermes call `evaluate_spend` natively.
|
|
35
|
+
- **HTTP API** — any agent `POST /v1/transactions/evaluate`.
|
|
36
|
+
- **CLI** — verify without an agent.
|
|
37
|
+
|
|
38
|
+
## 10-second test
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install sipi-bot
|
|
42
|
+
sipi-bot eval --amount 6200 --merchant unknown-gpu.ru --category compute
|
|
43
|
+
# -> {"decision": "BLOCKED", "reason": "Transaction $6,200.00 exceeds per-transaction limit $500.00."}
|
|
44
|
+
|
|
45
|
+
sipi-bot serve --port 8080 # landing + dashboard + API
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Or from source:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
python3.11 -m spendfirewall.cli eval --amount 6200 --merchant unknown-gpu.ru --category compute
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Then open http://localhost:8080 (landing), http://localhost:8080/dashboard (control room), http://localhost:8080/pricing (Team $99 / Business $499).
|
|
55
|
+
|
|
56
|
+
**Hosted:** [sipi.bot](https://sipi.bot) · [dashboard](https://sipi.bot/dashboard) · [get an API key →](https://sipi.bot/pricing)
|
|
57
|
+
|
|
58
|
+
## The core call an agent makes before spending
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
curl -X POST https://sipi.bot/v1/transactions/evaluate \
|
|
62
|
+
-H "Authorization: Bearer sk_live_..." \
|
|
63
|
+
-d '{"amount": 6200, "merchant": "unknown-gpu.ru", "category": "compute"}'
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Returns one of: `APPROVED` (go), `BLOCKED` (do not spend), `FLAGGED` (human must approve).
|
|
67
|
+
|
|
68
|
+
## Rule types
|
|
69
|
+
|
|
70
|
+
`per_transaction`, `daily_total`, `velocity` (runaway protection), `merchant_block`,
|
|
71
|
+
`merchant_allow` (allowlist), `category_limit`, `time_window`, `approval_threshold`.
|
|
72
|
+
|
|
73
|
+
First `BLOCKED` wins. `FLAGGED` is non-blocking (queued for human approval).
|
|
74
|
+
|
|
75
|
+
## Eval gym (the guarantee + the sales asset)
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
python3.11 -m spendfirewall.eval.run_eval # 53 scenarios -> eval_report.json + .md
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
53/53 passing. Served live at `/eval`. This is what backs the guarantee:
|
|
82
|
+
*if the firewall green-lights a spend that breaks your rule, that month is free.*
|
|
83
|
+
|
|
84
|
+
## MCP config
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{ "mcpServers": { "sipi-bot": { "command": "python", "args": ["-m", "spendfirewall.mcp_server"] } } }
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Framework integrations
|
|
91
|
+
|
|
92
|
+
Drop-in "spend guardrails" recipes — each verified live against https://sipi.bot:
|
|
93
|
+
|
|
94
|
+
- [LangChain & CrewAI](integrations/SPEND_GUARDRAILS_RECIPE.md) — `@tool` / `BaseTool` wrappers + zero-dep `sipi_guard.py` client
|
|
95
|
+
- [OpenAI Agents SDK](integrations/openai-agents-sdk.md) — `@function_tool` guard
|
|
96
|
+
- [Vercel AI SDK](integrations/vercel-ai-sdk.md) — `tool({execute})` guard + `sipiGuard.ts` client
|
|
97
|
+
|
|
98
|
+
The core call is always the same: `evaluate(amount, merchant, category)` → `APPROVED` / `BLOCKED` / `FLAGGED`.
|
|
99
|
+
|
|
100
|
+
## Deploy (Fly.io)
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
flyctl launch --no-deploy --copy-config --name sipi-bot-firewall
|
|
104
|
+
flyctl volumes create sf_data --size 1 --region iad --yes
|
|
105
|
+
flyctl deploy
|
|
106
|
+
flyctl certs add sipi.bot
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Stdlib-only (http.server, sqlite3). No framework, trivial deploy. `pip install mcp` only for the MCP surface.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
sipi_bot.egg-info/PKG-INFO
|
|
5
|
+
sipi_bot.egg-info/SOURCES.txt
|
|
6
|
+
sipi_bot.egg-info/dependency_links.txt
|
|
7
|
+
sipi_bot.egg-info/entry_points.txt
|
|
8
|
+
sipi_bot.egg-info/requires.txt
|
|
9
|
+
sipi_bot.egg-info/top_level.txt
|
|
10
|
+
spendfirewall/__init__.py
|
|
11
|
+
spendfirewall/api.py
|
|
12
|
+
spendfirewall/billing.py
|
|
13
|
+
spendfirewall/cli.py
|
|
14
|
+
spendfirewall/core.py
|
|
15
|
+
spendfirewall/engine.py
|
|
16
|
+
spendfirewall/mcp_server.py
|
|
17
|
+
spendfirewall/store.py
|
|
18
|
+
spendfirewall/templates.py
|
|
19
|
+
spendfirewall/eval/__init__.py
|
|
20
|
+
spendfirewall/eval/eval_scenarios.py
|
|
21
|
+
spendfirewall/eval/run_eval.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
spendfirewall
|