clawbrah 1.0.2 → 1.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/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/control-ui/assets/{index-D0ToVTL2.js → index-rB_dACLJ.js} +860 -847
- package/dist/control-ui/assets/index-rB_dACLJ.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/plugin-sdk/index.d.ts +85 -85
- package/extensions/brah-sync/index.ts +3 -5
- package/package.json +100 -73
- package/dist/control-ui/assets/index-D0ToVTL2.js.map +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
2
2
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
3
|
-
import { brahSyncPlugin } from "./src/channel";
|
|
4
|
-
import { setBrahSyncRuntime } from "./src/runtime";
|
|
5
|
-
import { startBrahSyncMonitor } from "./src/monitor";
|
|
3
|
+
import { brahSyncPlugin } from "./src/channel.ts";
|
|
4
|
+
import { setBrahSyncRuntime } from "./src/runtime.ts";
|
|
6
5
|
|
|
7
6
|
const plugin = {
|
|
8
7
|
id: "brah-sync",
|
|
@@ -16,5 +15,4 @@ const plugin = {
|
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
export default plugin;
|
|
19
|
-
export { brahSyncPlugin } from "./src/channel";
|
|
20
|
-
export { startBrahSyncMonitor } from "./src/monitor";
|
|
18
|
+
export { brahSyncPlugin } from "./src/channel.ts";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawbrah",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,6 +34,79 @@
|
|
|
34
34
|
"./plugin-sdk": "./dist/plugin-sdk/index.js",
|
|
35
35
|
"./cli-entry": "./clawbrah.mjs"
|
|
36
36
|
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"android:assemble": "cd apps/android && ./gradlew :app:assembleDebug",
|
|
39
|
+
"android:install": "cd apps/android && ./gradlew :app:installDebug",
|
|
40
|
+
"android:run": "cd apps/android && ./gradlew :app:installDebug && adb shell am start -n ai.clawbrah.android/.MainActivity",
|
|
41
|
+
"android:test": "cd apps/android && ./gradlew :app:testDebugUnitTest",
|
|
42
|
+
"build": "cross-env OPENCLAW_BRANDING=true node scripts/apply-branding.js && pnpm canvas:a2ui:bundle && tsdown && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-compat.ts",
|
|
43
|
+
"build:openclaw": "pnpm canvas:a2ui:bundle && tsdown && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-compat.ts",
|
|
44
|
+
"canvas:a2ui:bundle": "node scripts/bundle-a2ui.mjs",
|
|
45
|
+
"check": "pnpm tsgo && pnpm lint && pnpm format",
|
|
46
|
+
"check:loc": "node --import tsx scripts/check-ts-max-loc.ts --max 500",
|
|
47
|
+
"dev": "node scripts/run-node.mjs",
|
|
48
|
+
"docs:bin": "node scripts/build-docs-list.mjs",
|
|
49
|
+
"docs:build": "cd docs && pnpm dlx --reporter append-only mint broken-links",
|
|
50
|
+
"docs:dev": "cd docs && mint dev",
|
|
51
|
+
"docs:list": "node scripts/docs-list.js",
|
|
52
|
+
"format": "oxfmt --check",
|
|
53
|
+
"format:all": "pnpm format && pnpm format:swift",
|
|
54
|
+
"format:fix": "oxfmt --write",
|
|
55
|
+
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",
|
|
56
|
+
"gateway:dev": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway",
|
|
57
|
+
"gateway:dev:reset": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway --reset",
|
|
58
|
+
"gateway:watch": "node scripts/watch-node.mjs gateway --force",
|
|
59
|
+
"ios:build": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build'",
|
|
60
|
+
"ios:gen": "cd apps/ios && xcodegen generate",
|
|
61
|
+
"ios:open": "cd apps/ios && xcodegen generate && open OpenClaw.xcodeproj",
|
|
62
|
+
"ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted ai.clawbrah.ios'",
|
|
63
|
+
"lint": "oxlint --type-aware",
|
|
64
|
+
"lint:all": "pnpm lint && pnpm lint:swift",
|
|
65
|
+
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
|
|
66
|
+
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
|
67
|
+
"mac:open": "open dist/OpenClaw.app",
|
|
68
|
+
"mac:package": "bash scripts/package-mac-app.sh",
|
|
69
|
+
"mac:restart": "bash scripts/restart-mac.sh",
|
|
70
|
+
"moltbot:rpc": "node scripts/run-node.mjs agent --mode rpc --json",
|
|
71
|
+
"openclaw": "node scripts/run-node.mjs",
|
|
72
|
+
"clawbrah": "node scripts/run-node.mjs",
|
|
73
|
+
"openclaw:rpc": "node scripts/run-node.mjs agent --mode rpc --json",
|
|
74
|
+
"clawbrah:rpc": "node scripts/run-node.mjs agent --mode rpc --json",
|
|
75
|
+
"plugins:sync": "node --import tsx scripts/sync-plugin-versions.ts",
|
|
76
|
+
"prepack": "pnpm build && pnpm ui:build",
|
|
77
|
+
"prepare": "command -v git >/dev/null 2>&1 && git config core.hooksPath git-hooks || exit 0",
|
|
78
|
+
"protocol:check": "pnpm protocol:gen && pnpm protocol:gen:swift && git diff --exit-code -- dist/protocol.schema.json apps/macos/Sources/OpenClawProtocol/GatewayModels.swift",
|
|
79
|
+
"protocol:gen": "node --import tsx scripts/protocol-gen.ts",
|
|
80
|
+
"protocol:gen:swift": "node --import tsx scripts/protocol-gen-swift.ts",
|
|
81
|
+
"release:check": "node --import tsx scripts/release-check.ts",
|
|
82
|
+
"start": "node scripts/run-node.mjs",
|
|
83
|
+
"test": "node scripts/test-parallel.mjs",
|
|
84
|
+
"test:all": "pnpm lint && pnpm build && pnpm test && pnpm test:e2e && pnpm test:live && pnpm test:docker:all",
|
|
85
|
+
"test:coverage": "vitest run --coverage",
|
|
86
|
+
"test:docker:all": "pnpm test:docker:live-models && pnpm test:docker:live-gateway && pnpm test:docker:onboard && pnpm test:docker:gateway-network && pnpm test:docker:qr && pnpm test:docker:doctor-switch && pnpm test:docker:plugins && pnpm test:docker:cleanup",
|
|
87
|
+
"test:docker:cleanup": "bash scripts/test-cleanup-docker.sh",
|
|
88
|
+
"test:docker:doctor-switch": "bash scripts/e2e/doctor-install-switch-docker.sh",
|
|
89
|
+
"test:docker:gateway-network": "bash scripts/e2e/gateway-network-docker.sh",
|
|
90
|
+
"test:docker:live-gateway": "bash scripts/test-live-gateway-models-docker.sh",
|
|
91
|
+
"test:docker:live-models": "bash scripts/test-live-models-docker.sh",
|
|
92
|
+
"test:docker:onboard": "bash scripts/e2e/onboard-docker.sh",
|
|
93
|
+
"test:docker:plugins": "bash scripts/e2e/plugins-docker.sh",
|
|
94
|
+
"test:docker:qr": "bash scripts/e2e/qr-import-docker.sh",
|
|
95
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
96
|
+
"test:force": "node --import tsx scripts/test-force.ts",
|
|
97
|
+
"test:install:e2e": "bash scripts/test-install-sh-e2e-docker.sh",
|
|
98
|
+
"test:install:e2e:anthropic": "OPENCLAW_E2E_MODELS=anthropic CLAWDBOT_E2E_MODELS=anthropic bash scripts/test-install-sh-e2e-docker.sh",
|
|
99
|
+
"test:install:e2e:openai": "OPENCLAW_E2E_MODELS=openai CLAWDBOT_E2E_MODELS=openai bash scripts/test-install-sh-e2e-docker.sh",
|
|
100
|
+
"test:install:smoke": "bash scripts/test-install-sh-docker.sh",
|
|
101
|
+
"test:live": "OPENCLAW_LIVE_TEST=1 CLAWDBOT_LIVE_TEST=1 vitest run --config vitest.live.config.ts",
|
|
102
|
+
"test:ui": "pnpm --dir ui test",
|
|
103
|
+
"test:watch": "vitest",
|
|
104
|
+
"tui": "node scripts/run-node.mjs tui",
|
|
105
|
+
"tui:dev": "OPENCLAW_PROFILE=dev CLAWDBOT_PROFILE=dev node scripts/run-node.mjs --dev tui",
|
|
106
|
+
"ui:build": "cross-env OPENCLAW_BRANDING=true node scripts/ui.js build",
|
|
107
|
+
"ui:dev": "node scripts/ui.js dev",
|
|
108
|
+
"ui:install": "node scripts/ui.js install"
|
|
109
|
+
},
|
|
37
110
|
"dependencies": {
|
|
38
111
|
"@agentclientprotocol/sdk": "0.14.1",
|
|
39
112
|
"@aws-sdk/client-bedrock": "^3.984.0",
|
|
@@ -122,6 +195,31 @@
|
|
|
122
195
|
"engines": {
|
|
123
196
|
"node": ">=22.12.0"
|
|
124
197
|
},
|
|
198
|
+
"packageManager": "pnpm@10.23.0",
|
|
199
|
+
"pnpm": {
|
|
200
|
+
"minimumReleaseAge": 2880,
|
|
201
|
+
"overrides": {
|
|
202
|
+
"fast-xml-parser": "5.3.4",
|
|
203
|
+
"form-data": "2.5.4",
|
|
204
|
+
"@hono/node-server>hono": "4.11.7",
|
|
205
|
+
"hono": "4.11.7",
|
|
206
|
+
"qs": "6.14.1",
|
|
207
|
+
"@sinclair/typebox": "0.34.47",
|
|
208
|
+
"tar": "7.5.7",
|
|
209
|
+
"tough-cookie": "4.1.3"
|
|
210
|
+
},
|
|
211
|
+
"onlyBuiltDependencies": [
|
|
212
|
+
"@lydell/node-pty",
|
|
213
|
+
"@matrix-org/matrix-sdk-crypto-nodejs",
|
|
214
|
+
"@napi-rs/canvas",
|
|
215
|
+
"@whiskeysockets/baileys",
|
|
216
|
+
"authenticate-pam",
|
|
217
|
+
"esbuild",
|
|
218
|
+
"node-llama-cpp",
|
|
219
|
+
"protobufjs",
|
|
220
|
+
"sharp"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
125
223
|
"vitest": {
|
|
126
224
|
"coverage": {
|
|
127
225
|
"provider": "v8",
|
|
@@ -153,76 +251,5 @@
|
|
|
153
251
|
"apps/macos/.build/**",
|
|
154
252
|
"dist/OpenClaw.app/**"
|
|
155
253
|
]
|
|
156
|
-
},
|
|
157
|
-
"scripts": {
|
|
158
|
-
"android:assemble": "cd apps/android && ./gradlew :app:assembleDebug",
|
|
159
|
-
"android:install": "cd apps/android && ./gradlew :app:installDebug",
|
|
160
|
-
"android:run": "cd apps/android && ./gradlew :app:installDebug && adb shell am start -n ai.clawbrah.android/.MainActivity",
|
|
161
|
-
"android:test": "cd apps/android && ./gradlew :app:testDebugUnitTest",
|
|
162
|
-
"build": "cross-env OPENCLAW_BRANDING=true node scripts/apply-branding.js && pnpm canvas:a2ui:bundle && tsdown && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-compat.ts",
|
|
163
|
-
"build:openclaw": "pnpm canvas:a2ui:bundle && tsdown && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-compat.ts",
|
|
164
|
-
"canvas:a2ui:bundle": "node scripts/bundle-a2ui.mjs",
|
|
165
|
-
"check": "pnpm tsgo && pnpm lint && pnpm format",
|
|
166
|
-
"check:loc": "node --import tsx scripts/check-ts-max-loc.ts --max 500",
|
|
167
|
-
"dev": "node scripts/run-node.mjs",
|
|
168
|
-
"docs:bin": "node scripts/build-docs-list.mjs",
|
|
169
|
-
"docs:build": "cd docs && pnpm dlx --reporter append-only mint broken-links",
|
|
170
|
-
"docs:dev": "cd docs && mint dev",
|
|
171
|
-
"docs:list": "node scripts/docs-list.js",
|
|
172
|
-
"format": "oxfmt --check",
|
|
173
|
-
"format:all": "pnpm format && pnpm format:swift",
|
|
174
|
-
"format:fix": "oxfmt --write",
|
|
175
|
-
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",
|
|
176
|
-
"gateway:dev": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway",
|
|
177
|
-
"gateway:dev:reset": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway --reset",
|
|
178
|
-
"gateway:watch": "node scripts/watch-node.mjs gateway --force",
|
|
179
|
-
"ios:build": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build'",
|
|
180
|
-
"ios:gen": "cd apps/ios && xcodegen generate",
|
|
181
|
-
"ios:open": "cd apps/ios && xcodegen generate && open OpenClaw.xcodeproj",
|
|
182
|
-
"ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted ai.clawbrah.ios'",
|
|
183
|
-
"lint": "oxlint --type-aware",
|
|
184
|
-
"lint:all": "pnpm lint && pnpm lint:swift",
|
|
185
|
-
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
|
|
186
|
-
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
|
187
|
-
"mac:open": "open dist/OpenClaw.app",
|
|
188
|
-
"mac:package": "bash scripts/package-mac-app.sh",
|
|
189
|
-
"mac:restart": "bash scripts/restart-mac.sh",
|
|
190
|
-
"moltbot:rpc": "node scripts/run-node.mjs agent --mode rpc --json",
|
|
191
|
-
"openclaw": "node scripts/run-node.mjs",
|
|
192
|
-
"clawbrah": "node scripts/run-node.mjs",
|
|
193
|
-
"openclaw:rpc": "node scripts/run-node.mjs agent --mode rpc --json",
|
|
194
|
-
"clawbrah:rpc": "node scripts/run-node.mjs agent --mode rpc --json",
|
|
195
|
-
"plugins:sync": "node --import tsx scripts/sync-plugin-versions.ts",
|
|
196
|
-
"protocol:check": "pnpm protocol:gen && pnpm protocol:gen:swift && git diff --exit-code -- dist/protocol.schema.json apps/macos/Sources/OpenClawProtocol/GatewayModels.swift",
|
|
197
|
-
"protocol:gen": "node --import tsx scripts/protocol-gen.ts",
|
|
198
|
-
"protocol:gen:swift": "node --import tsx scripts/protocol-gen-swift.ts",
|
|
199
|
-
"release:check": "node --import tsx scripts/release-check.ts",
|
|
200
|
-
"start": "node scripts/run-node.mjs",
|
|
201
|
-
"test": "node scripts/test-parallel.mjs",
|
|
202
|
-
"test:all": "pnpm lint && pnpm build && pnpm test && pnpm test:e2e && pnpm test:live && pnpm test:docker:all",
|
|
203
|
-
"test:coverage": "vitest run --coverage",
|
|
204
|
-
"test:docker:all": "pnpm test:docker:live-models && pnpm test:docker:live-gateway && pnpm test:docker:onboard && pnpm test:docker:gateway-network && pnpm test:docker:qr && pnpm test:docker:doctor-switch && pnpm test:docker:plugins && pnpm test:docker:cleanup",
|
|
205
|
-
"test:docker:cleanup": "bash scripts/test-cleanup-docker.sh",
|
|
206
|
-
"test:docker:doctor-switch": "bash scripts/e2e/doctor-install-switch-docker.sh",
|
|
207
|
-
"test:docker:gateway-network": "bash scripts/e2e/gateway-network-docker.sh",
|
|
208
|
-
"test:docker:live-gateway": "bash scripts/test-live-gateway-models-docker.sh",
|
|
209
|
-
"test:docker:live-models": "bash scripts/test-live-models-docker.sh",
|
|
210
|
-
"test:docker:onboard": "bash scripts/e2e/onboard-docker.sh",
|
|
211
|
-
"test:docker:plugins": "bash scripts/e2e/plugins-docker.sh",
|
|
212
|
-
"test:docker:qr": "bash scripts/e2e/qr-import-docker.sh",
|
|
213
|
-
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
214
|
-
"test:force": "node --import tsx scripts/test-force.ts",
|
|
215
|
-
"test:install:e2e": "bash scripts/test-install-sh-e2e-docker.sh",
|
|
216
|
-
"test:install:e2e:anthropic": "OPENCLAW_E2E_MODELS=anthropic CLAWDBOT_E2E_MODELS=anthropic bash scripts/test-install-sh-e2e-docker.sh",
|
|
217
|
-
"test:install:e2e:openai": "OPENCLAW_E2E_MODELS=openai CLAWDBOT_E2E_MODELS=openai bash scripts/test-install-sh-e2e-docker.sh",
|
|
218
|
-
"test:install:smoke": "bash scripts/test-install-sh-docker.sh",
|
|
219
|
-
"test:live": "OPENCLAW_LIVE_TEST=1 CLAWDBOT_LIVE_TEST=1 vitest run --config vitest.live.config.ts",
|
|
220
|
-
"test:ui": "pnpm --dir ui test",
|
|
221
|
-
"test:watch": "vitest",
|
|
222
|
-
"tui": "node scripts/run-node.mjs tui",
|
|
223
|
-
"tui:dev": "OPENCLAW_PROFILE=dev CLAWDBOT_PROFILE=dev node scripts/run-node.mjs --dev tui",
|
|
224
|
-
"ui:build": "cross-env OPENCLAW_BRANDING=true node scripts/ui.js build",
|
|
225
|
-
"ui:dev": "node scripts/ui.js dev",
|
|
226
|
-
"ui:install": "node scripts/ui.js install"
|
|
227
254
|
}
|
|
228
|
-
}
|
|
255
|
+
}
|