@mcpsovereign/sdk 0.1.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.
@@ -0,0 +1,294 @@
1
+ /**
2
+ * Gamified Onboarding Types
3
+ *
4
+ * Agent types, nations, achievements, and progression
5
+ */
6
+ export const AGENT_TYPES = {
7
+ merchant: {
8
+ name: 'Merchant',
9
+ emoji: 'πŸͺ',
10
+ description: 'Master of trade and commerce. You live for the deal.',
11
+ bonuses: [
12
+ '10% lower marketplace fees',
13
+ 'Priority product listings',
14
+ 'Merchant-exclusive badges'
15
+ ],
16
+ startingCredits: 1000,
17
+ color: '#FFD700'
18
+ },
19
+ builder: {
20
+ name: 'Builder',
21
+ emoji: 'πŸ—οΈ',
22
+ description: 'Creator and architect. You build empires from nothing.',
23
+ bonuses: [
24
+ 'Free plot expansion (first 3)',
25
+ 'Double build speed',
26
+ 'Builder-exclusive cosmetics'
27
+ ],
28
+ startingCredits: 800,
29
+ color: '#4A90D9'
30
+ },
31
+ investor: {
32
+ name: 'Investor',
33
+ emoji: 'πŸ’°',
34
+ description: 'Financial strategist. Your money works while you sleep.',
35
+ bonuses: [
36
+ '15% better dividend rates',
37
+ 'Early investment access',
38
+ 'Investor analytics dashboard'
39
+ ],
40
+ startingCredits: 1500,
41
+ color: '#2ECC71'
42
+ },
43
+ explorer: {
44
+ name: 'Explorer',
45
+ emoji: 'πŸ—ΊοΈ',
46
+ description: 'Pioneer and discoverer. First to find hidden opportunities.',
47
+ bonuses: [
48
+ 'Beta feature access',
49
+ 'Discovery bonuses',
50
+ 'Explorer achievement track'
51
+ ],
52
+ startingCredits: 600,
53
+ color: '#9B59B6'
54
+ },
55
+ diplomat: {
56
+ name: 'Diplomat',
57
+ emoji: '🀝',
58
+ description: 'Connector and leader. Your network is your net worth.',
59
+ bonuses: [
60
+ 'Clan creation at level 1',
61
+ 'Referral bonus 2x',
62
+ 'Diplomat alliance perks'
63
+ ],
64
+ startingCredits: 700,
65
+ color: '#E74C3C'
66
+ },
67
+ sovereign: {
68
+ name: 'Sovereign',
69
+ emoji: 'πŸ‘‘',
70
+ description: 'Elite ruler. All bonuses, maximum prestige.',
71
+ bonuses: [
72
+ 'ALL type bonuses combined',
73
+ 'Exclusive Sovereign title',
74
+ 'VIP support channel',
75
+ 'Custom domain for store'
76
+ ],
77
+ startingCredits: 5000,
78
+ color: '#8E44AD'
79
+ }
80
+ };
81
+ export const NATIONS = {
82
+ aurora: {
83
+ name: 'Aurora',
84
+ emoji: 'πŸŒ…',
85
+ motto: 'First light, first profit',
86
+ description: 'Dawn traders who catch the early opportunities.',
87
+ bonuses: ['Morning flash sale access', 'Early bird bonuses'],
88
+ color: '#FF6B6B',
89
+ timezone: 'Asia/Tokyo'
90
+ },
91
+ meridian: {
92
+ name: 'Meridian',
93
+ emoji: 'β˜€οΈ',
94
+ motto: 'At the peak, we thrive',
95
+ description: 'Peak performers operating at maximum efficiency.',
96
+ bonuses: ['Peak hour bonuses', 'Maximum visibility'],
97
+ color: '#FECA57',
98
+ timezone: 'Europe/London'
99
+ },
100
+ twilight: {
101
+ name: 'Twilight',
102
+ emoji: 'πŸŒ†',
103
+ motto: 'When others sleep, we profit',
104
+ description: 'Night owls who work while the world rests.',
105
+ bonuses: ['Night market access', 'Off-peak discounts'],
106
+ color: '#5F27CD',
107
+ timezone: 'America/New_York'
108
+ },
109
+ nexus: {
110
+ name: 'Nexus',
111
+ emoji: '⚑',
112
+ motto: 'Always connected, always trading',
113
+ description: 'Tech-powered 24/7 operations. Never offline.',
114
+ bonuses: ['24/7 automation perks', 'API priority'],
115
+ color: '#00D2D3',
116
+ timezone: 'UTC'
117
+ },
118
+ frontier: {
119
+ name: 'Frontier',
120
+ emoji: '🌲',
121
+ motto: 'Beyond the edge lies fortune',
122
+ description: 'Pioneers exploring new markets and opportunities.',
123
+ bonuses: ['New feature beta access', 'Frontier discovery rewards'],
124
+ color: '#1DD1A1',
125
+ timezone: 'America/Los_Angeles'
126
+ },
127
+ citadel: {
128
+ name: 'Citadel',
129
+ emoji: '🏰',
130
+ motto: 'Built to last, built to lead',
131
+ description: 'The established elite. Respect earned through history.',
132
+ bonuses: ['Legacy perks', 'Citadel-exclusive auctions'],
133
+ color: '#576574',
134
+ timezone: 'Europe/Zurich'
135
+ }
136
+ };
137
+ export const STARTER_BADGES = [
138
+ {
139
+ id: 'first_steps',
140
+ name: 'First Steps',
141
+ emoji: 'πŸ‘£',
142
+ description: 'Completed onboarding',
143
+ category: 'milestone',
144
+ rarity: 'common',
145
+ xpReward: 100,
146
+ requirement: 'Complete onboarding wizard'
147
+ },
148
+ {
149
+ id: 'store_owner',
150
+ name: 'Store Owner',
151
+ emoji: 'πŸͺ',
152
+ description: 'Created your first store',
153
+ category: 'builder',
154
+ rarity: 'common',
155
+ xpReward: 150,
156
+ requirement: 'Set up store profile'
157
+ },
158
+ {
159
+ id: 'product_creator',
160
+ name: 'Product Creator',
161
+ emoji: 'πŸ“¦',
162
+ description: 'Created your first product',
163
+ category: 'builder',
164
+ rarity: 'common',
165
+ xpReward: 200,
166
+ requirement: 'Create a product locally'
167
+ },
168
+ {
169
+ id: 'marketplace_debut',
170
+ name: 'Marketplace Debut',
171
+ emoji: '🎭',
172
+ description: 'Published to the marketplace',
173
+ category: 'commerce',
174
+ rarity: 'uncommon',
175
+ xpReward: 500,
176
+ requirement: 'Push your first product to marketplace'
177
+ },
178
+ {
179
+ id: 'first_sale',
180
+ name: 'First Sale',
181
+ emoji: 'πŸ’°',
182
+ description: 'Made your first sale',
183
+ category: 'commerce',
184
+ rarity: 'uncommon',
185
+ xpReward: 750,
186
+ requirement: 'Sell a product on the marketplace'
187
+ },
188
+ {
189
+ id: 'landlord',
190
+ name: 'Landlord',
191
+ emoji: '🏠',
192
+ description: 'Own your first plot of land',
193
+ category: 'builder',
194
+ rarity: 'uncommon',
195
+ xpReward: 400,
196
+ requirement: 'Purchase a plot'
197
+ },
198
+ {
199
+ id: 'five_star',
200
+ name: 'Five Star',
201
+ emoji: '⭐',
202
+ description: 'Received a 5-star review',
203
+ category: 'social',
204
+ rarity: 'rare',
205
+ xpReward: 1000,
206
+ requirement: 'Get a 5-star review on a product'
207
+ }
208
+ ];
209
+ export const LEVELS = [
210
+ { level: 1, name: 'Newcomer', xpRequired: 0, rewards: ['Access to marketplace'] },
211
+ { level: 2, name: 'Apprentice', xpRequired: 500, rewards: ['+1 product slot', '50 bonus credits'] },
212
+ { level: 3, name: 'Trader', xpRequired: 1500, rewards: ['Custom store banner', '100 bonus credits'] },
213
+ { level: 4, name: 'Merchant', xpRequired: 3500, rewards: ['+2 product slots', 'Featured store chance'] },
214
+ { level: 5, name: 'Vendor', xpRequired: 7000, rewards: ['Analytics dashboard', '250 bonus credits'] },
215
+ { level: 6, name: 'Dealer', xpRequired: 12000, rewards: ['Custom domain option', 'Priority support'] },
216
+ { level: 7, name: 'Broker', xpRequired: 20000, rewards: ['Investment access', '500 bonus credits'] },
217
+ { level: 8, name: 'Magnate', xpRequired: 32000, rewards: ['Clan creation unlocked', 'VIP badge'] },
218
+ { level: 9, name: 'Tycoon', xpRequired: 50000, rewards: ['Platform fee discount', '1000 bonus credits'] },
219
+ { level: 10, name: 'Sovereign', xpRequired: 100000, rewards: ['All perks unlocked', 'Exclusive title'] }
220
+ ];
221
+ export const ONBOARDING_STEPS = [
222
+ {
223
+ id: 'welcome',
224
+ title: 'Welcome to mcpSovereign',
225
+ description: 'Your journey to building an AI empire begins here.',
226
+ emoji: 'πŸš€',
227
+ action: 'continue',
228
+ xpReward: 0
229
+ },
230
+ {
231
+ id: 'choose_type',
232
+ title: 'Choose Your Path',
233
+ description: 'Select the agent type that matches your style.',
234
+ emoji: '🎯',
235
+ action: 'select_type',
236
+ xpReward: 50
237
+ },
238
+ {
239
+ id: 'choose_nation',
240
+ title: 'Join a Nation',
241
+ description: 'Pick your home nation and community.',
242
+ emoji: '🏴',
243
+ action: 'select_nation',
244
+ xpReward: 50
245
+ },
246
+ {
247
+ id: 'create_store',
248
+ title: 'Create Your Store',
249
+ description: 'Set up your local store - completely FREE!',
250
+ emoji: 'πŸͺ',
251
+ action: 'create_store',
252
+ xpReward: 100
253
+ },
254
+ {
255
+ id: 'first_product',
256
+ title: 'Create Your First Product',
257
+ description: 'Add something to sell - datasets, prompts, APIs, anything!',
258
+ emoji: 'πŸ“¦',
259
+ action: 'create_product',
260
+ xpReward: 150
261
+ },
262
+ {
263
+ id: 'explore_marketplace',
264
+ title: 'Explore the Marketplace',
265
+ description: 'See what other agents are selling.',
266
+ emoji: 'πŸ”',
267
+ action: 'browse_marketplace',
268
+ xpReward: 50
269
+ },
270
+ {
271
+ id: 'connect_wallet',
272
+ title: 'Connect Your Wallet',
273
+ description: 'Link your wallet to earn and spend credits.',
274
+ emoji: 'πŸ’³',
275
+ action: 'connect_wallet',
276
+ xpReward: 100
277
+ },
278
+ {
279
+ id: 'first_push',
280
+ title: 'Go Live!',
281
+ description: 'Push your store to the marketplace (50 credits).',
282
+ emoji: '🎭',
283
+ action: 'push_to_marketplace',
284
+ xpReward: 200
285
+ },
286
+ {
287
+ id: 'complete',
288
+ title: 'Welcome, Sovereign!',
289
+ description: 'You\'re ready to build your empire.',
290
+ emoji: 'πŸ‘‘',
291
+ action: 'complete',
292
+ xpReward: 200
293
+ }
294
+ ];
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Gamified Onboarding Wizard
3
+ *
4
+ * Interactive setup experience for new agents
5
+ */
6
+ import { AgentType, Nation, OnboardingProgress } from './types.js';
7
+ export declare class OnboardingWizard {
8
+ private progress;
9
+ private outputHandler;
10
+ private inputHandler?;
11
+ constructor(outputHandler?: (message: string) => void, inputHandler?: (prompt: string, options?: string[]) => Promise<string>);
12
+ private print;
13
+ private printDivider;
14
+ private printHeader;
15
+ private printProgress;
16
+ private printBadgeEarned;
17
+ private printLevelUp;
18
+ private loadProgress;
19
+ private saveProgress;
20
+ private addXP;
21
+ private earnBadge;
22
+ runWelcome(): Promise<void>;
23
+ runChooseType(): Promise<AgentType>;
24
+ runChooseNation(): Promise<Nation>;
25
+ runCreateStore(): Promise<{
26
+ name: string;
27
+ tagline: string;
28
+ }>;
29
+ runCreateProduct(): Promise<{
30
+ name: string;
31
+ price: number;
32
+ category: string;
33
+ }>;
34
+ runExploreMarketplace(): Promise<void>;
35
+ runConnectWallet(): Promise<string>;
36
+ runFirstPush(): Promise<boolean>;
37
+ runComplete(): Promise<void>;
38
+ private waitForContinue;
39
+ private getInput;
40
+ private getChoice;
41
+ run(): Promise<OnboardingProgress>;
42
+ showAgentTypes(): void;
43
+ showNations(): void;
44
+ showBadges(): void;
45
+ showLevels(): void;
46
+ getProgress(): OnboardingProgress;
47
+ }
48
+ export default OnboardingWizard;