diff --git a/packages/plugin-news/package.json b/packages/plugin-news/package.json index fe6104f639..538a413d2b 100644 --- a/packages/plugin-news/package.json +++ b/packages/plugin-news/package.json @@ -1,5 +1,5 @@ { - "name": "@ai16z/plugin-bootstrap", + "name": "@ai16z/plugin-news", "version": "0.1.5-alpha.5", "main": "dist/index.js", "type": "module", diff --git a/packages/plugin-news/src/index.ts b/packages/plugin-news/src/index.ts index 22de71d068..bcf6bb35a2 100644 --- a/packages/plugin-news/src/index.ts +++ b/packages/plugin-news/src/index.ts @@ -1,33 +1,16 @@ import { Plugin } from "@ai16z/eliza"; -import { continueAction } from "./actions/continue.ts"; -import { followRoomAction } from "./actions/followRoom.ts"; -import { ignoreAction } from "./actions/ignore.ts"; -import { muteRoomAction } from "./actions/muteRoom.ts"; -import { noneAction } from "./actions/none.ts"; -import { unfollowRoomAction } from "./actions/unfollowRoom.ts"; -import { unmuteRoomAction } from "./actions/unmuteRoom.ts"; -import { factEvaluator } from "./evaluators/fact.ts"; -import { goalEvaluator } from "./evaluators/goal.ts"; -import { boredomProvider } from "./providers/boredom.ts"; -import { factsProvider } from "./providers/facts.ts"; +import { currentNewsAction } from "./actions/news.ts"; import { timeProvider } from "./providers/time.ts"; +import { factEvaluator } from "./evaluators/fact.ts"; export * as actions from "./actions"; export * as evaluators from "./evaluators"; export * as providers from "./providers"; -export const bootstrapPlugin: Plugin = { - name: "bootstrap", - description: "Agent bootstrap with basic actions and evaluators", - actions: [ - continueAction, - followRoomAction, - unfollowRoomAction, - ignoreAction, - noneAction, - muteRoomAction, - unmuteRoomAction, - ], - evaluators: [factEvaluator, goalEvaluator], - providers: [boredomProvider, timeProvider, factsProvider], +export const newsPlugin: Plugin = { + name: "news", + description: "Get the latest news about a specific topic if asked by the user.", + actions: [currentNewsAction], + evaluators: [factEvaluator], + providers: [timeProvider], }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d54a6492db..c3d06695e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -143,7 +143,7 @@ importers: version: link:../packages/plugin-aptos '@ai16z/plugin-bootstrap': specifier: workspace:* - version: link:../packages/plugin-news + version: link:../packages/plugin-bootstrap '@ai16z/plugin-coinbase': specifier: workspace:* version: link:../packages/plugin-coinbase @@ -6820,10 +6820,6 @@ packages: resolution: {integrity: sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.18.1': - resolution: {integrity: sha512-7uoAUsCj66qdNQNpH2G8MyTFlgerum8ubf21s3TSM3XmKXuIn+H2Sifh/ES2nPOPiYSRJWAk0fDkW0APBWcpfw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.11.0': resolution: {integrity: sha512-yHC3s1z1RCHoCz5t06gf7jH24rr3vns08XXhfEqzYpd6Hll3z/3g23JRi0jM8A47UFKNc3u/y5KIMx8Ynbjohg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -9543,8 +9539,8 @@ packages: resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} - esrap@1.3.1: - resolution: {integrity: sha512-KpAH3+QsDmtOP1KOW04CbD1PgzWsIHjB8tOCk3PCb8xzNGn8XkjI8zl80i09fmXdzQyaS8tcsKCCDzHF7AcowA==} + esrap@1.3.2: + resolution: {integrity: sha512-C4PXusxYhFT98GjLSmb20k9PREuUdporer50dhzGuJu9IJXktbMddVCMLAERl5dAHyAi73GWWCE4FVHGP1794g==} esrecurse@4.3.0: resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} @@ -24512,8 +24508,6 @@ snapshots: '@typescript-eslint/types@8.16.0': {} - '@typescript-eslint/types@8.18.1': {} - '@typescript-eslint/typescript-estree@8.11.0(typescript@5.6.3)': dependencies: '@typescript-eslint/types': 8.11.0 @@ -27994,10 +27988,9 @@ snapshots: dependencies: estraverse: 5.3.0 - esrap@1.3.1: + esrap@1.3.2: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 - '@typescript-eslint/types': 8.18.1 esrecurse@4.3.0: dependencies: @@ -35408,7 +35401,7 @@ snapshots: aria-query: 5.3.2 axobject-query: 4.1.0 esm-env: 1.2.1 - esrap: 1.3.1 + esrap: 1.3.2 is-reference: 3.0.3 locate-character: 3.0.0 magic-string: 0.30.17