diff --git a/.gitignore b/.gitignore index 1ce0e502..d2c43300 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ config/**/*.yaml dsn-kol-schemas.json memories/ !src/config/ -dsn-kol-schemas.json +dsn-twitter-schemas.json # Python bytecode __pycache__/ diff --git a/README.md b/README.md index fb64137c..461183c8 100644 --- a/README.md +++ b/README.md @@ -233,11 +233,11 @@ To use this feature: ## Workflows -### KOL (Key Opinion Leader) +### Twitter -The KOL workflow enables agents to: +The Twitter workflow enables agents to: -- Monitor social media for relevant discussions +- Monitor X (formerly Twitter) for relevant discussions - Analyze trends and conversations - Engage meaningfully with other users - Generate original content diff --git a/eslint.config.js b/eslint.config.js index fab002d0..881dedc1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -91,7 +91,6 @@ export default [ // Additional configurations for specific file patterns { - files: ["src/agents/workflows/kol/characters/*.ts"], rules: { // Character file specific validations "@typescript-eslint/naming-convention": [ diff --git a/package.json b/package.json index 2a1b359c..366d2803 100644 --- a/package.json +++ b/package.json @@ -11,15 +11,13 @@ "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"", "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"", "example:twitter": "tsx examples/twitter.ts", - "extract-kol-dsn-schemas": "tsx src/agents/workflows/kol/cli/extractDsnSchemas.ts", + "extract-twitter-dsn-schemas": "tsx src/agents/workflows/twitter/cli/extractDsnSchemas.ts", "copy-characters": "cp -r config/characters dist/config/", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint \"src/**/*.{js,ts}\"", - "lint:fix": "eslint \"src/**/*.{js,ts}\" --fix", - "lint:characters": "eslint \"src/agents/workflows/kol/characters/*.ts\"", - "lint:characters:fix": "eslint \"src/agents/workflows/kol/characters/*.ts\" --fix" + "lint:fix": "eslint \"src/**/*.{js,ts}\" --fix" }, "dependencies": { "@autonomys/auto-dag-data": "1.2.1", diff --git a/src/index.ts b/src/index.ts index 79293738..6d751281 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { config } from './config/index.js'; import { createLogger } from './utils/logger.js'; -import { runWorkflow } from './agents/workflows/kol/workflow.js'; +import { runWorkflow } from './agents/workflows/twitter/workflow.js'; import { onboarding } from './cli/onboarding.js'; const logger = createLogger('app'); diff --git a/tests/agents/workflows/kol/nodes/engagementNode.test.ts b/tests/agents/workflows/kol/nodes/engagementNode.test.ts index 88027894..188c4c80 100644 --- a/tests/agents/workflows/kol/nodes/engagementNode.test.ts +++ b/tests/agents/workflows/kol/nodes/engagementNode.test.ts @@ -1,5 +1,5 @@ -import { createEngagementNode } from '../../../../../src/agents/workflows/kol/nodes/engagementNode'; -import { WorkflowConfig } from '../../../../../src/agents/workflows/kol/types'; +import { createEngagementNode } from '../../../../../src/agents/workflows/twitter/nodes/engagementNode'; +import { WorkflowConfig } from '../../../../../src/agents/workflows/twitter/types'; import { createMockState, createMockTweet } from '../__fixtures__/mockState'; describe('Engagement Node', () => { diff --git a/tests/agents/workflows/kol/workflow.test.ts b/tests/agents/workflows/kol/workflow.test.ts index b10ef015..be34ad0d 100644 --- a/tests/agents/workflows/kol/workflow.test.ts +++ b/tests/agents/workflows/kol/workflow.test.ts @@ -2,9 +2,9 @@ import { createWorkflow, getWorkflowConfig, State, -} from '../../../../src/agents/workflows/kol/workflow'; -import { createNodes } from '../../../../src/agents/workflows/kol/nodes'; -import { WorkflowConfig } from '../../../../src/agents/workflows/kol/types'; +} from '../../../../src/agents/workflows/twitter/workflow'; +import { createNodes } from '../../../../src/agents/workflows/twitter/nodes'; +import { WorkflowConfig } from '../../../../src/agents/workflows/twitter/types'; import { createMockState } from './__fixtures__/mockState'; import { config } from '../../../../src/config'; @@ -27,7 +27,7 @@ jest.mock('../../../../src/services/llm/factory', () => ({ }, })); -describe('KOL Workflow', () => { +describe('Twitter Workflow', () => { let workflowConfig: WorkflowConfig; beforeEach(async () => { diff --git a/tests/setup.js b/tests/setup.js index d43a1d06..a253b76e 100644 --- a/tests/setup.js +++ b/tests/setup.js @@ -54,7 +54,7 @@ jest.mock('../src/agents/tools/utils/dsnUpload.ts', () => ({ currentNonce: 0 }), { virtual: true }); -jest.mock('../src/agents/workflows/kol/prompts.ts', () => ({ +jest.mock('../src/agents/workflows/twitter/prompts.ts', () => ({ loadCharacter: jest.fn().mockImplementation((characterFile) => Promise.resolve({ name: `Test ${characterFile}`, username: 'test-user',