@kenkaiiii/gg-boss 4.10.2 → 4.11.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.
@@ -67448,7 +67448,7 @@ var Agent = class {
67448
67448
  }
67449
67449
  };
67450
67450
 
67451
- // ../gg-core/dist/chunk-6O2YPYRP.js
67451
+ // ../gg-core/dist/chunk-RVK5N64M.js
67452
67452
  init_esm_shims();
67453
67453
  var MODELS = [
67454
67454
  // ── Anthropic ──────────────────────────────────────────
@@ -67612,6 +67612,20 @@ var MODELS = [
67612
67612
  maxThinkingLevel: "high"
67613
67613
  },
67614
67614
  // ── Z.AI (GLM) ─────────────────────────────────────────
67615
+ // GLM-5.2: coding-first flagship with a usable 1M-token context window
67616
+ // (5x jump over GLM-5.1's ~200K) and 131K max output. Released 2026-06-13.
67617
+ {
67618
+ id: "glm-5.2",
67619
+ name: "GLM-5.2",
67620
+ provider: "glm",
67621
+ contextWindow: 1e6,
67622
+ maxOutputTokens: 131072,
67623
+ supportsThinking: true,
67624
+ supportsImages: false,
67625
+ supportsVideo: false,
67626
+ costTier: "medium",
67627
+ maxThinkingLevel: "high"
67628
+ },
67615
67629
  {
67616
67630
  id: "glm-5.1",
67617
67631
  name: "GLM-5.1",
@@ -67749,7 +67763,7 @@ function getDefaultModel(provider) {
67749
67763
  if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.5-pro");
67750
67764
  if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.5");
67751
67765
  if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite-preview");
67752
- if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.1");
67766
+ if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.2");
67753
67767
  if (provider === "moonshot") return MODELS.find((m) => m.id === "kimi-k2.7-code");
67754
67768
  if (provider === "minimax") return MODELS.find((m) => m.id === "MiniMax-M3");
67755
67769
  if (provider === "deepseek") return MODELS.find((m) => m.id === "deepseek-v4-pro");
@@ -72249,11 +72263,17 @@ function formatSize(bytes) {
72249
72263
  init_esm_shims();
72250
72264
  import { spawn as spawn5 } from "child_process";
72251
72265
  import { createInterface } from "readline";
72266
+ import { existsSync as existsSync2 } from "fs";
72267
+ import { fileURLToPath as fileURLToPath2 } from "url";
72252
72268
  var SUB_AGENT_MAX_TURNS = 10;
72253
72269
  var SUB_AGENT_MAX_OUTPUT_CHARS = 1e5;
72254
72270
  var SUB_AGENT_MAX_OUTPUT_LINES = 500;
72255
72271
  var SUB_AGENT_MAX_STDERR_CHARS = 1e4;
72256
72272
  var SUB_AGENT_TIMEOUT_MS = 10 * 60 * 1e3;
72273
+ function resolveCliEntry() {
72274
+ const cliPath = fileURLToPath2(new URL("../cli.js", import.meta.url));
72275
+ return existsSync2(cliPath) ? cliPath : process.argv[1];
72276
+ }
72257
72277
  var SubAgentParams = external_exports.object({
72258
72278
  task: external_exports.string().describe("The task to delegate to the sub-agent"),
72259
72279
  agent: external_exports.string().optional().describe("Named agent definition to use (from ~/.gg/agents/ or .gg/agents/)")
@@ -72306,8 +72326,7 @@ ${agentList}` : "\n\nNo named agents configured.";
72306
72326
  cliArgs.push("--system-prompt", agentDef.systemPrompt);
72307
72327
  }
72308
72328
  cliArgs.push(args.task);
72309
- const binPath = process.argv[1];
72310
- const child = spawn5(process.execPath, [binPath, ...cliArgs], {
72329
+ const child = spawn5(process.execPath, [resolveCliEntry(), ...cliArgs], {
72311
72330
  cwd: cwd2,
72312
72331
  stdio: ["ignore", "pipe", "pipe"],
72313
72332
  env: { ...process.env }
@@ -73702,7 +73721,7 @@ function createWebSearchTool() {
73702
73721
  init_esm_shims();
73703
73722
  import { spawn as spawn6 } from "child_process";
73704
73723
  import path18 from "path";
73705
- import { fileURLToPath as fileURLToPath2 } from "url";
73724
+ import { fileURLToPath as fileURLToPath3 } from "url";
73706
73725
  var SOURCE_PATH_TIMEOUT_MS = 12e4;
73707
73726
  var MAX_STDERR_CHARS = 1e4;
73708
73727
  var OPENSRC_BIN_ENV = "GG_CODER_OPENSRC_BIN";
@@ -73801,7 +73820,7 @@ function getBundledOpenSrcBinPath() {
73801
73820
  const override = process.env[OPENSRC_BIN_ENV]?.trim();
73802
73821
  if (override)
73803
73822
  return override;
73804
- const currentDir = path18.dirname(fileURLToPath2(import.meta.url));
73823
+ const currentDir = path18.dirname(fileURLToPath3(import.meta.url));
73805
73824
  return path18.resolve(currentDir, "../../node_modules/opensrc/bin/opensrc.js");
73806
73825
  }
73807
73826
  function getOpenSrcEnv() {
@@ -93785,9 +93804,9 @@ var taskBarStore = createStore({
93785
93804
  // ../ggcoder/dist/utils/sound.js
93786
93805
  init_esm_shims();
93787
93806
  import { execFile as execFile2 } from "child_process";
93788
- import { fileURLToPath as fileURLToPath3 } from "url";
93807
+ import { fileURLToPath as fileURLToPath4 } from "url";
93789
93808
  import { resolve, dirname } from "path";
93790
- var __dirname2 = dirname(fileURLToPath3(import.meta.url));
93809
+ var __dirname2 = dirname(fileURLToPath4(import.meta.url));
93791
93810
  var notificationPath = resolve(__dirname2, "../../assets/end-notification.mp3");
93792
93811
 
93793
93812
  // ../ggcoder/dist/ui/hooks/useAgentLoop.js
@@ -110414,7 +110433,7 @@ function TaskPickerMenu({ tasks, selectedIndex, width }) {
110414
110433
  // ../ggcoder/dist/ui/components/InputArea.js
110415
110434
  import { homedir as homedir2 } from "os";
110416
110435
  import { join as join2 } from "path";
110417
- import { readFileSync as readFileSync4, writeFileSync as writeFileSync3, appendFileSync, mkdirSync as mkdirSync2, renameSync, unlinkSync, existsSync as existsSync3 } from "fs";
110436
+ import { readFileSync as readFileSync4, writeFileSync as writeFileSync3, appendFileSync, mkdirSync as mkdirSync2, renameSync, unlinkSync, existsSync as existsSync4 } from "fs";
110418
110437
  var MAX_VISIBLE_LINES = 12;
110419
110438
  var PROMPT = "> ";
110420
110439
  var PLACEHOLDER = " Type your message or / to run a command";
@@ -110554,7 +110573,7 @@ function compactHistory2() {
110554
110573
  lineCountEstimate = trimmed.length;
110555
110574
  } catch {
110556
110575
  try {
110557
- if (existsSync3(tempPath))
110576
+ if (existsSync4(tempPath))
110558
110577
  unlinkSync(tempPath);
110559
110578
  } catch {
110560
110579
  }
@@ -111666,7 +111685,7 @@ var import_react67 = __toESM(require_react(), 1);
111666
111685
 
111667
111686
  // ../ggcoder/dist/ui/pixel.js
111668
111687
  init_esm_shims();
111669
- import { existsSync as existsSync4, readFileSync as readFileSync6 } from "fs";
111688
+ import { existsSync as existsSync5, readFileSync as readFileSync6 } from "fs";
111670
111689
  import { homedir as homedir3 } from "os";
111671
111690
  import { join as join4 } from "path";
111672
111691
 
@@ -111675,9 +111694,9 @@ init_esm_shims();
111675
111694
  import { execFile as execFile3 } from "child_process";
111676
111695
  import { readFileSync as readFileSync5 } from "fs";
111677
111696
  import { dirname as dirname2, join as join3 } from "path";
111678
- import { fileURLToPath as fileURLToPath4 } from "url";
111697
+ import { fileURLToPath as fileURLToPath5 } from "url";
111679
111698
  function resolveCliVersion() {
111680
- let dir = dirname2(fileURLToPath4(import.meta.url));
111699
+ let dir = dirname2(fileURLToPath5(import.meta.url));
111681
111700
  for (let i = 0; i < 6; i++) {
111682
111701
  try {
111683
111702
  const manifest = JSON.parse(readFileSync5(join3(dir, "package.json"), "utf8"));
@@ -115124,7 +115143,7 @@ function createTaskTools(deps) {
115124
115143
  // src/audio.ts
115125
115144
  init_esm_shims();
115126
115145
  import { spawn as spawn8, execFileSync as execFileSync4 } from "child_process";
115127
- import { fileURLToPath as fileURLToPath5 } from "url";
115146
+ import { fileURLToPath as fileURLToPath6 } from "url";
115128
115147
  import path44 from "path";
115129
115148
  import fs37 from "fs";
115130
115149
  function readMp3DurationMs(file2) {
@@ -115186,7 +115205,7 @@ function getSplashAudioDurationMs() {
115186
115205
  return ms && ms > 0 ? ms : 1500;
115187
115206
  }
115188
115207
  function assetPath(name) {
115189
- const here = path44.dirname(fileURLToPath5(import.meta.url));
115208
+ const here = path44.dirname(fileURLToPath6(import.meta.url));
115190
115209
  const dist = path44.join(here, name);
115191
115210
  if (fs37.existsSync(dist)) return dist;
115192
115211
  return path44.join(here, "..", "assets", name);
@@ -115233,7 +115252,7 @@ function isWsl() {
115233
115252
  }
115234
115253
  async function tryPlayOnWindowsHost(file2) {
115235
115254
  try {
115236
- const here = path44.dirname(fileURLToPath5(import.meta.url));
115255
+ const here = path44.dirname(fileURLToPath6(import.meta.url));
115237
115256
  const devAssets = path44.resolve(here, "..", "assets");
115238
115257
  const resolved = path44.resolve(file2);
115239
115258
  const inDist = resolved === here || resolved.startsWith(here + path44.sep);
@@ -116453,4 +116472,4 @@ react/cjs/react-jsx-runtime.development.js:
116453
116472
  * LICENSE file in the root directory of this source tree.
116454
116473
  *)
116455
116474
  */
116456
- //# sourceMappingURL=chunk-UH3DA72U.js.map
116475
+ //# sourceMappingURL=chunk-MFM536F4.js.map