@rely-ai/caliber 1.31.0-dev.1774815271 → 1.32.0-dev.1774815754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -70
  2. package/dist/bin.js +1076 -994
  3. package/package.json +24 -5
package/README.md CHANGED
@@ -26,9 +26,7 @@ Score your AI agent config in 3 seconds. No API key. No changes to your code. Ju
26
26
 
27
27
  ---
28
28
 
29
- Caliber keeps your AI agent configs in sync with your codebase — automatically. It works across **Claude Code**, **Cursor**, **OpenAI Codex**, and **GitHub Copilot**, updating all formats on every commit. One tool, all agents, always in sync.
30
-
31
- Install once, never think about agent configs again. Caliber fingerprints your project, generates tailored configs, and keeps them fresh as your code evolves.
29
+ Caliber scores, generates, and keeps your AI agent configs in sync with your codebase. It fingerprints your project languages, frameworks, dependencies, architecture — and produces tailored configs for **Claude Code**, **Cursor**, and **OpenAI Codex**. When your code evolves, Caliber detects the drift and updates your configs to match.
32
30
 
33
31
  ## Before / After
34
32
 
@@ -69,31 +67,26 @@ If your existing config scores **95+**, Caliber skips full regeneration and appl
69
67
 
70
68
  ## How It Works
71
69
 
72
- Caliber is not a one-time setup tool. It's continuous sync:
70
+ Caliber is not a one-time setup tool. It's a loop:
73
71
 
74
72
  ```
75
- caliber init
76
-
77
-
78
- Install sync infrastructure
79
- (pre-commit hook + agent skills)
80
-
81
-
82
- Generate configs (optional)
83
-
84
-
85
- ┌──────────────────────────────┐
86
- You code. You commit.
87
- │ Caliber syncs all agents. │◄──── automatic on every commit
88
- │ │
89
- │ CLAUDE.md ✓ │
90
- │ .cursor/rules/ ✓ │
91
- │ AGENTS.md ✓ │
92
- │ copilot-instructions.md ✓ │
93
- └──────────────────────────────┘
73
+ caliber score
74
+
75
+
76
+ ┌──── caliber init ◄────────────────┐
77
+ (generate / fix)
78
+ │ │
79
+
80
+ │ your code evolves │
81
+ (new deps, renamed files, │
82
+ │ changed architecture) │
83
+ │ │ │
84
+
85
+ └──► caliber refresh ──────────────►┘
86
+ (detect drift, update configs)
94
87
  ```
95
88
 
96
- The pre-commit hook runs `caliber refresh` on every commit, updating all agent configs simultaneously. Your agents always have current context.
89
+ Auto-refresh hooks run this loop automatically — on every commit or at the end of each AI coding session.
97
90
 
98
91
  ### What It Generates
99
92
 
@@ -113,10 +106,6 @@ The pre-commit hook runs `caliber refresh` on every commit, updating all agent c
113
106
  - `AGENTS.md` — Project context for Codex
114
107
  - `.agents/skills/*/SKILL.md` — Skills for Codex
115
108
 
116
- **GitHub Copilot**
117
- - `.github/copilot-instructions.md` — Repository-wide instructions for Copilot
118
- - `.github/instructions/*.instructions.md` — Path-specific instruction files
119
-
120
109
  ## Key Features
121
110
 
122
111
  <details>
@@ -189,59 +178,22 @@ Learned items are categorized by type — **[correction]**, **[gotcha]**, **[fix
189
178
  </details>
190
179
 
191
180
  <details>
192
- <summary><strong>Continuous Sync</strong></summary>
181
+ <summary><strong>Auto-Refresh</strong></summary>
193
182
 
194
- Caliber keeps all agent configs in sync automatically:
183
+ Keep configs in sync with your codebase automatically:
195
184
 
196
185
  | Hook | Trigger | What it does |
197
186
  |---|---|---|
198
- | **Git pre-commit** | Before each commit | Refreshes all agent configs and stages updated files |
199
- | **Agent instructions** | Before commit in Claude Code/Cursor | Agent announces "Caliber: syncing..." if hook isn't installed |
187
+ | **Git pre-commit** | Before each commit | Refreshes docs and stages updated files |
200
188
  | **Claude Code session end** | End of each session | Runs `caliber refresh` and updates docs |
201
189
  | **Learning hooks** | During each session | Captures events for session learning |
202
190
 
203
- The pre-commit hook is installed automatically during `caliber init`. It uses the fast model (~$0.01/commit) and takes a few seconds.
204
-
205
191
  ```bash
206
192
  caliber hooks --install # Enable refresh hooks
207
193
  caliber hooks --remove # Disable refresh hooks
208
194
  ```
209
195
 
210
- </details>
211
-
212
- <details>
213
- <summary><strong>Team Sync via GitHub Action</strong></summary>
214
-
215
- For teams, add the Caliber GitHub Action for automatic sync across all developers:
216
-
217
- ```yaml
218
- # .github/workflows/caliber-sync.yml
219
- name: Caliber Sync
220
- on:
221
- schedule:
222
- - cron: '0 3 * * 1-5' # Nightly on weekdays
223
- pull_request:
224
- types: [opened, synchronize]
225
- workflow_dispatch:
226
-
227
- jobs:
228
- sync:
229
- runs-on: ubuntu-latest
230
- steps:
231
- - uses: actions/checkout@v4
232
- - uses: caliber-ai-org/ai-setup@v1
233
- with:
234
- mode: sync
235
- auto-refresh: true
236
- comment: true
237
- github-token: ${{ secrets.GITHUB_TOKEN }}
238
- env:
239
- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
240
- ```
241
-
242
- This creates nightly PRs with refreshed configs and posts sync status on every PR. No developer needs to install Caliber locally — the Action handles team-wide sync.
243
-
244
- New team members can run `/setup-caliber` inside their coding agent (Claude Code or Cursor) to set up local hooks for instant sync on every commit.
196
+ The `refresh` command analyzes your git diff (committed, staged, and unstaged changes) and updates config files to reflect what changed.
245
197
 
246
198
  </details>
247
199
 
@@ -261,7 +213,7 @@ New team members can run `/setup-caliber` inside their coding agent (Claude Code
261
213
  |---|---|
262
214
  | `caliber score` | Score config quality (deterministic, no LLM) |
263
215
  | `caliber score --compare <ref>` | Compare current score against a git ref |
264
- | `caliber init` | Set up continuous sync install hooks, generate configs, install agent skills |
216
+ | `caliber init` | Full setup wizardanalyze, generate, review, install hooks |
265
217
  | `caliber regenerate` | Re-analyze and regenerate configs (aliases: `regen`, `re`) |
266
218
  | `caliber refresh` | Update docs based on recent code changes |
267
219
  | `caliber skills` | Discover and install community skills |