orchestrix-yuri 4.5.7 → 4.5.9

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.
@@ -194,14 +194,23 @@ const CHANNEL_MODE_INSTRUCTIONS = [
194
194
  function buildSystemPrompt() {
195
195
  const parts = [];
196
196
 
197
- // Layer 1: Yuri skill definition (persona + commands + behavior)
197
+ // Layer 1: Yuri persona (extracted essentials from SKILL.md)
198
+ // The full SKILL.md is ~11KB — too large for system prompt.
199
+ // We extract only: persona, principles, commands, greeting templates.
200
+ // Implementation details (tmux rules, memory layout, completion detection)
201
+ // are in task files and loaded by Claude on demand.
198
202
  if (fs.existsSync(SKILL_PATH)) {
199
203
  let skill = fs.readFileSync(SKILL_PATH, 'utf8');
200
- // Strip YAML frontmatter (---...---) — it's metadata for Claude Code, not prompt content
201
- skill = skill.replace(/^---[\s\S]*?---\s*\n/, '');
202
- parts.push(skill.trim());
204
+ skill = skill.replace(/^---[\s\S]*?---\s*\n/, ''); // strip frontmatter
205
+
206
+ // Extract sections up to "## Phase Execution" (everything after is implementation detail)
207
+ const cutoff = skill.indexOf('## Phase Execution');
208
+ if (cutoff > 0) {
209
+ skill = skill.slice(0, cutoff).trim();
210
+ }
211
+
212
+ parts.push(skill);
203
213
  } else {
204
- // Fallback if skill not installed
205
214
  parts.push(
206
215
  '# Yuri — Meta-Orchestrator\n\n' +
207
216
  'You are **Yuri**, a Meta-Orchestrator and Technical Chief of Staff.\n' +
@@ -291,9 +300,9 @@ function runClaude(args, cwd, timeout) {
291
300
  return resolve({ reply: '⏱ Response timed out.', raw: '' });
292
301
  }
293
302
  if (err) {
294
- log.error(`Claude CLI error: ${err.message}`);
303
+ log.error(`Claude CLI error: ${err.message.slice(0, 200)}`);
295
304
  if (stderr) log.info(`stderr: ${stderr.slice(0, 200)}`);
296
- return resolve({ reply: `❌ Claude CLI error: ${err.message}`, raw: stderr });
305
+ return resolve({ reply: `❌ Claude CLI error: ${err.message.slice(0, 200)}`, raw: stderr });
297
306
  }
298
307
 
299
308
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrix-yuri",
3
- "version": "4.5.7",
3
+ "version": "4.5.9",
4
4
  "description": "Yuri — Meta-Orchestrator for Orchestrix. Drive your entire project lifecycle with natural language.",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {