kimiflare 0.88.4 → 0.89.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/README.md CHANGED
@@ -97,7 +97,8 @@ KimiFlare runs on **Kimi K2.7** via Cloudflare Workers AI — no API key needed
97
97
 
98
98
  - `@cf/moonshotai/kimi-k2.7-code` — 262k context, reasoning, tools, vision
99
99
 
100
- `@cf/moonshotai/kimi-k2.6` and `@cf/moonshotai/kimi-k2.5` are also available.
100
+ `@cf/moonshotai/kimi-k2.6`, `@cf/moonshotai/kimi-k2.5`, and `@cf/zai-org/glm-5.2`
101
+ (Zhipu AI, 262k context, reasoning + tools) are also available.
101
102
 
102
103
  ### One-shot mode
103
104
 
package/dist/index.js CHANGED
@@ -1995,6 +1995,16 @@ var init_registry = __esm({
1995
1995
  pricing: { inputPerMtok: 0.55, cachedInputPerMtok: 0.11, outputPerMtok: 2.19 },
1996
1996
  supports: { tools: true, reasoning: true, streaming: true },
1997
1997
  billingMode: "unified"
1998
+ },
1999
+ // ── GLM (Zhipu AI on Cloudflare Workers AI) ───────────────────────────────
2000
+ {
2001
+ id: "@cf/zai-org/glm-5.2",
2002
+ provider: "workers-ai",
2003
+ contextWindow: 262144,
2004
+ maxOutputTokens: 16384,
2005
+ pricing: { inputPerMtok: 1.4, cachedInputPerMtok: 0.26, outputPerMtok: 4.4 },
2006
+ supports: { tools: true, reasoning: true, streaming: true },
2007
+ billingMode: "unified"
1998
2008
  }
1999
2009
  ];
2000
2010
  seedIndex = new Map(SEED.map((m) => [m.id, m]));
@@ -20281,8 +20291,8 @@ Executor opened PR: ${prUrl}` : plan });
20281
20291
  currentMode,
20282
20292
  ALL_TOOLS
20283
20293
  );
20284
- messages.push({ role: "user", content: plan });
20285
20294
  cam.send("UserMessageCreated", { text: plan });
20295
+ followUpQueue.push(plan);
20286
20296
  cam.send("ShowToast", {
20287
20297
  text: `Starting fresh session in ${targetMode} mode with plan`,
20288
20298
  kind: "success",
@@ -31722,7 +31732,7 @@ var init_tui_report = __esm({
31722
31732
  import { join as join35 } from "path";
31723
31733
  import { unlink as unlink5 } from "fs/promises";
31724
31734
  import QRCode2 from "qrcode";
31725
- function executeFreshStart(ctx, planText, overrideMode) {
31735
+ function executeFreshStart(ctx, planText, overrideMode, opts2 = {}) {
31726
31736
  const oldSessionId = ctx.sessionIdRef.current;
31727
31737
  if (ctx.cacheStableRef.current && ctx.messagesRef.current.length >= 2) {
31728
31738
  ctx.messagesRef.current = [ctx.messagesRef.current[0], ctx.messagesRef.current[1]];
@@ -31757,7 +31767,9 @@ function executeFreshStart(ctx, planText, overrideMode) {
31757
31767
  overrideMode ?? ctx.mode,
31758
31768
  [...ALL_TOOLS, ...ctx.mcpToolsRef.current, ...ctx.lspToolsRef.current]
31759
31769
  );
31760
- ctx.messagesRef.current.push({ role: "user", content: planText });
31770
+ if (opts2.seedMessages !== false) {
31771
+ ctx.messagesRef.current.push({ role: "user", content: planText });
31772
+ }
31761
31773
  const newSessionId = ctx.ensureSessionId();
31762
31774
  if (oldSessionId) {
31763
31775
  void carryOverSessionBaseline(oldSessionId, newSessionId).then(() => {
@@ -35315,7 +35327,7 @@ ${wcagWarnings.join("\n")}` }
35315
35327
  setMode(picked);
35316
35328
  return;
35317
35329
  }
35318
- const clipResult = executeFreshStart(buildSlashContext(), plan, picked);
35330
+ const clipResult = executeFreshStart(buildSlashContext(), plan, picked, { seedMessages: false });
35319
35331
  setEvents((e) => [
35320
35332
  ...e,
35321
35333
  {