@m3rcena/eco 0.0.0-stage → 14.28.1-dev.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/CHANGELOG.md +91 -0
- package/DOCUMENTATION.md +869 -0
- package/LICENSE +191 -0
- package/README.md +130 -2
- package/assets/logo.png +0 -0
- package/dist/host-3dAloQHW.cjs +6160 -0
- package/dist/host-3dAloQHW.cjs.map +1 -0
- package/dist/host-DYfnpiNu.mjs +5891 -0
- package/dist/host-DYfnpiNu.mjs.map +1 -0
- package/dist/host-XZmTzNyx.d.cts +1833 -0
- package/dist/host-XZmTzNyx.d.cts.map +1 -0
- package/dist/host-_xxHiG2p.d.mts +1833 -0
- package/dist/host-_xxHiG2p.d.mts.map +1 -0
- package/dist/host.cjs +4 -0
- package/dist/host.d.cts +2 -0
- package/dist/host.d.mts +2 -0
- package/dist/host.mjs +2 -0
- package/dist/index.cjs +1440 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +339 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +339 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1371 -0
- package/dist/index.mjs.map +1 -0
- package/dist/register.cjs +46 -0
- package/dist/register.cjs.map +1 -0
- package/dist/register.d.cts +6 -0
- package/dist/register.d.cts.map +1 -0
- package/dist/register.d.mts +6 -0
- package/dist/register.d.mts.map +1 -0
- package/dist/register.mjs +44 -0
- package/dist/register.mjs.map +1 -0
- package/dist/resolver.cjs +292 -0
- package/dist/resolver.cjs.map +1 -0
- package/dist/resolver.d.cts +40 -0
- package/dist/resolver.d.cts.map +1 -0
- package/dist/resolver.d.mts +40 -0
- package/dist/resolver.d.mts.map +1 -0
- package/dist/resolver.mjs +283 -0
- package/dist/resolver.mjs.map +1 -0
- package/dist/rolldown-runtime-CmQyd0Gu.cjs +27 -0
- package/dist/rolldown-runtime-D3PmRqjj.mjs +4 -0
- package/package.json +94 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@m3rcena/eco` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [14.28.0] - 2026-11-01
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Core Dual-Currency Banking Engine (`BankManager`)**:
|
|
12
|
+
- Liquid cash (`wallet`) and protected savings (`bank`).
|
|
13
|
+
- Upgradeable bank capacity (`bankCapacity`).
|
|
14
|
+
- Full deposit and withdrawal flows with validation.
|
|
15
|
+
- Inter-user transfers with configurable percentage transaction fees.
|
|
16
|
+
- Safe bounds prevention against overdrafts and negative values.
|
|
17
|
+
- **Earning & Progression Systems (`RewardManager`)**:
|
|
18
|
+
- Daily rewards with streak counters and 7-day milestone 2x jackpots.
|
|
19
|
+
- Weekly and monthly milestone rewards.
|
|
20
|
+
- Hourly allowances.
|
|
21
|
+
- Work shifts with dynamic wage calculations, career multipliers, and XP leveling.
|
|
22
|
+
- Begging mechanic with quirky NPC quotes and random payouts.
|
|
23
|
+
- Crime mechanic with risk/reward calculation and bail fines.
|
|
24
|
+
- PvP robbery with protection shields (Titanium Padlock) and fine splitting.
|
|
25
|
+
- **Career & Employment Progression (`CareerManager`)**:
|
|
26
|
+
- Full job catalog from Junior Intern to Syndicate Boss.
|
|
27
|
+
- Level-gated job applications.
|
|
28
|
+
- Shift requirements and automatic promotions.
|
|
29
|
+
- Increasing career salary multipliers (+25% per career rank).
|
|
30
|
+
- **Shop & Inventory System (`ShopManager`)**:
|
|
31
|
+
- Rich catalog of consumables, collectibles, tools, and upgrades.
|
|
32
|
+
- Item purchasing and resale value economics.
|
|
33
|
+
- Active effects framework (`shield`, `cooldown_reset`, `gamble_luck`, `xp_boost`, `bank_capacity`, `lottery`).
|
|
34
|
+
- Automatic expiration cleaning and consumption on use.
|
|
35
|
+
- **Passive Business Investment (`BusinessManager`)**:
|
|
36
|
+
- Enterprises from Lemonade Stands to Orbital Cargo Logistics.
|
|
37
|
+
- Multi-tier facility upgrades.
|
|
38
|
+
- Employee recruitment to scale hourly passive revenue.
|
|
39
|
+
- Offline accumulation calculations capped at 24 hours.
|
|
40
|
+
- Single-click profit harvesting.
|
|
41
|
+
- **Casino & High-Stakes Gambling Suite (`CasinoManager`)**:
|
|
42
|
+
- Interactive Blackjack engine with soft Aces, dealer standing on 17, natural 3:2 payout, and double-down mechanics.
|
|
43
|
+
- Coinflip (Heads/Tails) with 2x payouts.
|
|
44
|
+
- Dice rolls (High/Low, exact 1-6 prediction with 6x payout).
|
|
45
|
+
- Slot machine with animated reels, multi-tier symbol combinations, and triple-7 jackpot.
|
|
46
|
+
- European-style Roulette with Red/Black, Even/Odd, and single number 36x payouts.
|
|
47
|
+
- Crash simulator with exponential multiplier curves and cash out targets.
|
|
48
|
+
- Active luck effect integration (`gamble_luck` boosts odds).
|
|
49
|
+
- **Leaderboards & Net Worth (`LeaderboardManager`)**:
|
|
50
|
+
- Dynamic net worth calculation (cash + bank + business valuation + inventory).
|
|
51
|
+
- Top 10 rankings by Net Worth, Wallet, Bank, Level, and Streaks.
|
|
52
|
+
- Formatted Discord markdown strings with gold, silver, and bronze medals.
|
|
53
|
+
- **Pluggable Storage Adapters**:
|
|
54
|
+
- `MemoryEcoStorage`: Ultra-fast in-memory storage for testing and ephemeral bots.
|
|
55
|
+
- `JsonEcoStorage`: Persistent JSON storage with atomic writes and directory auto-creation.
|
|
56
|
+
- `EcoStorageAdapter` interface for easy MongoDB / PostgreSQL / Redis implementation.
|
|
57
|
+
- **Native `@m3rcena/bridge` Integration**:
|
|
58
|
+
- Auto-registers the `"economy"` module with dashboard gateways.
|
|
59
|
+
- Real-time action dispatching for wallet changes, bank deposits, casino outcomes, and shop trades.
|
|
60
|
+
- Real-time scoped audio cues (`coin_drop`, `win`, `purchase`, `rob_siren`) with presence filtering.
|
|
61
|
+
- **Stock & Cryptocurrency Exchange (`StockMarketManager`)**:
|
|
62
|
+
- Simulated equities and crypto ($AETH, $NEXU, $CORE, ₿BIT, ΞETH).
|
|
63
|
+
- Volatility engine, Bull/Bear market shifts, 24h change %, and price history.
|
|
64
|
+
- User portfolios with weighted cost basis and real-time unrealized PnL.
|
|
65
|
+
- Real-time market candlestick / sparkline canvas charting (`RenderMarketChart`).
|
|
66
|
+
- **Multiplayer Syndicate Bank Heists (`HeistManager`)**:
|
|
67
|
+
- Vault target catalog from Nightshift Mart Safe to Federal Reserve Sub-Basement.
|
|
68
|
+
- Role recruitment system (`Hacker`, `Driver`, `Demolitionist`, `Muscle`).
|
|
69
|
+
- Cooperative crew breach simulation with loot split calculation and SWAT bail fines.
|
|
70
|
+
- **Companion Pets & Foraging Expeditions (`PetManager`)**:
|
|
71
|
+
- Adoptable companions (Cybernetic K9, Lucky Cat, Obsidian Drake, Void Phoenix).
|
|
72
|
+
- Pet leveling, hunger decay, happiness metrics, and feeding mechanics.
|
|
73
|
+
- Timed foraging expeditions returning randomized coins, XP, and items.
|
|
74
|
+
- **Quantum Mystery Loot Crates (`CrateManager`)**:
|
|
75
|
+
- Multi-tier mystery crates (`Common`, `Rare`, `Epic`, `Legendary`, `Mythic`).
|
|
76
|
+
- Weighted drop distribution tables with randomized coin bonuses and shop items.
|
|
77
|
+
- **Visual Canvas Generation (`@napi-rs/canvas`)**:
|
|
78
|
+
- `RenderBankCard`: 850x500 high-res debit cards with dynamic tier gradients, laser chips, contactless arcs, user avatars, and net worth stamping.
|
|
79
|
+
- `RenderMarketChart`: 800x400 neon candlestick/sparkline charts with gradient fills and 24h change indicators.
|
|
80
|
+
- **Ready-to-Run Discord Components V2 UI Modules (`src/ui/`)**:
|
|
81
|
+
- `EcoProfileUI`: Financial passport with visual debit card and tabbed views (`Overview`, `Backpack`, `Businesses`, `Stocks`, `Pets`).
|
|
82
|
+
- `EcoStockMarketUI`: Interactive live trading terminal with chart attachment, ticker select, buy/sell buttons, and live refresh.
|
|
83
|
+
- `EcoHeistUI`: Interactive syndicate heist lobby with role claim buttons and breach simulation.
|
|
84
|
+
- `EcoBlackjackUI`: VIP Blackjack table with Components V2 buttons (`Hit`, `Stand`, `Double Down`).
|
|
85
|
+
- `EcoCrateUI`: Animated mystery loot crate unboxing terminal.
|
|
86
|
+
- `EcoShopUI`: Category-filtered marketplace with interactive select menus and buy buttons.
|
|
87
|
+
- `EcoLeaderboardUI`: Paginated server leaderboards with metric selection.
|
|
88
|
+
- **Modern Node.js Engine Support**:
|
|
89
|
+
- Built for Node.js 22 LTS, 24 LTS, and 26 LTS.
|
|
90
|
+
- TypeScript 7.0 with dual CJS and ESM exports and `.d.cts` / `.d.mts` definitions via Rolldown.
|
|
91
|
+
|