osborn 0.9.215 → 0.9.217

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/claude-llm.js +23 -26
  2. package/package.json +1 -1
@@ -139,32 +139,29 @@ function getSubagentsDir(workingDir) {
139
139
  mkdirSync(dir, { recursive: true });
140
140
  return dir;
141
141
  }
142
- /**
143
- * Load skill files from agent/.claude/skills/{name}/SKILL.md
144
- * Injects into system prompt so Claude sees them as available capabilities.
145
- * Skills execute via Bash — no SDK settingSources needed.
146
- */
147
- function loadSkillsFromDir(agentDir) {
148
- const skillsDir = join(agentDir, '.claude', 'skills');
149
- if (!existsSync(skillsDir))
150
- return '';
151
- const skills = [];
152
- try {
153
- for (const skillName of readdirSync(skillsDir)) {
154
- const skillFile = join(skillsDir, skillName, 'SKILL.md');
155
- if (existsSync(skillFile)) {
156
- skills.push(readFileSync(skillFile, 'utf-8').trim());
157
- }
158
- }
159
- }
160
- catch (err) {
161
- console.warn('⚠️ Failed to load skills:', err);
162
- }
163
- if (skills.length === 0)
164
- return '';
165
- console.log(`📚 Loaded ${skills.length} skill(s) from ${skillsDir}`);
166
- return `<available-skills>\n${skills.join('\n\n---\n\n')}\n</available-skills>`;
167
- }
142
+ // DEPRECATED / DEAD (kept for reference, do NOT re-wire): read skills from an
143
+ // arbitrary agentDir/.claude/skills. This was the cwd-based reader that caused the
144
+ // home-vs-cwd divergence. All skill reads now go through the single source of truth
145
+ // (~/.claude/skills) via loadAllSkills / enumerateSkillsForCompaction / loadSkillsList.
146
+ // Commented out rather than removed so the old shape stays visible.
147
+ // function loadSkillsFromDir(agentDir: string): string {
148
+ // const skillsDir = join(agentDir, '.claude', 'skills')
149
+ // if (!existsSync(skillsDir)) return ''
150
+ // const skills: string[] = []
151
+ // try {
152
+ // for (const skillName of readdirSync(skillsDir)) {
153
+ // const skillFile = join(skillsDir, skillName, 'SKILL.md')
154
+ // if (existsSync(skillFile)) {
155
+ // skills.push(readFileSync(skillFile, 'utf-8').trim())
156
+ // }
157
+ // }
158
+ // } catch (err) {
159
+ // console.warn('⚠️ Failed to load skills:', err)
160
+ // }
161
+ // if (skills.length === 0) return ''
162
+ // console.log(`📚 Loaded ${skills.length} skill(s) from ${skillsDir}`)
163
+ // return `<available-skills>\n${skills.join('\n\n---\n\n')}\n</available-skills>`
164
+ // }
168
165
  /**
169
166
  * Loads skills from both ~/.claude/skills/ (home dir) and {workingDir}/.claude/skills/ (project dir).
170
167
  * Merges results, deduplicating by skill directory name — home dir wins on conflicts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osborn",
3
- "version": "0.9.215",
3
+ "version": "0.9.217",
4
4
  "description": "Voice AI coding assistant - local agent that connects to Osborn frontend",
5
5
  "type": "module",
6
6
  "bin": {