@umang-boss/claudemon 1.6.0 → 1.7.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/award-xp.mjs +10 -12
- package/dist/award-xp.mjs.map +2 -2
- package/dist/cli.mjs +10 -12
- package/dist/cli.mjs.map +2 -2
- package/dist/increment-counter.mjs +10 -12
- package/dist/increment-counter.mjs.map +2 -2
- package/dist/server.mjs +140 -16
- package/dist/server.mjs.map +3 -3
- package/package.json +1 -1
- package/skills/buddy/SKILL.md +2 -1
- package/src/server/index.ts +2 -0
- package/src/server/tools/help.ts +104 -0
- package/src/server/tools/party.ts +59 -3
- package/src/server/tools/show.ts +1 -1
- package/src/state/state-manager.ts +13 -14
- package/statusline/buddy-status.sh +6 -2
package/dist/award-xp.mjs
CHANGED
|
@@ -6297,13 +6297,12 @@ var StateManager = class _StateManager {
|
|
|
6297
6297
|
}
|
|
6298
6298
|
const state2 = this.getState();
|
|
6299
6299
|
const xpPercent = active.level >= 100 ? 100 : Math.min(100, Math.floor(active.currentXp / Math.max(1, active.currentXp + 50) * 100));
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
displayName = species?.name ?? `Pokemon #${active.pokemonId}`;
|
|
6304
|
-
}
|
|
6300
|
+
const species = POKEMON_BY_ID.get(active.pokemonId);
|
|
6301
|
+
const speciesName = species?.name ?? `Pokemon #${active.pokemonId}`;
|
|
6302
|
+
const displayName = active.nickname ? `${active.nickname} (${speciesName})` : speciesName;
|
|
6305
6303
|
const payload = {
|
|
6306
|
-
name:
|
|
6304
|
+
name: speciesName,
|
|
6305
|
+
displayName,
|
|
6307
6306
|
level: active.level,
|
|
6308
6307
|
xpPercent,
|
|
6309
6308
|
speciesId: active.pokemonId,
|
|
@@ -6353,13 +6352,12 @@ var StateManager = class _StateManager {
|
|
|
6353
6352
|
const active = this.getActivePokemon();
|
|
6354
6353
|
if (!active) return;
|
|
6355
6354
|
const xpPercent = active.level >= 100 ? 100 : Math.min(100, Math.floor(active.currentXp / Math.max(1, active.currentXp + 50) * 100));
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
displayName = species?.name ?? `Pokemon #${active.pokemonId}`;
|
|
6360
|
-
}
|
|
6355
|
+
const species = POKEMON_BY_ID.get(active.pokemonId);
|
|
6356
|
+
const speciesName = species?.name ?? `Pokemon #${active.pokemonId}`;
|
|
6357
|
+
const displayLabel = active.nickname ? `${active.nickname} (${speciesName})` : speciesName;
|
|
6361
6358
|
const payload = {
|
|
6362
|
-
name:
|
|
6359
|
+
name: speciesName,
|
|
6360
|
+
displayName: displayLabel,
|
|
6363
6361
|
level: active.level,
|
|
6364
6362
|
xpPercent,
|
|
6365
6363
|
speciesId: active.pokemonId,
|