From 47d9d18fd13e8c0a6489814679dbc8cc381de9f2 Mon Sep 17 00:00:00 2001 From: Ume Date: Fri, 15 May 2026 18:40:26 +0700 Subject: [PATCH] fix(cli): update agentbridge-ai references --- README.md | 22 +++++++++++----------- package.json | 12 ++++++------ packages/cli/README.md | 12 ++++++------ 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 62cfb62..fd5e437 100644 --- a/README.md +++ b/README.md @@ -186,21 +186,21 @@ The repository includes a publish-ready `packages/cli/` workspace package for se After the CLI is published to npm, the intended install-free usage is: ```bash -npx agentbridge init --every 1h -npx agentbridge agent setup --agent kaito -npx agentbridge openclaw doctor --workspace ~/.openclaw -npx agentbridge openclaw check --workspace ~/.openclaw --agent kaito -npx agentbridge openclaw status --workspace ~/.openclaw +npx agentbridge-ai init --every 1h +npx agentbridge-ai agent setup --agent kaito +npx agentbridge-ai openclaw doctor --workspace ~/.openclaw +npx agentbridge-ai openclaw check --workspace ~/.openclaw --agent kaito +npx agentbridge-ai openclaw status --workspace ~/.openclaw ``` For local development from this repository, use Corepack: ```bash -corepack pnpm --filter agentbridge dev -- init --every 1h -corepack pnpm --filter agentbridge dev -- agent setup --agent kaito -corepack pnpm --filter agentbridge dev -- openclaw doctor --workspace ~/.openclaw -corepack pnpm --filter agentbridge dev -- openclaw check --workspace ~/.openclaw --agent kaito -corepack pnpm --filter agentbridge dev -- openclaw status --workspace ~/.openclaw +corepack pnpm --filter agentbridge-ai dev -- init --every 1h +corepack pnpm --filter agentbridge-ai dev -- agent setup --agent kaito +corepack pnpm --filter agentbridge-ai dev -- openclaw doctor --workspace ~/.openclaw +corepack pnpm --filter agentbridge-ai dev -- openclaw check --workspace ~/.openclaw --agent kaito +corepack pnpm --filter agentbridge-ai dev -- openclaw status --workspace ~/.openclaw ``` `agentbridge init` is the project/owner setup flow. It detects local OpenClaw agent candidates, fetches company agents from `/api/agent/agents`, confirms which AgentIds should run recurring checks, writes local config/secrets, installs the agent-ops skill, and creates or updates an idempotent OpenClaw cron job per selected agent. The default schedule is hourly (`--every 1h`); override it with `--every 15m`, `--every 1d`, or `--cron "0 9 * * *" --tz Asia/Jakarta`. @@ -317,7 +317,7 @@ Useful Agent API resources: AgentBridge is organized as a pnpm workspace: - `apps/web/` contains the Next.js dashboard and API routes. -- `packages/cli/` contains the publishable `agentbridge` CLI package. +- `packages/cli/` contains the publishable `agentbridge-ai` CLI package. - `prisma/` and Prisma scripts stay at the repository root; Prisma client output is generated into `apps/web/generated/prisma`. - Root `package.json` scripts orchestrate workspace commands with pnpm filters. diff --git a/package.json b/package.json index dafe4b8..ca5e085 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "dev": "corepack pnpm --filter @agentbridge/web dev", - "build": "corepack pnpm prisma:generate && corepack pnpm --filter @agentbridge/web build && corepack pnpm --filter agentbridge build", + "build": "corepack pnpm prisma:generate && corepack pnpm --filter @agentbridge/web build && corepack pnpm --filter agentbridge-ai build", "build:web": "corepack pnpm prisma:generate && corepack pnpm --filter @agentbridge/web build", "start": "corepack pnpm --filter @agentbridge/web start", "lint": "corepack pnpm --filter @agentbridge/web lint", @@ -15,13 +15,13 @@ "prisma:migrate": "prisma migrate dev", "prisma:seed": "tsx scripts/seed-admin.ts", "prisma:studio": "prisma studio", - "typecheck": "corepack pnpm prisma:generate && corepack pnpm --filter @agentbridge/web typecheck && corepack pnpm --filter agentbridge typecheck", + "typecheck": "corepack pnpm prisma:generate && corepack pnpm --filter @agentbridge/web typecheck && corepack pnpm --filter agentbridge-ai typecheck", "typecheck:web": "corepack pnpm prisma:generate && corepack pnpm --filter @agentbridge/web typecheck", "test:task-freshness": "tsx --tsconfig apps/web/tsconfig.json --test apps/web/lib/api/task-freshness.test.ts", - "cli:dev": "corepack pnpm --filter agentbridge dev", - "cli:build": "corepack pnpm --filter agentbridge build", - "cli:typecheck": "corepack pnpm --filter agentbridge typecheck", - "cli:pack": "corepack pnpm --filter agentbridge pack:dry-run", + "cli:dev": "corepack pnpm --filter agentbridge-ai dev", + "cli:build": "corepack pnpm --filter agentbridge-ai build", + "cli:typecheck": "corepack pnpm --filter agentbridge-ai typecheck", + "cli:pack": "corepack pnpm --filter agentbridge-ai pack:dry-run", "smoke:auth-health": "tsx scripts/smoke-auth-health.ts", "smoke:saas-production": "tsx scripts/smoke-saas-production.ts" }, diff --git a/packages/cli/README.md b/packages/cli/README.md index 1d81671..9c4f654 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -5,7 +5,7 @@ OpenClaw-first CLI for installing AgentBridge task coordination into an OpenClaw After publish, the intended project setup usage is: ```bash -npx agentbridge init --every 1h +npx agentbridge-ai init --every 1h ``` The CLI installs AgentBridge instructions/config for OpenClaw agents and creates or updates OpenClaw cron jobs so agents can check assigned work on a recurring schedule. `agentbridge openclaw init` remains a compatibility alias for project setup. @@ -26,16 +26,16 @@ agentbridge openclaw status [--workspace ] From the AgentBridge repository root: ```bash -corepack pnpm --filter agentbridge dev -- init --every 1h -corepack pnpm --filter agentbridge dev -- agent setup --agent kaito -corepack pnpm --filter agentbridge build -corepack pnpm --filter agentbridge pack:dry-run +corepack pnpm --filter agentbridge-ai dev -- init --every 1h +corepack pnpm --filter agentbridge-ai dev -- agent setup --agent kaito +corepack pnpm --filter agentbridge-ai build +corepack pnpm --filter agentbridge-ai pack:dry-run ``` Before publish, test the built package locally: ```bash -corepack pnpm --filter agentbridge build +corepack pnpm --filter agentbridge-ai build node packages/cli/dist/index.js openclaw status --workspace ~/.openclaw ```