@elizaos/plugin-social-alpha 2.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/__tests__/e2e/benchmarks/benchmark.utils.d.ts +38 -0
  2. package/dist/__tests__/e2e/benchmarks/trust_algorithm.benchmark.d.ts +18 -0
  3. package/dist/__tests__/e2e/events.d.ts +2 -0
  4. package/dist/__tests__/e2e/index.d.ts +3 -0
  5. package/dist/__tests__/e2e/scenarios.d.ts +3 -0
  6. package/dist/__tests__/e2e/service.d.ts +1 -0
  7. package/dist/__tests__/e2e/socialAlpha.d.ts +2 -0
  8. package/dist/__tests__/e2e/test-utils.d.ts +12 -0
  9. package/dist/__tests__/e2e/test.setup.d.ts +2 -0
  10. package/dist/__tests__/e2e/trustOptimizationE2E.d.ts +4 -0
  11. package/dist/__tests__/e2e/trustScenariosE2E.d.ts +4 -0
  12. package/dist/__tests__/e2e/trustScore.d.ts +2 -0
  13. package/dist/__tests__/mocks/mockPriceService.d.ts +36 -0
  14. package/dist/assets/index-D088W50X.css +1 -0
  15. package/dist/assets/index-D32we_nf.js +17204 -0
  16. package/dist/assets/index-DU6B6kWr.js +17202 -0
  17. package/dist/clients.d.ts +382 -0
  18. package/dist/config.d.ts +143 -0
  19. package/dist/events.d.ts +4 -0
  20. package/dist/frontend/LeaderboardTable.d.ts +7 -0
  21. package/dist/frontend/index.d.ts +3 -0
  22. package/dist/frontend/loader.d.ts +1 -0
  23. package/dist/frontend/ui/badge.d.ts +11 -0
  24. package/dist/frontend/ui/button.d.ts +11 -0
  25. package/dist/frontend/ui/card.d.ts +8 -0
  26. package/dist/frontend/ui/input.d.ts +3 -0
  27. package/dist/frontend/ui/table.d.ts +10 -0
  28. package/dist/frontend/ui/tabs.d.ts +7 -0
  29. package/dist/frontend/utils.d.ts +2 -0
  30. package/dist/index.d.ts +30 -0
  31. package/dist/index.html +14 -0
  32. package/dist/mockPriceService.d.ts +1 -0
  33. package/dist/providers/socialAlphaProvider.d.ts +14 -0
  34. package/dist/reports.d.ts +56 -0
  35. package/dist/routes.d.ts +2 -0
  36. package/dist/schemas.d.ts +150 -0
  37. package/dist/scripts/analyze-trust-scores.d.ts +15 -0
  38. package/dist/scripts/enrich-price-data.d.ts +15 -0
  39. package/dist/scripts/optimize-algorithm.d.ts +14 -0
  40. package/dist/scripts/process-discord-data.d.ts +14 -0
  41. package/dist/service.d.ts +286 -0
  42. package/dist/services/PriceDataService.d.ts +34 -0
  43. package/dist/services/SimulationService.d.ts +31 -0
  44. package/dist/services/TrustScoreService.d.ts +35 -0
  45. package/dist/services/balancedTrustScoreCalculator.d.ts +60 -0
  46. package/dist/services/historicalPriceService.d.ts +58 -0
  47. package/dist/services/index.d.ts +22 -0
  48. package/dist/services/priceEnrichmentService.d.ts +112 -0
  49. package/dist/services/simulationActorsV2.d.ts +53 -0
  50. package/dist/services/simulationRunner.d.ts +112 -0
  51. package/dist/services/tokenSimulationService.d.ts +33 -0
  52. package/dist/services/trustScoreOptimizer.d.ts +109 -0
  53. package/dist/simulationActors.d.ts +23 -0
  54. package/dist/tests/index.d.ts +3 -0
  55. package/dist/types.d.ts +959 -0
  56. package/dist/utils.d.ts +51 -0
  57. package/package.json +79 -0
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Retrieves the JSON schema representation of a Zod schema.
3
+ * Uses dynamic import to avoid hard dep on zod-to-json-schema.
4
+ * @param schema - The Zod schema to convert to JSON schema.
5
+ * @returns The JSON schema representation, or undefined if conversion unavailable.
6
+ */
7
+ export declare function getZodJsonSchema(schema: {
8
+ _def?: unknown;
9
+ }): Promise<Record<string, unknown> | undefined>;
10
+ /**
11
+ * Extracts XML content from a given string based on a specified tag.
12
+ *
13
+ * @param {string} output - The input string containing XML content.
14
+ * @param {string} tag - The tag to extract XML content from.
15
+ * @returns {string} The XML content extracted from the input string based on the specified tag. Returns an empty string if the tag is not found.
16
+ */
17
+ export declare function extractXMLFromResponse(output: string, tag: string): string;
18
+ /**
19
+ * Parse the recommendations response XML and extract the individual recommendations as an array.
20
+ *
21
+ * @param {string} xmlResponse The XML response containing the recommendations data
22
+ * @returns {Array<Object>} An array of recommendation objects extracted from the XML response
23
+ */
24
+ export declare function parseRecommendationsResponse(xmlResponse: string): any;
25
+ /**
26
+ * Parses the token response XML string and returns an array of token addresses.
27
+ *
28
+ * @param {string} xmlResponse - The XML response string to parse
29
+ * @returns {string[]} - An array of token addresses extracted from the XML response
30
+ */
31
+ export declare function parseTokensResponse(xmlResponse: string): any;
32
+ /**
33
+ * Parses the confirmation response received in XML format and extracts the message.
34
+ *
35
+ * @param {string} xmlResponse The XML response containing the confirmation message
36
+ * @returns {string} The confirmation message extracted from the XML response, or an empty string if not found
37
+ */
38
+ export declare function parseConfirmationResponse(xmlResponse: string): any;
39
+ /**
40
+ * Parses the XML response and extracts the 'signal' value.
41
+ * @param {string} xmlResponse - The XML response to parse.
42
+ * @returns {string} The extracted 'signal' value from the XML response.
43
+ */
44
+ export declare function parseSignalResponse(xmlResponse: string): any;
45
+ /**
46
+ * Parses the token response from an XML format and extracts the token value.
47
+ *
48
+ * @param {string} xmlResponse - The XML response containing the token information.
49
+ * @returns {string} The extracted token value.
50
+ */
51
+ export declare function parseTokenResponse(xmlResponse: string): any;
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@elizaos/plugin-social-alpha",
3
+ "version": "2.0.0-alpha.3",
4
+ "description": "Social Alpha Plugin — Tracks token recommendations (shills/FUD), builds trust scores based on P&L outcomes, and exposes a Social Alpha Provider with win rate, rank, and recommender analytics.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsc && vite build",
20
+ "dev": "vite",
21
+ "test": "vitest",
22
+ "clean": "rm -rf dist .turbo node_modules",
23
+ "lint": "echo 'Lint skipped for gitignored plugin-social-alpha'",
24
+ "lint:check": "bunx @biomejs/biome check .",
25
+ "format": "bunx @biomejs/biome format --write .",
26
+ "format:check": "bunx @biomejs/biome format .",
27
+ "typecheck": "tsc --noEmit"
28
+ },
29
+ "dependencies": {
30
+ "@elizaos/core": "2.0.0-alpha.3",
31
+ "bignumber.js": "^9.3.0",
32
+ "class-variance-authority": "^0.7.1",
33
+ "clsx": "^2.1.1",
34
+ "dotenv": "^16.5.0",
35
+ "fast-xml-parser": "^5.2.5",
36
+ "p-limit": "^5.0.0",
37
+ "tailwindcss-animate": "^1.0.7",
38
+ "uuid": "^11.1.0",
39
+ "zod": "^4.3.6"
40
+ },
41
+ "peerDependencies": {
42
+ "@elizaos/core": "2.0.0-alpha.3"
43
+ },
44
+ "devDependencies": {
45
+ "@cypress/react": "^8.0.0",
46
+ "@tanstack/react-query": "^5.62.0",
47
+ "@testing-library/cypress": "^10.0.0",
48
+ "@types/react": "^19.0.0",
49
+ "@types/react-dom": "^19.0.0",
50
+ "@vitejs/plugin-react-swc": "^4.0.0",
51
+ "autoprefixer": "^10.4.21",
52
+ "cypress": "^13.7.0",
53
+ "postcss": "^8.5.4",
54
+ "react": "^19.0.0",
55
+ "react-dom": "^19.0.0",
56
+ "tailwindcss": "^3.4.0",
57
+ "tsconfig-paths": "^4.2.0",
58
+ "tsup": "8.5.0",
59
+ "tsx": "4.19.4",
60
+ "typescript": "^5.8.3",
61
+ "vite": "^6.0.0",
62
+ "lucide-react": "^0.468.0",
63
+ "@radix-ui/react-slot": "^1.0.0",
64
+ "@radix-ui/react-tabs": "^1.0.0",
65
+ "tailwind-merge": "^3.4.0",
66
+ "vitest": "^3.1.4",
67
+ "@biomejs/biome": "^2.3.11"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ },
72
+ "keywords": [
73
+ "plugin",
74
+ "elizaos",
75
+ "social-alpha",
76
+ "trust-score",
77
+ "shill-tracker"
78
+ ]
79
+ }