Files
open-web-agent-rs/packages/genaiscript/package.json
geoffsee 66d3c06230 init
2025-05-23 09:48:26 -04:00

29 lines
1.7 KiB
JSON

{
"name": "@web-agent-rs/genaiscript",
"type": "module",
"workspaces": ["packages/*"],
"private": true,
"scripts": {
"dev": "cargo watch -x 'run src/main.rs'",
"ai:search": "genaiscript run genaisrc/web-search.genai.mts --vars USER_INPUT='who won the 2024 election?'",
"shim:ai:search": "pnpm build && ./dist/shim.js --file=genaisrc/search.genai.mts USER_INPUT=\"Who won the 2024 presidential election?\"\n",
"ai:news": "genaiscript run genaisrc/news-search.genai.mts --vars USER_INPUT='What are the latest updates and developments in the Ukraine war?'",
"ai:url:read": "genaiscript run genaisrc/web-scrape.genai.mts --vars USER_INPUT='{\"url\":\"https://geoff.seemueller.io/about\",\"query\":\"Describe the details of the page.\", \"action\": \"read\"}'",
"ai:url:scrape": "npx genaiscript run genaisrc/web-scrape.genai.mts --vars USER_INPUT='{\"url\":\"https://www.time4learning.com/homeschool-curriculum/high-school/eleventh-grade/math.html\",\"query\":\"What is on this page?\", \"action\": \"scrape\"}'",
"crypto:quote": "npx genaiscript run genaisrc/finance-query.genai.mts --vars USER_INPUT='Get a quote for BTC'",
"crypto:news": "npx genaiscript run genaisrc/finance-query.genai.mts --vars USER_INPUT='What is the news for Bitcoin?'",
"crypto:overview": "npx genaiscript run genaisrc/finance-query.genai.mts --vars USER_INPUT='What are the trending symbols in the market?'"
},
"dependencies": {
"@agentic/perigon": "^7.2.0",
"@agentic/searxng": "7.5.3",
"@kevinwatt/mcp-server-searxng": "^0.3.9",
"@types/node": "^22.10.2",
"genaiscript": "^1.95.1",
"happy-dom": "^16.0.1",
"@web-agent-rs/perigon": "workspace:*",
"@web-agent-rs/core": "workspace:*",
"ky": "^1.8.0"
}
}