jsfe 0.9.23 → 0.9.24

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/index.js +38 -38
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -58,38 +58,38 @@ export function parseFlows(input) {
58
58
  // This registry contains all engine-generated user-facing messages
59
59
  const DEFAULT_MESSAGE_REGISTRY = {
60
60
  en: {
61
- flow_init: "🤖 Processing {{flowPrompt}}",
62
- flow_interrupted: "🔄 Switched to {{flowPrompt}}\n\n(Your previous \"{{previousFlowPrompt}}\" progress has been saved)",
63
- flow_resumed: "🔄 Resuming where you left off with {{flowPrompt}}.",
64
- flow_resumed_with_guidance: "🔄 Resuming {{flowPrompt}} - Type 'cancel flow' or 'help' for options.",
65
- flow_completed: "{{flowPrompt}} completed successfully.",
66
- flow_completed_generic: "Flow completed.",
67
- flow_cancelled: "Cancelled {{flowPrompt}}.",
61
+ flow_init: "Processing {{flowPrompt}}",
62
+ flow_interrupted: "Switched to {{flowPrompt}}\n\n(Your previous \"{{previousFlowPrompt}}\" progress has been saved)",
63
+ flow_resumed: "Resuming where you left off with {{flowPrompt}}.",
64
+ flow_resumed_with_guidance: "Resuming {{flowPrompt}} - Type 'cancel flow' or 'help' for options.",
65
+ flow_completed: "{{flowPrompt}} completed successfully.",
66
+ flow_completed_generic: "Flow completed.",
67
+ flow_cancelled: "Cancelled {{flowPrompt}}.",
68
68
  flow_help_general: "Processing {{flowPrompt}} - You can also 'cancel flow' or request 'help'.",
69
69
  flow_help_payment: "Processing {{flowPrompt}} - You can also 'cancel flow' or request 'help'.",
70
- critical_error: "I encountered a critical error. Let me restart our session to ensure everything works properly.",
71
- invalid_input: "I'm sorry, I didn't understand that. Please try again.",
72
- system_ready: "🤖 System ready. How can I help you today?",
73
- no_flows_available: "No workflows are currently available.",
74
- flow_execution_error: "An error occurred while processing your request. Please try again.",
70
+ critical_error: "I encountered a critical error. Let me restart our session to ensure everything works properly.",
71
+ invalid_input: "I'm sorry, I didn't understand that. Please try again.",
72
+ system_ready: "System ready. How can I help you today?",
73
+ no_flows_available: "No workflows are currently available.",
74
+ flow_execution_error: "An error occurred while processing your request. Please try again.",
75
75
  switch_no_branch_found: "SWITCH step: no branch found for value '{{switchValue}}' and no default branch defined",
76
76
  tool_failed: "Tool \"{{toolName}}\" failed: {{errorMessage}}",
77
77
  subflow_not_found: "Sub-flow \"{{subFlowName}}\" not found.",
78
- flow_switch_error: "Cannot switch to \"{{targetFlow}}\" - flow definition not found.\n\nReturning to main menu.",
79
- flow_not_found: "Could not start \"{{targetFlow}}\" - flow not found.",
78
+ flow_switch_error: "Cannot switch to \"{{targetFlow}}\" - flow definition not found.\n\nReturning to main menu.",
79
+ flow_not_found: "Could not start \"{{targetFlow}}\" - flow not found.",
80
80
  flow_switch_general_error: "I encountered an error while switching flows: {{errorMessage}}. Please try again or contact support if the issue persists.",
81
81
  // System Commands
82
- cmd_flow_exited: "Successfully exited {{flowName}}. How can I help you with something else?",
83
- cmd_help_title: "📋 Flow Help - {{flowName}}",
82
+ cmd_flow_exited: "Successfully exited {{flowName}}. How can I help you with something else?",
83
+ cmd_help_title: "Flow Help - {{flowName}}",
84
84
  cmd_help_available_commands: "Available commands while in this flow:",
85
85
  cmd_help_cancel: "• \"cancel flow\" - Exit this flow completely",
86
86
  cmd_help_status: "• \"status\" - Show current flow information",
87
87
  cmd_help_help: "• \"help\" - Show this help message",
88
- cmd_help_financial_warning: "⚠️ This is a financial transaction flow. Please complete or cancel to maintain security.",
89
- cmd_help_current_question: "**Current Question:**",
88
+ cmd_help_financial_warning: "This is a financial transaction flow. Please complete or cancel to maintain security.",
89
+ cmd_help_current_question: "Current Question:",
90
90
  cmd_help_respond_instruction: "Please respond to the question above, or use a command listed above.",
91
91
  cmd_help_continue_instruction: "Continue with your response to proceed, or use a command above.",
92
- cmd_status_title: "📊 **Flow Status**",
92
+ cmd_status_title: "Flow Status",
93
93
  cmd_status_current_flow: "Current Flow: {{flowName}}",
94
94
  cmd_status_steps_remaining: "Steps Remaining: {{stepsRemaining}}",
95
95
  cmd_status_stack_depth: "Stack Depth: {{stackDepth}}",
@@ -101,38 +101,38 @@ const DEFAULT_MESSAGE_REGISTRY = {
101
101
  cmd_interruption_continue: "continue",
102
102
  },
103
103
  es: {
104
- flow_init: "🤖 Procesando {{flowPrompt}}",
105
- flow_interrupted: "🔄 Cambiado a {{flowPrompt}}\n\n(Su progreso anterior de \"{{previousFlowPrompt}}\" ha sido guardado)",
106
- flow_resumed: "🔄 Continuando donde lo dejó con {{flowPrompt}}.",
107
- flow_resumed_with_guidance: "🔄 Continuando {{flowPrompt}} - Escriba 'cancelar flujo' o 'ayuda' para opciones.",
108
- flow_completed: "{{flowPrompt}} completado exitosamente.",
109
- flow_completed_generic: "Flujo completado.",
110
- flow_cancelled: "{{flowPrompt}} cancelado.",
104
+ flow_init: "Procesando {{flowPrompt}}",
105
+ flow_interrupted: "Cambiado a {{flowPrompt}}\n\n(Su progreso anterior de \"{{previousFlowPrompt}}\" ha sido guardado)",
106
+ flow_resumed: "Continuando donde lo dejó con {{flowPrompt}}.",
107
+ flow_resumed_with_guidance: "Continuando {{flowPrompt}} - Escriba 'cancelar flujo' o 'ayuda' para opciones.",
108
+ flow_completed: "{{flowPrompt}} completado exitosamente.",
109
+ flow_completed_generic: "Flujo completado.",
110
+ flow_cancelled: "{{flowPrompt}} cancelado.",
111
111
  flow_help_general: "Procesando {{flowPrompt}} - También puede 'cancelar flujo' o solicitar 'ayuda'.",
112
112
  flow_help_payment: "Procesando {{flowPrompt}} - También puede 'cancelar flujo' o solicitar 'ayuda'.",
113
- critical_error: "Encontré un error crítico. Permítame reiniciar nuestra sesión para asegurar que todo funcione correctamente.",
114
- invalid_input: "Lo siento, no entendí eso. Por favor, inténtelo de nuevo.",
115
- system_ready: "🤖 Sistema listo. ¿Cómo puedo ayudarle hoy?",
116
- no_flows_available: "No hay flujos de trabajo disponibles actualmente.",
117
- flow_execution_error: "Ocurrió un error al procesar su solicitud. Por favor, inténtelo de nuevo.",
113
+ critical_error: "Encontré un error crítico. Permítame reiniciar nuestra sesión para asegurar que todo funcione correctamente.",
114
+ invalid_input: "Lo siento, no entendí eso. Por favor, inténtelo de nuevo.",
115
+ system_ready: "Sistema listo. ¿Cómo puedo ayudarle hoy?",
116
+ no_flows_available: "No hay flujos de trabajo disponibles actualmente.",
117
+ flow_execution_error: "Ocurrió un error al procesar su solicitud. Por favor, inténtelo de nuevo.",
118
118
  switch_no_branch_found: "Paso SWITCH: no se encontró rama para el valor '{{switchValue}}' y no se definió rama por defecto",
119
119
  tool_failed: "Herramienta \"{{toolName}}\" falló: {{errorMessage}}",
120
120
  subflow_not_found: "Sub-flujo \"{{subFlowName}}\" no encontrado.",
121
- flow_switch_error: "No se puede cambiar a \"{{targetFlow}}\" - definición de flujo no encontrada.\n\nRegresando al menú principal.",
122
- flow_not_found: "No se pudo iniciar \"{{targetFlow}}\" - flujo no encontrado.",
121
+ flow_switch_error: "No se puede cambiar a \"{{targetFlow}}\" - definición de flujo no encontrada.\n\nRegresando al menú principal.",
122
+ flow_not_found: "No se pudo iniciar \"{{targetFlow}}\" - flujo no encontrado.",
123
123
  flow_switch_general_error: "Encontré un error al cambiar flujos: {{errorMessage}}. Por favor intente de nuevo o contacte soporte si el problema persiste.",
124
124
  // System Commands
125
- cmd_flow_exited: "Salió exitosamente de {{flowName}}. ¿Cómo puedo ayudarle con algo más?",
126
- cmd_help_title: "📋 Ayuda del Flujo - {{flowName}}",
125
+ cmd_flow_exited: "Salió exitosamente de {{flowName}}. ¿Cómo puedo ayudarle con algo más?",
126
+ cmd_help_title: "Ayuda del Flujo - {{flowName}}",
127
127
  cmd_help_available_commands: "Comandos disponibles en este flujo:",
128
128
  cmd_help_cancel: "• \"cancelar flujo\" - Salir completamente de este flujo",
129
129
  cmd_help_status: "• \"estado\" - Mostrar información del flujo actual",
130
130
  cmd_help_help: "• \"ayuda\" - Mostrar este mensaje de ayuda",
131
- cmd_help_financial_warning: "⚠️ Este es un flujo de transacción financiera. Por favor complete o cancele para mantener la seguridad.",
132
- cmd_help_current_question: "**Pregunta Actual:**",
131
+ cmd_help_financial_warning: "Este es un flujo de transacción financiera. Por favor complete o cancele para mantener la seguridad.",
132
+ cmd_help_current_question: "Pregunta Actual:",
133
133
  cmd_help_respond_instruction: "Por favor responda a la pregunta anterior, o use un comando de la lista anterior.",
134
134
  cmd_help_continue_instruction: "Continúe con su respuesta para proceder, o use un comando anterior.",
135
- cmd_status_title: "📊 **Estado del Flujo**",
135
+ cmd_status_title: "Estado del Flujo",
136
136
  cmd_status_current_flow: "Flujo Actual: {{flowName}}",
137
137
  cmd_status_steps_remaining: "Pasos Restantes: {{stepsRemaining}}",
138
138
  cmd_status_stack_depth: "Profundidad de Pila: {{stackDepth}}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsfe",
3
- "version": "0.9.23",
3
+ "version": "0.9.24",
4
4
  "description": "TypeScript workflow engine for conversational/automation apps: multi-flow orchestration, interrupt/resume, stack-based control, robust errors, and flexible tool/REST integration.",
5
5
  "license": "MIT",
6
6
  "author": "Ron Pinkas",