@rely-ai/caliber 1.31.0-dev.1774712501 → 1.31.0-dev.1774714302

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 +70 -22
  2. package/dist/bin.js +2 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -26,7 +26,9 @@ 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 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.
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.
30
32
 
31
33
  ## Before / After
32
34
 
@@ -67,26 +69,31 @@ If your existing config scores **95+**, Caliber skips full regeneration and appl
67
69
 
68
70
  ## How It Works
69
71
 
70
- Caliber is not a one-time setup tool. It's a loop:
72
+ Caliber is not a one-time setup tool. It's continuous sync:
71
73
 
72
74
  ```
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)
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
+ └──────────────────────────────┘
87
94
  ```
88
95
 
89
- Auto-refresh hooks run this loop automatically — on every commit or at the end of each AI coding session.
96
+ The pre-commit hook runs `caliber refresh` on every commit, updating all agent configs simultaneously. Your agents always have current context.
90
97
 
91
98
  ### What It Generates
92
99
 
@@ -106,6 +113,10 @@ Auto-refresh hooks run this loop automatically — on every commit or at the end
106
113
  - `AGENTS.md` — Project context for Codex
107
114
  - `.agents/skills/*/SKILL.md` — Skills for Codex
108
115
 
116
+ **GitHub Copilot**
117
+ - `.github/copilot-instructions.md` — Repository-wide instructions for Copilot
118
+ - `.github/instructions/*.instructions.md` — Path-specific instruction files
119
+
109
120
  ## Key Features
110
121
 
111
122
  <details>
@@ -178,22 +189,59 @@ Learned items are categorized by type — **[correction]**, **[gotcha]**, **[fix
178
189
  </details>
179
190
 
180
191
  <details>
181
- <summary><strong>Auto-Refresh</strong></summary>
192
+ <summary><strong>Continuous Sync</strong></summary>
182
193
 
183
- Keep configs in sync with your codebase automatically:
194
+ Caliber keeps all agent configs in sync automatically:
184
195
 
185
196
  | Hook | Trigger | What it does |
186
197
  |---|---|---|
187
- | **Git pre-commit** | Before each commit | Refreshes docs and stages updated files |
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 |
188
200
  | **Claude Code session end** | End of each session | Runs `caliber refresh` and updates docs |
189
201
  | **Learning hooks** | During each session | Captures events for session learning |
190
202
 
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
+
191
205
  ```bash
192
206
  caliber hooks --install # Enable refresh hooks
193
207
  caliber hooks --remove # Disable refresh hooks
194
208
  ```
195
209
 
196
- The `refresh` command analyzes your git diff (committed, staged, and unstaged changes) and updates config files to reflect what changed.
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.
197
245
 
198
246
  </details>
199
247
 
@@ -213,7 +261,7 @@ The `refresh` command analyzes your git diff (committed, staged, and unstaged ch
213
261
  |---|---|
214
262
  | `caliber score` | Score config quality (deterministic, no LLM) |
215
263
  | `caliber score --compare <ref>` | Compare current score against a git ref |
216
- | `caliber init` | Full setup wizardanalyze, generate, review, install hooks |
264
+ | `caliber init` | Set up continuous sync install hooks, generate configs, install agent skills |
217
265
  | `caliber regenerate` | Re-analyze and regenerate configs (aliases: `regen`, `re`) |
218
266
  | `caliber refresh` | Update docs based on recent code changes |
219
267
  | `caliber skills` | Discover and install community skills |
package/dist/bin.js CHANGED
@@ -9230,6 +9230,8 @@ async function initCommand(options) {
9230
9230
  console.log(` ${chalk14.green("\u2713")} Agent skills \u2014 already installed`);
9231
9231
  }
9232
9232
  console.log("");
9233
+ console.log(chalk14.dim(" New team members can run /setup-caliber inside their coding agent"));
9234
+ console.log(chalk14.dim(" (Claude Code or Cursor) to get set up automatically.\n"));
9233
9235
  let baselineScore = computeLocalScore(process.cwd(), targetAgent);
9234
9236
  console.log(chalk14.dim(" Current config score:"));
9235
9237
  displayScoreSummary(baselineScore);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.31.0-dev.1774712501",
3
+ "version": "1.31.0-dev.1774714302",
4
4
  "description": "AI context infrastructure for coding agents — keeps CLAUDE.md, Cursor rules, and skills in sync as your codebase evolves",
5
5
  "type": "module",
6
6
  "bin": {