Skip to content

Commit

Permalink
update references to kol to twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrank-summit committed Jan 20, 2025
1 parent 6b7ed5e commit 8d8dd70
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ config/**/*.yaml
dsn-kol-schemas.json
memories/
!src/config/
dsn-kol-schemas.json
dsn-twitter-schemas.json

# Python bytecode
__pycache__/
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 2 additions & 2 deletions tests/agents/workflows/kol/nodes/engagementNode.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
8 changes: 4 additions & 4 deletions tests/agents/workflows/kol/workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -27,7 +27,7 @@ jest.mock('../../../../src/services/llm/factory', () => ({
},
}));

describe('KOL Workflow', () => {
describe('Twitter Workflow', () => {
let workflowConfig: WorkflowConfig;

beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8d8dd70

Please sign in to comment.