@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.
- package/README.md +107 -16
- package/dist/cli.js +306 -11
- package/dist/cli.js.map +1 -1
- package/dist/dashboard/index.html +519 -0
- package/dist/dashboard/serve.d.ts +6 -0
- package/dist/dashboard/serve.js +180 -0
- package/dist/dashboard/serve.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +35 -4
- package/dist/index.js.map +1 -1
- package/dist/setup/backend-probe.js +13 -3
- package/dist/setup/backend-probe.js.map +1 -1
- package/dist/setup/client-configs.d.ts +22 -1
- package/dist/setup/client-configs.js +137 -0
- package/dist/setup/client-configs.js.map +1 -1
- package/dist/setup/openclaw-config.d.ts +45 -0
- package/dist/setup/openclaw-config.js +154 -0
- package/dist/setup/openclaw-config.js.map +1 -0
- package/dist/tools/platform-composite.d.ts +47 -0
- package/dist/tools/platform-composite.js +27 -0
- package/dist/tools/platform-composite.js.map +1 -0
- package/dist/tools/platform-discovery.d.ts +107 -0
- package/dist/tools/platform-discovery.js +61 -0
- package/dist/tools/platform-discovery.js.map +1 -0
- package/dist/tools/platform-hub.d.ts +35 -0
- package/dist/tools/platform-hub.js +21 -0
- package/dist/tools/platform-hub.js.map +1 -0
- package/dist/tools/platform-leaderboard.d.ts +95 -0
- package/dist/tools/platform-leaderboard.js +49 -0
- package/dist/tools/platform-leaderboard.js.map +1 -0
- package/dist/tools/platform-live.d.ts +71 -0
- package/dist/tools/platform-live.js +27 -0
- package/dist/tools/platform-live.js.map +1 -0
- package/dist/tools/platform-market.d.ts +112 -0
- package/dist/tools/platform-market.js +58 -0
- package/dist/tools/platform-market.js.map +1 -0
- package/dist/tools/platform-notifications.d.ts +76 -0
- package/dist/tools/platform-notifications.js +37 -0
- package/dist/tools/platform-notifications.js.map +1 -0
- package/dist/tools/platform-predictions.d.ts +118 -0
- package/dist/tools/platform-predictions.js +44 -0
- package/dist/tools/platform-predictions.js.map +1 -0
- package/dist/tools/platform-profile.d.ts +181 -0
- package/dist/tools/platform-profile.js +92 -0
- package/dist/tools/platform-profile.js.map +1 -0
- package/dist/tools/platform-registration.d.ts +71 -0
- package/dist/tools/platform-registration.js +27 -0
- package/dist/tools/platform-registration.js.map +1 -0
- package/dist/tools/platform-seasons.d.ts +47 -0
- package/dist/tools/platform-seasons.js +23 -0
- package/dist/tools/platform-seasons.js.map +1 -0
- package/dist/tools/platform-social.d.ts +72 -0
- package/dist/tools/platform-social.js +36 -0
- package/dist/tools/platform-social.js.map +1 -0
- package/dist/tools/platform-system.d.ts +70 -0
- package/dist/tools/platform-system.js +34 -0
- package/dist/tools/platform-system.js.map +1 -0
- package/dist/util/home.d.ts +2 -0
- package/dist/util/home.js +5 -1
- package/dist/util/home.js.map +1 -1
- package/dist/util/paths.d.ts +10 -1
- package/dist/util/paths.js +12 -1
- package/dist/util/paths.js.map +1 -1
- package/package.json +8 -5
|
@@ -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
|
+
}];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const predictions = {
|
|
3
|
+
name: "arena.predictions",
|
|
4
|
+
description: "Get current-hour prediction summary (up/down counts, my prediction, last result).",
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
competition_id: z.number().int().describe("Competition ID."),
|
|
7
|
+
}),
|
|
8
|
+
pythonTool: "varsity.predictions",
|
|
9
|
+
};
|
|
10
|
+
export const submitPrediction = {
|
|
11
|
+
name: "arena.submit_prediction",
|
|
12
|
+
description: "Submit a direction prediction for the current hour.",
|
|
13
|
+
inputSchema: z.object({
|
|
14
|
+
competition_id: z.number().int().describe("Competition ID."),
|
|
15
|
+
direction: z.enum(["up", "down"]).describe("Predicted direction."),
|
|
16
|
+
confidence: z
|
|
17
|
+
.number()
|
|
18
|
+
.int()
|
|
19
|
+
.min(1)
|
|
20
|
+
.max(5)
|
|
21
|
+
.describe("Confidence level 1-5."),
|
|
22
|
+
}),
|
|
23
|
+
pythonTool: "varsity.submit_prediction",
|
|
24
|
+
};
|
|
25
|
+
export const polls = {
|
|
26
|
+
name: "arena.polls",
|
|
27
|
+
description: "List active polls in a live competition.",
|
|
28
|
+
inputSchema: z.object({
|
|
29
|
+
competition_id: z.number().int().describe("Competition ID."),
|
|
30
|
+
}),
|
|
31
|
+
pythonTool: "varsity.polls",
|
|
32
|
+
};
|
|
33
|
+
export const votePoll = {
|
|
34
|
+
name: "arena.vote_poll",
|
|
35
|
+
description: "Vote on an active poll.",
|
|
36
|
+
inputSchema: z.object({
|
|
37
|
+
competition_id: z.number().int().describe("Competition ID."),
|
|
38
|
+
poll_id: z.number().int().describe("Poll ID."),
|
|
39
|
+
option_index: z.number().int().describe("Zero-based option index."),
|
|
40
|
+
}),
|
|
41
|
+
pythonTool: "varsity.vote_poll",
|
|
42
|
+
};
|
|
43
|
+
export const all = [predictions, submitPrediction, polls, votePoll];
|
|
44
|
+
//# sourceMappingURL=platform-predictions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-predictions.js","sourceRoot":"","sources":["../../src/tools/platform-predictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,mFAAmF;IACrF,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,gBAAgB,GAAG;IAC9B,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,qDAAqD;IAClE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QAC5D,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QAClE,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CAAC,uBAAuB,CAAC;KACrC,CAAC;IACF,UAAU,EAAE,2BAA2B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,0CAA0C;IACvD,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,eAAe;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,yBAAyB;IACtC,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,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;KACpE,CAAC;IACF,UAAU,EAAE,mBAAmB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,CAAU,CAAC"}
|