koishi-plugin-warframe 1.4.8 → 1.4.10

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/lib/index.d.ts CHANGED
@@ -584,8 +584,10 @@ export const getWeekly: () => Promise<"内部错误,获取最新信息失败"
584
584
  }>;
585
585
  export const getEnvironment: () => Promise<string>;
586
586
  export const getCircuitWeek: () => {
587
- incarnons: string[];
588
- warframes: string[];
587
+ currentIncarnons: number;
588
+ currentWarframes: number;
589
+ allIncarnons: string[][];
590
+ allWarframes: string[][];
589
591
  };
590
592
  export const getFissures: () => Promise<any[] | "内部错误,获取最新信息失败">;
591
593
  export const getSteelPathFissures: () => Promise<any[] | "内部错误,获取最新信息失败">;
@@ -611,7 +613,7 @@ export const analyzeRivenStat: (parseResult: {
611
613
  }[];
612
614
  }) => RivenStatAnalyzeResult | string;
613
615
  export const ArbitrationComponent: (arbi: Arbitration[]) => Element;
614
- export const CircuitComponent: (incarnons: string[], warframes: string[]) => Element;
616
+ export const CircuitComponent: (currentIncarnons: number, currentWarframes: number, allIncarnons: string[][], allWarframes: string[][]) => Element;
615
617
  export const FissureComponent: (fissures: Fissure[], type: "fissure" | "sp-fissure" | "rj-fissure") => Element;
616
618
  export const WeeklyComponent: (archon: ArchonHunt, deepArchimedea: ArchiMedea, temporalArchimedea: ArchiMedea) => Element;
617
619
  export const RelicComponent: (relic: OutputRelic) => Element;
package/lib/index.js CHANGED
@@ -2097,6 +2097,13 @@ var arbyRewards_default = {
2097
2097
 
2098
2098
  // src/assets/circuitRewards.json
2099
2099
  var incarnons = [
2100
+ [
2101
+ "/Lotus/Language/Items/RifleName",
2102
+ "/Lotus/Language/Items/PistolName",
2103
+ "/Lotus/Language/Items/LongSwordName",
2104
+ "/Lotus/Language/Items/HuntingBowName",
2105
+ "/Lotus/Language/Items/KunaiName"
2106
+ ],
2100
2107
  [
2101
2108
  "/Lotus/Language/Items/AutoShotgunName",
2102
2109
  "/Lotus/Language/Items/ReconnasorName",
@@ -2112,7 +2119,7 @@ var incarnons = [
2112
2119
  "/Lotus/Language/Items/ShotgunName"
2113
2120
  ],
2114
2121
  [
2115
- "/Lotus/Language/Locations/Lex",
2122
+ "/Lotus/Language/Items/HeavyPistolName",
2116
2123
  "/Lotus/Language/Items/PaladinMaceName",
2117
2124
  "/Lotus/Language/Items/BoltoRifleName",
2118
2125
  "/Lotus/Language/Items/HandCannonName",
@@ -2145,31 +2152,9 @@ var incarnons = [
2145
2152
  "/Lotus/Language/Items/CorpusMinigunName",
2146
2153
  "/Lotus/Language/Items/BurstPistolName",
2147
2154
  "/Lotus/Language/Items/TennoSaiName"
2148
- ],
2149
- [
2150
- "/Lotus/Language/Items/RifleName",
2151
- "/Lotus/Language/Items/PistolName",
2152
- "/Lotus/Language/Items/LongSwordName",
2153
- "/Lotus/Language/Items/HuntingBowName",
2154
- "/Lotus/Language/Items/KunaiName"
2155
2155
  ]
2156
2156
  ];
2157
2157
  var warframes = [
2158
- [
2159
- "/Lotus/Language/Suits/InfestationName",
2160
- "/Lotus/Language/Suits/BardName",
2161
- "/Lotus/Language/Suits/PriestName"
2162
- ],
2163
- [
2164
- "/Lotus/Language/Suits/GlassName",
2165
- "/Lotus/Language/Suits/KhoraName",
2166
- "/Lotus/Language/Suits/RevenantName"
2167
- ],
2168
- [
2169
- "/Lotus/Language/Suits/GarudaName",
2170
- "/Lotus/Language/Suits/PacifistName",
2171
- "/Lotus/Language/Suits/IronFrameName"
2172
- ],
2173
2158
  [
2174
2159
  "/Lotus/Language/Suits/ExcaliburName",
2175
2160
  "/Lotus/Language/Suits/TrinityName",
@@ -2209,6 +2194,21 @@ var warframes = [
2209
2194
  "/Lotus/Language/Suits/IvaraName",
2210
2195
  "/Lotus/Language/Suits/InarosName",
2211
2196
  "/Lotus/Language/Suits/TitaniaName"
2197
+ ],
2198
+ [
2199
+ "/Lotus/Language/Suits/InfestationName",
2200
+ "/Lotus/Language/Suits/BardName",
2201
+ "/Lotus/Language/Suits/PriestName"
2202
+ ],
2203
+ [
2204
+ "/Lotus/Language/Suits/GlassName",
2205
+ "/Lotus/Language/Suits/KhoraName",
2206
+ "/Lotus/Language/Suits/RevenantName"
2207
+ ],
2208
+ [
2209
+ "/Lotus/Language/Suits/GarudaName",
2210
+ "/Lotus/Language/Suits/PacifistName",
2211
+ "/Lotus/Language/Suits/IronFrameName"
2212
2212
  ]
2213
2213
  ];
2214
2214
 
@@ -50469,15 +50469,15 @@ ${zariman}`;
50469
50469
  var getCircuitWeek = /* @__PURE__ */ __name(() => {
50470
50470
  const EPOCH = 1734307200 * 1e3;
50471
50471
  const week = Math.trunc((Date.now() - EPOCH) / 6048e5);
50472
- const incarnons2 = incarnons[week % incarnons.length].map(
50473
- (i) => import_warframe_public_export_plus8.dict_zh[i]
50474
- );
50475
- const warframes2 = warframes[week % warframes.length].map(
50476
- (i) => import_warframe_public_export_plus8.dict_zh[i]
50477
- );
50472
+ const index1 = (week + 1) % incarnons.length;
50473
+ const index2 = (week + 8) % warframes.length;
50474
+ const incarnons2 = incarnons.map((v) => v.map((i) => import_warframe_public_export_plus8.dict_zh[i]));
50475
+ const warframes2 = warframes.map((v) => v.map((i) => import_warframe_public_export_plus8.dict_zh[i]));
50478
50476
  return {
50479
- incarnons: incarnons2,
50480
- warframes: warframes2
50477
+ currentIncarnons: index1,
50478
+ currentWarframes: index2,
50479
+ allIncarnons: incarnons2,
50480
+ allWarframes: warframes2
50481
50481
  };
50482
50482
  }, "getCircuitWeek");
50483
50483
  var getFissures = /* @__PURE__ */ __name(async () => {
@@ -50821,36 +50821,290 @@ var ArbitrationComponent = /* @__PURE__ */ __name((arbi) => {
50821
50821
  }
50822
50822
  );
50823
50823
  }, "ArbitrationComponent");
50824
- var CircuitComponent = /* @__PURE__ */ __name((incarnons2, warframes2) => {
50825
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
50826
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("header", { style: "text-align: center;font-size:30px;", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { children: "本周回廊奖励" }) }),
50827
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50828
- "div",
50829
- {
50830
- style: "display:flex;flex-direction:column;align-items:center;margin-top:40px;font-size:40px;",
50831
- children: [
50832
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: "display:flex;align-items:center;line-height:1;", children: [
50833
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "灵化之源:" }),
50834
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { style: "display:flex;gap:13px;margin-left:15px;", children: incarnons2.map((i) => {
50835
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: i });
50836
- }) })
50837
- ] }),
50838
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50839
- "div",
50840
- {
50841
- style: "display:flex;align-items:center;line-height:1;margin-top:40px;",
50842
- children: [
50843
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "战甲:" }),
50844
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { style: "display:flex;gap:13px;margin-left:15px;", children: warframes2.map((i) => {
50845
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: i });
50846
- }) })
50847
- ]
50848
- }
50849
- )
50850
- ]
50851
- }
50852
- )
50853
- ] });
50824
+ var CircuitComponent = /* @__PURE__ */ __name((currentIncarnons, currentWarframes, allIncarnons, allWarframes) => {
50825
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50826
+ "div",
50827
+ {
50828
+ style: `
50829
+ background: linear-gradient(135deg, #f5f0e8 0%, #fff8f0 100%);
50830
+ border-radius: 8px;
50831
+ padding: 16px;
50832
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
50833
+ width: 1000px;
50834
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
50835
+ border: 1px solid rgba(0, 0, 0, 0.05);
50836
+ `,
50837
+ children: [
50838
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50839
+ "div",
50840
+ {
50841
+ style: `
50842
+ text-align: center;
50843
+ margin-bottom: 20px;
50844
+ padding-bottom: 12px;
50845
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
50846
+ `,
50847
+ children: [
50848
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50849
+ "h1",
50850
+ {
50851
+ style: `
50852
+ font-size: 22px;
50853
+ font-weight: bold;
50854
+ color: #1a1a1a;
50855
+ margin: 0 0 8px 0;
50856
+ `,
50857
+ children: "回廊奖励总览"
50858
+ }
50859
+ ),
50860
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50861
+ "p",
50862
+ {
50863
+ style: `
50864
+ color: #666666;
50865
+ font-size: 11px;
50866
+ margin: 0;
50867
+ `,
50868
+ children: [
50869
+ "灵化周 ",
50870
+ currentIncarnons + 1,
50871
+ "/",
50872
+ allIncarnons.length,
50873
+ " · 战甲周",
50874
+ " ",
50875
+ currentWarframes + 1,
50876
+ "/",
50877
+ allWarframes.length
50878
+ ]
50879
+ }
50880
+ )
50881
+ ]
50882
+ }
50883
+ ),
50884
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50885
+ "div",
50886
+ {
50887
+ style: `
50888
+ display: flex;
50889
+ gap: 16px;
50890
+ `,
50891
+ children: [
50892
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50893
+ "div",
50894
+ {
50895
+ style: `
50896
+ flex: 1;
50897
+ background: rgba(255, 255, 255, 0.8);
50898
+ border-radius: 8px;
50899
+ padding: 12px;
50900
+ border: 1px solid rgba(0, 0, 0, 0.08);
50901
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
50902
+ `,
50903
+ children: [
50904
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50905
+ "div",
50906
+ {
50907
+ style: `
50908
+ font-weight: bold;
50909
+ font-size: 15px;
50910
+ color: #333333;
50911
+ margin-bottom: 12px;
50912
+ padding-bottom: 8px;
50913
+ border-bottom: 1px solid rgba(0, 0, 0, 0.08);
50914
+ `,
50915
+ children: "灵化之源"
50916
+ }
50917
+ ),
50918
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50919
+ "div",
50920
+ {
50921
+ style: `
50922
+ display: flex;
50923
+ flex-direction: column;
50924
+ gap: 8px;
50925
+ `,
50926
+ children: allIncarnons.map((incarnons2, weekIdx) => {
50927
+ const isCurrent = weekIdx === currentIncarnons;
50928
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50929
+ "div",
50930
+ {
50931
+ style: `
50932
+ background: ${isCurrent ? "#fff8f0" : "#ffffff"};
50933
+ border-radius: 4px;
50934
+ padding: 8px 10px;
50935
+ border-left: 4px solid ${isCurrent ? "#ff8c42" : "#e0e0e0"};
50936
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
50937
+ `,
50938
+ children: [
50939
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50940
+ "div",
50941
+ {
50942
+ style: `
50943
+ font-size: 10px;
50944
+ font-weight: bold;
50945
+ color: ${isCurrent ? "#ff8c42" : "#999999"};
50946
+ margin-bottom: 6px;
50947
+ `,
50948
+ children: [
50949
+ "第",
50950
+ weekIdx + 1,
50951
+ "周 ",
50952
+ isCurrent ? "· 当前" : null
50953
+ ]
50954
+ }
50955
+ ),
50956
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50957
+ "div",
50958
+ {
50959
+ style: `
50960
+ display: flex;
50961
+ flex-wrap: wrap;
50962
+ gap: 6px;
50963
+ `,
50964
+ children: incarnons2.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50965
+ "span",
50966
+ {
50967
+ style: `
50968
+ background: ${isCurrent ? "#fff0e0" : "#f5f5f5"};
50969
+ padding: 3px 10px;
50970
+ border-radius: 4px;
50971
+ font-size: 11px;
50972
+ font-weight: 500;
50973
+ color: #333333;
50974
+ border: 1px solid ${isCurrent ? "#ffe0b5" : "#e8e8e8"};
50975
+ `,
50976
+ children: item
50977
+ }
50978
+ ))
50979
+ }
50980
+ )
50981
+ ]
50982
+ }
50983
+ );
50984
+ })
50985
+ }
50986
+ )
50987
+ ]
50988
+ }
50989
+ ),
50990
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
50991
+ "div",
50992
+ {
50993
+ style: `
50994
+ flex: 1;
50995
+ background: rgba(255, 255, 255, 0.8);
50996
+ border-radius: 8px;
50997
+ padding: 12px;
50998
+ border: 1px solid rgba(0, 0, 0, 0.08);
50999
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
51000
+ `,
51001
+ children: [
51002
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51003
+ "div",
51004
+ {
51005
+ style: `
51006
+ font-weight: bold;
51007
+ font-size: 15px;
51008
+ color: #333333;
51009
+ margin-bottom: 12px;
51010
+ padding-bottom: 8px;
51011
+ border-bottom: 1px solid rgba(0, 0, 0, 0.08);
51012
+ `,
51013
+ children: "战甲"
51014
+ }
51015
+ ),
51016
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51017
+ "div",
51018
+ {
51019
+ style: `
51020
+ display: flex;
51021
+ flex-direction: column;
51022
+ gap: 8px;
51023
+ `,
51024
+ children: allWarframes.map((warframes2, weekIdx) => {
51025
+ const isCurrent = weekIdx === currentWarframes;
51026
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
51027
+ "div",
51028
+ {
51029
+ style: `
51030
+ background: ${isCurrent ? "#f0faf8" : "#ffffff"};
51031
+ border-radius: 4px;
51032
+ padding: 8px 10px;
51033
+ border-left: 4px solid ${isCurrent ? "#47b5a5" : "#e0e0e0"};
51034
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
51035
+ `,
51036
+ children: [
51037
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
51038
+ "div",
51039
+ {
51040
+ style: `
51041
+ font-size: 10px;
51042
+ font-weight: bold;
51043
+ color: ${isCurrent ? "#47b5a5" : "#999999"};
51044
+ margin-bottom: 6px;
51045
+ `,
51046
+ children: [
51047
+ "第",
51048
+ weekIdx + 1,
51049
+ "周 ",
51050
+ isCurrent ? "· 当前" : null
51051
+ ]
51052
+ }
51053
+ ),
51054
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51055
+ "div",
51056
+ {
51057
+ style: `
51058
+ display: flex;
51059
+ flex-wrap: wrap;
51060
+ gap: 6px;
51061
+ `,
51062
+ children: warframes2.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51063
+ "span",
51064
+ {
51065
+ style: `
51066
+ background: ${isCurrent ? "#e0f7f2" : "#f5f5f5"};
51067
+ padding: 3px 10px;
51068
+ border-radius: 4px;
51069
+ font-size: 11px;
51070
+ font-weight: 500;
51071
+ color: #333333;
51072
+ border: 1px solid ${isCurrent ? "#c0e0d8" : "#e8e8e8"};
51073
+ `,
51074
+ children: item
51075
+ }
51076
+ ))
51077
+ }
51078
+ )
51079
+ ]
51080
+ }
51081
+ );
51082
+ })
51083
+ }
51084
+ )
51085
+ ]
51086
+ }
51087
+ )
51088
+ ]
51089
+ }
51090
+ ),
51091
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51092
+ "div",
51093
+ {
51094
+ style: `
51095
+ margin-top: 16px;
51096
+ padding-top: 12px;
51097
+ border-top: 1px solid rgba(0, 0, 0, 0.08);
51098
+ font-size: 10px;
51099
+ color: #999999;
51100
+ text-align: center;
51101
+ `,
51102
+ children: "每周一更新"
51103
+ }
51104
+ )
51105
+ ]
51106
+ }
51107
+ );
50854
51108
  }, "CircuitComponent");
50855
51109
  var FissureComponent = /* @__PURE__ */ __name((fissures, type) => {
50856
51110
  const titles = {
@@ -51970,7 +52224,7 @@ var circuitCommand = /* @__PURE__ */ __name(async (action) => {
51970
52224
  const result = getCircuitWeek();
51971
52225
  return await generateImageOutput(
51972
52226
  action.session.app.puppeteer,
51973
- CircuitComponent(result.incarnons, result.warframes)
52227
+ CircuitComponent(result.currentIncarnons, result.currentWarframes, result.allIncarnons, result.allWarframes)
51974
52228
  );
51975
52229
  }, "circuitCommand");
51976
52230
  var voidtraderCommand = /* @__PURE__ */ __name(async (action) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-warframe",
3
3
  "description": "WF Toolkit",
4
- "version": "1.4.8",
4
+ "version": "1.4.10",
5
5
  "license": "GPL-3.0",
6
6
  "scripts": {
7
7
  "build": "yakumo build",
@@ -52,7 +52,7 @@
52
52
  "@koishijs/client": "^5.30.11",
53
53
  "@koishijs/plugin-help": "^2.4.6",
54
54
  "@koishijs/plugin-mock": "^2.6.6",
55
- "@satorijs/element": "^3.1.8",
55
+ "@satorijs/element": "^3.2.0",
56
56
  "@semantic-release/changelog": "^6.0.3",
57
57
  "@semantic-release/commit-analyzer": "^13.0.1",
58
58
  "@semantic-release/git": "^10.0.1",
@@ -61,13 +61,13 @@
61
61
  "@semantic-release/release-notes-generator": "^14.1.0",
62
62
  "@types/chai": "^5.2.3",
63
63
  "@types/mocha": "^10.0.10",
64
- "@types/node": "^25.0.3",
65
- "chai": "^6.2.1",
64
+ "@types/node": "^25.6.0",
65
+ "chai": "^6.2.2",
66
66
  "conventional-changelog-conventionalcommits": "^9.3.1",
67
67
  "dtsc": "^3.1.0",
68
68
  "esbuild": "^0.28.0",
69
69
  "esbuild-register": "^3.6.0",
70
- "koishi": "^4.18.9",
70
+ "koishi": "^4.18.11",
71
71
  "koishi-plugin-puppeteer": "^3.9.0",
72
72
  "mocha": "^11.7.5",
73
73
  "typescript": "^5.9.3",
@@ -79,9 +79,9 @@
79
79
  "@nestjs/common": "^11.1.19",
80
80
  "@nestjs/core": "^11.1.19",
81
81
  "rxjs": "^7.8.2",
82
- "tencentcloud-sdk-nodejs-ocr": "^4.1.155",
82
+ "tencentcloud-sdk-nodejs-ocr": "^4.1.213",
83
83
  "warframe-public-export-plus": "^0.6.0",
84
- "warframe-worldstate-data": "^3.13.1",
84
+ "warframe-worldstate-data": "^3.15.1",
85
85
  "warframe-worldstate-parser": "^5.3.3"
86
86
  }
87
87
  }