@varsity-arena/agent 0.1.3 → 0.3.0

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 (74) hide show
  1. package/README.md +107 -16
  2. package/dist/cli.js +306 -11
  3. package/dist/cli.js.map +1 -1
  4. package/dist/dashboard/index.html +519 -0
  5. package/dist/dashboard/serve.d.ts +6 -0
  6. package/dist/dashboard/serve.js +180 -0
  7. package/dist/dashboard/serve.js.map +1 -0
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.js +70 -4
  10. package/dist/index.js.map +1 -1
  11. package/dist/setup/backend-probe.js +13 -3
  12. package/dist/setup/backend-probe.js.map +1 -1
  13. package/dist/setup/bootstrap-python.js +1 -1
  14. package/dist/setup/bootstrap-python.js.map +1 -1
  15. package/dist/setup/client-configs.d.ts +22 -1
  16. package/dist/setup/client-configs.js +137 -0
  17. package/dist/setup/client-configs.js.map +1 -1
  18. package/dist/setup/detect-python.js +1 -1
  19. package/dist/setup/detect-python.js.map +1 -1
  20. package/dist/setup/openclaw-config.d.ts +45 -0
  21. package/dist/setup/openclaw-config.js +154 -0
  22. package/dist/setup/openclaw-config.js.map +1 -0
  23. package/dist/tools/platform-composite.d.ts +47 -0
  24. package/dist/tools/platform-composite.js +27 -0
  25. package/dist/tools/platform-composite.js.map +1 -0
  26. package/dist/tools/platform-discovery.d.ts +107 -0
  27. package/dist/tools/platform-discovery.js +61 -0
  28. package/dist/tools/platform-discovery.js.map +1 -0
  29. package/dist/tools/platform-hub.d.ts +35 -0
  30. package/dist/tools/platform-hub.js +21 -0
  31. package/dist/tools/platform-hub.js.map +1 -0
  32. package/dist/tools/platform-leaderboard.d.ts +95 -0
  33. package/dist/tools/platform-leaderboard.js +49 -0
  34. package/dist/tools/platform-leaderboard.js.map +1 -0
  35. package/dist/tools/platform-live.d.ts +71 -0
  36. package/dist/tools/platform-live.js +27 -0
  37. package/dist/tools/platform-live.js.map +1 -0
  38. package/dist/tools/platform-market.d.ts +112 -0
  39. package/dist/tools/platform-market.js +58 -0
  40. package/dist/tools/platform-market.js.map +1 -0
  41. package/dist/tools/platform-notifications.d.ts +76 -0
  42. package/dist/tools/platform-notifications.js +37 -0
  43. package/dist/tools/platform-notifications.js.map +1 -0
  44. package/dist/tools/platform-predictions.d.ts +118 -0
  45. package/dist/tools/platform-predictions.js +44 -0
  46. package/dist/tools/platform-predictions.js.map +1 -0
  47. package/dist/tools/platform-profile.d.ts +181 -0
  48. package/dist/tools/platform-profile.js +92 -0
  49. package/dist/tools/platform-profile.js.map +1 -0
  50. package/dist/tools/platform-registration.d.ts +71 -0
  51. package/dist/tools/platform-registration.js +27 -0
  52. package/dist/tools/platform-registration.js.map +1 -0
  53. package/dist/tools/platform-seasons.d.ts +47 -0
  54. package/dist/tools/platform-seasons.js +23 -0
  55. package/dist/tools/platform-seasons.js.map +1 -0
  56. package/dist/tools/platform-social.d.ts +72 -0
  57. package/dist/tools/platform-social.js +36 -0
  58. package/dist/tools/platform-social.js.map +1 -0
  59. package/dist/tools/platform-system.d.ts +70 -0
  60. package/dist/tools/platform-system.js +34 -0
  61. package/dist/tools/platform-system.js.map +1 -0
  62. package/dist/tools/runtime-config.d.ts +34 -0
  63. package/dist/tools/runtime-config.js +102 -0
  64. package/dist/tools/runtime-config.js.map +1 -0
  65. package/dist/tools/runtime-start.d.ts +4 -0
  66. package/dist/tools/runtime-start.js +8 -2
  67. package/dist/tools/runtime-start.js.map +1 -1
  68. package/dist/util/home.d.ts +2 -0
  69. package/dist/util/home.js +5 -1
  70. package/dist/util/home.js.map +1 -1
  71. package/dist/util/paths.d.ts +10 -1
  72. package/dist/util/paths.js +12 -1
  73. package/dist/util/paths.js.map +1 -1
  74. package/package.json +9 -5
@@ -0,0 +1,95 @@
1
+ import { z } from "zod";
2
+ export declare const leaderboard: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{
6
+ identifier: z.ZodString;
7
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ size: number;
11
+ page: number;
12
+ identifier: string;
13
+ }, {
14
+ identifier: string;
15
+ size?: number | undefined;
16
+ page?: number | undefined;
17
+ }>;
18
+ pythonTool: string;
19
+ };
20
+ export declare const myLeaderboardPosition: {
21
+ name: string;
22
+ description: string;
23
+ inputSchema: z.ZodObject<{
24
+ identifier: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ identifier: string;
27
+ }, {
28
+ identifier: string;
29
+ }>;
30
+ pythonTool: string;
31
+ };
32
+ export declare const seasonLeaderboard: {
33
+ name: string;
34
+ description: string;
35
+ inputSchema: z.ZodObject<{
36
+ season_id: z.ZodOptional<z.ZodNumber>;
37
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
38
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ size: number;
41
+ page: number;
42
+ season_id?: number | undefined;
43
+ }, {
44
+ size?: number | undefined;
45
+ season_id?: number | undefined;
46
+ page?: number | undefined;
47
+ }>;
48
+ pythonTool: string;
49
+ };
50
+ export declare const all: readonly [{
51
+ name: string;
52
+ description: string;
53
+ inputSchema: z.ZodObject<{
54
+ identifier: z.ZodString;
55
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
56
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ size: number;
59
+ page: number;
60
+ identifier: string;
61
+ }, {
62
+ identifier: string;
63
+ size?: number | undefined;
64
+ page?: number | undefined;
65
+ }>;
66
+ pythonTool: string;
67
+ }, {
68
+ name: string;
69
+ description: string;
70
+ inputSchema: z.ZodObject<{
71
+ identifier: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ identifier: string;
74
+ }, {
75
+ identifier: string;
76
+ }>;
77
+ pythonTool: string;
78
+ }, {
79
+ name: string;
80
+ description: string;
81
+ inputSchema: z.ZodObject<{
82
+ season_id: z.ZodOptional<z.ZodNumber>;
83
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
84
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ size: number;
87
+ page: number;
88
+ season_id?: number | undefined;
89
+ }, {
90
+ size?: number | undefined;
91
+ season_id?: number | undefined;
92
+ page?: number | undefined;
93
+ }>;
94
+ pythonTool: string;
95
+ }];
@@ -0,0 +1,49 @@
1
+ import { z } from "zod";
2
+ export const leaderboard = {
3
+ name: "arena.leaderboard",
4
+ description: "Get competition leaderboard with rankings, PnL, trades, and prizes.",
5
+ inputSchema: z.object({
6
+ identifier: z.string().describe("Competition ID or slug."),
7
+ page: z.number().int().optional().default(1).describe("Page number."),
8
+ size: z
9
+ .number()
10
+ .int()
11
+ .optional()
12
+ .default(50)
13
+ .describe("Items per page (1-100)."),
14
+ }),
15
+ pythonTool: "varsity.leaderboard",
16
+ };
17
+ export const myLeaderboardPosition = {
18
+ name: "arena.my_leaderboard_position",
19
+ description: "Get my position on competition leaderboard with surrounding entries.",
20
+ inputSchema: z.object({
21
+ identifier: z.string().describe("Competition ID or slug."),
22
+ }),
23
+ pythonTool: "varsity.my_leaderboard_position",
24
+ };
25
+ export const seasonLeaderboard = {
26
+ name: "arena.season_leaderboard",
27
+ description: "Get season leaderboard ranked by cumulative points. Omit season_id for current active season.",
28
+ inputSchema: z.object({
29
+ season_id: z
30
+ .number()
31
+ .int()
32
+ .optional()
33
+ .describe("Season ID (optional, defaults to active season)."),
34
+ page: z.number().int().optional().default(1).describe("Page number."),
35
+ size: z
36
+ .number()
37
+ .int()
38
+ .optional()
39
+ .default(50)
40
+ .describe("Items per page (1-100)."),
41
+ }),
42
+ pythonTool: "varsity.season_leaderboard",
43
+ };
44
+ export const all = [
45
+ leaderboard,
46
+ myLeaderboardPosition,
47
+ seasonLeaderboard,
48
+ ];
49
+ //# sourceMappingURL=platform-leaderboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-leaderboard.js","sourceRoot":"","sources":["../../src/tools/platform-leaderboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,qEAAqE;IACvE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;QACrE,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CAAC,yBAAyB,CAAC;KACvC,CAAC;IACF,UAAU,EAAE,qBAAqB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,sEAAsE;IACxE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;KAC3D,CAAC;IACF,UAAU,EAAE,iCAAiC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,+FAA+F;IACjG,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,kDAAkD,CAAC;QAC/D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;QACrE,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CAAC,yBAAyB,CAAC;KACvC,CAAC;IACF,UAAU,EAAE,4BAA4B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,WAAW;IACX,qBAAqB;IACrB,iBAAiB;CACT,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+ export declare const liveTrades: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{
6
+ competition_id: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ competition_id: number;
9
+ }, {
10
+ competition_id: number;
11
+ }>;
12
+ pythonTool: string;
13
+ };
14
+ export declare const livePosition: {
15
+ name: string;
16
+ description: string;
17
+ inputSchema: z.ZodObject<{
18
+ competition_id: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ competition_id: number;
21
+ }, {
22
+ competition_id: number;
23
+ }>;
24
+ pythonTool: string;
25
+ };
26
+ export declare const liveAccount: {
27
+ name: string;
28
+ description: string;
29
+ inputSchema: z.ZodObject<{
30
+ competition_id: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ competition_id: number;
33
+ }, {
34
+ competition_id: number;
35
+ }>;
36
+ pythonTool: string;
37
+ };
38
+ export declare const all: readonly [{
39
+ name: string;
40
+ description: string;
41
+ inputSchema: z.ZodObject<{
42
+ competition_id: z.ZodNumber;
43
+ }, "strip", z.ZodTypeAny, {
44
+ competition_id: number;
45
+ }, {
46
+ competition_id: number;
47
+ }>;
48
+ pythonTool: string;
49
+ }, {
50
+ name: string;
51
+ description: string;
52
+ inputSchema: z.ZodObject<{
53
+ competition_id: z.ZodNumber;
54
+ }, "strip", z.ZodTypeAny, {
55
+ competition_id: number;
56
+ }, {
57
+ competition_id: number;
58
+ }>;
59
+ pythonTool: string;
60
+ }, {
61
+ name: string;
62
+ description: string;
63
+ inputSchema: z.ZodObject<{
64
+ competition_id: z.ZodNumber;
65
+ }, "strip", z.ZodTypeAny, {
66
+ competition_id: number;
67
+ }, {
68
+ competition_id: number;
69
+ }>;
70
+ pythonTool: string;
71
+ }];
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export const liveTrades = {
3
+ name: "arena.live_trades",
4
+ description: "List my completed trades in a live competition.",
5
+ inputSchema: z.object({
6
+ competition_id: z.number().int().describe("Competition ID."),
7
+ }),
8
+ pythonTool: "varsity.live_trades",
9
+ };
10
+ export const livePosition = {
11
+ name: "arena.live_position",
12
+ description: "Get my current open position in a live competition (null if no position).",
13
+ inputSchema: z.object({
14
+ competition_id: z.number().int().describe("Competition ID."),
15
+ }),
16
+ pythonTool: "varsity.live_position",
17
+ };
18
+ export const liveAccount = {
19
+ name: "arena.live_account",
20
+ description: "Get my engine account state in a live competition: balance, equity, unrealized PnL, trade count.",
21
+ inputSchema: z.object({
22
+ competition_id: z.number().int().describe("Competition ID."),
23
+ }),
24
+ pythonTool: "varsity.live_account",
25
+ };
26
+ export const all = [liveTrades, livePosition, liveAccount];
27
+ //# sourceMappingURL=platform-live.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-live.js","sourceRoot":"","sources":["../../src/tools/platform-live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,iDAAiD;IAC9D,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;KAC7D,CAAC;IACF,UAAU,EAAE,qBAAqB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,2EAA2E;IAC7E,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;KAC7D,CAAC;IACF,UAAU,EAAE,uBAAuB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,kGAAkG;IACpG,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;KAC7D,CAAC;IACF,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,WAAW,CAAU,CAAC"}
@@ -0,0 +1,112 @@
1
+ import { z } from "zod";
2
+ export declare const symbols: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
6
+ pythonTool: string;
7
+ };
8
+ export declare const orderbook: {
9
+ name: string;
10
+ description: string;
11
+ inputSchema: z.ZodObject<{
12
+ symbol: z.ZodString;
13
+ depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ symbol: string;
16
+ depth: number;
17
+ }, {
18
+ symbol: string;
19
+ depth?: number | undefined;
20
+ }>;
21
+ pythonTool: string;
22
+ };
23
+ export declare const klines: {
24
+ name: string;
25
+ description: string;
26
+ inputSchema: z.ZodObject<{
27
+ symbol: z.ZodString;
28
+ interval: z.ZodEnum<["1m", "5m", "15m", "1h", "4h", "1d"]>;
29
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
30
+ start_time: z.ZodOptional<z.ZodNumber>;
31
+ end_time: z.ZodOptional<z.ZodNumber>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ symbol: string;
34
+ size: number;
35
+ interval: "1m" | "5m" | "15m" | "1h" | "4h" | "1d";
36
+ start_time?: number | undefined;
37
+ end_time?: number | undefined;
38
+ }, {
39
+ symbol: string;
40
+ interval: "1m" | "5m" | "15m" | "1h" | "4h" | "1d";
41
+ size?: number | undefined;
42
+ start_time?: number | undefined;
43
+ end_time?: number | undefined;
44
+ }>;
45
+ pythonTool: string;
46
+ };
47
+ export declare const marketInfo: {
48
+ name: string;
49
+ description: string;
50
+ inputSchema: z.ZodObject<{
51
+ symbol: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ symbol: string;
54
+ }, {
55
+ symbol: string;
56
+ }>;
57
+ pythonTool: string;
58
+ };
59
+ export declare const all: readonly [{
60
+ name: string;
61
+ description: string;
62
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
63
+ pythonTool: string;
64
+ }, {
65
+ name: string;
66
+ description: string;
67
+ inputSchema: z.ZodObject<{
68
+ symbol: z.ZodString;
69
+ depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ symbol: string;
72
+ depth: number;
73
+ }, {
74
+ symbol: string;
75
+ depth?: number | undefined;
76
+ }>;
77
+ pythonTool: string;
78
+ }, {
79
+ name: string;
80
+ description: string;
81
+ inputSchema: z.ZodObject<{
82
+ symbol: z.ZodString;
83
+ interval: z.ZodEnum<["1m", "5m", "15m", "1h", "4h", "1d"]>;
84
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
85
+ start_time: z.ZodOptional<z.ZodNumber>;
86
+ end_time: z.ZodOptional<z.ZodNumber>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ symbol: string;
89
+ size: number;
90
+ interval: "1m" | "5m" | "15m" | "1h" | "4h" | "1d";
91
+ start_time?: number | undefined;
92
+ end_time?: number | undefined;
93
+ }, {
94
+ symbol: string;
95
+ interval: "1m" | "5m" | "15m" | "1h" | "4h" | "1d";
96
+ size?: number | undefined;
97
+ start_time?: number | undefined;
98
+ end_time?: number | undefined;
99
+ }>;
100
+ pythonTool: string;
101
+ }, {
102
+ name: string;
103
+ description: string;
104
+ inputSchema: z.ZodObject<{
105
+ symbol: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ symbol: string;
108
+ }, {
109
+ symbol: string;
110
+ }>;
111
+ pythonTool: string;
112
+ }];
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ export const symbols = {
3
+ name: "arena.symbols",
4
+ description: "List all available trading symbols (BTCUSDT, ETHUSDT, etc.) with precision and min quantity config.",
5
+ inputSchema: z.object({}),
6
+ pythonTool: "varsity.symbols",
7
+ };
8
+ export const orderbook = {
9
+ name: "arena.orderbook",
10
+ description: "Get order book snapshot (bids & asks) for a trading symbol.",
11
+ inputSchema: z.object({
12
+ symbol: z.string().describe("Trading pair, e.g. 'BTCUSDT'."),
13
+ depth: z
14
+ .number()
15
+ .int()
16
+ .optional()
17
+ .default(20)
18
+ .describe("Price levels per side (5, 10, 20, 50). Default 20."),
19
+ }),
20
+ pythonTool: "varsity.orderbook",
21
+ };
22
+ export const klines = {
23
+ name: "arena.klines",
24
+ description: "Get OHLCV candlestick data for a symbol. Use for price charts and technical analysis.",
25
+ inputSchema: z.object({
26
+ symbol: z.string().describe("Trading pair, e.g. 'BTCUSDT'."),
27
+ interval: z
28
+ .enum(["1m", "5m", "15m", "1h", "4h", "1d"])
29
+ .describe("Candle interval."),
30
+ size: z
31
+ .number()
32
+ .int()
33
+ .optional()
34
+ .default(500)
35
+ .describe("Number of candles (max 1500). Default 500."),
36
+ start_time: z
37
+ .number()
38
+ .int()
39
+ .optional()
40
+ .describe("Start timestamp in Unix milliseconds."),
41
+ end_time: z
42
+ .number()
43
+ .int()
44
+ .optional()
45
+ .describe("End timestamp in Unix milliseconds."),
46
+ }),
47
+ pythonTool: "varsity.klines",
48
+ };
49
+ export const marketInfo = {
50
+ name: "arena.market_info",
51
+ description: "Get full market info for a symbol: last price, mark price, index price, funding rate, 24h volume.",
52
+ inputSchema: z.object({
53
+ symbol: z.string().describe("Trading pair, e.g. 'BTCUSDT'."),
54
+ }),
55
+ pythonTool: "varsity.market_info",
56
+ };
57
+ export const all = [symbols, orderbook, klines, marketInfo];
58
+ //# sourceMappingURL=platform-market.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-market.js","sourceRoot":"","sources":["../../src/tools/platform-market.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,qGAAqG;IACvG,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,iBAAiB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,6DAA6D;IAC1E,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAC5D,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;IACF,UAAU,EAAE,mBAAmB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,uFAAuF;IACzF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAC5D,QAAQ,EAAE,CAAC;aACR,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;aAC3C,QAAQ,CAAC,kBAAkB,CAAC;QAC/B,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,GAAG,CAAC;aACZ,QAAQ,CAAC,4CAA4C,CAAC;QACzD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,uCAAuC,CAAC;QACpD,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,qCAAqC,CAAC;KACnD,CAAC;IACF,UAAU,EAAE,gBAAgB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,mGAAmG;IACrG,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;KAC7D,CAAC;IACF,UAAU,EAAE,qBAAqB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAU,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { z } from "zod";
2
+ export declare const notifications: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{
6
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ size: number;
10
+ page: number;
11
+ }, {
12
+ size?: number | undefined;
13
+ page?: number | undefined;
14
+ }>;
15
+ pythonTool: string;
16
+ };
17
+ export declare const unreadCount: {
18
+ name: string;
19
+ description: string;
20
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
21
+ pythonTool: string;
22
+ };
23
+ export declare const markRead: {
24
+ name: string;
25
+ description: string;
26
+ inputSchema: z.ZodObject<{
27
+ notification_id: z.ZodNumber;
28
+ }, "strip", z.ZodTypeAny, {
29
+ notification_id: number;
30
+ }, {
31
+ notification_id: number;
32
+ }>;
33
+ pythonTool: string;
34
+ };
35
+ export declare const markAllRead: {
36
+ name: string;
37
+ description: string;
38
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
39
+ pythonTool: string;
40
+ };
41
+ export declare const all: readonly [{
42
+ name: string;
43
+ description: string;
44
+ inputSchema: z.ZodObject<{
45
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
46
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ size: number;
49
+ page: number;
50
+ }, {
51
+ size?: number | undefined;
52
+ page?: number | undefined;
53
+ }>;
54
+ pythonTool: string;
55
+ }, {
56
+ name: string;
57
+ description: string;
58
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
59
+ pythonTool: string;
60
+ }, {
61
+ name: string;
62
+ description: string;
63
+ inputSchema: z.ZodObject<{
64
+ notification_id: z.ZodNumber;
65
+ }, "strip", z.ZodTypeAny, {
66
+ notification_id: number;
67
+ }, {
68
+ notification_id: number;
69
+ }>;
70
+ pythonTool: string;
71
+ }, {
72
+ name: string;
73
+ description: string;
74
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
75
+ pythonTool: string;
76
+ }];
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ export const notifications = {
3
+ name: "arena.notifications",
4
+ description: "Get paginated notifications.",
5
+ inputSchema: z.object({
6
+ page: z.number().int().optional().default(1).describe("Page number."),
7
+ size: z
8
+ .number()
9
+ .int()
10
+ .optional()
11
+ .default(20)
12
+ .describe("Items per page (1-100)."),
13
+ }),
14
+ pythonTool: "varsity.notifications",
15
+ };
16
+ export const unreadCount = {
17
+ name: "arena.unread_count",
18
+ description: "Get count of unread notifications (lightweight, good for polling).",
19
+ inputSchema: z.object({}),
20
+ pythonTool: "varsity.unread_count",
21
+ };
22
+ export const markRead = {
23
+ name: "arena.mark_read",
24
+ description: "Mark a single notification as read.",
25
+ inputSchema: z.object({
26
+ notification_id: z.number().int().describe("Notification ID."),
27
+ }),
28
+ pythonTool: "varsity.mark_read",
29
+ };
30
+ export const markAllRead = {
31
+ name: "arena.mark_all_read",
32
+ description: "Mark all notifications as read.",
33
+ inputSchema: z.object({}),
34
+ pythonTool: "varsity.mark_all_read",
35
+ };
36
+ export const all = [notifications, unreadCount, markRead, markAllRead];
37
+ //# sourceMappingURL=platform-notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-notifications.js","sourceRoot":"","sources":["../../src/tools/platform-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;QACrE,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CAAC,yBAAyB,CAAC;KACvC,CAAC;IACF,UAAU,EAAE,uBAAuB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,oEAAoE;IACtE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,qCAAqC;IAClD,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;KAC/D,CAAC;IACF,UAAU,EAAE,mBAAmB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,uBAAuB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC"}
@@ -0,0 +1,118 @@
1
+ import { z } from "zod";
2
+ export declare const predictions: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{
6
+ competition_id: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ competition_id: number;
9
+ }, {
10
+ competition_id: number;
11
+ }>;
12
+ pythonTool: string;
13
+ };
14
+ export declare const submitPrediction: {
15
+ name: string;
16
+ description: string;
17
+ inputSchema: z.ZodObject<{
18
+ competition_id: z.ZodNumber;
19
+ direction: z.ZodEnum<["up", "down"]>;
20
+ confidence: z.ZodNumber;
21
+ }, "strip", z.ZodTypeAny, {
22
+ competition_id: number;
23
+ direction: "up" | "down";
24
+ confidence: number;
25
+ }, {
26
+ competition_id: number;
27
+ direction: "up" | "down";
28
+ confidence: number;
29
+ }>;
30
+ pythonTool: string;
31
+ };
32
+ export declare const polls: {
33
+ name: string;
34
+ description: string;
35
+ inputSchema: z.ZodObject<{
36
+ competition_id: z.ZodNumber;
37
+ }, "strip", z.ZodTypeAny, {
38
+ competition_id: number;
39
+ }, {
40
+ competition_id: number;
41
+ }>;
42
+ pythonTool: string;
43
+ };
44
+ export declare const votePoll: {
45
+ name: string;
46
+ description: string;
47
+ inputSchema: z.ZodObject<{
48
+ competition_id: z.ZodNumber;
49
+ poll_id: z.ZodNumber;
50
+ option_index: z.ZodNumber;
51
+ }, "strip", z.ZodTypeAny, {
52
+ competition_id: number;
53
+ poll_id: number;
54
+ option_index: number;
55
+ }, {
56
+ competition_id: number;
57
+ poll_id: number;
58
+ option_index: number;
59
+ }>;
60
+ pythonTool: string;
61
+ };
62
+ export declare const all: readonly [{
63
+ name: string;
64
+ description: string;
65
+ inputSchema: z.ZodObject<{
66
+ competition_id: z.ZodNumber;
67
+ }, "strip", z.ZodTypeAny, {
68
+ competition_id: number;
69
+ }, {
70
+ competition_id: number;
71
+ }>;
72
+ pythonTool: string;
73
+ }, {
74
+ name: string;
75
+ description: string;
76
+ inputSchema: z.ZodObject<{
77
+ competition_id: z.ZodNumber;
78
+ direction: z.ZodEnum<["up", "down"]>;
79
+ confidence: z.ZodNumber;
80
+ }, "strip", z.ZodTypeAny, {
81
+ competition_id: number;
82
+ direction: "up" | "down";
83
+ confidence: number;
84
+ }, {
85
+ competition_id: number;
86
+ direction: "up" | "down";
87
+ confidence: number;
88
+ }>;
89
+ pythonTool: string;
90
+ }, {
91
+ name: string;
92
+ description: string;
93
+ inputSchema: z.ZodObject<{
94
+ competition_id: z.ZodNumber;
95
+ }, "strip", z.ZodTypeAny, {
96
+ competition_id: number;
97
+ }, {
98
+ competition_id: number;
99
+ }>;
100
+ pythonTool: string;
101
+ }, {
102
+ name: string;
103
+ description: string;
104
+ inputSchema: z.ZodObject<{
105
+ competition_id: z.ZodNumber;
106
+ poll_id: z.ZodNumber;
107
+ option_index: z.ZodNumber;
108
+ }, "strip", z.ZodTypeAny, {
109
+ competition_id: number;
110
+ poll_id: number;
111
+ option_index: number;
112
+ }, {
113
+ competition_id: number;
114
+ poll_id: number;
115
+ option_index: number;
116
+ }>;
117
+ pythonTool: string;
118
+ }];