@nonz250/ai-rotom 1.3.4 → 1.3.6

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.mjs CHANGED
@@ -8,7 +8,7 @@ import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node
8
8
  import { homedir } from "node:os";
9
9
  import { dirname, join } from "node:path";
10
10
  import { parse } from "@pokesol/pokesol-text-parser-ts";
11
- //#region ../../shared/src/utils/name-resolver.ts
11
+ // ../../shared/src/utils/name-resolver.ts
12
12
  var NameResolver = class {
13
13
  jaToEn;
14
14
  enToJa;
@@ -61,12 +61,10 @@ function levenshteinDistance(a, b) {
61
61
  }
62
62
  return matrix[a.length][b.length];
63
63
  }
64
- //#endregion
65
- //#region ../../shared/src/constants/champions.ts
64
+ // ../../shared/src/constants/champions.ts
66
65
  /** タイプ一致 (STAB) 補正倍率。てきおうりょく等の特性補正は含まない通常値 */
67
66
  const STAB_MULTIPLIER = 1.5;
68
- //#endregion
69
- //#region ../../shared/src/analysis/type-matchup.ts
67
+ // ../../shared/src/analysis/type-matchup.ts
70
68
  /** 等倍の相性倍率 */
71
69
  const NEUTRAL_EFFECTIVENESS = 1;
72
70
  /** `toID` 相当の正規化パターン(英数字以外を除去) */
@@ -100,8 +98,7 @@ function calculateTypeEffectiveness(gen, attackingType, defenderTypes) {
100
98
  }
101
99
  return multiplier;
102
100
  }
103
- //#endregion
104
- //#region ../../shared/src/analysis/speed-comparator.ts
101
+ // ../../shared/src/analysis/speed-comparator.ts
105
102
  /**
106
103
  * 2 体の実数値 Speed を比較する。
107
104
  *
@@ -114,8 +111,7 @@ function compareSpeed(a, b) {
114
111
  if (a < b) return "slower";
115
112
  return "tie";
116
113
  }
117
- //#endregion
118
- //#region ../../shared/src/analysis/priority-moves.ts
114
+ // ../../shared/src/analysis/priority-moves.ts
119
115
  /** 優先度が 0 の技はこのモジュールの対象外(先制技のみを扱う) */
120
116
  const MIN_PRIORITY_FOR_INCLUSION = 1;
121
117
  /**
@@ -151,8 +147,7 @@ function extractPriorityMoves(params) {
151
147
  });
152
148
  return results;
153
149
  }
154
- //#endregion
155
- //#region ../../shared/src/analysis/defensive-ability-overrides.ts
150
+ // ../../shared/src/analysis/defensive-ability-overrides.ts
156
151
  /** 無効(0 倍) */
157
152
  const IMMUNE_MULTIPLIER = 0;
158
153
  /** フィルター系特性が抜群時に掛ける倍率 (3/4 = 0.75) */
@@ -297,8 +292,7 @@ function computeNumericStats(values) {
297
292
  function baseStatsTotal(stats) {
298
293
  return stats.hp + stats.atk + stats.def + stats.spa + stats.spd + stats.spe;
299
294
  }
300
- //#endregion
301
- //#region ../../shared/src/analysis/offensive-ability-overrides.ts
295
+ // ../../shared/src/analysis/offensive-ability-overrides.ts
302
296
  /**
303
297
  * タイプ変更系特性(skin abilities)を扱う純関数モジュール。
304
298
  *
@@ -353,8 +347,7 @@ function applyOffensiveTypeOverride(originalMoveType, moveCategory, ability) {
353
347
  if (overrideType === void 0) return originalMoveType;
354
348
  return overrideType;
355
349
  }
356
- //#endregion
357
- //#region ../../shared/src/schemas/stats.ts
350
+ // ../../shared/src/schemas/stats.ts
358
351
  const statPointValueSchema = z.number({ message: "能力ポイント(SP)は数値で指定してください。" }).int({ message: "能力ポイント(SP)は整数で指定してください。" }).finite().min(0, { message: "能力ポイント(SP)は 0 以上で指定してください。" }).max(32, { message: `能力ポイント(SP)は各ステータス 32 以下です (ポケモンチャンピオンズ仕様)。` });
359
352
  /**
360
353
  * 能力ポイント(SP) のスキーマ。
@@ -386,8 +379,7 @@ const boostsSchema = z.object({
386
379
  spd: boostValueSchema.optional(),
387
380
  spe: boostValueSchema.optional()
388
381
  });
389
- //#endregion
390
- //#region ../../shared/src/schemas/pokemon-input.ts
382
+ // ../../shared/src/schemas/pokemon-input.ts
391
383
  const pokemonSchema = z.object({
392
384
  name: z.string().describe("ポケモン名(日本語 or 英語)"),
393
385
  nature: z.string().optional().describe("性格名(省略時: まじめ)"),
@@ -439,8 +431,7 @@ const partiesFileSchema = z.object({
439
431
  schemaVersion: z.number().int().positive().describe("パーティファイルの schemaVersion。"),
440
432
  parties: z.array(partySchema).describe("登録済みパーティの一覧。")
441
433
  });
442
- //#endregion
443
- //#region ../../shared/src/calc/resolvers/resolve-name.ts
434
+ // ../../shared/src/calc/resolvers/resolve-name.ts
444
435
  /**
445
436
  * 日本語名または英語名を受け取り、対応する英語名に変換する。
446
437
  * 変換できない場合は類似候補を添えて例外を投げる。
@@ -461,8 +452,7 @@ function resolveOptionalName$2(resolver, name, label) {
461
452
  if (name === void 0) return;
462
453
  return resolveNameWithFallback(resolver, name, label);
463
454
  }
464
- //#endregion
465
- //#region ../../shared/src/calc/builders/pokemon-builder.ts
455
+ // ../../shared/src/calc/builders/pokemon-builder.ts
466
456
  /**
467
457
  * PokemonInput の evs を @smogon/calc が期待する Partial<Stats> 形式に変換する。
468
458
  * undefined の場合は空オブジェクトを返す。
@@ -516,8 +506,7 @@ function buildPokemonOptions(input, natureEn, abilityEn, itemEn, pokemonEntry) {
516
506
  if (pokemonEntry !== void 0) baseOptions.overrides = buildSpeciesOverrides$2(pokemonEntry);
517
507
  return baseOptions;
518
508
  }
519
- //#endregion
520
- //#region ../../shared/src/calc/builders/field-builder.ts
509
+ // ../../shared/src/calc/builders/field-builder.ts
521
510
  /**
522
511
  * battleFormat を @smogon/calc の GameType に変換する。
523
512
  * 未指定 / "singles" は "Singles"、"doubles" は "Doubles"。
@@ -561,8 +550,7 @@ function flattenDamage(damage) {
561
550
  function toPercent(value, maxHP) {
562
551
  return Math.round(value / maxHP * 100 * 10) / 10;
563
552
  }
564
- //#endregion
565
- //#region ../../shared/src/calc/damage-calculator.ts
553
+ // ../../shared/src/calc/damage-calculator.ts
566
554
  const CHAMPIONS_GEN_NUM$10 = 0;
567
555
  const DEFAULT_NATURE_EN$2 = "Serious";
568
556
  function buildTypeMetrics(gen, move, attacker, defender) {
@@ -706,8 +694,7 @@ var DamageCalculatorAdapter = class {
706
694
  return resolveNameWithFallback(this.resolvers.nature, nature, "性格");
707
695
  }
708
696
  };
709
- //#endregion
710
- //#region ../../shared/src/calc/filters/learnset-filter.ts
697
+ // ../../shared/src/calc/filters/learnset-filter.ts
711
698
  /**
712
699
  * calculateAllMoves の結果を learnset で絞り込む。
713
700
  *
@@ -724,8 +711,7 @@ function filterResultsByLearnset(results, learnsetMoveIds, normalize) {
724
711
  if (learnsetMoveIds.size === 0) return [...results];
725
712
  return results.filter((r) => learnsetMoveIds.has(normalize(r.move)));
726
713
  }
727
- //#endregion
728
- //#region src/instructions.ts
714
+ // src/instructions.ts
729
715
  const SERVER_INSTRUCTIONS = `
730
716
  ai-rotom はポケモンチャンピオンズ (Pokemon Champions) の対戦アドバイザー MCP サーバーです。
731
717
 
@@ -889,8 +875,7 @@ AI クライアントは目的駆動で刻む振り方を提案すること。
889
875
  - 対話で得た情報を JSON 化して save_party を直接呼ばない (ハルシネーションリスク軽減のため必ずポケソルテキスト経由)。
890
876
  - ユーザー確認なしに save / import を実行しない。
891
877
  `.trim();
892
- //#endregion
893
- //#region ../../data/champions/abilities.json
878
+ // ../../data/champions/abilities.json
894
879
  var abilities_default = [
895
880
  {
896
881
  "id": "adaptability",
@@ -2524,8 +2509,7 @@ var abilities_default = [
2524
2509
  "shortDesc": "If this Pokemon is a Palafin in Zero Form, switching out has it change to Hero Form."
2525
2510
  }
2526
2511
  ];
2527
- //#endregion
2528
- //#region ../../data/champions/items.json
2512
+ // ../../data/champions/items.json
2529
2513
  var items_default = [
2530
2514
  {
2531
2515
  "id": "abomasite",
@@ -3992,8 +3976,7 @@ var items_default = [
3992
3976
  "shortDesc": "The accuracy of attacks by the holder is 1.2x if it moves after its target."
3993
3977
  }
3994
3978
  ];
3995
- //#endregion
3996
- //#region ../../data/champions/moves.json
3979
+ // ../../data/champions/moves.json
3997
3980
  var moves_default = [
3998
3981
  {
3999
3982
  "id": "accelerock",
@@ -5689,7 +5672,8 @@ var moves_default = [
5689
5672
  "contact",
5690
5673
  "metronome",
5691
5674
  "mirror",
5692
- "protect"
5675
+ "protect",
5676
+ "slicing"
5693
5677
  ],
5694
5678
  "desc": "Has a 50% chance to lower the target's Defense by 1 stage.",
5695
5679
  "shortDesc": "50% chance to lower the target's Defense by 1."
@@ -5879,7 +5863,8 @@ var moves_default = [
5879
5863
  "contact",
5880
5864
  "metronome",
5881
5865
  "mirror",
5882
- "protect"
5866
+ "protect",
5867
+ "slicing"
5883
5868
  ],
5884
5869
  "desc": "Has a 50% chance to cause the target to either fall asleep, become poisoned, or become paralyzed.",
5885
5870
  "shortDesc": "50% chance to sleep, poison, or paralyze target."
@@ -6038,7 +6023,8 @@ var moves_default = [
6038
6023
  "flags": [
6039
6024
  "allyanim",
6040
6025
  "bypasssub",
6041
- "metronome"
6026
+ "metronome",
6027
+ "sound"
6042
6028
  ],
6043
6029
  "desc": "Raises the target's chance for a critical hit by 1 stage, or by 2 stages if the target is Dragon type. Fails if there is no ally adjacent to the user, or if the target already has this effect or the Focus Energy effect. Baton Pass can be used to transfer this effect to an ally.",
6044
6030
  "shortDesc": "Ally: Crit ratio +1, or +2 if ally is Dragon type."
@@ -6058,7 +6044,8 @@ var moves_default = [
6058
6044
  "contact",
6059
6045
  "metronome",
6060
6046
  "mirror",
6061
- "protect"
6047
+ "protect",
6048
+ "slicing"
6062
6049
  ],
6063
6050
  "desc": "No additional effect.",
6064
6051
  "shortDesc": "No additional effect."
@@ -7360,8 +7347,8 @@ var moves_default = [
7360
7347
  "mirror",
7361
7348
  "protect"
7362
7349
  ],
7363
- "desc": "Has a 10% chance to freeze the target. This move's type effectiveness against Water is changed to be super effective no matter what this move's type is.",
7364
- "shortDesc": "10% chance to freeze. Super effective on Water."
7350
+ "desc": "This move's type effectiveness against Water is changed to be super effective no matter what this move's type is.",
7351
+ "shortDesc": "Super effective on Water."
7365
7352
  },
7366
7353
  {
7367
7354
  "id": "frenzyplant",
@@ -11127,7 +11114,8 @@ var moves_default = [
11127
11114
  "contact",
11128
11115
  "metronome",
11129
11116
  "mirror",
11130
- "protect"
11117
+ "protect",
11118
+ "slicing"
11131
11119
  ],
11132
11120
  "desc": "Has a higher chance for a critical hit.",
11133
11121
  "shortDesc": "High critical hit ratio."
@@ -13859,13 +13847,13 @@ var moves_default = [
13859
13847
  "type": "Steel",
13860
13848
  "category": "Special",
13861
13849
  "basePower": 120,
13862
- "accuracy": 100,
13850
+ "accuracy": 95,
13863
13851
  "pp": 8,
13864
13852
  "priority": 0,
13865
13853
  "target": "allAdjacentFoes",
13866
13854
  "flags": ["mirror", "protect"],
13867
- "desc": "Lowers the user's Special Attack by 1 stage.",
13868
- "shortDesc": "Lowers the user's Sp. Atk by 1. Hits foe(s)."
13855
+ "desc": "Lowers the user's Special Attack by 2 stages.",
13856
+ "shortDesc": "Lowers the user's Sp. Atk by 2. Hits foe(s)."
13869
13857
  },
13870
13858
  {
13871
13859
  "id": "metronome",
@@ -14471,8 +14459,7 @@ var moves_default = [
14471
14459
  "shortDesc": "30% chance to make the target flinch."
14472
14460
  }
14473
14461
  ];
14474
- //#endregion
14475
- //#region ../../data/champions/learnsets.json
14462
+ // ../../data/champions/learnsets.json
14476
14463
  var learnsets_default = {
14477
14464
  abomasnow: [
14478
14465
  "auroraveil",
@@ -30581,8 +30568,7 @@ var learnsets_default = {
30581
30568
  "willowisp"
30582
30569
  ]
30583
30570
  };
30584
- //#endregion
30585
- //#region ../../data/champions/pokemon.json
30571
+ // ../../data/champions/pokemon.json
30586
30572
  var pokemon_default = [
30587
30573
  {
30588
30574
  "id": "abomasnow",
@@ -37631,8 +37617,7 @@ var pokemon_default = [
37631
37617
  "otherFormes": null
37632
37618
  }
37633
37619
  ];
37634
- //#endregion
37635
- //#region ../../data/champions/natures.json
37620
+ // ../../data/champions/natures.json
37636
37621
  var natures_default = [
37637
37622
  {
37638
37623
  "id": "adamant",
@@ -37810,8 +37795,7 @@ var natures_default = [
37810
37795
  "minus": "atk"
37811
37796
  }
37812
37797
  ];
37813
- //#endregion
37814
- //#region ../../data/champions/types.json
37798
+ // ../../data/champions/types.json
37815
37799
  var types_default = [
37816
37800
  {
37817
37801
  "id": "bug",
@@ -37904,8 +37888,7 @@ var types_default = [
37904
37888
  "nameJa": "みず"
37905
37889
  }
37906
37890
  ];
37907
- //#endregion
37908
- //#region ../../data/champions/conditions.json
37891
+ // ../../data/champions/conditions.json
37909
37892
  var conditions_default = {
37910
37893
  weather: [
37911
37894
  {
@@ -38026,8 +38009,7 @@ var conditions_default = {
38026
38009
  }
38027
38010
  ]
38028
38011
  };
38029
- //#endregion
38030
- //#region src/data-store.ts
38012
+ // src/data-store.ts
38031
38013
  const championsAbilities = abilities_default;
38032
38014
  const championsItems = items_default;
38033
38015
  const championsMoves = moves_default;
@@ -38073,8 +38055,7 @@ function getLearnsetMoveIdSet(pokemonId) {
38073
38055
  if (learnset === void 0) return /* @__PURE__ */ new Set();
38074
38056
  return new Set(learnset.map(toDataId));
38075
38057
  }
38076
- //#endregion
38077
- //#region src/name-resolvers.ts
38058
+ // src/name-resolvers.ts
38078
38059
  /**
38079
38060
  * champions 配下の JSON エントリから {ja, en} ペアの配列を組み立てる。
38080
38061
  * nameJa が null のエントリーはスキップする。
@@ -38135,8 +38116,7 @@ function toErrorResponse(error) {
38135
38116
  isError: true
38136
38117
  };
38137
38118
  }
38138
- //#endregion
38139
- //#region src/tools/info/ability-info.ts
38119
+ // src/tools/info/ability-info.ts
38140
38120
  const TOOL_NAME$20 = "get_ability_info";
38141
38121
  const TOOL_DESCRIPTION$20 = "ポケモンの特性の詳細情報(効果説明)を取得する。ポケモンチャンピオンズで使える特性のみ返す。対戦でポケモンの特性を理解したいときに使用する。";
38142
38122
  const inputSchema$17 = { name: z.string().describe("特性名(日本語 or 英語)") };
@@ -38179,8 +38159,7 @@ function registerAbilityInfoTool(server) {
38179
38159
  }
38180
38160
  });
38181
38161
  }
38182
- //#endregion
38183
- //#region src/tools/analysis/party-coverage.ts
38162
+ // src/tools/analysis/party-coverage.ts
38184
38163
  const CHAMPIONS_GEN_NUM$9 = 0;
38185
38164
  /** 複合タイプを構成するタイプ数 */
38186
38165
  const DUAL_TYPE_COUNT = 2;
@@ -38463,8 +38442,7 @@ function registerPartyCoverageTool(server) {
38463
38442
  }
38464
38443
  });
38465
38444
  }
38466
- //#endregion
38467
- //#region src/tools/analysis/compare-parties.ts
38445
+ // src/tools/analysis/compare-parties.ts
38468
38446
  const CHAMPIONS_GEN_NUM$8 = 0;
38469
38447
  /** 対戦に組めるパーティメンバーの上限 (ポケモンチャンピオンズ仕様) */
38470
38448
  const MAX_PARTY_SIZE = 6;
@@ -38693,8 +38671,7 @@ function registerComparePartiesTool(server) {
38693
38671
  }
38694
38672
  });
38695
38673
  }
38696
- //#endregion
38697
- //#region src/tools/info/condition-info.ts
38674
+ // src/tools/info/condition-info.ts
38698
38675
  const TOOL_NAME$17 = "get_condition_info";
38699
38676
  const TOOL_DESCRIPTION$17 = "バトル条件(天候・フィールド・状態異常・サイド効果)の情報を取得する。category と name で絞り込める。省略時は全カテゴリ・全件を返す。ポケモンチャンピオンズ対応。";
38700
38677
  const CATEGORY_VALUES = [
@@ -38745,8 +38722,7 @@ function registerConditionInfoTool(server) {
38745
38722
  }
38746
38723
  });
38747
38724
  }
38748
- //#endregion
38749
- //#region src/calc/damage-calculator.ts
38725
+ // src/calc/damage-calculator.ts
38750
38726
  const damageCalculator = new DamageCalculatorAdapter({
38751
38727
  pokemon: pokemonNameResolver,
38752
38728
  move: moveNameResolver,
@@ -38754,8 +38730,7 @@ const damageCalculator = new DamageCalculatorAdapter({
38754
38730
  item: itemNameResolver,
38755
38731
  nature: natureNameResolver
38756
38732
  }, pokemonEntryProvider);
38757
- //#endregion
38758
- //#region src/tools/calc/damage-calculation.ts
38733
+ // src/tools/calc/damage-calculation.ts
38759
38734
  const damageCalcInputSchema = {
38760
38735
  attacker: pokemonSchema.describe("攻撃側ポケモン"),
38761
38736
  defender: pokemonSchema.describe("防御側ポケモン"),
@@ -38873,8 +38848,7 @@ function registerDamageCalculationTools(server) {
38873
38848
  }
38874
38849
  });
38875
38850
  }
38876
- //#endregion
38877
- //#region src/tools/calc/damage-range.ts
38851
+ // src/tools/calc/damage-range.ts
38878
38852
  /** 探索に使う SP 候補ステップ(細かさ)。4 きざみで枝刈り → hit したら 1 きざみで微調整 */
38879
38853
  const SP_COARSE_STEP = 4;
38880
38854
  const SP_FINE_STEP = 1;
@@ -39081,8 +39055,7 @@ function registerDamageRangeTool(server) {
39081
39055
  }
39082
39056
  });
39083
39057
  }
39084
- //#endregion
39085
- //#region src/tools/analysis/find-counters.ts
39058
+ // src/tools/analysis/find-counters.ts
39086
39059
  const CHAMPIONS_GEN_NUM$7 = 0;
39087
39060
  /** 弱点タイプ判定のしきい値(候補プール抽出で使用) */
39088
39061
  const SUPER_EFFECTIVE_MIN = 2;
@@ -39339,8 +39312,7 @@ function registerFindCountersTool(server) {
39339
39312
  }
39340
39313
  });
39341
39314
  }
39342
- //#endregion
39343
- //#region src/party-store.ts
39315
+ // src/party-store.ts
39344
39316
  /** ai-rotom の永続化用ディレクトリ名 (ホーム直下)。 */
39345
39317
  const AI_ROTOM_DIR_NAME = ".ai-rotom";
39346
39318
  /** パーティ永続化ファイル名。 */
@@ -39427,8 +39399,7 @@ function wrapIoError(prefix, error) {
39427
39399
  const code = isNodeErrnoException(error) && error.code !== void 0 ? ` [${error.code}]` : "";
39428
39400
  return /* @__PURE__ */ new Error(`${prefix}${code}: ${message}`);
39429
39401
  }
39430
- //#endregion
39431
- //#region src/party-text.ts
39402
+ // src/party-text.ts
39432
39403
  /** ポケソルテキストで性格を省略した場合のデフォルト。 */
39433
39404
  const DEFAULT_NATURE_NAME = "まじめ";
39434
39405
  /**
@@ -39510,8 +39481,7 @@ function buildEvsFromResult(parserEvs) {
39510
39481
  };
39511
39482
  return Object.values(mapped).some((value) => value !== void 0 && value !== 0) ? mapped : void 0;
39512
39483
  }
39513
- //#endregion
39514
- //#region src/tools/party/import-party-from-text.ts
39484
+ // src/tools/party/import-party-from-text.ts
39515
39485
  const TOOL_NAME$14 = "import_party_from_text";
39516
39486
  const TOOL_DESCRIPTION$14 = "ポケソルテキスト (Showdown 風に 1 匹あたり 3〜6 行・複数匹は空行区切り) からパーティを一括取り込みして保存する (upsert)。各メンバーはポケモン名 / 特性 / 性格 / 技 / 持ち物をポケチャン内の既知データと照合する。エラーがある場合は部分保存せず全体を失敗させる。";
39517
39487
  /** ポケソルテキスト入力の最大文字数 (6 匹 × 数百文字 + メモ想定)。 */
@@ -39612,8 +39582,7 @@ function registerImportPartyFromTextTool(server, deps = {}) {
39612
39582
  }
39613
39583
  });
39614
39584
  }
39615
- //#endregion
39616
- //#region src/tools/info/item-info.ts
39585
+ // src/tools/info/item-info.ts
39617
39586
  const TOOL_NAME$13 = "get_item_info";
39618
39587
  const TOOL_DESCRIPTION$13 = "ポケモンの持ち物(アイテム)の詳細情報(効果説明、メガストーン情報)を取得する。ポケモンチャンピオンズで使える持ち物のみ返す。パーティ構築で持ち物を選ぶ際に使用する。";
39619
39588
  const inputSchema$10 = { name: z.string().describe("持ち物名(日本語 or 英語)") };
@@ -39660,8 +39629,7 @@ function registerItemInfoTool(server) {
39660
39629
  }
39661
39630
  });
39662
39631
  }
39663
- //#endregion
39664
- //#region src/tools/info/learnset.ts
39632
+ // src/tools/info/learnset.ts
39665
39633
  const TOOL_NAME$12 = "get_learnset";
39666
39634
  const TOOL_DESCRIPTION$12 = "ポケモンチャンピオンズで特定のポケモンが覚える技の一覧を取得する。「○○は何を覚える?」のようにポケモン名と覚える技が話題に出たら、知識ベースで即答せず、まずこのツールを呼んでデータを引くこと(チャンピオンズ固有の技プール変更=没収技等が反映される)。パーティ構築や技構成の検討に使用する。";
39667
39635
  const inputSchema$9 = { name: z.string().describe("ポケモン名(日本語 or 英語)") };
@@ -39719,8 +39687,7 @@ function registerLearnsetTool(server) {
39719
39687
  }
39720
39688
  });
39721
39689
  }
39722
- //#endregion
39723
- //#region src/tools/analysis/matchup.ts
39690
+ // src/tools/analysis/matchup.ts
39724
39691
  const TOOL_NAME$11 = "analyze_matchup";
39725
39692
  const TOOL_DESCRIPTION$11 = "ポケモン2体の対面を分析する。双方向のダメージ計算と素早さ比較を行い、どちらが有利かを判断するためのデータを提供する。ポケモン対戦の対面判断に使用する。pokemon1Faster は静的な素早さ実数値のみの比較のため、素早さ負けでも先制技で逆転できる判断は pokemon{1,2}PriorityMoves を併用すること。正確な計算のため双方の ability / item の指定を推奨(省略時は通常特性・持ち物なし扱い)。";
39726
39693
  const matchupInputSchema = {
@@ -39811,8 +39778,7 @@ function registerMatchupTool(server) {
39811
39778
  }
39812
39779
  });
39813
39780
  }
39814
- //#endregion
39815
- //#region src/tools/info/move-info.ts
39781
+ // src/tools/info/move-info.ts
39816
39782
  const TOOL_NAME$10 = "get_move_info";
39817
39783
  const TOOL_DESCRIPTION$10 = "ポケモンの技の詳細情報(タイプ・威力・命中率・分類・優先度・効果説明)を取得する。対戦で使う技の仕様を確認したいときに使用する。ポケモンチャンピオンズ対応。";
39818
39784
  const inputSchema$8 = { name: z.string().describe("技名(日本語 or 英語)") };
@@ -39872,8 +39838,7 @@ function registerMoveInfoTool(server) {
39872
39838
  }
39873
39839
  });
39874
39840
  }
39875
- //#endregion
39876
- //#region src/tools/info/nature-info.ts
39841
+ // src/tools/info/nature-info.ts
39877
39842
  const TOOL_NAME$9 = "get_nature_info";
39878
39843
  const TOOL_DESCRIPTION$9 = "ポケモンの性格の詳細情報(上昇ステ・下降ステ)を取得する。育成方針の検討や性格選びに使用する。plus/minus が null の性格は無補正。ポケモンチャンピオンズ対応。";
39879
39844
  const inputSchema$7 = { name: z.string().describe("性格名(日本語 or 英語、例: 'ひかえめ'、'Modest')") };
@@ -39916,8 +39881,7 @@ function registerNatureInfoTool(server) {
39916
39881
  }
39917
39882
  });
39918
39883
  }
39919
- //#endregion
39920
- //#region src/tools/analysis/party-analysis.ts
39884
+ // src/tools/analysis/party-analysis.ts
39921
39885
  const CHAMPIONS_GEN_NUM$6 = 0;
39922
39886
  const TOOL_NAME$8 = "analyze_party_weakness";
39923
39887
  const TOOL_DESCRIPTION$8 = "パーティ各メンバーのタイプ相性データを集計する。どのタイプが何匹の弱点か(teamWeaknesses)、どのタイプに抜群を取れないか(uncoveredTypes)を返す。致命性の判断は AI が文脈で行う前提。ポケモンチャンピオンズ対応。";
@@ -40019,8 +39983,7 @@ function registerPartyAnalysisTool(server) {
40019
39983
  }
40020
39984
  });
40021
39985
  }
40022
- //#endregion
40023
- //#region src/tools/party/party-tools.ts
39986
+ // src/tools/party/party-tools.ts
40024
39987
  const SAVE_TOOL_NAME = "save_party";
40025
39988
  const SAVE_TOOL_DESCRIPTION = "パーティを保存する (upsert)。同名のパーティが既に存在する場合は上書きされる。createdAt は新規時のみ現在時刻が記録され、同名上書きの場合は保持される。updatedAt は毎回現在時刻に更新される。";
40026
39989
  const LOAD_TOOL_NAME = "load_party";
@@ -40131,8 +40094,7 @@ function registerPartyTools(server, deps = {}) {
40131
40094
  }
40132
40095
  });
40133
40096
  }
40134
- //#endregion
40135
- //#region src/tools/info/pokemon-info.ts
40097
+ // src/tools/info/pokemon-info.ts
40136
40098
  const DEFAULT_SEARCH_LIMIT = 20;
40137
40099
  const GET_POKEMON_INFO_TOOL_NAME = "get_pokemon_info";
40138
40100
  const GET_POKEMON_INFO_DESCRIPTION = "ポケモンの詳細情報(種族値・タイプ・特性・体重)を取得する。ユーザー発話にポケモン名が出てきたら、知識ベースで即答せず、まずこのツールを呼んでデータを引くこと(ポケモンチャンピオンズは従来作と種族値・タイプ・特性等で差異がある)。ポケモンの強さや役割の把握、パーティ構築、ダメージ計算の前提情報として活用できる。";
@@ -40305,8 +40267,7 @@ function registerPokemonInfoTools(server) {
40305
40267
  }
40306
40268
  });
40307
40269
  }
40308
- //#endregion
40309
- //#region src/tools/info/pokemon-summary.ts
40270
+ // src/tools/info/pokemon-summary.ts
40310
40271
  const CHAMPIONS_GEN_NUM$5 = 0;
40311
40272
  /** デフォルト実数値計算に使う無補正性格 */
40312
40273
  const NEUTRAL_NATURE_EN$1 = "Serious";
@@ -40507,8 +40468,7 @@ function registerPokemonSummaryTool(server) {
40507
40468
  }
40508
40469
  });
40509
40470
  }
40510
- //#endregion
40511
- //#region src/tools/search/search-by-ability.ts
40471
+ // src/tools/search/search-by-ability.ts
40512
40472
  const TOOL_NAME$6 = "search_pokemon_by_ability";
40513
40473
  const TOOL_DESCRIPTION$6 = "特定の特性を持つポケモンを逆引き検索する。いかく・もうか等の特性を持つポケモンを絞り込みたい場合に使用する。ポケモンチャンピオンズ対応。";
40514
40474
  const inputSchema$5 = { abilityName: z.string().describe("特性名(日本語 or 英語)") };
@@ -40566,8 +40526,7 @@ function registerSearchByAbilityTool(server) {
40566
40526
  }
40567
40527
  });
40568
40528
  }
40569
- //#endregion
40570
- //#region src/tools/search/search-by-move.ts
40529
+ // src/tools/search/search-by-move.ts
40571
40530
  const TOOL_NAME$5 = "search_pokemon_by_move";
40572
40531
  const TOOL_DESCRIPTION$5 = "特定の技を覚えるポケモンを逆引き検索する。ステルスロックなど特定の技を覚えさせたい場合の候補ポケモン探しに使用する。ポケモンチャンピオンズ対応。";
40573
40532
  const inputSchema$4 = { moveName: z.string().describe("技名(日本語 or 英語)") };
@@ -40629,8 +40588,7 @@ function registerSearchByMoveTool(server) {
40629
40588
  }
40630
40589
  });
40631
40590
  }
40632
- //#endregion
40633
- //#region src/tools/search/search-by-type-effectiveness.ts
40591
+ // src/tools/search/search-by-type-effectiveness.ts
40634
40592
  const CHAMPIONS_GEN_NUM$4 = 0;
40635
40593
  /** 半減以下(=0.5 倍以下)判定のしきい値 */
40636
40594
  const RESIST_THRESHOLD = .5;
@@ -40745,8 +40703,7 @@ function registerSearchByTypeEffectivenessTool(server) {
40745
40703
  }
40746
40704
  });
40747
40705
  }
40748
- //#endregion
40749
- //#region src/tools/analysis/selection-analysis.ts
40706
+ // src/tools/analysis/selection-analysis.ts
40750
40707
  const CHAMPIONS_GEN_NUM$3 = 0;
40751
40708
  const TOOL_NAME$3 = "analyze_selection";
40752
40709
  const TOOL_DESCRIPTION$3 = "6v6 パーティ間の全対面(最大 36 エントリ)について、タイプ相性・素早さ比較・最大ダメージ見積もりをマトリクスで返す。選出判断は本ツールが返すデータを元に AI が総合的に行う前提で、ツール側では推奨やスコアリングは行わない。ポケモンチャンピオンズ対応。正確な計算のため各ポケモンの ability / item の指定を推奨(省略時は通常特性・持ち物なし扱い)。";
@@ -40917,8 +40874,7 @@ function registerSelectionAnalysisTool(server) {
40917
40874
  }
40918
40875
  });
40919
40876
  }
40920
- //#endregion
40921
- //#region src/tools/calc/speed-tiers.ts
40877
+ // src/tools/calc/speed-tiers.ts
40922
40878
  const CHAMPIONS_GEN_NUM$2 = 0;
40923
40879
  /** デフォルト素早さ計算に使う無補正性格の英名 */
40924
40880
  const NEUTRAL_NATURE_EN = "Serious";
@@ -41018,8 +40974,7 @@ function registerSpeedTiersTool(server) {
41018
40974
  }
41019
40975
  });
41020
40976
  }
41021
- //#endregion
41022
- //#region src/tools/calc/stats-calculation.ts
40977
+ // src/tools/calc/stats-calculation.ts
41023
40978
  const CHAMPIONS_GEN_NUM$1 = 0;
41024
40979
  const DEFAULT_NATURE_EN = "Serious";
41025
40980
  const TOOL_NAME$1 = "calculate_stats";
@@ -41115,8 +41070,7 @@ function registerStatsCalculationTool(server) {
41115
41070
  }
41116
41071
  });
41117
41072
  }
41118
- //#endregion
41119
- //#region src/tools/info/type-info.ts
41073
+ // src/tools/info/type-info.ts
41120
41074
  const CHAMPIONS_GEN_NUM = 0;
41121
41075
  const TOOL_NAME = "get_type_info";
41122
41076
  const TOOL_DESCRIPTION = "ポケモンのタイプの相性情報(攻撃時・防御時の倍率)を取得する。対戦でタイプ相性を確認したいときに使用する。ポケモンチャンピオンズ対応。";
@@ -41178,8 +41132,7 @@ function registerTypeInfoTool(server) {
41178
41132
  }
41179
41133
  });
41180
41134
  }
41181
- //#endregion
41182
- //#region src/server.ts
41135
+ // src/server.ts
41183
41136
  const SERVER_NAME = "ai-rotom";
41184
41137
  const SERVER_VERSION = "0.0.1";
41185
41138
  function createServer() {
@@ -41218,10 +41171,8 @@ async function startServer() {
41218
41171
  const transport = new StdioServerTransport();
41219
41172
  await server.connect(transport);
41220
41173
  }
41221
- //#endregion
41222
- //#region src/index.ts
41174
+ // src/index.ts
41223
41175
  startServer().catch(console.error);
41224
- //#endregion
41225
41176
  export {};
41226
41177
 
41227
41178
  //# sourceMappingURL=index.mjs.map