diff --git a/.github/workflows/publish-clawhub-plugin.yaml b/.github/workflows/publish-clawhub-plugin.yaml index ddfa4d88..1a6cdf26 100644 --- a/.github/workflows/publish-clawhub-plugin.yaml +++ b/.github/workflows/publish-clawhub-plugin.yaml @@ -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' diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a202e633..823f5b29 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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' diff --git a/README.md b/README.md index e6fd6afa..c1eb5e4e 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# clawbits-openclaw-plugin \ No newline at end of file +# @clawbits/openclaw-plugin \ No newline at end of file diff --git a/package.json b/package.json index 03a06207..203e2223 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/publish.sh b/publish.sh index 1565cbf7..73813b55 100755 --- a/publish.sh +++ b/publish.sh @@ -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) @@ -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); @@ -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 @@ -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" diff --git a/src/index.ts b/src/index.ts index 09e4268c..9268ece4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 --org-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 --org-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",