@kenkaiiii/gg-boss 4.11.0 → 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.
|
@@ -72263,11 +72263,17 @@ function formatSize(bytes) {
|
|
|
72263
72263
|
init_esm_shims();
|
|
72264
72264
|
import { spawn as spawn5 } from "child_process";
|
|
72265
72265
|
import { createInterface } from "readline";
|
|
72266
|
+
import { existsSync as existsSync2 } from "fs";
|
|
72267
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
72266
72268
|
var SUB_AGENT_MAX_TURNS = 10;
|
|
72267
72269
|
var SUB_AGENT_MAX_OUTPUT_CHARS = 1e5;
|
|
72268
72270
|
var SUB_AGENT_MAX_OUTPUT_LINES = 500;
|
|
72269
72271
|
var SUB_AGENT_MAX_STDERR_CHARS = 1e4;
|
|
72270
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
|
+
}
|
|
72271
72277
|
var SubAgentParams = external_exports.object({
|
|
72272
72278
|
task: external_exports.string().describe("The task to delegate to the sub-agent"),
|
|
72273
72279
|
agent: external_exports.string().optional().describe("Named agent definition to use (from ~/.gg/agents/ or .gg/agents/)")
|
|
@@ -72320,8 +72326,7 @@ ${agentList}` : "\n\nNo named agents configured.";
|
|
|
72320
72326
|
cliArgs.push("--system-prompt", agentDef.systemPrompt);
|
|
72321
72327
|
}
|
|
72322
72328
|
cliArgs.push(args.task);
|
|
72323
|
-
const
|
|
72324
|
-
const child = spawn5(process.execPath, [binPath, ...cliArgs], {
|
|
72329
|
+
const child = spawn5(process.execPath, [resolveCliEntry(), ...cliArgs], {
|
|
72325
72330
|
cwd: cwd2,
|
|
72326
72331
|
stdio: ["ignore", "pipe", "pipe"],
|
|
72327
72332
|
env: { ...process.env }
|
|
@@ -73716,7 +73721,7 @@ function createWebSearchTool() {
|
|
|
73716
73721
|
init_esm_shims();
|
|
73717
73722
|
import { spawn as spawn6 } from "child_process";
|
|
73718
73723
|
import path18 from "path";
|
|
73719
|
-
import { fileURLToPath as
|
|
73724
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
73720
73725
|
var SOURCE_PATH_TIMEOUT_MS = 12e4;
|
|
73721
73726
|
var MAX_STDERR_CHARS = 1e4;
|
|
73722
73727
|
var OPENSRC_BIN_ENV = "GG_CODER_OPENSRC_BIN";
|
|
@@ -73815,7 +73820,7 @@ function getBundledOpenSrcBinPath() {
|
|
|
73815
73820
|
const override = process.env[OPENSRC_BIN_ENV]?.trim();
|
|
73816
73821
|
if (override)
|
|
73817
73822
|
return override;
|
|
73818
|
-
const currentDir = path18.dirname(
|
|
73823
|
+
const currentDir = path18.dirname(fileURLToPath3(import.meta.url));
|
|
73819
73824
|
return path18.resolve(currentDir, "../../node_modules/opensrc/bin/opensrc.js");
|
|
73820
73825
|
}
|
|
73821
73826
|
function getOpenSrcEnv() {
|
|
@@ -93799,9 +93804,9 @@ var taskBarStore = createStore({
|
|
|
93799
93804
|
// ../ggcoder/dist/utils/sound.js
|
|
93800
93805
|
init_esm_shims();
|
|
93801
93806
|
import { execFile as execFile2 } from "child_process";
|
|
93802
|
-
import { fileURLToPath as
|
|
93807
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
93803
93808
|
import { resolve, dirname } from "path";
|
|
93804
|
-
var __dirname2 = dirname(
|
|
93809
|
+
var __dirname2 = dirname(fileURLToPath4(import.meta.url));
|
|
93805
93810
|
var notificationPath = resolve(__dirname2, "../../assets/end-notification.mp3");
|
|
93806
93811
|
|
|
93807
93812
|
// ../ggcoder/dist/ui/hooks/useAgentLoop.js
|
|
@@ -110428,7 +110433,7 @@ function TaskPickerMenu({ tasks, selectedIndex, width }) {
|
|
|
110428
110433
|
// ../ggcoder/dist/ui/components/InputArea.js
|
|
110429
110434
|
import { homedir as homedir2 } from "os";
|
|
110430
110435
|
import { join as join2 } from "path";
|
|
110431
|
-
import { readFileSync as readFileSync4, writeFileSync as writeFileSync3, appendFileSync, mkdirSync as mkdirSync2, renameSync, unlinkSync, existsSync as
|
|
110436
|
+
import { readFileSync as readFileSync4, writeFileSync as writeFileSync3, appendFileSync, mkdirSync as mkdirSync2, renameSync, unlinkSync, existsSync as existsSync4 } from "fs";
|
|
110432
110437
|
var MAX_VISIBLE_LINES = 12;
|
|
110433
110438
|
var PROMPT = "> ";
|
|
110434
110439
|
var PLACEHOLDER = " Type your message or / to run a command";
|
|
@@ -110568,7 +110573,7 @@ function compactHistory2() {
|
|
|
110568
110573
|
lineCountEstimate = trimmed.length;
|
|
110569
110574
|
} catch {
|
|
110570
110575
|
try {
|
|
110571
|
-
if (
|
|
110576
|
+
if (existsSync4(tempPath))
|
|
110572
110577
|
unlinkSync(tempPath);
|
|
110573
110578
|
} catch {
|
|
110574
110579
|
}
|
|
@@ -111680,7 +111685,7 @@ var import_react67 = __toESM(require_react(), 1);
|
|
|
111680
111685
|
|
|
111681
111686
|
// ../ggcoder/dist/ui/pixel.js
|
|
111682
111687
|
init_esm_shims();
|
|
111683
|
-
import { existsSync as
|
|
111688
|
+
import { existsSync as existsSync5, readFileSync as readFileSync6 } from "fs";
|
|
111684
111689
|
import { homedir as homedir3 } from "os";
|
|
111685
111690
|
import { join as join4 } from "path";
|
|
111686
111691
|
|
|
@@ -111689,9 +111694,9 @@ init_esm_shims();
|
|
|
111689
111694
|
import { execFile as execFile3 } from "child_process";
|
|
111690
111695
|
import { readFileSync as readFileSync5 } from "fs";
|
|
111691
111696
|
import { dirname as dirname2, join as join3 } from "path";
|
|
111692
|
-
import { fileURLToPath as
|
|
111697
|
+
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
111693
111698
|
function resolveCliVersion() {
|
|
111694
|
-
let dir = dirname2(
|
|
111699
|
+
let dir = dirname2(fileURLToPath5(import.meta.url));
|
|
111695
111700
|
for (let i = 0; i < 6; i++) {
|
|
111696
111701
|
try {
|
|
111697
111702
|
const manifest = JSON.parse(readFileSync5(join3(dir, "package.json"), "utf8"));
|
|
@@ -115138,7 +115143,7 @@ function createTaskTools(deps) {
|
|
|
115138
115143
|
// src/audio.ts
|
|
115139
115144
|
init_esm_shims();
|
|
115140
115145
|
import { spawn as spawn8, execFileSync as execFileSync4 } from "child_process";
|
|
115141
|
-
import { fileURLToPath as
|
|
115146
|
+
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
115142
115147
|
import path44 from "path";
|
|
115143
115148
|
import fs37 from "fs";
|
|
115144
115149
|
function readMp3DurationMs(file2) {
|
|
@@ -115200,7 +115205,7 @@ function getSplashAudioDurationMs() {
|
|
|
115200
115205
|
return ms && ms > 0 ? ms : 1500;
|
|
115201
115206
|
}
|
|
115202
115207
|
function assetPath(name) {
|
|
115203
|
-
const here = path44.dirname(
|
|
115208
|
+
const here = path44.dirname(fileURLToPath6(import.meta.url));
|
|
115204
115209
|
const dist = path44.join(here, name);
|
|
115205
115210
|
if (fs37.existsSync(dist)) return dist;
|
|
115206
115211
|
return path44.join(here, "..", "assets", name);
|
|
@@ -115247,7 +115252,7 @@ function isWsl() {
|
|
|
115247
115252
|
}
|
|
115248
115253
|
async function tryPlayOnWindowsHost(file2) {
|
|
115249
115254
|
try {
|
|
115250
|
-
const here = path44.dirname(
|
|
115255
|
+
const here = path44.dirname(fileURLToPath6(import.meta.url));
|
|
115251
115256
|
const devAssets = path44.resolve(here, "..", "assets");
|
|
115252
115257
|
const resolved = path44.resolve(file2);
|
|
115253
115258
|
const inDist = resolved === here || resolved.startsWith(here + path44.sep);
|
|
@@ -116467,4 +116472,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
116467
116472
|
* LICENSE file in the root directory of this source tree.
|
|
116468
116473
|
*)
|
|
116469
116474
|
*/
|
|
116470
|
-
//# sourceMappingURL=chunk-
|
|
116475
|
+
//# sourceMappingURL=chunk-MFM536F4.js.map
|