aiframe-agent-cli 1.0.2 → 1.0.3
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.
- package/dist/public/index.html +2 -1
- package/package.json +1 -1
package/dist/public/index.html
CHANGED
|
@@ -1593,8 +1593,9 @@
|
|
|
1593
1593
|
agentsList.innerHTML = '';
|
|
1594
1594
|
agentsData.forEach(agent => {
|
|
1595
1595
|
const name = agent.data?.name || agent.filename.replace('.yaml', '');
|
|
1596
|
+
const fileKey = agent.filename.replace('.yaml', '').replace('.yml', '');
|
|
1596
1597
|
agentsList.innerHTML += `
|
|
1597
|
-
<div class="draggable-item" draggable="true" data-type="sidebar-agent" data-payload="agent/${
|
|
1598
|
+
<div class="draggable-item" draggable="true" data-type="sidebar-agent" data-payload="agent/${fileKey}">
|
|
1598
1599
|
<span>${name}</span>
|
|
1599
1600
|
<span class="badge badge-purple">Agent</span>
|
|
1600
1601
|
</div>
|