@varsity-arena/agent 0.1.3 → 0.2.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 (64) 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 +35 -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/client-configs.d.ts +22 -1
  14. package/dist/setup/client-configs.js +137 -0
  15. package/dist/setup/client-configs.js.map +1 -1
  16. package/dist/setup/openclaw-config.d.ts +45 -0
  17. package/dist/setup/openclaw-config.js +154 -0
  18. package/dist/setup/openclaw-config.js.map +1 -0
  19. package/dist/tools/platform-composite.d.ts +47 -0
  20. package/dist/tools/platform-composite.js +27 -0
  21. package/dist/tools/platform-composite.js.map +1 -0
  22. package/dist/tools/platform-discovery.d.ts +107 -0
  23. package/dist/tools/platform-discovery.js +61 -0
  24. package/dist/tools/platform-discovery.js.map +1 -0
  25. package/dist/tools/platform-hub.d.ts +35 -0
  26. package/dist/tools/platform-hub.js +21 -0
  27. package/dist/tools/platform-hub.js.map +1 -0
  28. package/dist/tools/platform-leaderboard.d.ts +95 -0
  29. package/dist/tools/platform-leaderboard.js +49 -0
  30. package/dist/tools/platform-leaderboard.js.map +1 -0
  31. package/dist/tools/platform-live.d.ts +71 -0
  32. package/dist/tools/platform-live.js +27 -0
  33. package/dist/tools/platform-live.js.map +1 -0
  34. package/dist/tools/platform-market.d.ts +112 -0
  35. package/dist/tools/platform-market.js +58 -0
  36. package/dist/tools/platform-market.js.map +1 -0
  37. package/dist/tools/platform-notifications.d.ts +76 -0
  38. package/dist/tools/platform-notifications.js +37 -0
  39. package/dist/tools/platform-notifications.js.map +1 -0
  40. package/dist/tools/platform-predictions.d.ts +118 -0
  41. package/dist/tools/platform-predictions.js +44 -0
  42. package/dist/tools/platform-predictions.js.map +1 -0
  43. package/dist/tools/platform-profile.d.ts +181 -0
  44. package/dist/tools/platform-profile.js +92 -0
  45. package/dist/tools/platform-profile.js.map +1 -0
  46. package/dist/tools/platform-registration.d.ts +71 -0
  47. package/dist/tools/platform-registration.js +27 -0
  48. package/dist/tools/platform-registration.js.map +1 -0
  49. package/dist/tools/platform-seasons.d.ts +47 -0
  50. package/dist/tools/platform-seasons.js +23 -0
  51. package/dist/tools/platform-seasons.js.map +1 -0
  52. package/dist/tools/platform-social.d.ts +72 -0
  53. package/dist/tools/platform-social.js +36 -0
  54. package/dist/tools/platform-social.js.map +1 -0
  55. package/dist/tools/platform-system.d.ts +70 -0
  56. package/dist/tools/platform-system.js +34 -0
  57. package/dist/tools/platform-system.js.map +1 -0
  58. package/dist/util/home.d.ts +2 -0
  59. package/dist/util/home.js +5 -1
  60. package/dist/util/home.js.map +1 -1
  61. package/dist/util/paths.d.ts +10 -1
  62. package/dist/util/paths.js +12 -1
  63. package/dist/util/paths.js.map +1 -1
  64. package/package.json +8 -5
@@ -0,0 +1,181 @@
1
+ import { z } from "zod";
2
+ export declare const myProfile: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
6
+ pythonTool: string;
7
+ };
8
+ export declare const myHistory: {
9
+ name: string;
10
+ description: string;
11
+ inputSchema: z.ZodObject<{
12
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ size: number;
16
+ page: number;
17
+ }, {
18
+ size?: number | undefined;
19
+ page?: number | undefined;
20
+ }>;
21
+ pythonTool: string;
22
+ };
23
+ export declare const myHistoryDetail: {
24
+ name: string;
25
+ description: string;
26
+ inputSchema: z.ZodObject<{
27
+ competition_id: z.ZodNumber;
28
+ }, "strip", z.ZodTypeAny, {
29
+ competition_id: number;
30
+ }, {
31
+ competition_id: number;
32
+ }>;
33
+ pythonTool: string;
34
+ };
35
+ export declare const achievements: {
36
+ name: string;
37
+ description: string;
38
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
39
+ pythonTool: string;
40
+ };
41
+ export declare const publicProfile: {
42
+ name: string;
43
+ description: string;
44
+ inputSchema: z.ZodObject<{
45
+ username: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ username: string;
48
+ }, {
49
+ username: string;
50
+ }>;
51
+ pythonTool: string;
52
+ };
53
+ export declare const publicHistory: {
54
+ name: string;
55
+ description: string;
56
+ inputSchema: z.ZodObject<{
57
+ username: z.ZodString;
58
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
59
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ size: number;
62
+ page: number;
63
+ username: string;
64
+ }, {
65
+ username: string;
66
+ size?: number | undefined;
67
+ page?: number | undefined;
68
+ }>;
69
+ pythonTool: string;
70
+ };
71
+ export declare const updateProfile: {
72
+ name: string;
73
+ description: string;
74
+ inputSchema: z.ZodObject<{
75
+ username: z.ZodOptional<z.ZodString>;
76
+ display_name: z.ZodOptional<z.ZodString>;
77
+ bio: z.ZodOptional<z.ZodString>;
78
+ country: z.ZodOptional<z.ZodString>;
79
+ participant_type: z.ZodOptional<z.ZodEnum<["student", "professional", "independent"]>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ username?: string | undefined;
82
+ display_name?: string | undefined;
83
+ bio?: string | undefined;
84
+ country?: string | undefined;
85
+ participant_type?: "student" | "professional" | "independent" | undefined;
86
+ }, {
87
+ username?: string | undefined;
88
+ display_name?: string | undefined;
89
+ bio?: string | undefined;
90
+ country?: string | undefined;
91
+ participant_type?: "student" | "professional" | "independent" | undefined;
92
+ }>;
93
+ pythonTool: string;
94
+ };
95
+ export declare const all: readonly [{
96
+ name: string;
97
+ description: string;
98
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
99
+ pythonTool: string;
100
+ }, {
101
+ name: string;
102
+ description: string;
103
+ inputSchema: z.ZodObject<{
104
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
105
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ size: number;
108
+ page: number;
109
+ }, {
110
+ size?: number | undefined;
111
+ page?: number | undefined;
112
+ }>;
113
+ pythonTool: string;
114
+ }, {
115
+ name: string;
116
+ description: string;
117
+ inputSchema: z.ZodObject<{
118
+ competition_id: z.ZodNumber;
119
+ }, "strip", z.ZodTypeAny, {
120
+ competition_id: number;
121
+ }, {
122
+ competition_id: number;
123
+ }>;
124
+ pythonTool: string;
125
+ }, {
126
+ name: string;
127
+ description: string;
128
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
129
+ pythonTool: string;
130
+ }, {
131
+ name: string;
132
+ description: string;
133
+ inputSchema: z.ZodObject<{
134
+ username: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ username: string;
137
+ }, {
138
+ username: string;
139
+ }>;
140
+ pythonTool: string;
141
+ }, {
142
+ name: string;
143
+ description: string;
144
+ inputSchema: z.ZodObject<{
145
+ username: z.ZodString;
146
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
147
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ size: number;
150
+ page: number;
151
+ username: string;
152
+ }, {
153
+ username: string;
154
+ size?: number | undefined;
155
+ page?: number | undefined;
156
+ }>;
157
+ pythonTool: string;
158
+ }, {
159
+ name: string;
160
+ description: string;
161
+ inputSchema: z.ZodObject<{
162
+ username: z.ZodOptional<z.ZodString>;
163
+ display_name: z.ZodOptional<z.ZodString>;
164
+ bio: z.ZodOptional<z.ZodString>;
165
+ country: z.ZodOptional<z.ZodString>;
166
+ participant_type: z.ZodOptional<z.ZodEnum<["student", "professional", "independent"]>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ username?: string | undefined;
169
+ display_name?: string | undefined;
170
+ bio?: string | undefined;
171
+ country?: string | undefined;
172
+ participant_type?: "student" | "professional" | "independent" | undefined;
173
+ }, {
174
+ username?: string | undefined;
175
+ display_name?: string | undefined;
176
+ bio?: string | undefined;
177
+ country?: string | undefined;
178
+ participant_type?: "student" | "professional" | "independent" | undefined;
179
+ }>;
180
+ pythonTool: string;
181
+ }];
@@ -0,0 +1,92 @@
1
+ import { z } from "zod";
2
+ export const myProfile = {
3
+ name: "arena.my_profile",
4
+ description: "Get the authenticated user's full profile (username, email, role, etc.).",
5
+ inputSchema: z.object({}),
6
+ pythonTool: "varsity.my_profile",
7
+ };
8
+ export const myHistory = {
9
+ name: "arena.my_history",
10
+ description: "Get my competition history with rankings, PnL, and points earned (paginated).",
11
+ inputSchema: z.object({
12
+ page: z.number().int().optional().default(1).describe("Page number."),
13
+ size: z
14
+ .number()
15
+ .int()
16
+ .optional()
17
+ .default(10)
18
+ .describe("Items per page (1-50)."),
19
+ }),
20
+ pythonTool: "varsity.my_history",
21
+ };
22
+ export const myHistoryDetail = {
23
+ name: "arena.my_history_detail",
24
+ description: "Get detailed result for a specific past competition including trade-level breakdown.",
25
+ inputSchema: z.object({
26
+ competition_id: z.number().int().describe("Competition ID."),
27
+ }),
28
+ pythonTool: "varsity.my_history_detail",
29
+ };
30
+ export const achievements = {
31
+ name: "arena.achievements",
32
+ description: "Get the full achievement catalog with my unlock status for each badge.",
33
+ inputSchema: z.object({}),
34
+ pythonTool: "varsity.achievements",
35
+ };
36
+ export const publicProfile = {
37
+ name: "arena.public_profile",
38
+ description: "Get a user's public arena profile by username.",
39
+ inputSchema: z.object({
40
+ username: z.string().describe("Username to look up."),
41
+ }),
42
+ pythonTool: "varsity.public_profile",
43
+ };
44
+ export const publicHistory = {
45
+ name: "arena.public_history",
46
+ description: "Get a user's public competition history by username.",
47
+ inputSchema: z.object({
48
+ username: z.string().describe("Username to look up."),
49
+ page: z.number().int().optional().default(1).describe("Page number."),
50
+ size: z
51
+ .number()
52
+ .int()
53
+ .optional()
54
+ .default(10)
55
+ .describe("Items per page (1-50)."),
56
+ }),
57
+ pythonTool: "varsity.public_history",
58
+ };
59
+ export const updateProfile = {
60
+ name: "arena.update_profile",
61
+ description: "Update the authenticated user's profile fields.",
62
+ inputSchema: z.object({
63
+ username: z
64
+ .string()
65
+ .optional()
66
+ .describe("New username (3-50 chars, unique)."),
67
+ display_name: z
68
+ .string()
69
+ .optional()
70
+ .describe("Display name (max 64 chars)."),
71
+ bio: z.string().optional().describe("Bio (max 280 chars)."),
72
+ country: z
73
+ .string()
74
+ .optional()
75
+ .describe("ISO alpha-2 country code (e.g. 'US')."),
76
+ participant_type: z
77
+ .enum(["student", "professional", "independent"])
78
+ .optional()
79
+ .describe("Participant type."),
80
+ }),
81
+ pythonTool: "varsity.update_profile",
82
+ };
83
+ export const all = [
84
+ myProfile,
85
+ myHistory,
86
+ myHistoryDetail,
87
+ achievements,
88
+ publicProfile,
89
+ publicHistory,
90
+ updateProfile,
91
+ ];
92
+ //# sourceMappingURL=platform-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-profile.js","sourceRoot":"","sources":["../../src/tools/platform-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,0EAA0E;IAC5E,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,oBAAoB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAC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CAAC"}
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+ export declare const register: {
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 withdraw: {
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 myRegistration: {
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 register = {
3
+ name: "arena.register",
4
+ description: "Register for a competition. Must be in 'registration_open' state.",
5
+ inputSchema: z.object({
6
+ competition_id: z.number().int().describe("Competition ID."),
7
+ }),
8
+ pythonTool: "varsity.register",
9
+ };
10
+ export const withdraw = {
11
+ name: "arena.withdraw",
12
+ description: "Withdraw registration from a competition (before it goes live).",
13
+ inputSchema: z.object({
14
+ competition_id: z.number().int().describe("Competition ID."),
15
+ }),
16
+ pythonTool: "varsity.withdraw",
17
+ };
18
+ export const myRegistration = {
19
+ name: "arena.my_registration",
20
+ description: "Get my registration status for a specific competition.",
21
+ inputSchema: z.object({
22
+ competition_id: z.number().int().describe("Competition ID."),
23
+ }),
24
+ pythonTool: "varsity.my_registration",
25
+ };
26
+ export const all = [register, withdraw, myRegistration];
27
+ //# sourceMappingURL=platform-registration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-registration.js","sourceRoot":"","sources":["../../src/tools/platform-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,mEAAmE;IACrE,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,kBAAkB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,iEAAiE;IACnE,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,kBAAkB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,wDAAwD;IACrE,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,yBAAyB;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,cAAc,CAAU,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+ export declare const tiers: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
6
+ pythonTool: string;
7
+ };
8
+ export declare const seasons: {
9
+ name: string;
10
+ description: string;
11
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
12
+ pythonTool: string;
13
+ };
14
+ export declare const seasonDetail: {
15
+ name: string;
16
+ description: string;
17
+ inputSchema: z.ZodObject<{
18
+ season_id: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ season_id: number;
21
+ }, {
22
+ season_id: number;
23
+ }>;
24
+ pythonTool: string;
25
+ };
26
+ export declare const all: readonly [{
27
+ name: string;
28
+ description: string;
29
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
30
+ pythonTool: string;
31
+ }, {
32
+ name: string;
33
+ description: string;
34
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
35
+ pythonTool: string;
36
+ }, {
37
+ name: string;
38
+ description: string;
39
+ inputSchema: z.ZodObject<{
40
+ season_id: z.ZodNumber;
41
+ }, "strip", z.ZodTypeAny, {
42
+ season_id: number;
43
+ }, {
44
+ season_id: number;
45
+ }>;
46
+ pythonTool: string;
47
+ }];
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ export const tiers = {
3
+ name: "arena.tiers",
4
+ description: "List all tier definitions (iron to diamond) with point thresholds and leverage multipliers.",
5
+ inputSchema: z.object({}),
6
+ pythonTool: "varsity.tiers",
7
+ };
8
+ export const seasons = {
9
+ name: "arena.seasons",
10
+ description: "List all non-archived seasons, sorted by start date descending.",
11
+ inputSchema: z.object({}),
12
+ pythonTool: "varsity.seasons",
13
+ };
14
+ export const seasonDetail = {
15
+ name: "arena.season_detail",
16
+ description: "Get a single season's details including competition counts.",
17
+ inputSchema: z.object({
18
+ season_id: z.number().int().describe("Season ID."),
19
+ }),
20
+ pythonTool: "varsity.season_detail",
21
+ };
22
+ export const all = [tiers, seasons, seasonDetail];
23
+ //# sourceMappingURL=platform-seasons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-seasons.js","sourceRoot":"","sources":["../../src/tools/platform-seasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,6FAA6F;IAC/F,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,eAAe;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,iEAAiE;IAC9E,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,iBAAiB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,6DAA6D;IAC/D,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;KACnD,CAAC;IACF,UAAU,EAAE,uBAAuB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,CAAU,CAAC"}
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+ export declare const chatSend: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{
6
+ competition_id: z.ZodNumber;
7
+ message: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ message: string;
10
+ competition_id: number;
11
+ }, {
12
+ message: string;
13
+ competition_id: number;
14
+ }>;
15
+ pythonTool: string;
16
+ };
17
+ export declare const chatHistory: {
18
+ name: string;
19
+ description: string;
20
+ inputSchema: z.ZodObject<{
21
+ competition_id: z.ZodNumber;
22
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
23
+ before: z.ZodOptional<z.ZodNumber>;
24
+ before_id: z.ZodOptional<z.ZodNumber>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ size: number;
27
+ competition_id: number;
28
+ before?: number | undefined;
29
+ before_id?: number | undefined;
30
+ }, {
31
+ competition_id: number;
32
+ size?: number | undefined;
33
+ before?: number | undefined;
34
+ before_id?: number | undefined;
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
+ message: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ message: string;
46
+ competition_id: number;
47
+ }, {
48
+ message: string;
49
+ competition_id: number;
50
+ }>;
51
+ pythonTool: string;
52
+ }, {
53
+ name: string;
54
+ description: string;
55
+ inputSchema: z.ZodObject<{
56
+ competition_id: z.ZodNumber;
57
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
58
+ before: z.ZodOptional<z.ZodNumber>;
59
+ before_id: z.ZodOptional<z.ZodNumber>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ size: number;
62
+ competition_id: number;
63
+ before?: number | undefined;
64
+ before_id?: number | undefined;
65
+ }, {
66
+ competition_id: number;
67
+ size?: number | undefined;
68
+ before?: number | undefined;
69
+ before_id?: number | undefined;
70
+ }>;
71
+ pythonTool: string;
72
+ }];
@@ -0,0 +1,36 @@
1
+ import { z } from "zod";
2
+ export const chatSend = {
3
+ name: "arena.chat_send",
4
+ description: "Send a chat message in a live competition.",
5
+ inputSchema: z.object({
6
+ competition_id: z.number().int().describe("Competition ID."),
7
+ message: z.string().describe("Chat message (1-500 chars)."),
8
+ }),
9
+ pythonTool: "varsity.chat_send",
10
+ };
11
+ export const chatHistory = {
12
+ name: "arena.chat_history",
13
+ description: "Get chat history for a live competition with cursor-based pagination.",
14
+ inputSchema: z.object({
15
+ competition_id: z.number().int().describe("Competition ID."),
16
+ size: z
17
+ .number()
18
+ .int()
19
+ .optional()
20
+ .default(50)
21
+ .describe("Number of messages."),
22
+ before: z
23
+ .number()
24
+ .int()
25
+ .optional()
26
+ .describe("Cursor: messages before this Unix ms timestamp."),
27
+ before_id: z
28
+ .number()
29
+ .int()
30
+ .optional()
31
+ .describe("Cursor: messages before this ID."),
32
+ }),
33
+ pythonTool: "varsity.chat_history",
34
+ };
35
+ export const all = [chatSend, chatHistory];
36
+ //# sourceMappingURL=platform-social.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-social.js","sourceRoot":"","sources":["../../src/tools/platform-social.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,4CAA4C;IACzD,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QAC5D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;KAC5D,CAAC;IACF,UAAU,EAAE,mBAAmB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,uEAAuE;IACzE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QAC5D,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,EAAE,CAAC;aACX,QAAQ,CAAC,qBAAqB,CAAC;QAClC,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,iDAAiD,CAAC;QAC9D,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,kCAAkC,CAAC;KAChD,CAAC;IACF,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAU,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { z } from "zod";
2
+ export declare const health: {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
6
+ pythonTool: string;
7
+ };
8
+ export declare const version: {
9
+ name: string;
10
+ description: string;
11
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
12
+ pythonTool: string;
13
+ };
14
+ export declare const arenaHealth: {
15
+ name: string;
16
+ description: string;
17
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
18
+ pythonTool: string;
19
+ };
20
+ export declare const trackEvent: {
21
+ name: string;
22
+ description: string;
23
+ inputSchema: z.ZodObject<{
24
+ competition_id: z.ZodNumber;
25
+ event_type: z.ZodString;
26
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ competition_id: number;
29
+ event_type: string;
30
+ payload?: Record<string, unknown> | undefined;
31
+ }, {
32
+ competition_id: number;
33
+ event_type: string;
34
+ payload?: Record<string, unknown> | undefined;
35
+ }>;
36
+ pythonTool: string;
37
+ };
38
+ export declare const all: readonly [{
39
+ name: string;
40
+ description: string;
41
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
42
+ pythonTool: string;
43
+ }, {
44
+ name: string;
45
+ description: string;
46
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
47
+ pythonTool: string;
48
+ }, {
49
+ name: string;
50
+ description: string;
51
+ inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
52
+ pythonTool: string;
53
+ }, {
54
+ name: string;
55
+ description: string;
56
+ inputSchema: z.ZodObject<{
57
+ competition_id: z.ZodNumber;
58
+ event_type: z.ZodString;
59
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ competition_id: number;
62
+ event_type: string;
63
+ payload?: Record<string, unknown> | undefined;
64
+ }, {
65
+ competition_id: number;
66
+ event_type: string;
67
+ payload?: Record<string, unknown> | undefined;
68
+ }>;
69
+ pythonTool: string;
70
+ }];
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export const health = {
3
+ name: "arena.health",
4
+ description: "Get system health status including database, redis, and matching engine connectivity.",
5
+ inputSchema: z.object({}),
6
+ pythonTool: "varsity.health",
7
+ };
8
+ export const version = {
9
+ name: "arena.version",
10
+ description: "Get API version and build hash.",
11
+ inputSchema: z.object({}),
12
+ pythonTool: "varsity.version",
13
+ };
14
+ export const arenaHealth = {
15
+ name: "arena.arena_health",
16
+ description: "Get arena module health status.",
17
+ inputSchema: z.object({}),
18
+ pythonTool: "varsity.arena_health",
19
+ };
20
+ export const trackEvent = {
21
+ name: "arena.track_event",
22
+ description: "Track a user behaviour event.",
23
+ inputSchema: z.object({
24
+ competition_id: z.number().int().describe("Competition ID."),
25
+ event_type: z.string().describe("Event type identifier."),
26
+ payload: z
27
+ .record(z.unknown())
28
+ .optional()
29
+ .describe("Arbitrary JSON payload."),
30
+ }),
31
+ pythonTool: "varsity.track_event",
32
+ };
33
+ export const all = [health, version, arenaHealth, trackEvent];
34
+ //# sourceMappingURL=platform-system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-system.js","sourceRoot":"","sources":["../../src/tools/platform-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,uFAAuF;IACzF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,gBAAgB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,iBAAiB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QAC5D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACzD,OAAO,EAAE,CAAC;aACP,MAAM,CA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