(field: string)
| 133 | } |
| 134 | |
| 135 | const getField = (field: string): string => { |
| 136 | const match = configText.match(new RegExp(`^${field}:\\s*([^\\n]+)`, 'm')); |
| 137 | return match && match[1] ? match[1].trim() : ''; |
| 138 | }; |
| 139 | |
| 140 | const agent: CompleteAgent = { |
| 141 | id: getField('id') || `agent_${Date.now()}`, // Fallback to ensure an ID exists |
no outgoing calls
no test coverage detected