clementine-agent 1.18.50 → 1.18.51

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.
@@ -215,6 +215,18 @@ export class AgentManager {
215
215
  budgetMonthlyCents: meta.budgetMonthlyCents ? Number(meta.budgetMonthlyCents) : undefined,
216
216
  strictMemoryIsolation: meta.strictMemoryIsolation === false ? false : true, // default true for all agents
217
217
  activeHours,
218
+ // SDK auto-routing: short imperative capability hints + role label.
219
+ // Used by buildHiredAgentDescription in agent-definitions.ts so the
220
+ // SDK has actual data to match against user prompts.
221
+ role: meta.role ? String(meta.role) : undefined,
222
+ routingHints: Array.isArray(meta.routingHints)
223
+ ? meta.routingHints.map(String).filter(Boolean)
224
+ : typeof meta.routingHints === 'string'
225
+ ? meta.routingHints.split(',').map((s) => s.trim()).filter(Boolean)
226
+ : undefined,
227
+ effort: ['low', 'medium', 'high', 'xhigh', 'max'].includes(meta.effort)
228
+ ? meta.effort
229
+ : undefined,
218
230
  };
219
231
  }
220
232
  // ── ProfileManager-compatible interface ───────────────────────────
@@ -1784,8 +1784,12 @@ export class Gateway {
1784
1784
  // Salesforce, etc) so chat can reach the same tools the
1785
1785
  // legacy chat path did. Profile allowlists override the
1786
1786
  // bundle router when set.
1787
+ //
1788
+ // Use originalText (not chatPrompt) for scope routing —
1789
+ // chatPrompt may have the partial-interrupt banner folded in,
1790
+ // which would skew bundle matching.
1787
1791
  const chatMcp = await buildExtraMcpForRunAgent({
1788
- scopeText: chatPrompt,
1792
+ scopeText: originalText,
1789
1793
  profile: resolvedProfile,
1790
1794
  });
1791
1795
  // Inject vault context (SOUL.md / MEMORY.md / AGENTS.md +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clementine-agent",
3
- "version": "1.18.50",
3
+ "version": "1.18.51",
4
4
  "description": "Clementine — Personal AI Assistant (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",