hermoso 0.1.21 → 0.1.23
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/mcp/client.mjs +5 -0
- package/mcp/tools.mjs +1430 -36
- package/package.json +1 -1
package/mcp/client.mjs
CHANGED
|
@@ -54,6 +54,11 @@ export async function apiPost(p, body = {}) {
|
|
|
54
54
|
return unwrap(res);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export async function apiDelete(p) {
|
|
58
|
+
const res = await fetch(`${API_BASE}${p}`, { method: 'DELETE', headers: headers() });
|
|
59
|
+
return unwrap(res);
|
|
60
|
+
}
|
|
61
|
+
|
|
57
62
|
export async function apiPut(p, body = {}) {
|
|
58
63
|
const res = await fetch(`${API_BASE}${p}`, { method: 'PUT', headers: headers(), body: JSON.stringify(body) });
|
|
59
64
|
return unwrap(res);
|