feat: agent resources upgrade

This commit is contained in:
Shivering Ocelot committed 2026-10-02 20:37:58 -05:00
1 parent 659b7497fb
commit ee323fe660
6 files changed
+170 -71

No files matched your search

+12
View File
@@ -1,5 +1,6 @@
<script setup>
import { ref, computed, watch } from 'vue'
import * as ui from '../ui'
const props = defineProps({
/** JSON schema object describing the input structure */
@@ -55,6 +56,17 @@
};
}
async function addField(field) {
let key = await ui.input("Enter new property name");
if (!key) return;
// Never mutate the field object in place.
currentValue.value = {
...(currentValue.value || {}),
[key]: null
};
}
const computedFields = computed(() => {
let fields = [];
let skip = {};