diff --git a/README.md b/README.md index 62cfb62..f56cab4 100644 --- a/README.md +++ b/README.md @@ -186,21 +186,23 @@ 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 ``` +The npm package is named `agentbridge-ai`. It may still expose an `agentbridge` binary for compatibility when package metadata includes that bin. + 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`. 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..d0442c7 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -5,10 +5,10 @@ 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. +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. The npm package is named `agentbridge-ai`; it may still expose an `agentbridge` binary for compatibility when package metadata includes that bin. `agentbridge openclaw init` remains a compatibility alias for project setup. ## Commands @@ -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 ```