Skip to content

Commit ce95ff4

Browse files
authored
Merge pull request #6 from QBT-Labs/feat/QBT-227
QBT-227: ClawHub publishing setup
2 parents 92e52e4 + ce54cac commit ce95ff4

File tree

15 files changed

+77
-20
lines changed

15 files changed

+77
-20
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish Packages
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: https://registry.npmjs.org
20+
21+
- run: npm install
22+
23+
- name: Typecheck
24+
run: npm run typecheck
25+
26+
- name: Publish @qbtlabs/openmm-trading
27+
run: npm run publish:trading
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
31+
- name: Publish @qbtlabs/openmm-market-data
32+
run: npm run publish:market-data
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
36+
- name: Publish @qbtlabs/openclaw-openmm
37+
run: npm run publish:openclaw
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
> Open-source market making skills for AI agents
44
55
[![npm](https://img.shields.io/npm/v/@3rd-eye-labs/openmm)](https://www.npmjs.com/package/@3rd-eye-labs/openmm)
6+
[![openmm-trading](https://img.shields.io/npm/v/@qbtlabs/openmm-trading?label=openmm-trading)](https://www.npmjs.com/package/@qbtlabs/openmm-trading)
7+
[![openmm-market-data](https://img.shields.io/npm/v/@qbtlabs/openmm-market-data?label=openmm-market-data)](https://www.npmjs.com/package/@qbtlabs/openmm-market-data)
8+
[![openclaw-openmm](https://img.shields.io/npm/v/@qbtlabs/openclaw-openmm?label=openclaw-openmm)](https://www.npmjs.com/package/@qbtlabs/openclaw-openmm)
69
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
710
[![DeepWiki](https://img.shields.io/badge/docs-DeepWiki-purple)](https://deepwiki.com/3rd-Eye-Labs/OpenMM)
811

SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ npm install -g @3rd-eye-labs/openmm
4444

4545
# Set exchange credentials as environment variables
4646
export MEXC_API_KEY="your_api_key"
47-
export MEXC_SECRET_KEY="your_secret_key"
47+
export MEXC_SECRET="your_secret_key"
4848

4949
# Check balances
5050
openmm balance --exchange mexc
@@ -68,7 +68,7 @@ Run `npx @qbtlabs/openmm-mcp` to start a local MCP server over stdio. This expos
6868
"args": ["@qbtlabs/openmm-mcp"],
6969
"env": {
7070
"MEXC_API_KEY": "your_key",
71-
"MEXC_SECRET_KEY": "your_secret"
71+
"MEXC_SECRET": "your_secret"
7272
}
7373
}
7474
}
@@ -85,7 +85,7 @@ import { OpenMM } from '@3rd-eye-labs/openmm';
8585
const mm = new OpenMM({
8686
exchange: 'mexc',
8787
apiKey: process.env.MEXC_API_KEY,
88-
secret: process.env.MEXC_SECRET_KEY
88+
secret: process.env.MEXC_SECRET
8989
});
9090

9191
const orderbook = await mm.getOrderbook('BTC/USDT');
@@ -100,7 +100,7 @@ Exchange credentials are configured via environment variables — keys are store
100100
```env
101101
# MEXC (API key + secret)
102102
MEXC_API_KEY=your_mexc_api_key
103-
MEXC_SECRET_KEY=your_mexc_secret_key
103+
MEXC_SECRET=your_mexc_secret_key
104104
105105
# Gate.io (API key + secret)
106106
GATEIO_API_KEY=your_gateio_api_key

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
"workspaces": [
77
"packages/plugins/*"
88
],
9+
"scripts": {
10+
"publish:trading": "npm publish --workspace=@qbtlabs/openmm-trading --access=public",
11+
"publish:market-data": "npm publish --workspace=@qbtlabs/openmm-market-data --access=public",
12+
"publish:openclaw": "npm publish --workspace=@qbtlabs/openclaw-openmm --access=public",
13+
"publish:all": "npm run publish:trading && npm run publish:market-data && npm run publish:openclaw",
14+
"typecheck": "npm run --workspace=@qbtlabs/openclaw-openmm typecheck",
15+
"version:patch": "npm version patch --workspaces --no-git-tag-version",
16+
"version:minor": "npm version minor --workspaces --no-git-tag-version"
17+
},
918
"repository": {
1019
"type": "git",
1120
"url": "https://github.com/QBT-Labs/OpenMM-ai.git"

packages/plugins/openclaw-openmm/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
"version": "0.1.0",
44
"description": "OpenClaw plugin for OpenMM — trade, monitor, and manage grid strategies from Telegram or any OpenClaw channel",
55
"keywords": ["openclaw", "openmm", "trading", "grid", "market-making", "telegram"],
6+
"files": ["src", "openclaw.plugin.json", "README.md"],
67
"license": "MIT",
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/QBT-Labs/OpenMM-ai.git",
1011
"directory": "packages/plugins/openclaw-openmm"
1112
},
13+
"scripts": {
14+
"typecheck": "tsc --noEmit"
15+
},
1216
"openclaw": {
1317
"extensions": ["./src/index.ts"]
1418
},

packages/plugins/openmm-market-data/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ npm install -g @3rd-eye-labs/openmm
6060

6161
```bash
6262
export MEXC_API_KEY="your_key"
63-
export MEXC_SECRET_KEY="your_secret"
63+
export MEXC_SECRET="your_secret"
6464
```
6565

6666
### 3. Check Balances
@@ -107,7 +107,7 @@ When using the MCP server, these tools are available for market data:
107107

108108
| Exchange | Env Vars | Min Order | Notes |
109109
|----------|----------|-----------|-------|
110-
| MEXC | `MEXC_API_KEY`, `MEXC_SECRET_KEY` | 1 USDT | SNEK/USDT, INDY/USDT, NIGHT/USDT |
110+
| MEXC | `MEXC_API_KEY`, `MEXC_SECRET` | 1 USDT | SNEK/USDT, INDY/USDT, NIGHT/USDT |
111111
| Gate.io | `GATEIO_API_KEY`, `GATEIO_SECRET` | 1 USDT | |
112112
| Kraken | `KRAKEN_API_KEY`, `KRAKEN_SECRET` | 5 EUR/USD | Fiat pairs (EUR, USD, GBP), ADA/EUR |
113113
| Bitget | `BITGET_API_KEY`, `BITGET_SECRET`, `BITGET_PASSPHRASE` | 1 USDT | 6 decimal price precision for SNEK/NIGHT |

packages/plugins/openmm-market-data/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"description": "Market data, portfolio tracking, and Cardano DEX integration for OpenMM",
55
"keywords": ["openmm", "market-data", "portfolio", "cardano", "dex", "agent-skills"],
6+
"files": ["skills", "references", "openclaw.plugin.json", "CLAUDE.md", "README.md"],
67
"license": "MIT",
78
"repository": {
89
"type": "git",

packages/plugins/openmm-market-data/references/exchange-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Exchange-specific notes for market data queries and portfolio tracking.
55
## MEXC
66

77
- **Minimum order:** 1 USDT
8-
- **Credentials:** `MEXC_API_KEY`, `MEXC_SECRET_KEY`
8+
- **Credentials:** `MEXC_API_KEY`, `MEXC_SECRET`
99
- **Supported Cardano tokens:** SNEK/USDT, INDY/USDT, NIGHT/USDT
1010
- **Symbol format:** `BASE/QUOTE` (e.g., `BTC/USDT`, `ETH/USDT`)
1111
- **Notes:** Most Cardano native tokens are listed here. Good source for CEX price comparison against DEX.

packages/plugins/openmm-trading/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ When the OpenMM MCP server is connected, these trading tools are available:
5858

5959
Each exchange requires its own set of credentials:
6060

61-
- **MEXC:** `MEXC_API_KEY`, `MEXC_SECRET_KEY`
61+
- **MEXC:** `MEXC_API_KEY`, `MEXC_SECRET`
6262
- **Gate.io:** `GATEIO_API_KEY`, `GATEIO_SECRET`
6363
- **Kraken:** `KRAKEN_API_KEY`, `KRAKEN_SECRET`
6464
- **Bitget:** `BITGET_API_KEY`, `BITGET_SECRET`, `BITGET_PASSPHRASE`

packages/plugins/openmm-trading/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ npm install -g @3rd-eye-labs/openmm
6969

7070
```bash
7171
export MEXC_API_KEY="your_api_key"
72-
export MEXC_SECRET_KEY="your_secret_key"
72+
export MEXC_SECRET="your_secret_key"
7373
```
7474

7575
3. Verify connection:
@@ -95,7 +95,7 @@ openmm trade --strategy grid --exchange mexc --symbol BTC/USDT \
9595

9696
| Exchange | Min Order | Credentials |
9797
|----------|-----------|-------------|
98-
| MEXC | 1 USDT | `MEXC_API_KEY`, `MEXC_SECRET_KEY` |
98+
| MEXC | 1 USDT | `MEXC_API_KEY`, `MEXC_SECRET` |
9999
| Gate.io | 1 USDT | `GATEIO_API_KEY`, `GATEIO_SECRET` |
100100
| Bitget | 1 USDT | `BITGET_API_KEY`, `BITGET_SECRET`, `BITGET_PASSPHRASE` |
101101
| Kraken | 5 EUR/USD | `KRAKEN_API_KEY`, `KRAKEN_SECRET` |

0 commit comments

Comments
 (0)