@usabledev/usable-chat 1.148.0 → 1.149.1

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/cli.js +17 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -155287,7 +155287,7 @@ var init_registry2 = __esm({
155287
155287
  * @returns Array of sub-agents that can handle the query
155288
155288
  */
155289
155289
  findHandlers(query, context) {
155290
- return this.getAll().filter((agent) => agent.canHandle(query, context));
155290
+ return this.getAll().filter((agent) => agent.canHandle(query, context)).sort((a21, b32) => (b32.priority ?? 0) - (a21.priority ?? 0));
155291
155291
  }
155292
155292
  /**
155293
155293
  * Check if a sub-agent is registered
@@ -156926,8 +156926,8 @@ ${effectiveSystemPrompt}`;
156926
156926
  apiKey: options2.apiKey,
156927
156927
  getAccessToken: options2.getAccessToken,
156928
156928
  // Pass token provider for MCP tool authentication
156929
- maxSteps: 10,
156930
- // Allow multi-step tool calling
156929
+ maxSteps: subAgent.maxTurns ?? 10,
156930
+ // Allow multi-step tool calling; expert maxTurns overrides default
156931
156931
  timeoutMs: 6e4,
156932
156932
  // 60 second timeout
156933
156933
  temperature,
@@ -157403,7 +157403,11 @@ var init_custom_expert = __esm({
157403
157403
  (val) => val.startsWith("data:") || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("/"),
157404
157404
  "Must be a valid URL, data URL, or path"
157405
157405
  ).optional(),
157406
- parentTools: external_exports.array(parentToolDefinitionSchema).max(MAX_PARENT_TOOLS).optional()
157406
+ parentTools: external_exports.array(parentToolDefinitionSchema).max(MAX_PARENT_TOOLS).optional(),
157407
+ excludeKeywords: external_exports.array(external_exports.string().min(1).max(50)).max(20).optional(),
157408
+ priority: external_exports.number().int().min(0).max(100).optional(),
157409
+ maxTurns: external_exports.number().int().min(1).max(50).optional(),
157410
+ uiShortName: external_exports.string().max(30).optional()
157407
157411
  });
157408
157412
  createCustomExpertSchema = external_exports.object({
157409
157413
  key: external_exports.string().min(1).max(100).regex(/^[a-z0-9-]+$/, "Key must be lowercase alphanumeric with hyphens").optional(),
@@ -242470,6 +242474,14 @@ Never treat a markdown file in working memory as a completed deliverable.
242470
242474
  systemMessageParts.push(LANGUAGE_PROMPT);
242471
242475
  orchestrationLogger.info("Multilingual mode enabled - Faroese language prompt added");
242472
242476
  }
242477
+ if (config3.language) {
242478
+ systemMessageParts.push(
242479
+ `The user interface requested language "${config3.language}". Answer in that language unless the user explicitly asks for another language.`
242480
+ );
242481
+ if (config3.language === "fo" && !config3.isMultilingual) {
242482
+ systemMessageParts.push(LANGUAGE_PROMPT);
242483
+ }
242484
+ }
242473
242485
  if (chatMode === "discussion") {
242474
242486
  systemMessageParts.push(`<discussion-mode>
242475
242487
  CRITICAL: You are in DISCUSSION MODE (read-only). This is a hard constraint you MUST follow.
@@ -262267,7 +262279,7 @@ init_tui_select();
262267
262279
  init_model_registry();
262268
262280
 
262269
262281
  // package.json
262270
- var version = "1.148.0";
262282
+ var version = "1.149.1";
262271
262283
 
262272
262284
  // src/adapters/cli/model-catalog.ts
262273
262285
  init_codex_auth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usabledev/usable-chat",
3
- "version": "1.148.0",
3
+ "version": "1.149.1",
4
4
  "description": "usable-chat — terminal harness for usable-chat (headless + TUI)",
5
5
  "type": "module",
6
6
  "bin": {