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
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down
14 changes: 7 additions & 7 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -26,16 +26,16 @@ agentbridge openclaw status [--workspace <path>]
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
```

Expand Down
Loading