diff --git a/JS/edgechains/arakoodev/package.json b/JS/edgechains/arakoodev/package.json index f0296a13d..e6104b8b3 100644 --- a/JS/edgechains/arakoodev/package.json +++ b/JS/edgechains/arakoodev/package.json @@ -1,6 +1,6 @@ { - "name": "arakoodev", - "version": "1.0.10", + "name": "@arakoodev/edgechains.js", + "version": "0.1.23", "main": "dist/index.js", "files": [ "dist" diff --git a/JS/edgechains/examples/chat-with-llm/dist/index.js b/JS/edgechains/examples/chat-with-llm/dist/index.js index f45d910a3..8bc2a002b 100644 --- a/JS/edgechains/examples/chat-with-llm/dist/index.js +++ b/JS/edgechains/examples/chat-with-llm/dist/index.js @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import Jsonnet from "@arakoodev/jsonnet"; //@ts-ignore import createClient from 'sync-rpc'; diff --git a/JS/edgechains/examples/chat-with-llm/dist/lib/generateResponse.cjs b/JS/edgechains/examples/chat-with-llm/dist/lib/generateResponse.cjs index c2b4221f4..ec3fc3770 100644 --- a/JS/edgechains/examples/chat-with-llm/dist/lib/generateResponse.cjs +++ b/JS/edgechains/examples/chat-with-llm/dist/lib/generateResponse.cjs @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const zod_1 = require("zod"); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/chat-with-llm/package.json b/JS/edgechains/examples/chat-with-llm/package.json index 7a0cf0226..7312e29ff 100644 --- a/JS/edgechains/examples/chat-with-llm/package.json +++ b/JS/edgechains/examples/chat-with-llm/package.json @@ -11,8 +11,8 @@ }, "license": "ISC", "dependencies": { + "@arakoodev/edgechains.js": "^0.1.23", "@arakoodev/jsonnet": "^0.2.1", - "arakoodev": "^1.0.10", "sync-rpc": "^1.3.6", "zod": "^3.23.8" }, diff --git a/JS/edgechains/examples/chat-with-llm/readme.md b/JS/edgechains/examples/chat-with-llm/readme.md index 25cff9f54..4471fe0c0 100644 --- a/JS/edgechains/examples/chat-with-llm/readme.md +++ b/JS/edgechains/examples/chat-with-llm/readme.md @@ -1,6 +1,6 @@ ## Video ``` - https://drive.google.com/file/d/1y0tGZx9HnjZpWlMmJW-6Yt1fW9lXpxFD/view + https://youtu.be/fq3BpdduO2g ``` # Chat with LLM Example diff --git a/JS/edgechains/examples/chat-with-llm/src/index.ts b/JS/edgechains/examples/chat-with-llm/src/index.ts index 11a88ff01..bb60af63b 100644 --- a/JS/edgechains/examples/chat-with-llm/src/index.ts +++ b/JS/edgechains/examples/chat-with-llm/src/index.ts @@ -1,5 +1,5 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import Jsonnet from "@arakoodev/jsonnet"; //@ts-ignore import createClient from 'sync-rpc'; diff --git a/JS/edgechains/examples/chat-with-llm/src/lib/generateResponse.cts b/JS/edgechains/examples/chat-with-llm/src/lib/generateResponse.cts index bac42a8df..e91540199 100644 --- a/JS/edgechains/examples/chat-with-llm/src/lib/generateResponse.cts +++ b/JS/edgechains/examples/chat-with-llm/src/lib/generateResponse.cts @@ -1,5 +1,5 @@ const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); import { z } from "zod"; const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/chat-with-pdf/package.json b/JS/edgechains/examples/chat-with-pdf/package.json index 1e2c6ec9c..404d85dbd 100644 --- a/JS/edgechains/examples/chat-with-pdf/package.json +++ b/JS/edgechains/examples/chat-with-pdf/package.json @@ -13,9 +13,9 @@ "author": "", "license": "ISC", "dependencies": { + "@arakoodev/edgechains.js": "^0.1.23", "@arakoodev/jsonnet": "^0.2.0", "@babel/preset-env": "^7.24.4", - "arakoodev": "^1.0.10", "cli-spinner": "^0.2.10", "regenerator-runtime": "^0.14.1", "zod": "^3.23.8" diff --git a/JS/edgechains/examples/chat-with-pdf/src/index.ts b/JS/edgechains/examples/chat-with-pdf/src/index.ts index 29aba06b1..0afc160c8 100644 --- a/JS/edgechains/examples/chat-with-pdf/src/index.ts +++ b/JS/edgechains/examples/chat-with-pdf/src/index.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import { ChatRouter } from "./routes/chat.js"; const server = new ArakooServer(); diff --git a/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts b/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts index e502778ea..ec0500cb4 100644 --- a/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts +++ b/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts @@ -1,11 +1,11 @@ import path from "path"; import fs from "fs"; import { fileURLToPath } from "url"; -import { OpenAI } from "arakoodev/openai"; -import { Supabase } from "arakoodev/vector-db"; -import { PdfLoader } from "arakoodev/document-loader"; -import { TextSplitter } from "arakoodev/splitter"; -import { ArakooServer } from "arakoodev/arakooserver"; +import { OpenAI } from "@arakoodev/edgechains.js/openai"; +import { Supabase } from "@arakoodev/edgechains.js/vector-db"; +import { PdfLoader } from "@arakoodev/edgechains.js/document-loader"; +import { TextSplitter } from "@arakoodev/edgechains.js/splitter"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import { Spinner } from "cli-spinner" import { z } from "zod"; diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/index.js b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/index.js index 2dfa9181b..57549f2d0 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/index.js +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/index.js @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import { fileURLToPath } from "url"; import Jsonnet from "@arakoodev/jsonnet"; import path from "path"; diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs index 19d913877..3070d9172 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const path = require('path'); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs index 2fddac055..32e99cf7a 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const path = require('path'); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/package.json b/JS/edgechains/examples/getWeather-or-time-function-calling/package.json index 4e4305290..2a5257585 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/package.json +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/package.json @@ -12,17 +12,11 @@ "author": "", "license": "ISC", "dependencies": { + "@arakoodev/edgechains.js": "^0.1.23", "@arakoodev/jsonnet": "^0.2.1", - "@sendgrid/mail": "^8.1.3", - "arakoodev": "^1.0.9", "axios": "^1.7.1", "moment-timezone": "^0.5.45", "openai": "^4.47.1", - "readline-sync": "^1.4.10", - "resend": "^3.2.0", "sync-rpc": "^1.3.6" - }, - "devDependencies": { - "@types/readline-sync": "^1.4.8" } } diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/readme.md b/JS/edgechains/examples/getWeather-or-time-function-calling/readme.md index f53b38dca..16784f8d7 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/readme.md +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/readme.md @@ -1,6 +1,6 @@ ## Video ``` - https://drive.google.com/file/d/1amBXmUZVyWR6l-MaYuE9h6zAJyvIYNIp/view + https://youtu.be/oIsa24uPaQ4 ``` ## Installation diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts b/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts index 2d2ae446f..a7384822a 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import { fileURLToPath } from "url" import Jsonnet from "@arakoodev/jsonnet" import path from "path" diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIChat.cts b/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIChat.cts index 534745767..571b880c9 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIChat.cts +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIChat.cts @@ -1,4 +1,4 @@ -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const path = require('path'); const Jsonnet = require("@arakoodev/jsonnet"); diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIFunction.cts b/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIFunction.cts index 95bc2f4db..3fb367451 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIFunction.cts +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/src/lib/openAIFunction.cts @@ -1,4 +1,4 @@ -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const path = require('path'); const Jsonnet = require("@arakoodev/jsonnet"); diff --git a/JS/edgechains/examples/language-translater/backend/dist/index.js b/JS/edgechains/examples/language-translater/backend/dist/index.js index ab5a220e8..c8c7fcac1 100644 --- a/JS/edgechains/examples/language-translater/backend/dist/index.js +++ b/JS/edgechains/examples/language-translater/backend/dist/index.js @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import Jsonnet from "@arakoodev/jsonnet"; //@ts-ignore import createClient from 'sync-rpc'; diff --git a/JS/edgechains/examples/language-translater/backend/dist/lib/generateResponse.cjs b/JS/edgechains/examples/language-translater/backend/dist/lib/generateResponse.cjs index 02f0cc0b9..16b9c35c5 100644 --- a/JS/edgechains/examples/language-translater/backend/dist/lib/generateResponse.cjs +++ b/JS/edgechains/examples/language-translater/backend/dist/lib/generateResponse.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const zod_1 = require("zod"); const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); const secretsPath = path.join(__dirname, "../../jsonnet/secrets.jsonnet"); diff --git a/JS/edgechains/examples/language-translater/backend/package.json b/JS/edgechains/examples/language-translater/backend/package.json index 9f9b8a6d5..a3fdd3a02 100644 --- a/JS/edgechains/examples/language-translater/backend/package.json +++ b/JS/edgechains/examples/language-translater/backend/package.json @@ -11,6 +11,7 @@ }, "license": "ISC", "dependencies": { + "@arakoodev/edgechains.js": "^0.1.23", "@arakoodev/jsonnet": "^0.2.1", "hono": "^4.3.7", "sync-rpc": "^1.3.6", diff --git a/JS/edgechains/examples/language-translater/backend/src/index.ts b/JS/edgechains/examples/language-translater/backend/src/index.ts index ae7717abd..d904ac671 100644 --- a/JS/edgechains/examples/language-translater/backend/src/index.ts +++ b/JS/edgechains/examples/language-translater/backend/src/index.ts @@ -1,5 +1,5 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import Jsonnet from "@arakoodev/jsonnet"; //@ts-ignore import createClient from 'sync-rpc'; diff --git a/JS/edgechains/examples/language-translater/backend/src/lib/generateResponse.cts b/JS/edgechains/examples/language-translater/backend/src/lib/generateResponse.cts index 98b189a86..32182fdfc 100644 --- a/JS/edgechains/examples/language-translater/backend/src/lib/generateResponse.cts +++ b/JS/edgechains/examples/language-translater/backend/src/lib/generateResponse.cts @@ -1,6 +1,6 @@ import { z } from "zod"; const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/language-translater/readme.md b/JS/edgechains/examples/language-translater/readme.md index c92e67c3b..06898d537 100644 --- a/JS/edgechains/examples/language-translater/readme.md +++ b/JS/edgechains/examples/language-translater/readme.md @@ -1,6 +1,6 @@ ## Video ``` - https://drive.google.com/file/d/1QclGlD6mDEN9PMDEXAMkdZb0wY5uew8p/view + https://youtu.be/RTARGcRW_0I ``` # Project Name diff --git a/JS/edgechains/examples/react-chain/package.json b/JS/edgechains/examples/react-chain/package.json index 4ee0d10eb..f786273af 100644 --- a/JS/edgechains/examples/react-chain/package.json +++ b/JS/edgechains/examples/react-chain/package.json @@ -12,8 +12,8 @@ "author": "", "license": "ISC", "dependencies": { + "@arakoodev/edgechains.js": "^0.1.23", "@arakoodev/jsonnet": "^0.2.1", - "arakoodev": "^1.0.10", "sync-rpc": "^1.3.6" }, "devDependencies": { diff --git a/JS/edgechains/examples/react-chain/src/index.ts b/JS/edgechains/examples/react-chain/src/index.ts index 4c92b738a..9a995a870 100644 --- a/JS/edgechains/examples/react-chain/src/index.ts +++ b/JS/edgechains/examples/react-chain/src/index.ts @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import { ReactChainRouter } from "./routes/react-chain.js"; const server = new ArakooServer(); diff --git a/JS/edgechains/examples/react-chain/src/lib/generateResponse.cts b/JS/edgechains/examples/react-chain/src/lib/generateResponse.cts index 2d96e2a70..fedb6805d 100644 --- a/JS/edgechains/examples/react-chain/src/lib/generateResponse.cts +++ b/JS/edgechains/examples/react-chain/src/lib/generateResponse.cts @@ -1,5 +1,5 @@ const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/react-chain/src/routes/react-chain.ts b/JS/edgechains/examples/react-chain/src/routes/react-chain.ts index 8733dd248..c46f81f5d 100644 --- a/JS/edgechains/examples/react-chain/src/routes/react-chain.ts +++ b/JS/edgechains/examples/react-chain/src/routes/react-chain.ts @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; //@ts-ignore import Jsonnet from "@arakoodev/jsonnet"; import { fileURLToPath } from "url"; diff --git a/JS/edgechains/examples/summarize-page/dist/index.js b/JS/edgechains/examples/summarize-page/dist/index.js index 92fa1d857..55320e6d6 100644 --- a/JS/edgechains/examples/summarize-page/dist/index.js +++ b/JS/edgechains/examples/summarize-page/dist/index.js @@ -1,4 +1,4 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import Jsonnet from "@arakoodev/jsonnet"; //@ts-ignore import createClient from 'sync-rpc'; diff --git a/JS/edgechains/examples/summarize-page/dist/lib/generateResponse.cjs b/JS/edgechains/examples/summarize-page/dist/lib/generateResponse.cjs index b2201b8f8..6bb1a5ad6 100644 --- a/JS/edgechains/examples/summarize-page/dist/lib/generateResponse.cjs +++ b/JS/edgechains/examples/summarize-page/dist/lib/generateResponse.cjs @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); const zod_1 = require("zod"); const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/summarize-page/dist/lib/getDataFromUrl.cjs b/JS/edgechains/examples/summarize-page/dist/lib/getDataFromUrl.cjs index 25cec9ac5..a60eb860f 100644 --- a/JS/edgechains/examples/summarize-page/dist/lib/getDataFromUrl.cjs +++ b/JS/edgechains/examples/summarize-page/dist/lib/getDataFromUrl.cjs @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const { WebScraper } = require("arakoodev/scraper"); +const { WebScraper } = require("@arakoodev/edgechains.js/scraper"); const scraper = new WebScraper(); function getPageContent() { return (url) => { diff --git a/JS/edgechains/examples/summarize-page/package.json b/JS/edgechains/examples/summarize-page/package.json index e5bb7a8e8..e9881de2b 100644 --- a/JS/edgechains/examples/summarize-page/package.json +++ b/JS/edgechains/examples/summarize-page/package.json @@ -11,8 +11,8 @@ }, "license": "ISC", "dependencies": { + "@arakoodev/edgechains.js": "^0.1.23", "@arakoodev/jsonnet": "^0.2.1", - "arakoodev": "^1.0.10", "sync-rpc": "^1.3.6", "zod": "^3.23.8" }, diff --git a/JS/edgechains/examples/summarize-page/readme.md b/JS/edgechains/examples/summarize-page/readme.md index 3e90ce024..ae4e732d9 100644 --- a/JS/edgechains/examples/summarize-page/readme.md +++ b/JS/edgechains/examples/summarize-page/readme.md @@ -1,6 +1,6 @@ ## Video ``` - https://drive.google.com/file/d/14t8B_A6MGgDE5E2j3YPM4DnO3r_WOUun/view + https://youtu.be/4gouiNUuBr4 ``` diff --git a/JS/edgechains/examples/summarize-page/src/index.ts b/JS/edgechains/examples/summarize-page/src/index.ts index a35eb40c3..d5fa96fba 100644 --- a/JS/edgechains/examples/summarize-page/src/index.ts +++ b/JS/edgechains/examples/summarize-page/src/index.ts @@ -1,5 +1,5 @@ -import { ArakooServer } from "arakoodev/arakooserver"; +import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver"; import Jsonnet from "@arakoodev/jsonnet"; //@ts-ignore import createClient from 'sync-rpc'; diff --git a/JS/edgechains/examples/summarize-page/src/lib/generateResponse.cts b/JS/edgechains/examples/summarize-page/src/lib/generateResponse.cts index 49a446c83..3419c2176 100644 --- a/JS/edgechains/examples/summarize-page/src/lib/generateResponse.cts +++ b/JS/edgechains/examples/summarize-page/src/lib/generateResponse.cts @@ -1,5 +1,5 @@ const path = require("path"); -const { OpenAI } = require("arakoodev/openai"); +const { OpenAI } = require("@arakoodev/edgechains.js/openai"); import { z } from "zod"; const Jsonnet = require("@arakoodev/jsonnet"); const jsonnet = new Jsonnet(); diff --git a/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts b/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts index 552a3b6c5..74d8bbf10 100644 --- a/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts +++ b/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts @@ -1,5 +1,5 @@ -const { WebScraper } = require("arakoodev/scraper") +const { WebScraper } = require("@arakoodev/edgechains.js/scraper") const scraper = new WebScraper();