@rely-ai/caliber 1.31.0-dev.1774711826 → 1.31.0-dev.1774712501
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.
- package/dist/bin.js +32 -19
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -368,6 +368,7 @@ These are auto-extracted from real tool usage \u2014 treat them as project-speci
|
|
|
368
368
|
var builtin_skills_exports = {};
|
|
369
369
|
__export(builtin_skills_exports, {
|
|
370
370
|
BUILTIN_SKILLS: () => BUILTIN_SKILLS,
|
|
371
|
+
BUILTIN_SKILL_NAMES: () => BUILTIN_SKILL_NAMES,
|
|
371
372
|
FIND_SKILLS_SKILL: () => FIND_SKILLS_SKILL,
|
|
372
373
|
SAVE_LEARNING_SKILL: () => SAVE_LEARNING_SKILL,
|
|
373
374
|
SETUP_CALIBER_SKILL: () => SETUP_CALIBER_SKILL,
|
|
@@ -603,7 +604,6 @@ function ensureBuiltinSkills() {
|
|
|
603
604
|
if (!fs17.existsSync(platformDir)) continue;
|
|
604
605
|
for (const skill of BUILTIN_SKILLS) {
|
|
605
606
|
const skillPath = path16.join(skillsDir, skill.name, "SKILL.md");
|
|
606
|
-
if (fs17.existsSync(skillPath)) continue;
|
|
607
607
|
fs17.mkdirSync(path16.dirname(skillPath), { recursive: true });
|
|
608
608
|
fs17.writeFileSync(skillPath, buildSkillContent(skill));
|
|
609
609
|
written.push(skillPath);
|
|
@@ -611,7 +611,7 @@ function ensureBuiltinSkills() {
|
|
|
611
611
|
}
|
|
612
612
|
return written;
|
|
613
613
|
}
|
|
614
|
-
var FIND_SKILLS_SKILL, SAVE_LEARNING_SKILL, SETUP_CALIBER_SKILL, BUILTIN_SKILLS, PLATFORM_CONFIGS;
|
|
614
|
+
var FIND_SKILLS_SKILL, SAVE_LEARNING_SKILL, SETUP_CALIBER_SKILL, BUILTIN_SKILLS, PLATFORM_CONFIGS, BUILTIN_SKILL_NAMES;
|
|
615
615
|
var init_builtin_skills = __esm({
|
|
616
616
|
"src/lib/builtin-skills.ts"() {
|
|
617
617
|
"use strict";
|
|
@@ -643,6 +643,7 @@ var init_builtin_skills = __esm({
|
|
|
643
643
|
{ platformDir: ".cursor", skillsDir: path16.join(".cursor", "skills") },
|
|
644
644
|
{ platformDir: ".agents", skillsDir: path16.join(".agents", "skills") }
|
|
645
645
|
];
|
|
646
|
+
BUILTIN_SKILL_NAMES = new Set(BUILTIN_SKILLS.map((s) => s.name));
|
|
646
647
|
}
|
|
647
648
|
});
|
|
648
649
|
|
|
@@ -2823,6 +2824,7 @@ var SKILL_FORMAT_RULES = `All skills follow the OpenSkills standard (agentskills
|
|
|
2823
2824
|
|
|
2824
2825
|
Skill field requirements:
|
|
2825
2826
|
- "name": kebab-case (lowercase letters, numbers, hyphens only). Becomes the directory name.
|
|
2827
|
+
- "name" MUST NOT be any of these reserved names (they are managed by Caliber automatically): "setup-caliber", "find-skills", "save-learning". Do NOT generate skills with these names.
|
|
2826
2828
|
- "description": MUST include WHAT it does + WHEN to use it with specific trigger phrases. Example: "Manages database migrations. Use when user says 'run migration', 'create migration', 'db schema change', or modifies files in db/migrations/."
|
|
2827
2829
|
- "content": markdown body only \u2014 do NOT include YAML frontmatter, it is generated from name+description.
|
|
2828
2830
|
|
|
@@ -3674,7 +3676,7 @@ if ${guard}; then
|
|
|
3674
3676
|
echo "\\033[2mcaliber: refreshing docs...\\033[0m"
|
|
3675
3677
|
${invoke} refresh 2>/dev/null || true
|
|
3676
3678
|
${invoke} learn finalize 2>/dev/null || true
|
|
3677
|
-
git diff --name-only -- CLAUDE.md .claude/ .cursor/ AGENTS.md CALIBER_LEARNINGS.md 2>/dev/null | xargs git add 2>/dev/null || true
|
|
3679
|
+
git diff --name-only -- CLAUDE.md .claude/ .cursor/ .cursorrules .github/copilot-instructions.md .github/instructions/ AGENTS.md CALIBER_LEARNINGS.md 2>/dev/null | xargs git add 2>/dev/null || true
|
|
3678
3680
|
fi
|
|
3679
3681
|
${PRECOMMIT_END}`;
|
|
3680
3682
|
}
|
|
@@ -9159,7 +9161,7 @@ async function initCommand(options) {
|
|
|
9159
9161
|
console.log(chalk14.dim(" 3. Generate Audit existing config or generate from scratch"));
|
|
9160
9162
|
console.log(chalk14.dim(" 4. Finalize Review changes and score your setup\n"));
|
|
9161
9163
|
} else {
|
|
9162
|
-
console.log(brand.bold("\n CALIBER") + chalk14.dim(" \u2014
|
|
9164
|
+
console.log(brand.bold("\n CALIBER") + chalk14.dim(" \u2014 setting up continuous sync\n"));
|
|
9163
9165
|
}
|
|
9164
9166
|
const platforms = detectPlatforms();
|
|
9165
9167
|
if (!platforms.claude && !platforms.cursor && !platforms.codex) {
|
|
@@ -9208,11 +9210,12 @@ async function initCommand(options) {
|
|
|
9208
9210
|
`));
|
|
9209
9211
|
trackInitAgentSelected(targetAgent, agentAutoDetected);
|
|
9210
9212
|
console.log(title.bold(" Step 2/4 \u2014 Setup\n"));
|
|
9213
|
+
console.log(chalk14.dim(" Installing sync infrastructure...\n"));
|
|
9211
9214
|
const hookResult = installPreCommitHook();
|
|
9212
9215
|
if (hookResult.installed) {
|
|
9213
|
-
console.log(` ${chalk14.green("\u2713")} Pre-commit hook \u2014 configs sync on every commit`);
|
|
9216
|
+
console.log(` ${chalk14.green("\u2713")} Pre-commit hook installed \u2014 configs sync on every commit`);
|
|
9214
9217
|
} else if (hookResult.alreadyInstalled) {
|
|
9215
|
-
console.log(` ${chalk14.green("\u2713")} Pre-commit hook \u2014
|
|
9218
|
+
console.log(` ${chalk14.green("\u2713")} Pre-commit hook \u2014 active`);
|
|
9216
9219
|
}
|
|
9217
9220
|
const { ensureBuiltinSkills: ensureBuiltinSkills2 } = await Promise.resolve().then(() => (init_builtin_skills(), builtin_skills_exports));
|
|
9218
9221
|
for (const agent of targetAgent) {
|
|
@@ -9222,7 +9225,9 @@ async function initCommand(options) {
|
|
|
9222
9225
|
}
|
|
9223
9226
|
const skillsWritten = ensureBuiltinSkills2();
|
|
9224
9227
|
if (skillsWritten.length > 0) {
|
|
9225
|
-
console.log(` ${chalk14.green("\u2713")} Agent skills \u2014
|
|
9228
|
+
console.log(` ${chalk14.green("\u2713")} Agent skills installed \u2014 /setup-caliber, /find-skills, /save-learning`);
|
|
9229
|
+
} else {
|
|
9230
|
+
console.log(` ${chalk14.green("\u2713")} Agent skills \u2014 already installed`);
|
|
9226
9231
|
}
|
|
9227
9232
|
console.log("");
|
|
9228
9233
|
let baselineScore = computeLocalScore(process.cwd(), targetAgent);
|
|
@@ -9260,11 +9265,15 @@ async function initCommand(options) {
|
|
|
9260
9265
|
skipGeneration = !options.force;
|
|
9261
9266
|
} else if (hasExistingConfig && !options.force && !options.autoApprove) {
|
|
9262
9267
|
trackInitScoreComputed(baselineScore.score, passingCount, failingCount, false);
|
|
9263
|
-
|
|
9268
|
+
console.log(chalk14.dim("\n Sync infrastructure is ready. Caliber can also audit your existing"));
|
|
9269
|
+
console.log(chalk14.dim(" configs and improve them using AI.\n"));
|
|
9270
|
+
const auditAnswer = await promptInput(" Audit and improve your existing config? (Y/n) ");
|
|
9264
9271
|
skipGeneration = auditAnswer.toLowerCase() === "n";
|
|
9265
9272
|
} else if (!hasExistingConfig && !options.force && !options.autoApprove) {
|
|
9266
9273
|
trackInitScoreComputed(baselineScore.score, passingCount, failingCount, false);
|
|
9267
|
-
|
|
9274
|
+
console.log(chalk14.dim("\n Sync infrastructure is ready. Caliber can also generate tailored"));
|
|
9275
|
+
console.log(chalk14.dim(" CLAUDE.md, Cursor rules, and Codex configs for your project.\n"));
|
|
9276
|
+
const generateAnswer = await promptInput(" Generate agent configs? (Y/n) ");
|
|
9268
9277
|
skipGeneration = generateAnswer.toLowerCase() === "n";
|
|
9269
9278
|
} else {
|
|
9270
9279
|
trackInitScoreComputed(baselineScore.score, passingCount, failingCount, false);
|
|
@@ -9728,23 +9737,27 @@ ${agentRefs.join(" ")}
|
|
|
9728
9737
|
const done = chalk14.green("\u2713");
|
|
9729
9738
|
const skip = chalk14.dim("\u2013");
|
|
9730
9739
|
console.log(chalk14.bold(" What was configured:\n"));
|
|
9731
|
-
console.log(` ${done}
|
|
9732
|
-
console.log(` ${done}
|
|
9740
|
+
console.log(` ${done} Continuous sync ${chalk14.dim("pre-commit hook keeps all agent configs in sync")}`);
|
|
9741
|
+
console.log(` ${done} Config generated ${title(`${bin} score`)} ${chalk14.dim("for full breakdown")}`);
|
|
9742
|
+
console.log(` ${done} Agent skills ${chalk14.dim("/setup-caliber for new team members")}`);
|
|
9733
9743
|
if (hasLearnableAgent) {
|
|
9734
9744
|
if (enableLearn) {
|
|
9735
|
-
console.log(` ${done} Session learning
|
|
9745
|
+
console.log(` ${done} Session learning ${chalk14.dim("agent learns from your feedback")}`);
|
|
9736
9746
|
} else {
|
|
9737
|
-
console.log(` ${skip} Session learning
|
|
9747
|
+
console.log(` ${skip} Session learning ${title(`${bin} learn install`)} ${chalk14.dim("to enable later")}`);
|
|
9738
9748
|
}
|
|
9739
9749
|
}
|
|
9740
9750
|
if (communitySkillsInstalled > 0) {
|
|
9741
|
-
console.log(` ${done} Community skills
|
|
9751
|
+
console.log(` ${done} Community skills ${chalk14.dim(`${communitySkillsInstalled} skill${communitySkillsInstalled > 1 ? "s" : ""} installed for your stack`)}`);
|
|
9742
9752
|
} else if (skillSearchResult.results.length > 0) {
|
|
9743
|
-
console.log(` ${skip} Community skills
|
|
9744
|
-
}
|
|
9745
|
-
console.log(chalk14.bold("\n
|
|
9746
|
-
console.log(
|
|
9747
|
-
console.log(
|
|
9753
|
+
console.log(` ${skip} Community skills ${chalk14.dim("available but skipped")}`);
|
|
9754
|
+
}
|
|
9755
|
+
console.log(chalk14.bold("\n What happens next:\n"));
|
|
9756
|
+
console.log(chalk14.dim(" Every commit will automatically sync your agent configs."));
|
|
9757
|
+
console.log(chalk14.dim(" New team members can run /setup-caliber to get set up instantly.\n"));
|
|
9758
|
+
console.log(chalk14.bold(" Explore:\n"));
|
|
9759
|
+
console.log(` ${title(`${bin} score`)} Full scoring breakdown with improvement tips`);
|
|
9760
|
+
console.log(` ${title(`${bin} skills`)} Find community skills for your stack`);
|
|
9748
9761
|
console.log(` ${title(`${bin} undo`)} Revert all changes from this run`);
|
|
9749
9762
|
console.log("");
|
|
9750
9763
|
if (options.showTokens) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rely-ai/caliber",
|
|
3
|
-
"version": "1.31.0-dev.
|
|
3
|
+
"version": "1.31.0-dev.1774712501",
|
|
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": {
|