@moonshot-ai/kimi-code 0.12.0 → 0.12.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 (2) hide show
  1. package/dist/main.mjs +2 -27
  2. package/package.json +4 -4
package/dist/main.mjs CHANGED
@@ -8214,11 +8214,6 @@ const OPENAI_RESPONSES_DEVELOPER_ROLE_MODELS = new Set([
8214
8214
  "o3-pro",
8215
8215
  "o4-mini"
8216
8216
  ]);
8217
- const OPENAI_CHAT_COMPLETIONS_XHIGH_REASONING_MODELS = new Set([
8218
- "gpt-5.2",
8219
- "gpt-5.4",
8220
- "gpt-5.5"
8221
- ]);
8222
8217
  const OPENAI_VISION_TOOL_PREFIXES = [
8223
8218
  "gpt-4o",
8224
8219
  "gpt-4-turbo",
@@ -8330,9 +8325,6 @@ const ANTHROPIC_CAPABILITY_CATALOG = [{
8330
8325
  function normalizeModelName(modelName) {
8331
8326
  return modelName.toLowerCase();
8332
8327
  }
8333
- function modelIdLeaf(modelName) {
8334
- return normalizeModelName(modelName).trim().split("/").at(-1) ?? "";
8335
- }
8336
8328
  function hasPrefix(modelName, prefixes) {
8337
8329
  return prefixes.some((prefix) => modelName.startsWith(prefix));
8338
8330
  }
@@ -8360,9 +8352,6 @@ function getGoogleGenAIModelCapability(modelName) {
8360
8352
  if (normalized.startsWith("gemini-2.5-") || normalized.includes("thinking")) return GEMINI_THINKING_MULTIMODAL_TOOL_CAPABILITY;
8361
8353
  return GEMINI_MULTIMODAL_TOOL_CAPABILITY;
8362
8354
  }
8363
- function supportsOpenAIChatCompletionsXHighReasoning(modelName) {
8364
- return OPENAI_CHAT_COMPLETIONS_XHIGH_REASONING_MODELS.has(modelIdLeaf(modelName));
8365
- }
8366
8355
  function usesOpenAIResponsesDeveloperRole(modelName) {
8367
8356
  const normalized = normalizeModelName(modelName);
8368
8357
  if (OPENAI_RESPONSES_DEVELOPER_ROLE_MODELS.has(normalized)) return true;
@@ -45869,10 +45858,6 @@ function normalizeGenerationKwargs(model, source) {
45869
45858
  }
45870
45859
  return kwargs;
45871
45860
  }
45872
- function clampChatCompletionsReasoningEffort(reasoningEffort, model) {
45873
- if (reasoningEffort !== "xhigh") return reasoningEffort;
45874
- return supportsOpenAIChatCompletionsXHighReasoning(model) ? "xhigh" : "high";
45875
- }
45876
45861
  function convertMessage$1(message, reasoningKey, toolMessageConversion) {
45877
45862
  let reasoningContent = "";
45878
45863
  const nonThinkParts = [];
@@ -46063,7 +46048,7 @@ var OpenAILegacyChatProvider = class {
46063
46048
  }
46064
46049
  }
46065
46050
  withThinking(effort) {
46066
- const reasoningEffort = clampChatCompletionsReasoningEffort(thinkingEffortToReasoningEffort(effort), this._model);
46051
+ const reasoningEffort = thinkingEffortToReasoningEffort(effort);
46067
46052
  const clone = this._clone();
46068
46053
  clone._reasoningEffort = reasoningEffort;
46069
46054
  return clone;
@@ -90066,17 +90051,7 @@ const BackgroundConfigSchema = z.object({
90066
90051
  killGracePeriodMs: z.number().int().min(0).optional(),
90067
90052
  printWaitCeilingS: z.number().int().min(1).optional()
90068
90053
  });
90069
- const ExperimentalFlagIdSet = new Set(FLAG_DEFINITIONS.map((def) => def.id));
90070
- const ExperimentalConfigSchema = z.record(z.string(), z.boolean()).superRefine((config, ctx) => {
90071
- for (const key of Object.keys(config)) {
90072
- if (ExperimentalFlagIdSet.has(key)) continue;
90073
- ctx.addIssue({
90074
- code: "custom",
90075
- path: [key],
90076
- message: `Unknown experimental feature "${key}".`
90077
- });
90078
- }
90079
- });
90054
+ const ExperimentalConfigSchema = z.record(z.string(), z.boolean());
90080
90055
  const HookDefSchema = z.object({
90081
90056
  event: z.enum(HOOK_EVENT_TYPES),
90082
90057
  matcher: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonshot-ai/kimi-code",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "The Starting Point for Next-Gen Agents",
5
5
  "license": "MIT",
6
6
  "author": "Moonshot AI",
@@ -59,11 +59,11 @@
59
59
  "postject": "1.0.0-alpha.6",
60
60
  "tsx": "^4.21.0",
61
61
  "yazl": "^3.3.1",
62
- "@moonshot-ai/kimi-telemetry": "^0.1.1",
63
62
  "@moonshot-ai/acp-adapter": "^0.2.3",
63
+ "@moonshot-ai/kimi-code-oauth": "^0.2.2",
64
64
  "@moonshot-ai/kimi-code-sdk": "^0.9.0",
65
- "@moonshot-ai/migration-legacy": "^0.1.11",
66
- "@moonshot-ai/kimi-code-oauth": "^0.2.2"
65
+ "@moonshot-ai/kimi-telemetry": "^0.1.1",
66
+ "@moonshot-ai/migration-legacy": "^0.1.11"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=22.19.0"