Skip to content

Commit e5e9fb3

Browse files
authored
Merge pull request #53 from omnuron/core-buyer-infra-cleanup
Refocus core package on buyer payment infrastructure
2 parents b0e344f + d527a41 commit e5e9fb3

113 files changed

Lines changed: 944 additions & 20728 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
.venv
2+
.env
3+
.env.*
4+
!.env.example
5+
*.env
6+
*.key
7+
*.pem
8+
*.p12
9+
*.pfx
10+
id_rsa
11+
id_ed25519
212
.mypy_cache
313
.pytest_cache
414
.ruff_cache
@@ -16,3 +26,6 @@ __pycache__
1626
*.pyc
1727
.pytype
1828
video/
29+
apps/ops-console/.next
30+
apps/ops-console/node_modules
31+
apps/ops-console/.npm-cache

.env.example

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ OMNICLAW_ENV=development
1818
OMNICLAW_LOG_LEVEL=INFO
1919

2020
# =============================================================================
21-
# Buyer / Seller Signing Key
21+
# Buyer Signing Key
2222
# =============================================================================
2323

24-
# Private key used by the SDK or Financial Policy Engine for allowed actions.
24+
# Private key used by the SDK or Financial Policy Engine for allowed buyer actions.
2525
# In production, use restricted infrastructure and secret management.
2626
OMNICLAW_PRIVATE_KEY=0x...
2727

@@ -77,52 +77,14 @@ OMNICLAW_NANOPAYMENTS_TOPUP_THRESHOLD=1.00
7777
OMNICLAW_NANOPAYMENTS_TOPUP_AMOUNT=10.00
7878
OMNICLAW_NANOPAYMENTS_MICRO_THRESHOLD=1.00
7979

80-
# Optional Gateway contract override for seller GatewayWalletBatched metadata.
80+
# Optional Gateway contract override for GatewayWalletBatched metadata.
8181
CIRCLE_GATEWAY_CONTRACT=
8282

83-
# =============================================================================
84-
# Vendor / Enterprise SDK Seller
85-
# =============================================================================
86-
87-
# Vendor wallet that receives seller payments.
88-
SELLER_ADDRESS=0x...
89-
90-
# Default Circle seller path:
91-
# payment=client.sell("$0.25", seller_address=os.environ["SELLER_ADDRESS"])
92-
93-
# Thirdweb managed x402 seller path:
94-
# payment=client.sell("$0.25", seller_address=os.environ["SELLER_ADDRESS"], facilitator="thirdweb")
95-
THIRDWEB_SECRET_KEY=
96-
THIRDWEB_SERVER_WALLET_ADDRESS=
97-
THIRDWEB_X402_NETWORK=base-sepolia
98-
99-
# OmniClaw self-hosted exact seller path:
100-
# payment=client.sell("$0.25", seller_address=os.environ["SELLER_ADDRESS"], facilitator="omniclaw")
101-
OMNICLAW_X402_SELF_HOSTED_FACILITATOR_URL=http://127.0.0.1:4022
102-
OMNICLAW_X402_EXACT_NETWORK_PROFILE=ARC-TESTNET
103-
104-
# =============================================================================
105-
# Self-Hosted Exact Facilitator
106-
# =============================================================================
107-
108-
# Run with:
109-
# omniclaw facilitator exact --network-profile ARC-TESTNET --port 4022
110-
OMNICLAW_X402_FACILITATOR_PRIVATE_KEY=0x...
111-
OMNICLAW_X402_FACILITATOR_NETWORK_PROFILE=ARC-TESTNET
112-
OMNICLAW_X402_FACILITATOR_RPC_URL=https://rpc.testnet.arc.network
113-
OMNICLAW_X402_FACILITATOR_NETWORKS=eip155:5042002
114-
OMNICLAW_X402_FACILITATOR_HOST=0.0.0.0
115-
OMNICLAW_X402_FACILITATOR_PORT=4022
116-
11783
# =============================================================================
11884
# Production Hardening
11985
# =============================================================================
12086

121-
# Required for production seller replay protection.
122-
OMNICLAW_SELLER_NONCE_REDIS_URL=redis://localhost:6379/1
123-
OMNICLAW_SELLER_REQUIRE_DISTRIBUTED_NONCE=true
124-
125-
# Strict settlement should remain enabled for production payment gates.
87+
# Strict settlement should remain enabled for production buyer x402 payments.
12688
OMNICLAW_STRICT_SETTLEMENT=true
12789

12890
# Webhook verification and deduplication.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.env.*
66
!.env.example
77
.env.local
8+
*.env
89
*.pem
910
*.key
1011
secrets.json

CHANGELOG.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Changed
10+
- Removed the obsolete secondary console entrypoint and pointed both console scripts at the unified `omniclaw.cli` buyer/core CLI.
11+
- Updated public docs and release verification so removed setup/server/doctor commands are no longer advertised.
12+
913
## [0.0.6] - 2026-04-14
1014

1115
### Added
12-
- Added the owner/operator `omniclaw facilitator exact` command for self-hosted x402 exact settlement.
13-
- Added public facilitator documentation covering Circle Gateway, external facilitators, and OmniClaw self-hosted exact settlement.
16+
- Added x402 exact-settlement buyer support.
17+
- Added public documentation for Circle Gateway and x402 exact payment flows.
1418
- Added Arc Testnet exact-settlement support documentation using CAIP-2 `eip155:5042002`.
15-
- Added B2B SDK examples for vendor APIs, machine-to-vendor payments, external exact facilitators, and self-hosted exact settlement.
16-
- Added a public `.env.example` with role-based configuration for agents, vendors, facilitators, Circle Gateway, Thirdweb, and production hardening.
19+
- Added B2B SDK examples for machine-to-machine payments.
20+
- Added a public `.env.example` with role-based configuration for agents, Circle Gateway, Thirdweb, and production hardening.
1721

1822
### Changed
19-
- Moved the owner/operator CLI entrypoint to `omniclaw.admin_cli:main` so it no longer conflicts with the `omniclaw.cli` agent CLI package.
20-
- Updated release artifact verification for the new admin CLI module and package layout.
21-
- Reworked public README and docs around agent buyer, SDK buyer, vendor SDK seller, Financial Policy Engine, and facilitator deployment paths.
23+
- Moved the owner/operator CLI entrypoint away from the `omniclaw.cli` agent CLI package.
24+
- Updated release artifact verification for the package layout.
25+
- Reworked public README and docs around agent buyer, SDK buyer, and Financial Policy Engine paths.
2226
- Updated the OmniClaw CLI skill to require idempotency keys for x402 URL payments.
2327
- Bumped runtime and shipped CLI skill metadata to `0.0.6`.
2428

@@ -50,8 +54,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5054
## [0.0.3] - 2026-03-25
5155

5256
### Added
53-
- Multi-facilitator support: Circle Gateway, Coinbase CDP, OrderN, RBX, Thirdweb
54-
- Seller SDK: Full seller-side SDK for accepting x402 payments
57+
- Payment rail support: Circle Gateway, Coinbase CDP, OrderN, RBX, Thirdweb
58+
- x402 buyer support for paid HTTP resources
5559
- Trust Gate: ERC-8004 based identity and reputation verification
5660
- Payment Intents: 2-phase commit with fund reservation
5761
- Enhanced buyer SDK with smart payment routing

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /app
66
COPY pyproject.toml README.md ./
77
COPY src/ src/
88

9-
RUN pip install --no-cache-dir ".[ops]"
9+
RUN pip install --no-cache-dir .
1010

1111
# ─── Runtime stage ────────────────────────────────────────────────────
1212
FROM python:3.12-slim
@@ -18,9 +18,8 @@ COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/pytho
1818
COPY --from=builder /usr/local/bin/ /usr/local/bin/
1919
COPY --from=builder /app/ /app/
2020

21-
EXPOSE 8088
21+
EXPOSE 8080
2222

23-
ENV OMNICLAW_OPS_PORT=8088
2423
ENV OMNICLAW_REDIS_URL=redis://redis:6379/0
2524

26-
CMD ["uvicorn", "omniclaw.ops.api:app", "--host", "0.0.0.0", "--port", "8088"]
25+
CMD ["uvicorn", "omniclaw.agent.server:app", "--host", "0.0.0.0", "--port", "8080"]

0 commit comments

Comments
 (0)