solana-agent-kit-plugin-madeonsol 0.2.0 → 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.
package/dist/index.d.ts CHANGED
@@ -1,174 +1,179 @@
1
- import { kolFeedAction } from "./actions/kolFeed.js";
2
- import { kolCoordinationAction } from "./actions/kolCoordination.js";
3
- import { kolLeaderboardAction } from "./actions/kolLeaderboard.js";
4
- import { deployerAlertsAction } from "./actions/deployerAlerts.js";
5
- import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts } from "./tools/index.js";
6
- declare const MadeOnSolPlugin: {
7
- name: string;
8
- methods: {
9
- kolFeed: typeof kolFeed;
10
- kolCoordination: typeof kolCoordination;
11
- kolLeaderboard: typeof kolLeaderboard;
12
- deployerAlerts: typeof deployerAlerts;
13
- };
14
- actions: ({
15
- name: string;
16
- similes: string[];
17
- description: string;
18
- examples: {
19
- input: {
20
- limit: number;
21
- action: string;
22
- };
23
- output: {
24
- status: string;
25
- };
26
- explanation: string;
27
- }[][];
28
- schema: import("zod").ZodObject<{
29
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
30
- action: import("zod").ZodOptional<import("zod").ZodEnum<["buy", "sell"]>>;
31
- kol: import("zod").ZodOptional<import("zod").ZodString>;
32
- }, "strip", import("zod").ZodTypeAny, {
33
- limit: number;
34
- action?: "buy" | "sell" | undefined;
35
- kol?: string | undefined;
36
- }, {
37
- limit?: number | undefined;
38
- action?: "buy" | "sell" | undefined;
39
- kol?: string | undefined;
40
- }>;
41
- handler: (agent: unknown, input: {
42
- limit?: number;
43
- action?: string;
44
- kol?: string;
45
- }) => Promise<{
46
- status: string;
47
- result: any;
48
- message?: undefined;
49
- } | {
50
- status: string;
51
- message: string;
52
- result?: undefined;
53
- }>;
54
- } | {
55
- name: string;
56
- similes: string[];
57
- description: string;
58
- examples: {
59
- input: {
60
- period: string;
61
- min_kols: number;
62
- };
63
- output: {
64
- status: string;
65
- };
66
- explanation: string;
67
- }[][];
68
- schema: import("zod").ZodObject<{
69
- period: import("zod").ZodDefault<import("zod").ZodEnum<["1h", "6h", "24h", "7d"]>>;
70
- min_kols: import("zod").ZodDefault<import("zod").ZodNumber>;
71
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
72
- }, "strip", import("zod").ZodTypeAny, {
73
- limit: number;
74
- period: "24h" | "1h" | "6h" | "7d";
75
- min_kols: number;
76
- }, {
77
- limit?: number | undefined;
78
- period?: "24h" | "1h" | "6h" | "7d" | undefined;
79
- min_kols?: number | undefined;
80
- }>;
81
- handler: (agent: unknown, input: {
82
- period?: string;
83
- min_kols?: number;
84
- limit?: number;
85
- }) => Promise<{
86
- status: string;
87
- result: any;
88
- message?: undefined;
89
- } | {
90
- status: string;
91
- message: string;
92
- result?: undefined;
93
- }>;
94
- } | {
95
- name: string;
96
- similes: string[];
97
- description: string;
98
- examples: {
99
- input: {
100
- period: string;
101
- limit: number;
102
- };
103
- output: {
104
- status: string;
105
- };
106
- explanation: string;
107
- }[][];
108
- schema: import("zod").ZodObject<{
109
- period: import("zod").ZodDefault<import("zod").ZodEnum<["today", "7d", "30d"]>>;
110
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
111
- }, "strip", import("zod").ZodTypeAny, {
112
- limit: number;
113
- period: "7d" | "today" | "30d";
114
- }, {
115
- limit?: number | undefined;
116
- period?: "7d" | "today" | "30d" | undefined;
117
- }>;
118
- handler: (agent: unknown, input: {
119
- period?: string;
120
- limit?: number;
121
- }) => Promise<{
122
- status: string;
123
- result: any;
124
- message?: undefined;
125
- } | {
126
- status: string;
127
- message: string;
128
- result?: undefined;
129
- }>;
130
- } | {
131
- name: string;
132
- similes: string[];
133
- description: string;
134
- examples: {
135
- input: {
136
- limit: number;
137
- };
138
- output: {
139
- status: string;
140
- };
141
- explanation: string;
142
- }[][];
143
- schema: import("zod").ZodObject<{
144
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
145
- offset: import("zod").ZodDefault<import("zod").ZodNumber>;
146
- since: import("zod").ZodOptional<import("zod").ZodString>;
147
- }, "strip", import("zod").ZodTypeAny, {
148
- limit: number;
149
- offset: number;
150
- since?: string | undefined;
151
- }, {
152
- limit?: number | undefined;
153
- offset?: number | undefined;
154
- since?: string | undefined;
155
- }>;
156
- handler: (agent: unknown, input: {
157
- limit?: number;
158
- offset?: number;
159
- since?: string;
160
- }) => Promise<{
161
- status: string;
162
- result: any;
163
- message?: undefined;
164
- } | {
165
- status: string;
166
- message: string;
167
- result?: undefined;
168
- }>;
169
- })[];
170
- initialize(_agent: unknown): void;
171
- };
172
- export default MadeOnSolPlugin;
173
- export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts };
174
- export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction };
1
+ import { kolFeedAction } from "./actions/kolFeed.js";
2
+ import { kolCoordinationAction } from "./actions/kolCoordination.js";
3
+ import { kolLeaderboardAction } from "./actions/kolLeaderboard.js";
4
+ import { deployerAlertsAction } from "./actions/deployerAlerts.js";
5
+ import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken } from "./tools/index.js";
6
+ declare const MadeOnSolPlugin: {
7
+ name: string;
8
+ methods: {
9
+ kolFeed: typeof kolFeed;
10
+ kolCoordination: typeof kolCoordination;
11
+ kolLeaderboard: typeof kolLeaderboard;
12
+ deployerAlerts: typeof deployerAlerts;
13
+ createWebhook: typeof createWebhook;
14
+ listWebhooks: typeof listWebhooks;
15
+ deleteWebhook: typeof deleteWebhook;
16
+ testWebhook: typeof testWebhook;
17
+ getStreamToken: typeof getStreamToken;
18
+ };
19
+ actions: ({
20
+ name: string;
21
+ similes: string[];
22
+ description: string;
23
+ examples: {
24
+ input: {
25
+ limit: number;
26
+ action: string;
27
+ };
28
+ output: {
29
+ status: string;
30
+ };
31
+ explanation: string;
32
+ }[][];
33
+ schema: import("zod").ZodObject<{
34
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
35
+ action: import("zod").ZodOptional<import("zod").ZodEnum<["buy", "sell"]>>;
36
+ kol: import("zod").ZodOptional<import("zod").ZodString>;
37
+ }, "strip", import("zod").ZodTypeAny, {
38
+ limit: number;
39
+ action?: "buy" | "sell" | undefined;
40
+ kol?: string | undefined;
41
+ }, {
42
+ limit?: number | undefined;
43
+ action?: "buy" | "sell" | undefined;
44
+ kol?: string | undefined;
45
+ }>;
46
+ handler: (agent: unknown, input: {
47
+ limit?: number;
48
+ action?: string;
49
+ kol?: string;
50
+ }) => Promise<{
51
+ status: string;
52
+ result: any;
53
+ message?: undefined;
54
+ } | {
55
+ status: string;
56
+ message: string;
57
+ result?: undefined;
58
+ }>;
59
+ } | {
60
+ name: string;
61
+ similes: string[];
62
+ description: string;
63
+ examples: {
64
+ input: {
65
+ period: string;
66
+ min_kols: number;
67
+ };
68
+ output: {
69
+ status: string;
70
+ };
71
+ explanation: string;
72
+ }[][];
73
+ schema: import("zod").ZodObject<{
74
+ period: import("zod").ZodDefault<import("zod").ZodEnum<["1h", "6h", "24h", "7d"]>>;
75
+ min_kols: import("zod").ZodDefault<import("zod").ZodNumber>;
76
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
77
+ }, "strip", import("zod").ZodTypeAny, {
78
+ limit: number;
79
+ period: "24h" | "1h" | "6h" | "7d";
80
+ min_kols: number;
81
+ }, {
82
+ limit?: number | undefined;
83
+ period?: "24h" | "1h" | "6h" | "7d" | undefined;
84
+ min_kols?: number | undefined;
85
+ }>;
86
+ handler: (agent: unknown, input: {
87
+ period?: string;
88
+ min_kols?: number;
89
+ limit?: number;
90
+ }) => Promise<{
91
+ status: string;
92
+ result: any;
93
+ message?: undefined;
94
+ } | {
95
+ status: string;
96
+ message: string;
97
+ result?: undefined;
98
+ }>;
99
+ } | {
100
+ name: string;
101
+ similes: string[];
102
+ description: string;
103
+ examples: {
104
+ input: {
105
+ period: string;
106
+ limit: number;
107
+ };
108
+ output: {
109
+ status: string;
110
+ };
111
+ explanation: string;
112
+ }[][];
113
+ schema: import("zod").ZodObject<{
114
+ period: import("zod").ZodDefault<import("zod").ZodEnum<["today", "7d", "30d"]>>;
115
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
116
+ }, "strip", import("zod").ZodTypeAny, {
117
+ limit: number;
118
+ period: "7d" | "today" | "30d";
119
+ }, {
120
+ limit?: number | undefined;
121
+ period?: "7d" | "today" | "30d" | undefined;
122
+ }>;
123
+ handler: (agent: unknown, input: {
124
+ period?: string;
125
+ limit?: number;
126
+ }) => Promise<{
127
+ status: string;
128
+ result: any;
129
+ message?: undefined;
130
+ } | {
131
+ status: string;
132
+ message: string;
133
+ result?: undefined;
134
+ }>;
135
+ } | {
136
+ name: string;
137
+ similes: string[];
138
+ description: string;
139
+ examples: {
140
+ input: {
141
+ limit: number;
142
+ };
143
+ output: {
144
+ status: string;
145
+ };
146
+ explanation: string;
147
+ }[][];
148
+ schema: import("zod").ZodObject<{
149
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
150
+ offset: import("zod").ZodDefault<import("zod").ZodNumber>;
151
+ since: import("zod").ZodOptional<import("zod").ZodString>;
152
+ }, "strip", import("zod").ZodTypeAny, {
153
+ limit: number;
154
+ offset: number;
155
+ since?: string | undefined;
156
+ }, {
157
+ limit?: number | undefined;
158
+ offset?: number | undefined;
159
+ since?: string | undefined;
160
+ }>;
161
+ handler: (agent: unknown, input: {
162
+ limit?: number;
163
+ offset?: number;
164
+ since?: string;
165
+ }) => Promise<{
166
+ status: string;
167
+ result: any;
168
+ message?: undefined;
169
+ } | {
170
+ status: string;
171
+ message: string;
172
+ result?: undefined;
173
+ }>;
174
+ })[];
175
+ initialize(_agent: unknown): void;
176
+ };
177
+ export default MadeOnSolPlugin;
178
+ export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken };
179
+ export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction };
package/dist/index.js CHANGED
@@ -1,26 +1,31 @@
1
- import { kolFeedAction } from "./actions/kolFeed.js";
2
- import { kolCoordinationAction } from "./actions/kolCoordination.js";
3
- import { kolLeaderboardAction } from "./actions/kolLeaderboard.js";
4
- import { deployerAlertsAction } from "./actions/deployerAlerts.js";
5
- import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts } from "./tools/index.js";
6
- const MadeOnSolPlugin = {
7
- name: "madeonsol",
8
- methods: {
9
- kolFeed,
10
- kolCoordination,
11
- kolLeaderboard,
12
- deployerAlerts,
13
- },
14
- actions: [
15
- kolFeedAction,
16
- kolCoordinationAction,
17
- kolLeaderboardAction,
18
- deployerAlertsAction,
19
- ],
20
- initialize(_agent) {
21
- // No-op — payment setup is lazy in tool functions
22
- },
23
- };
24
- export default MadeOnSolPlugin;
25
- export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts };
26
- export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction };
1
+ import { kolFeedAction } from "./actions/kolFeed.js";
2
+ import { kolCoordinationAction } from "./actions/kolCoordination.js";
3
+ import { kolLeaderboardAction } from "./actions/kolLeaderboard.js";
4
+ import { deployerAlertsAction } from "./actions/deployerAlerts.js";
5
+ import { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken } from "./tools/index.js";
6
+ const MadeOnSolPlugin = {
7
+ name: "madeonsol",
8
+ methods: {
9
+ kolFeed,
10
+ kolCoordination,
11
+ kolLeaderboard,
12
+ deployerAlerts,
13
+ createWebhook,
14
+ listWebhooks,
15
+ deleteWebhook,
16
+ testWebhook,
17
+ getStreamToken,
18
+ },
19
+ actions: [
20
+ kolFeedAction,
21
+ kolCoordinationAction,
22
+ kolLeaderboardAction,
23
+ deployerAlertsAction,
24
+ ],
25
+ initialize(_agent) {
26
+ // No-op payment setup is lazy in tool functions
27
+ },
28
+ };
29
+ export default MadeOnSolPlugin;
30
+ export { kolFeed, kolCoordination, kolLeaderboard, deployerAlerts, createWebhook, listWebhooks, deleteWebhook, testWebhook, getStreamToken };
31
+ export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction };
@@ -1,26 +1,42 @@
1
- /**
2
- * Tool functions — pure logic that calls MadeOnSol x402 API.
3
- * These are called by Action handlers and can also be used directly via agent.methods.
4
- */
5
- type Agent = any;
6
- export declare function initPaidFetch(agent: Agent): Promise<typeof fetch>;
7
- export declare function kolFeed(agent: Agent, params?: {
8
- limit?: number;
9
- action?: string;
10
- kol?: string;
11
- }): Promise<any>;
12
- export declare function kolCoordination(agent: Agent, params?: {
13
- period?: string;
14
- min_kols?: number;
15
- limit?: number;
16
- }): Promise<any>;
17
- export declare function kolLeaderboard(agent: Agent, params?: {
18
- period?: string;
19
- limit?: number;
20
- }): Promise<any>;
21
- export declare function deployerAlerts(agent: Agent, params?: {
22
- limit?: number;
23
- since?: string;
24
- offset?: number;
25
- }): Promise<any>;
26
- export {};
1
+ /**
2
+ * Tool functions — pure logic that calls MadeOnSol API.
3
+ * Auth priority: MADEONSOL_API_KEY > RAPIDAPI_KEY > SVM_PRIVATE_KEY (x402).
4
+ * These are called by Action handlers and can also be used directly via agent.methods.
5
+ */
6
+ type Agent = any;
7
+ export declare function initAuth(agent: Agent): Promise<void>;
8
+ /** @deprecated Use initAuth instead */
9
+ export declare function initPaidFetch(agent: Agent): Promise<typeof fetch>;
10
+ export declare function kolFeed(agent: Agent, params?: {
11
+ limit?: number;
12
+ action?: string;
13
+ kol?: string;
14
+ }): Promise<any>;
15
+ export declare function kolCoordination(agent: Agent, params?: {
16
+ period?: string;
17
+ min_kols?: number;
18
+ limit?: number;
19
+ }): Promise<any>;
20
+ export declare function kolLeaderboard(agent: Agent, params?: {
21
+ period?: string;
22
+ limit?: number;
23
+ }): Promise<any>;
24
+ export declare function deployerAlerts(agent: Agent, params?: {
25
+ limit?: number;
26
+ since?: string;
27
+ offset?: number;
28
+ }): Promise<any>;
29
+ export declare function createWebhook(agent: Agent, params: {
30
+ url: string;
31
+ events: string[];
32
+ filters?: Record<string, unknown>;
33
+ }): Promise<any>;
34
+ export declare function listWebhooks(agent: Agent): Promise<any>;
35
+ export declare function deleteWebhook(agent: Agent, params: {
36
+ id: number;
37
+ }): Promise<any>;
38
+ export declare function testWebhook(agent: Agent, params: {
39
+ webhook_id: number;
40
+ }): Promise<any>;
41
+ export declare function getStreamToken(agent: Agent): Promise<any>;
42
+ export {};