@wipal/agent-team 1.2.4 → 1.2.5
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/package.json +1 -1
- package/src/ui/agents.html +3 -9
- package/src/ui/css/styles.css +2 -1
package/package.json
CHANGED
package/src/ui/agents.html
CHANGED
|
@@ -45,14 +45,8 @@
|
|
|
45
45
|
<span class="agent-role" x-text="agent.variants?.base_role || 'unknown'"></span>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="agent-variants">
|
|
48
|
-
<template x-for="(value, key) in agent.variants" :key="key
|
|
49
|
-
<
|
|
50
|
-
<template x-for="v in value" :key="v">
|
|
51
|
-
<span class="variant-tag" x-text="key + ': ' + v"></span>
|
|
52
|
-
</template>
|
|
53
|
-
<template x-else>
|
|
54
|
-
<span class="variant-tag" x-text="key + ': ' + value"></span>
|
|
55
|
-
</template>
|
|
48
|
+
<template x-for="(value, key) in agent.variants" :key="key">
|
|
49
|
+
<span class="variant-tag" x-text="key + ': ' + (Array.isArray(value) ? value.join(', ') : value)"></span>
|
|
56
50
|
</template>
|
|
57
51
|
</div>
|
|
58
52
|
<div class="agent-skills" x-show="agent.skills?.length">
|
|
@@ -290,7 +284,7 @@
|
|
|
290
284
|
} else {
|
|
291
285
|
// Single select: replace value
|
|
292
286
|
if (value) {
|
|
293
|
-
this.newAgent.variants[category] = value
|
|
287
|
+
this.newAgent.variants[category] = value;
|
|
294
288
|
} else {
|
|
295
289
|
delete this.newAgent.variants[category];
|
|
296
290
|
}
|