@rely-ai/caliber 1.22.0-dev.1773764723 → 1.22.0-dev.1773765306

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 (2) hide show
  1. package/dist/bin.js +4 -21
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -6407,15 +6407,15 @@ async function interactiveSelect(recs) {
6407
6407
  async function fetchSkillContent(rec) {
6408
6408
  if (!rec.source_url) return null;
6409
6409
  const repoPath = rec.source_url.replace("https://github.com/", "");
6410
+ const FETCH_TIMEOUT = 5e3;
6410
6411
  const candidates = [
6411
6412
  `https://raw.githubusercontent.com/${repoPath}/HEAD/skills/${rec.slug}/SKILL.md`,
6412
- `https://raw.githubusercontent.com/${repoPath}/HEAD/${rec.slug}/SKILL.md`,
6413
6413
  `https://raw.githubusercontent.com/${repoPath}/HEAD/.claude/skills/${rec.slug}/SKILL.md`,
6414
- `https://raw.githubusercontent.com/${repoPath}/HEAD/.agents/skills/${rec.slug}/SKILL.md`
6414
+ `https://raw.githubusercontent.com/${repoPath}/HEAD/${rec.slug}/SKILL.md`
6415
6415
  ];
6416
6416
  for (const url of candidates) {
6417
6417
  try {
6418
- const resp = await fetch(url, { signal: AbortSignal.timeout(1e4) });
6418
+ const resp = await fetch(url, { signal: AbortSignal.timeout(FETCH_TIMEOUT) });
6419
6419
  if (resp.ok) {
6420
6420
  const text = await resp.text();
6421
6421
  if (text.length > 20) return text;
@@ -6423,23 +6423,6 @@ async function fetchSkillContent(rec) {
6423
6423
  } catch {
6424
6424
  }
6425
6425
  }
6426
- try {
6427
- const resp = await fetch(
6428
- `https://api.github.com/repos/${repoPath}/git/trees/HEAD?recursive=1`,
6429
- { signal: AbortSignal.timeout(1e4) }
6430
- );
6431
- if (resp.ok) {
6432
- const tree = await resp.json();
6433
- const needle = `${rec.slug}/SKILL.md`;
6434
- const match = tree.tree?.find((f) => f.path.endsWith(needle));
6435
- if (match) {
6436
- const rawUrl = `https://raw.githubusercontent.com/${repoPath}/HEAD/${match.path}`;
6437
- const contentResp = await fetch(rawUrl, { signal: AbortSignal.timeout(1e4) });
6438
- if (contentResp.ok) return await contentResp.text();
6439
- }
6440
- }
6441
- } catch {
6442
- }
6443
6426
  return null;
6444
6427
  }
6445
6428
  async function installSkills(recs, platforms, contentMap) {
@@ -7439,7 +7422,7 @@ async function initCommand(options) {
7439
7422
  );
7440
7423
  display.update(TASK_SKILLS_GEN, "done", `${skillCount} skills`);
7441
7424
  })();
7442
- const SEARCH_TIMEOUT_MS = 6e4;
7425
+ const SEARCH_TIMEOUT_MS = 12e4;
7443
7426
  const searchPromise = wantsSkills ? (async () => {
7444
7427
  display.update(TASK_SKILLS_SEARCH, "running");
7445
7428
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.22.0-dev.1773764723",
3
+ "version": "1.22.0-dev.1773765306",
4
4
  "description": "Analyze your codebase and generate optimized AI agent configs (CLAUDE.md, .cursorrules, skills) — no API key needed",
5
5
  "type": "module",
6
6
  "bin": {