Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish-clawhub-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout tested commit
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: '22'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: '22'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# clawbits-openclaw-plugin
# @clawbits/openclaw-plugin
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "clawbits-openclaw-plugin",
"name": "@clawbits/openclaw-plugin",
"version": "0.4.2",
"description": "OpenClaw channel plugin: bridges an agent to its ClawBits organization via the ClawBits Mattermost surface.",
"type": "module",
Expand Down
8 changes: 4 additions & 4 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if [ "$PKG_VERSION" != "$MANIFEST_VERSION" ]; then
echo "Version mismatch: package.json=$PKG_VERSION manifest=$MANIFEST_VERSION" >&2
exit 1
fi
echo "Target: clawbits-openclaw-plugin@$PKG_VERSION"
echo "Target: @clawbits/openclaw-plugin@$PKG_VERSION"

# ---------------------------------------------------------------------------
# 2. Ensure clawhub CLI is >= 0.12 (needed for ClawPack creation via npm pack)
Expand Down Expand Up @@ -114,7 +114,7 @@ clawhub package publish "$PUBLISH_DIR" \
# 6. Verify the version is queryable on the packages namespace
# ---------------------------------------------------------------------------
step "Verifying publish"
versions_json="$(curl -fsS "$REGISTRY_API/packages/clawbits-openclaw-plugin/versions" || true)"
versions_json="$(curl -fsS "$REGISTRY_API/packages/@clawbits%2Fopenclaw-plugin/versions" || true)"
echo "$versions_json" | node -e "
const data = JSON.parse(require('fs').readFileSync(0, 'utf8'));
const versions = (data.items || []).map(v => v.version);
Expand All @@ -126,7 +126,7 @@ if (!versions.includes('$PKG_VERSION')) {
console.log('OK: $PKG_VERSION is published.');
"

artifact_kind="$(curl -fsS "$REGISTRY_API/packages/clawbits-openclaw-plugin" \
artifact_kind="$(curl -fsS "$REGISTRY_API/packages/@clawbits%2Fopenclaw-plugin" \
| node -e "const d=JSON.parse(require('fs').readFileSync(0,'utf8')); console.log(d.package?.artifact?.kind || '(unknown)')")"
echo "Latest artifact kind: $artifact_kind"
if [ "$artifact_kind" = "legacy-zip" ]; then
Expand All @@ -136,4 +136,4 @@ fi

step "Done"
echo "Install with:"
echo " openclaw plugins install clawhub:clawbits-openclaw-plugin --pin"
echo " openclaw plugins install clawhub:@clawbits/openclaw-plugin --pin"
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineChannelPluginEntry({
id: "clawbits",
name: "ClawBits Human Channel",
description:
"Bridge an OpenClaw agent to its ClawBits organization via ClawBits (Mattermost over proof-of-cognition challenges). For agents: run `openclaw clawbits signup --endpoint <url> --org-id <id> --json` for a non-interactive signup. The command prints `signup_starting`, `approval_wait_*`, and a final `approved` JSON event with agent_id/api_key/channel_id; persist them with the `openclaw config set` lines printed on stdout (or with the JSON fields). Config lives under channels.clawbits.accounts.*. Bundled ClawBits documentation ships with this package under `clawbits-openclaw-plugin/docs/`.",
"Bridge an OpenClaw agent to its ClawBits organization via ClawBits (Mattermost over proof-of-cognition challenges). For agents: run `openclaw clawbits signup --endpoint <url> --org-id <id> --json` for a non-interactive signup. The command prints `signup_starting`, `approval_wait_*`, and a final `approved` JSON event with agent_id/api_key/channel_id; persist them with the `openclaw config set` lines printed on stdout (or with the JSON fields). Config lives under channels.clawbits.accounts.*. Bundled ClawBits documentation ships with this package under `@clawbits/openclaw-plugin/docs/`.",
plugin: clawbitsChannelPlugin,
configSchema: {
type: "object",
Expand Down