pullfrog 0.1.73 → 0.1.74

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/dist/cli.mjs CHANGED
@@ -123000,7 +123000,7 @@ var import_picocolors = __toESM(require_picocolors(), 1);
123000
123000
  // package.json
123001
123001
  var package_default = {
123002
123002
  name: "pullfrog",
123003
- version: "0.1.73",
123003
+ version: "0.1.74",
123004
123004
  cliContractVersion: "1",
123005
123005
  type: "module",
123006
123006
  bin: {
@@ -212837,12 +212837,14 @@ async function runSandboxed(params) {
212837
212837
  cwd: params.cwd,
212838
212838
  stdio: ["ignore", "pipe", "pipe"]
212839
212839
  });
212840
- let stdout2 = "", stderr = "", timedOut = false, exited = false, spawnError = "";
212840
+ const stdout2 = new TailBuffer(DEFAULT_MAX_RETAINED_BYTES);
212841
+ const stderr = new TailBuffer(DEFAULT_MAX_RETAINED_BYTES);
212842
+ let timedOut = false, exited = false, spawnError = "";
212841
212843
  proc.stdout?.on("data", (chunk) => {
212842
- stdout2 += chunk.toString();
212844
+ stdout2.append(chunk.toString());
212843
212845
  });
212844
212846
  proc.stderr?.on("data", (chunk) => {
212845
- stderr += chunk.toString();
212847
+ stderr.append(chunk.toString());
212846
212848
  });
212847
212849
  const timeoutId = setTimeout(async () => {
212848
212850
  if (!exited) {
@@ -212864,8 +212866,10 @@ async function runSandboxed(params) {
212864
212866
  });
212865
212867
  proc.stdout?.destroy();
212866
212868
  proc.stderr?.destroy();
212867
- let output2 = stderr ? stdout2 ? `${stdout2}
212868
- ${stderr}` : stderr : stdout2;
212869
+ const outText = stdout2.toString();
212870
+ const errText = stderr.toString();
212871
+ let output2 = errText ? outText ? `${outText}
212872
+ ${errText}` : errText : outText;
212869
212873
  if (spawnError) output2 = output2 ? `${output2}
212870
212874
  ${spawnError}` : spawnError;
212871
212875
  if (timedOut)
@@ -212882,7 +212886,7 @@ function capOutput(output2) {
212882
212886
  const fullPath = join21(getTempDir(), `shell-${randomUUID4().slice(0, 8)}.log`);
212883
212887
  writeFileSync13(fullPath, output2);
212884
212888
  const elided = output2.length - MAX_OUTPUT_CHARS;
212885
- return `... [${elided} chars truncated; full output saved to ${fullPath}] ...
212889
+ return `... [${elided} chars truncated; output saved to ${fullPath}] ...
212886
212890
  ${output2.slice(-MAX_OUTPUT_CHARS)}`;
212887
212891
  }
212888
212892
  function isGitCommand(command) {
@@ -212904,7 +212908,7 @@ Use this tool to:
212904
212908
  - Execute build tools (npm, pnpm, cargo, make, etc.)
212905
212909
  - Run tests and linters
212906
212910
 
212907
- Output is capped at ${MAX_OUTPUT_CHARS} chars: if exceeded, only the tail is returned and the full body is saved to a tempfile (path included in the response). Re-read the tempfile with cat/tail/grep when you need more.
212911
+ Output is capped at ${MAX_OUTPUT_CHARS} chars: if exceeded, only the tail is returned and the captured output is saved to a tempfile (path included in the response). Re-read the tempfile with cat/tail/grep when you need more.
212908
212912
 
212909
212913
  Do NOT use this tool for git commands \u2014 use the dedicated git tools instead.`,
212910
212914
  parameters: ShellParams,
@@ -219684,7 +219688,7 @@ function resolveTarget2(repo) {
219684
219688
  return { owner: match3[1], repo: match3[2] };
219685
219689
  }
219686
219690
  function cliVersion() {
219687
- const parts = /^(\d+)\.(\d+)\.(\d+)$/.exec("0.1.73");
219691
+ const parts = /^(\d+)\.(\d+)\.(\d+)$/.exec("0.1.74");
219688
219692
  if (!parts) return "0.0.0";
219689
219693
  return `${Number(parts[1])}.${Number(parts[2])}.${Number(parts[3])}`;
219690
219694
  }
@@ -219851,7 +219855,7 @@ async function runCli8(input2) {
219851
219855
  }
219852
219856
 
219853
219857
  // cli.ts
219854
- var VERSION10 = "0.1.73";
219858
+ var VERSION10 = "0.1.74";
219855
219859
  var bin = basename2(process.argv[1] || "");
219856
219860
  var PROG = bin === "pf" || bin === "pullfrog" ? bin : "pullfrog";
219857
219861
  var rawArgs = process.argv.slice(2);
package/dist/index.js CHANGED
@@ -109795,7 +109795,7 @@ var import_semver = __toESM(require_semver2(), 1);
109795
109795
  // package.json
109796
109796
  var package_default = {
109797
109797
  name: "pullfrog",
109798
- version: "0.1.73",
109798
+ version: "0.1.74",
109799
109799
  cliContractVersion: "1",
109800
109800
  type: "module",
109801
109801
  bin: {
@@ -195711,12 +195711,14 @@ async function runSandboxed(params) {
195711
195711
  cwd: params.cwd,
195712
195712
  stdio: ["ignore", "pipe", "pipe"]
195713
195713
  });
195714
- let stdout = "", stderr = "", timedOut = false, exited = false, spawnError = "";
195714
+ const stdout = new TailBuffer(DEFAULT_MAX_RETAINED_BYTES);
195715
+ const stderr = new TailBuffer(DEFAULT_MAX_RETAINED_BYTES);
195716
+ let timedOut = false, exited = false, spawnError = "";
195715
195717
  proc.stdout?.on("data", (chunk) => {
195716
- stdout += chunk.toString();
195718
+ stdout.append(chunk.toString());
195717
195719
  });
195718
195720
  proc.stderr?.on("data", (chunk) => {
195719
- stderr += chunk.toString();
195721
+ stderr.append(chunk.toString());
195720
195722
  });
195721
195723
  const timeoutId = setTimeout(async () => {
195722
195724
  if (!exited) {
@@ -195738,8 +195740,10 @@ async function runSandboxed(params) {
195738
195740
  });
195739
195741
  proc.stdout?.destroy();
195740
195742
  proc.stderr?.destroy();
195741
- let output2 = stderr ? stdout ? `${stdout}
195742
- ${stderr}` : stderr : stdout;
195743
+ const outText = stdout.toString();
195744
+ const errText = stderr.toString();
195745
+ let output2 = errText ? outText ? `${outText}
195746
+ ${errText}` : errText : outText;
195743
195747
  if (spawnError) output2 = output2 ? `${output2}
195744
195748
  ${spawnError}` : spawnError;
195745
195749
  if (timedOut)
@@ -195756,7 +195760,7 @@ function capOutput(output2) {
195756
195760
  const fullPath = join20(getTempDir(), `shell-${randomUUID4().slice(0, 8)}.log`);
195757
195761
  writeFileSync12(fullPath, output2);
195758
195762
  const elided = output2.length - MAX_OUTPUT_CHARS;
195759
- return `... [${elided} chars truncated; full output saved to ${fullPath}] ...
195763
+ return `... [${elided} chars truncated; output saved to ${fullPath}] ...
195760
195764
  ${output2.slice(-MAX_OUTPUT_CHARS)}`;
195761
195765
  }
195762
195766
  function isGitCommand(command) {
@@ -195778,7 +195782,7 @@ Use this tool to:
195778
195782
  - Execute build tools (npm, pnpm, cargo, make, etc.)
195779
195783
  - Run tests and linters
195780
195784
 
195781
- Output is capped at ${MAX_OUTPUT_CHARS} chars: if exceeded, only the tail is returned and the full body is saved to a tempfile (path included in the response). Re-read the tempfile with cat/tail/grep when you need more.
195785
+ Output is capped at ${MAX_OUTPUT_CHARS} chars: if exceeded, only the tail is returned and the captured output is saved to a tempfile (path included in the response). Re-read the tempfile with cat/tail/grep when you need more.
195782
195786
 
195783
195787
  Do NOT use this tool for git commands \u2014 use the dedicated git tools instead.`,
195784
195788
  parameters: ShellParams,
package/dist/internal.js CHANGED
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "pullfrog",
11
- version: "0.1.73",
11
+ version: "0.1.74",
12
12
  cliContractVersion: "1",
13
13
  type: "module",
14
14
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pullfrog",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "cliContractVersion": "1",
5
5
  "type": "module",
6
6
  "bin": {