clawsql 0.1.9 → 0.2.1
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/.env.example +20 -0
- package/README.md +11 -23
- package/dist/app.js +2 -2
- package/dist/app.js.map +1 -1
- package/dist/bin/clawsql.d.ts +1 -0
- package/dist/bin/clawsql.d.ts.map +1 -1
- package/dist/bin/clawsql.js +18 -2
- package/dist/bin/clawsql.js.map +1 -1
- package/dist/cli/agent/index.d.ts +1 -1
- package/dist/cli/agent/index.d.ts.map +1 -1
- package/dist/cli/agent/index.js +6 -1
- package/dist/cli/agent/index.js.map +1 -1
- package/dist/cli/agent/openclaw-integration.d.ts +33 -29
- package/dist/cli/agent/openclaw-integration.d.ts.map +1 -1
- package/dist/cli/agent/openclaw-integration.js +273 -202
- package/dist/cli/agent/openclaw-integration.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +121 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/install.d.ts +13 -0
- package/dist/cli/commands/install.d.ts.map +1 -0
- package/dist/cli/commands/install.js +286 -0
- package/dist/cli/commands/install.js.map +1 -0
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +137 -7
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +95 -24
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/command-executor.d.ts.map +1 -1
- package/dist/cli/utils/command-executor.js +60 -23
- package/dist/cli/utils/command-executor.js.map +1 -1
- package/dist/cli/utils/docker-prereq.d.ts +23 -0
- package/dist/cli/utils/docker-prereq.d.ts.map +1 -1
- package/dist/cli/utils/docker-prereq.js +70 -1
- package/dist/cli/utils/docker-prereq.js.map +1 -1
- package/dist/config/settings.d.ts +37 -37
- package/dist/config/settings.d.ts.map +1 -1
- package/dist/config/settings.js +3 -1
- package/dist/config/settings.js.map +1 -1
- package/docker/openclaw/openclaw.json +10 -0
- package/docker-compose.allinone.yml +37 -3
- package/docker-compose.yml +41 -1
- package/package.json +1 -1
package/docker-compose.yml
CHANGED
|
@@ -11,6 +11,38 @@
|
|
|
11
11
|
# -d '{"host": "your-mysql-host", "port": 3306}'
|
|
12
12
|
|
|
13
13
|
services:
|
|
14
|
+
# =============================================================================
|
|
15
|
+
# OpenClaw - AI Agent Gateway for intelligent operations
|
|
16
|
+
# =============================================================================
|
|
17
|
+
openclaw:
|
|
18
|
+
image: ghcr.io/openclaw/openclaw:latest
|
|
19
|
+
container_name: openclaw
|
|
20
|
+
hostname: openclaw
|
|
21
|
+
ports:
|
|
22
|
+
- "18789:18789" # Gateway WebSocket port
|
|
23
|
+
- "18790:18790" # Control UI port
|
|
24
|
+
environment:
|
|
25
|
+
- OPENCLAW_GATEWAY_PORT=18789
|
|
26
|
+
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN:-clawsql-openclaw-token}
|
|
27
|
+
- OPENCLAW_GATEWAY_BIND=lan
|
|
28
|
+
- OPENCLAW_STATE_DIR=/data/.openclaw
|
|
29
|
+
- OPENCLAW_WORKSPACE_DIR=/data/workspace
|
|
30
|
+
# Optional: configure AI provider (defaults to bundled qwen)
|
|
31
|
+
- OPENCLAW_MODEL_PROVIDER=${OPENCLAW_MODEL_PROVIDER:-}
|
|
32
|
+
- OPENCLAW_MODEL_API_KEY=${OPENCLAW_MODEL_API_KEY:-}
|
|
33
|
+
volumes:
|
|
34
|
+
- openclaw-data:/data
|
|
35
|
+
- ./docker/openclaw/openclaw.json:/data/.openclaw/openclaw.json:ro
|
|
36
|
+
networks:
|
|
37
|
+
- clawsql-network
|
|
38
|
+
restart: unless-stopped
|
|
39
|
+
healthcheck:
|
|
40
|
+
test: ["CMD-SHELL", "curl -f http://localhost:18789/health || exit 1"]
|
|
41
|
+
interval: 30s
|
|
42
|
+
timeout: 10s
|
|
43
|
+
retries: 3
|
|
44
|
+
start_period: 30s
|
|
45
|
+
|
|
14
46
|
# =============================================================================
|
|
15
47
|
# ClawSQL Application (Node.js)
|
|
16
48
|
# =============================================================================
|
|
@@ -31,6 +63,9 @@ services:
|
|
|
31
63
|
- PROXYSQL_HOST=proxysql
|
|
32
64
|
- PROXYSQL_ADMIN_PORT=6032
|
|
33
65
|
- PROMETHEUS_URL=http://prometheus:9090
|
|
66
|
+
# OpenClaw Gateway for AI operations
|
|
67
|
+
- OPENCLAW_GATEWAY_URL=ws://openclaw:18789
|
|
68
|
+
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN:-clawsql-openclaw-token}
|
|
34
69
|
# Metadata Database (shared with Orchestrator)
|
|
35
70
|
- METADATA_DB_HOST=${METADATA_DB_HOST:-metadata-mysql}
|
|
36
71
|
- METADATA_DB_PORT=${METADATA_DB_PORT:-3306}
|
|
@@ -54,6 +89,10 @@ services:
|
|
|
54
89
|
condition: service_started
|
|
55
90
|
metadata-mysql:
|
|
56
91
|
condition: service_healthy
|
|
92
|
+
required: false
|
|
93
|
+
openclaw:
|
|
94
|
+
condition: service_started
|
|
95
|
+
required: false
|
|
57
96
|
networks:
|
|
58
97
|
- clawsql-network
|
|
59
98
|
restart: unless-stopped
|
|
@@ -218,4 +257,5 @@ volumes:
|
|
|
218
257
|
metadata-mysql-data:
|
|
219
258
|
proxysql-data:
|
|
220
259
|
prometheus-data:
|
|
221
|
-
grafana-data:
|
|
260
|
+
grafana-data:
|
|
261
|
+
openclaw-data:
|