teddi-x
Version:
Teddi (teddi-x) is a Node package that extends security to vertical agents., applications, and tooling built on, for, or with AI.
31 lines (28 loc) • 1.01 kB
JavaScript
// import { secureFetch } from "./utils/secureFetch.js";
// import { withSecureFetch } from "./utils/withSecureFetch.js";
// import { getProxyUrl } from "./utils/getProxyUrl.js";
// // Avoid circular dependency by using dynamic import
// function createClient(teddiHash) {
// return {
// supabase: async() => {
// const { createSupabase } = await
// import ("./integrations/Supabase.js");
// return createSupabase(teddiHash, "1");
// },
// openai: async() => {
// const { createOpenai } = await
// import ("./integrations/openai.js");
// return createOpenai(teddiHash, "2");
// },
// // more integrations can go here
// };
// }
// // Named exports
// export { secureFetch, getProxyUrl, withSecureFetch, createClient };
// // Add a default export that includes all named exports
// export default {
// secureFetch,
// getProxyUrl,
// withSecureFetch,
// createClient,
// };