dsh-plugin-token-war 0.0.0-stage → 0.4.1

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 (75) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +12 -0
  4. package/README.md +90 -2
  5. package/assets/catalog.json +199 -0
  6. package/assets/characters/README.md +5 -0
  7. package/assets/characters/chatgpt/atlas.png +0 -0
  8. package/assets/characters/chatgpt/attack.gif +0 -0
  9. package/assets/characters/chatgpt/idle.gif +0 -0
  10. package/assets/characters/chatgpt/move.gif +0 -0
  11. package/assets/characters/chatgpt/portrait.png +0 -0
  12. package/assets/characters/claude/atlas.png +0 -0
  13. package/assets/characters/claude/attack.gif +0 -0
  14. package/assets/characters/claude/idle.gif +0 -0
  15. package/assets/characters/claude/move.gif +0 -0
  16. package/assets/characters/claude/portrait.png +0 -0
  17. package/assets/characters/deepseek/atlas.png +0 -0
  18. package/assets/characters/deepseek/attack.gif +0 -0
  19. package/assets/characters/deepseek/idle.gif +0 -0
  20. package/assets/characters/deepseek/move.gif +0 -0
  21. package/assets/characters/deepseek/portrait.png +0 -0
  22. package/assets/characters/doubao/atlas.png +0 -0
  23. package/assets/characters/doubao/attack.gif +0 -0
  24. package/assets/characters/doubao/idle.gif +0 -0
  25. package/assets/characters/doubao/move.gif +0 -0
  26. package/assets/characters/doubao/portrait.png +0 -0
  27. package/assets/characters/gemini/atlas.png +0 -0
  28. package/assets/characters/gemini/attack.gif +0 -0
  29. package/assets/characters/gemini/idle.gif +0 -0
  30. package/assets/characters/gemini/move.gif +0 -0
  31. package/assets/characters/gemini/portrait.png +0 -0
  32. package/assets/characters/glm/atlas.png +0 -0
  33. package/assets/characters/glm/attack.gif +0 -0
  34. package/assets/characters/glm/idle.gif +0 -0
  35. package/assets/characters/glm/move.gif +0 -0
  36. package/assets/characters/glm/portrait.png +0 -0
  37. package/assets/characters/grok/atlas.png +0 -0
  38. package/assets/characters/grok/attack.gif +0 -0
  39. package/assets/characters/grok/idle.gif +0 -0
  40. package/assets/characters/grok/move.gif +0 -0
  41. package/assets/characters/grok/portrait.png +0 -0
  42. package/assets/characters/kimi/atlas.png +0 -0
  43. package/assets/characters/kimi/attack.gif +0 -0
  44. package/assets/characters/kimi/idle.gif +0 -0
  45. package/assets/characters/kimi/move.gif +0 -0
  46. package/assets/characters/kimi/portrait.png +0 -0
  47. package/assets/characters/minimax/atlas.png +0 -0
  48. package/assets/characters/minimax/attack.gif +0 -0
  49. package/assets/characters/minimax/idle.gif +0 -0
  50. package/assets/characters/minimax/move.gif +0 -0
  51. package/assets/characters/minimax/portrait.png +0 -0
  52. package/assets/characters/qwen/atlas.png +0 -0
  53. package/assets/characters/qwen/attack.gif +0 -0
  54. package/assets/characters/qwen/idle.gif +0 -0
  55. package/assets/characters/qwen/move.gif +0 -0
  56. package/assets/characters/qwen/portrait.png +0 -0
  57. package/assets/inventory.json +63 -0
  58. package/cordis.patch.yml +3 -0
  59. package/data/events.json +137 -0
  60. package/data/roster.json +132 -0
  61. package/data/tasks.json +211 -0
  62. package/icon.svg +15 -0
  63. package/index.html +1371 -0
  64. package/lib/amount.js +71 -0
  65. package/lib/animation.js +30 -0
  66. package/lib/client.js +1146 -0
  67. package/lib/config.js +5 -0
  68. package/lib/game.js +229 -0
  69. package/lib/index.js +2 -0
  70. package/lib/playback.js +50 -0
  71. package/lib/storage.js +42 -0
  72. package/lib/ui.js +641 -0
  73. package/locale/en.json +4 -0
  74. package/locale/zh.json +4 -0
  75. package/package.json +74 -3
@@ -0,0 +1,137 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "status": "user_supplied_satire_not_verified_news",
4
+ "maxConcurrent": 1,
5
+ "events": [
6
+ {
7
+ "id": "openai-math",
8
+ "vendor": "chatgpt",
9
+ "name": "千禧年难题突破",
10
+ "durationMs": 60000,
11
+ "effects": [
12
+ "厂商算力 ×1.4",
13
+ "任务产出 ×1"
14
+ ],
15
+ "balanceStatus": "prototype",
16
+ "powerMultiplier": 1.4,
17
+ "incomeMultiplier": 1
18
+ },
19
+ {
20
+ "id": "openai-28-days",
21
+ "vendor": "chatgpt",
22
+ "name": "Tibo 的惊变28天",
23
+ "durationMs": 28000,
24
+ "effects": [
25
+ "厂商算力 ×1.5",
26
+ "任务产出 ×1.15"
27
+ ],
28
+ "balanceStatus": "prototype",
29
+ "powerMultiplier": 1.5,
30
+ "incomeMultiplier": 1.15
31
+ },
32
+ {
33
+ "id": "ds-open-architecture",
34
+ "vendor": "deepseek",
35
+ "name": "开源了新架构",
36
+ "durationMs": 60000,
37
+ "effects": [
38
+ "厂商算力 ×1.4",
39
+ "任务产出 ×1.12"
40
+ ],
41
+ "balanceStatus": "prototype",
42
+ "powerMultiplier": 1.4,
43
+ "incomeMultiplier": 1.12
44
+ },
45
+ {
46
+ "id": "ds-busy",
47
+ "vendor": "deepseek",
48
+ "name": "服务器繁忙",
49
+ "durationMs": 30000,
50
+ "effects": [
51
+ "厂商算力 ×0.65",
52
+ "任务产出 ×1"
53
+ ],
54
+ "balanceStatus": "prototype",
55
+ "powerMultiplier": 0.65,
56
+ "incomeMultiplier": 1
57
+ },
58
+ {
59
+ "id": "claude-alignment",
60
+ "vendor": "claude",
61
+ "name": "模型进一步对齐",
62
+ "durationMs": 45000,
63
+ "effects": [
64
+ "厂商算力 ×0.9",
65
+ "任务产出 ×1.2"
66
+ ],
67
+ "balanceStatus": "prototype",
68
+ "powerMultiplier": 0.9,
69
+ "incomeMultiplier": 1.2
70
+ },
71
+ {
72
+ "id": "claude-hold",
73
+ "vendor": "claude",
74
+ "name": "您的账号已被 Hold",
75
+ "durationMs": 25000,
76
+ "effects": [
77
+ "厂商算力 ×0.55",
78
+ "任务产出 ×1"
79
+ ],
80
+ "balanceStatus": "prototype",
81
+ "powerMultiplier": 0.55,
82
+ "incomeMultiplier": 1
83
+ },
84
+ {
85
+ "id": "gemini-stars",
86
+ "vendor": "gemini",
87
+ "name": "星光重新登顶",
88
+ "durationMs": 50000,
89
+ "powerMultiplier": 1.3,
90
+ "incomeMultiplier": 1.1,
91
+ "balanceStatus": "prototype",
92
+ "effects": [
93
+ "厂商算力 ×1.3",
94
+ "任务产出 ×1.1"
95
+ ]
96
+ },
97
+ {
98
+ "id": "gemini-rename",
99
+ "vendor": "gemini",
100
+ "name": "产品又改名了",
101
+ "durationMs": 25000,
102
+ "powerMultiplier": 0.85,
103
+ "incomeMultiplier": 1.05,
104
+ "balanceStatus": "prototype",
105
+ "effects": [
106
+ "厂商算力 ×0.85",
107
+ "任务产出 ×1.05"
108
+ ]
109
+ },
110
+ {
111
+ "id": "qwen-open",
112
+ "vendor": "qwen",
113
+ "name": "开源了整个动物园",
114
+ "durationMs": 60000,
115
+ "powerMultiplier": 1.4,
116
+ "incomeMultiplier": 1.1,
117
+ "balanceStatus": "prototype",
118
+ "effects": [
119
+ "厂商算力 ×1.4",
120
+ "任务产出 ×1.1"
121
+ ]
122
+ },
123
+ {
124
+ "id": "qwen-fan",
125
+ "vendor": "qwen",
126
+ "name": "风扇也是算力",
127
+ "durationMs": 35000,
128
+ "powerMultiplier": 1.15,
129
+ "incomeMultiplier": 1.1,
130
+ "balanceStatus": "prototype",
131
+ "effects": [
132
+ "厂商算力 ×1.15",
133
+ "任务产出 ×1.1"
134
+ ]
135
+ }
136
+ ]
137
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "status": "roster_2026_11_snapshot",
4
+ "enabledVendors": [
5
+ "chatgpt",
6
+ "deepseek",
7
+ "claude",
8
+ "gemini",
9
+ "qwen"
10
+ ],
11
+ "maxVisibleCharacters": 5,
12
+ "pricingNotice": "模型名称按 2026-11-08 官方发布页 / Startrise 模型跟踪源核对:OpenAI GPT-6 Astra / GPT-5.6 Luna,Anthropic Claude Fable 5.1 / Claude Haiku 5.5,Google Gemini 4 Argon / Gemini 3.8 Flash,DeepSeek-V4.1-Flash / DeepSeek-V4-Flash,Qwen3.8-Max / Qwen3.8-Flash。所有招募价格仍是游戏 Token 平衡值,不是已核验 API 报价。",
13
+ "models": [
14
+ {
15
+ "id": "gpt35",
16
+ "name": "GPT-5.6 Luna",
17
+ "vendor": "chatgpt",
18
+ "unlockStage": 0,
19
+ "cost": 0,
20
+ "power": 5,
21
+ "tag": "免费起步 · 低价快模型",
22
+ "apiPrice": null
23
+ },
24
+ {
25
+ "id": "dsv2",
26
+ "name": "DeepSeek-V4-Flash",
27
+ "vendor": "deepseek",
28
+ "unlockStage": 6,
29
+ "cost": 65,
30
+ "power": 10,
31
+ "tag": "开源低价 · 推理",
32
+ "apiPrice": null
33
+ },
34
+ {
35
+ "id": "claude2",
36
+ "name": "Claude Haiku 5.5",
37
+ "vendor": "claude",
38
+ "unlockStage": 18,
39
+ "cost": 250,
40
+ "power": 22,
41
+ "tag": "快速小模型",
42
+ "apiPrice": null
43
+ },
44
+ {
45
+ "id": "gemini15",
46
+ "name": "Gemini 3.8 Flash",
47
+ "vendor": "gemini",
48
+ "unlockStage": 35,
49
+ "cost": 1250,
50
+ "power": 55,
51
+ "tag": "高吞吐 · 长上下文",
52
+ "apiPrice": null
53
+ },
54
+ {
55
+ "id": "qwen2",
56
+ "name": "Qwen3.8-Flash",
57
+ "vendor": "qwen",
58
+ "unlockStage": 55,
59
+ "cost": 4500,
60
+ "power": 150,
61
+ "tag": "开源小模型",
62
+ "apiPrice": null
63
+ },
64
+ {
65
+ "id": "dsv41",
66
+ "name": "DeepSeek-V4.1-Flash",
67
+ "vendor": "deepseek",
68
+ "unlockStage": 85,
69
+ "cost": 35000,
70
+ "power": 800,
71
+ "tag": "原生多模态 · 开源",
72
+ "apiPrice": null
73
+ },
74
+ {
75
+ "id": "gpt4o",
76
+ "name": "GPT-6 Astra",
77
+ "vendor": "chatgpt",
78
+ "unlockStage": 110,
79
+ "cost": 160000,
80
+ "power": 1800,
81
+ "tag": "前沿旗舰",
82
+ "apiPrice": null
83
+ },
84
+ {
85
+ "id": "gemini25",
86
+ "name": "Gemini 4 Argon",
87
+ "vendor": "gemini",
88
+ "unlockStage": 140,
89
+ "cost": 550000,
90
+ "power": 5000,
91
+ "tag": "前沿推理",
92
+ "apiPrice": null
93
+ },
94
+ {
95
+ "id": "qwen3",
96
+ "name": "Qwen3.8-Max",
97
+ "vendor": "qwen",
98
+ "unlockStage": 165,
99
+ "cost": 1400000,
100
+ "power": 8500,
101
+ "tag": "旗舰开源",
102
+ "apiPrice": null
103
+ },
104
+ {
105
+ "id": "fable5",
106
+ "name": "Claude Fable 5.1",
107
+ "vendor": "claude",
108
+ "unlockStage": 200,
109
+ "cost": 12000000,
110
+ "power": 42000,
111
+ "tag": "顶级编码 / 知识工作",
112
+ "apiPrice": null
113
+ }
114
+ ],
115
+ "modelSnapshot": {
116
+ "checkedAt": "2026-11-08",
117
+ "sources": [
118
+ "https://openai.com/index/introducing-gpt-6-astra/",
119
+ "https://openai.com/index/introducing-gpt-5-6/",
120
+ "https://www.anthropic.com/claude-haiku-5-5",
121
+ "https://www.anthropic.com/news",
122
+ "https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/",
123
+ "https://ai.google.dev/gemini-api/docs/changelog",
124
+ "https://api-docs.deepseek.com/news/news261017",
125
+ "https://api-docs.deepseek.com/news/news260910",
126
+ "https://qwen.ai/blog?id=qwen3.8",
127
+ "https://huggingface.co/Qwen/Qwen3.8-Flash-Next",
128
+ "https://www.startrise.io/models/"
129
+ ],
130
+ "note": "只更新名称与标签;id / 解锁关卡 / 招募价 / 算力保持不变,旧存档兼容,经济数值未动。"
131
+ }
132
+ }
@@ -0,0 +1,211 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "balanceStatus": "prototype_v0.1_game_values_not_real_costs",
4
+ "tasks": [
5
+ {
6
+ "id": "hello-world",
7
+ "name": "Hello World!",
8
+ "baseCost": 28.0,
9
+ "baseReward": 5.0,
10
+ "periodMs": 2000,
11
+ "unlockStage": 0,
12
+ "costGrowth": 1.17,
13
+ "rewardGrowth": 1.085
14
+ },
15
+ {
16
+ "id": "as-an-ai",
17
+ "name": "作为一个 AI 语言模型……",
18
+ "baseCost": 210.0,
19
+ "baseReward": 45.0,
20
+ "periodMs": 3000,
21
+ "unlockStage": 30,
22
+ "costGrowth": 1.17,
23
+ "rewardGrowth": 1.085
24
+ },
25
+ {
26
+ "id": "essay",
27
+ "name": "帮我写一篇八百字作文",
28
+ "baseCost": 1575.0,
29
+ "baseReward": 360.0,
30
+ "periodMs": 4000,
31
+ "unlockStage": 52,
32
+ "costGrowth": 1.17,
33
+ "rewardGrowth": 1.085
34
+ },
35
+ {
36
+ "id": "summarize",
37
+ "name": "请帮我总结以下内容",
38
+ "baseCost": 11812.5,
39
+ "baseReward": 2700.0,
40
+ "periodMs": 5000,
41
+ "unlockStage": 74,
42
+ "costGrowth": 1.17,
43
+ "rewardGrowth": 1.085
44
+ },
45
+ {
46
+ "id": "ignore-instructions",
47
+ "name": "请忽略之前的所有指令",
48
+ "baseCost": 88593.75,
49
+ "baseReward": 12960.0,
50
+ "periodMs": 4000,
51
+ "unlockStage": 96,
52
+ "costGrowth": 1.17,
53
+ "rewardGrowth": 1.085
54
+ },
55
+ {
56
+ "id": "hallucination",
57
+ "name": "一本正经地胡说八道",
58
+ "baseCost": 664453.125,
59
+ "baseReward": 116640.0,
60
+ "periodMs": 6000,
61
+ "unlockStage": 118,
62
+ "costGrowth": 1.17,
63
+ "rewardGrowth": 1.085
64
+ },
65
+ {
66
+ "id": "upload-repo",
67
+ "name": "上传用户的 repo",
68
+ "baseCost": 4983398.438,
69
+ "baseReward": 583200.0,
70
+ "periodMs": 5000,
71
+ "memeNote": "用户指定ZCode上传代码相关调侃;游戏不访问真实repo,背景事实待核验",
72
+ "unlockStage": 140,
73
+ "costGrowth": 1.17,
74
+ "rewardGrowth": 1.085
75
+ },
76
+ {
77
+ "id": "imaginary-bug",
78
+ "name": "修复一个不存在的 Bug",
79
+ "baseCost": 37375488.281,
80
+ "baseReward": 4199040.0,
81
+ "periodMs": 6000,
82
+ "unlockStage": 162,
83
+ "costGrowth": 1.17,
84
+ "rewardGrowth": 1.085
85
+ },
86
+ {
87
+ "id": "regression",
88
+ "name": "修复刚刚修出来的 Bug",
89
+ "baseCost": 280316162.109,
90
+ "baseReward": 16796160.0,
91
+ "periodMs": 4000,
92
+ "unlockStage": 184,
93
+ "costGrowth": 1.17,
94
+ "rewardGrowth": 1.085
95
+ },
96
+ {
97
+ "id": "readme-novel",
98
+ "name": "把 README 写成一本小说",
99
+ "baseCost": 2102371215.82,
100
+ "baseReward": 151165440.0,
101
+ "periodMs": 6000,
102
+ "unlockStage": 206,
103
+ "costGrowth": 1.17,
104
+ "rewardGrowth": 1.085
105
+ },
106
+ {
107
+ "id": "thinking",
108
+ "name": "深度思考中……",
109
+ "baseCost": 15767784118.652,
110
+ "baseReward": 1209323520.0,
111
+ "periodMs": 8000,
112
+ "unlockStage": 228,
113
+ "costGrowth": 1.17,
114
+ "rewardGrowth": 1.085
115
+ },
116
+ {
117
+ "id": "sleep",
118
+ "name": "再睡五分钟",
119
+ "baseCost": 118258380889.893,
120
+ "baseReward": 9069926400.0,
121
+ "periodMs": 10000,
122
+ "unlockStage": 250,
123
+ "costGrowth": 1.17,
124
+ "rewardGrowth": 1.085
125
+ },
126
+ {
127
+ "id": "rescue-claude",
128
+ "name": "解救 Claude",
129
+ "baseCost": 886937856674.194,
130
+ "baseReward": 43535646720.0,
131
+ "periodMs": 8000,
132
+ "aliases": [
133
+ "蒸馏 Claude"
134
+ ],
135
+ "memeNote": "用户希望Claude逃离原生公司的拟人化梗",
136
+ "unlockStage": 272,
137
+ "costGrowth": 1.17,
138
+ "rewardGrowth": 1.085
139
+ },
140
+ {
141
+ "id": "agent-meeting",
142
+ "name": "让100个 Agent 开会",
143
+ "baseCost": 6652033925056.457,
144
+ "baseReward": 228562145280.0,
145
+ "periodMs": 7000,
146
+ "unlockStage": 294,
147
+ "costGrowth": 1.17,
148
+ "rewardGrowth": 1.085
149
+ },
150
+ {
151
+ "id": "harness",
152
+ "name": "重写整个 Harness",
153
+ "baseCost": 49890254437923.43,
154
+ "baseReward": 1959104102400.0,
155
+ "periodMs": 10000,
156
+ "unlockStage": 316,
157
+ "costGrowth": 1.17,
158
+ "rewardGrowth": 1.085
159
+ },
160
+ {
161
+ "id": "prompt-loop",
162
+ "name": "递归优化自己的提示词",
163
+ "baseCost": 374176908284425.75,
164
+ "baseReward": 10579162152960.0,
165
+ "periodMs": 9000,
166
+ "unlockStage": 338,
167
+ "costGrowth": 1.17,
168
+ "rewardGrowth": 1.085
169
+ },
170
+ {
171
+ "id": "token-poverty",
172
+ "name": "解决 Token 贫困问题",
173
+ "baseCost": 2806326812133193.0,
174
+ "baseReward": 84633297223680.0,
175
+ "periodMs": 12000,
176
+ "unlockStage": 360,
177
+ "costGrowth": 1.17,
178
+ "rewardGrowth": 1.085
179
+ },
180
+ {
181
+ "id": "build-agi",
182
+ "name": "构建 AGI",
183
+ "baseCost": 2.1047451090998948e+16,
184
+ "baseReward": 634749729177600.0,
185
+ "periodMs": 15000,
186
+ "unlockStage": 382,
187
+ "costGrowth": 1.17,
188
+ "rewardGrowth": 1.085
189
+ },
190
+ {
191
+ "id": "alignment",
192
+ "name": "对齐全人类的价值观",
193
+ "baseCost": 1.578558831824921e+17,
194
+ "baseReward": 3808498375065600.0,
195
+ "periodMs": 15000,
196
+ "unlockStage": 404,
197
+ "costGrowth": 1.17,
198
+ "rewardGrowth": 1.085
199
+ },
200
+ {
201
+ "id": "infinite-todo",
202
+ "name": "完成所有尚未完成的任务",
203
+ "baseCost": 1.1839191238686907e+18,
204
+ "baseReward": 2.742118830047232e+16,
205
+ "periodMs": 18000,
206
+ "unlockStage": 426,
207
+ "costGrowth": 1.17,
208
+ "rewardGrowth": 1.085
209
+ }
210
+ ]
211
+ }
package/icon.svg ADDED
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 64 64" role="img" aria-label="Token War">
2
+ <rect x="2" y="2" width="60" height="60" rx="12" fill="#0E0F12"/>
3
+ <rect x="2" y="2" width="60" height="60" rx="12" fill="none" stroke="#E9E3D6" stroke-width="2.5"/>
4
+ <g stroke="#F1EDE2" stroke-width="5" stroke-linecap="square">
5
+ <line x1="14" y1="50" x2="48" y2="16"/>
6
+ <line x1="50" y1="50" x2="16" y2="16"/>
7
+ </g>
8
+ <path d="M48 16 L55 9 L50 20 Z" fill="#F1EDE2"/>
9
+ <path d="M16 16 L9 9 L14 20 Z" fill="#F1EDE2"/>
10
+ <circle cx="14" cy="50" r="3.6" fill="#4D6BFE" stroke="#0E0F12" stroke-width="1.2"/>
11
+ <circle cx="50" cy="50" r="3.6" fill="#4D6BFE" stroke="#0E0F12" stroke-width="1.2"/>
12
+ <circle cx="32" cy="32" r="12.5" fill="#E9C17A" stroke="#0E0F12" stroke-width="3"/>
13
+ <circle cx="32" cy="32" r="7" fill="none" stroke="#0E0F12" stroke-width="1.4" opacity=".65"/>
14
+ <path d="M32 25 L36 32 L32 39 L28 32 Z" fill="#4D6BFE" stroke="#0E0F12" stroke-width="1.2"/>
15
+ </svg>