kimi-plugin-cc 2.5.4 → 2.5.5

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.
@@ -194,23 +194,41 @@ export function maxTestedMinor() {
194
194
  ? entry
195
195
  : max);
196
196
  }
197
+ function compareVersions(a, b) {
198
+ const pa = a.split(".").map((part) => Number.parseInt(part, 10));
199
+ const pb = b.split(".").map((part) => Number.parseInt(part, 10));
200
+ for (let i = 0; i < 3; i += 1) {
201
+ const diff = (pa[i] ?? 0) - (pb[i] ?? 0);
202
+ if (diff !== 0)
203
+ return diff;
204
+ }
205
+ return 0;
206
+ }
197
207
  /**
198
208
  * Format a user-facing warning line for an out-of-range version probe.
199
209
  * Setup itself may complete, but the execution-plan gate will refuse model
200
210
  * spawns until the operator selects a certified binary or updates the plugin.
211
+ * `nativeV2Certified` is the exact native-v2 table; both engines are named so
212
+ * the newest certified version is not misreported as the legacy-v1 bound.
201
213
  */
202
- export function formatVersionOutOfRangeWarning(probe, pluginVersion) {
214
+ export function formatVersionOutOfRangeWarning(probe, pluginVersion, nativeV2Certified = []) {
203
215
  const tested = KIMI_TESTED_MINORS.map((entry) => `${entry.major}.${entry.minor}.x`).join(", ");
204
216
  const max = maxTestedMinor();
205
- const aboveMax = probe.major > max.major || (probe.major === max.major && probe.minor > max.minor);
217
+ const newestNative = [...nativeV2Certified].sort(compareVersions).at(-1);
218
+ const probeRaw = `${probe.major}.${probe.minor}.${probe.patch}`;
219
+ const aboveMax = newestNative !== undefined
220
+ ? compareVersions(probeRaw, newestNative) > 0
221
+ : probe.major > max.major || (probe.major === max.major && probe.minor > max.minor);
222
+ const certified = nativeV2Certified.length > 0
223
+ ? `legacy-v1 ${tested}; native-v2 exact ${nativeV2Certified.join(", ")}`
224
+ : tested;
206
225
  const lines = [
207
- `WARNING: kimi-code version ${probe.version} is outside the range kimi-plugin-cc ${pluginVersion} was tested against (${tested}).`,
226
+ `WARNING: kimi-code version ${probe.version} is outside the versions kimi-plugin-cc ${pluginVersion} certifies (${certified}).`,
208
227
  ];
209
228
  if (aboveMax) {
210
- // Above the legacy-v1 tested upper bound is a release newer than the last
211
- // legacy compatibility audit, commonly from out-of-band auto-upgrade drift.
212
- lines.push(` This is NEWER than the newest version we have tested (${max.major}.${max.minor}.x) and is not yet certified for model execution.`);
229
+ // Commonly out-of-band auto-upgrade drift past the last certification.
230
+ lines.push(` This is NEWER than the newest certified version (${newestNative ?? `${max.major}.${max.minor}.x`}) and is not yet certified for model execution.`);
213
231
  }
214
- lines.push(` Setup can complete, but model-spawning commands will refuse before Kimi starts rather than run an unreviewed engine/version route.`, ` Update kimi-plugin-cc to a release that certifies this minor, or point KIMI_PLUGIN_CC_KIMI_BIN at a certified kimi-code binary and retry setup.`, ` KIMI_PLUGIN_CC_SKIP_VERSION_PROBE is a test/smoke seam, not a production compatibility override.`);
232
+ lines.push(` Setup can complete, but model-spawning commands will refuse before Kimi starts rather than run an unreviewed engine/version route.`, ` Update kimi-plugin-cc to a release that certifies this version, or point KIMI_PLUGIN_CC_KIMI_BIN at a certified kimi-code binary and retry setup.`, ` KIMI_PLUGIN_CC_SKIP_VERSION_PROBE is a test/smoke seam, not a production compatibility override.`);
215
233
  return lines.join("\n");
216
234
  }
@@ -4,4 +4,4 @@
4
4
  // and AGENTS.md on every release. A future improvement would read this from
5
5
  // package.json at build time, but that adds a build-step dependency we
6
6
  // don't want yet.
7
- export const KIMI_PLUGIN_CC_VERSION = "2.5.4";
7
+ export const KIMI_PLUGIN_CC_VERSION = "2.5.5";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kimi-plugin-cc",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Kimi Code subagents for DeepSeek Harness: all seven ask, review, challenge, rescue, pursue, swarm, and swarm-write operations through the kimi-plugin-cc companion runtime.",
5
5
  "type": "module",
6
6
  "main": "dist/dsh/index.js",