pullfrog 0.1.50 → 0.1.51
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 +7 -6
- package/dist/index.js +6 -5
- package/dist/utils/activity.d.ts +8 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -102482,7 +102482,7 @@ function hasSimilarIssues(params) {
|
|
|
102482
102482
|
|
|
102483
102483
|
// utils/activity.ts
|
|
102484
102484
|
import { performance as performance2 } from "node:perf_hooks";
|
|
102485
|
-
function
|
|
102485
|
+
function isDebugEnabled() {
|
|
102486
102486
|
return process.env.ACTIONS_STEP_DEBUG === "true" || process.env.RUNNER_DEBUG === "1" || process.env.LOG_LEVEL === "debug";
|
|
102487
102487
|
}
|
|
102488
102488
|
var DEFAULT_ACTIVITY_TIMEOUT_MS = 3e5;
|
|
@@ -102531,7 +102531,7 @@ function startProcessOutputMonitor(ctx) {
|
|
|
102531
102531
|
process.stdout.write = wrapWrite(originalStdoutWrite, markActivity);
|
|
102532
102532
|
process.stderr.write = wrapWrite(originalStderrWrite, markActivity);
|
|
102533
102533
|
const debugBypass = (msg) => {
|
|
102534
|
-
if (!
|
|
102534
|
+
if (!isDebugEnabled()) return;
|
|
102535
102535
|
originalStdoutWrite(`[${(/* @__PURE__ */ new Date()).toISOString()}] [DEBUG] ${msg}
|
|
102536
102536
|
`);
|
|
102537
102537
|
};
|
|
@@ -102740,7 +102740,6 @@ function prefixPlain(name) {
|
|
|
102740
102740
|
}
|
|
102741
102741
|
var isRunnerDebugEnabled = () => core.isDebug();
|
|
102742
102742
|
var isLocalDebugEnabled = () => process.env.LOG_LEVEL === "debug" || process.env.ACTIONS_STEP_DEBUG === "true";
|
|
102743
|
-
var isDebugEnabled = () => isLocalDebugEnabled() || isRunnerDebugEnabled();
|
|
102744
102743
|
function ts() {
|
|
102745
102744
|
return isDebugEnabled() ? `[${(/* @__PURE__ */ new Date()).toISOString()}] ` : "";
|
|
102746
102745
|
}
|
|
@@ -103181,7 +103180,7 @@ var import_semver = __toESM(require_semver2(), 1);
|
|
|
103181
103180
|
// package.json
|
|
103182
103181
|
var package_default = {
|
|
103183
103182
|
name: "pullfrog",
|
|
103184
|
-
version: "0.1.
|
|
103183
|
+
version: "0.1.51",
|
|
103185
103184
|
type: "module",
|
|
103186
103185
|
bin: {
|
|
103187
103186
|
pullfrog: "dist/cli.mjs",
|
|
@@ -111127,9 +111126,11 @@ function parseModel2(value2) {
|
|
|
111127
111126
|
return { providerID: value2.slice(0, slash), modelID: value2.slice(slash + 1) };
|
|
111128
111127
|
}
|
|
111129
111128
|
function bootOpencodeServer(params) {
|
|
111129
|
+
const logLevel = isDebugEnabled() ? "INFO" : "ERROR";
|
|
111130
|
+
if (logLevel !== "ERROR") log.info(`\xBB opencode log level: ${logLevel} (debug run)`);
|
|
111130
111131
|
const proc = nodeSpawn2(
|
|
111131
111132
|
params.cliPath,
|
|
111132
|
-
["serve", "--port", "0", "--hostname", "127.0.0.1", "--print-logs", "--log-level",
|
|
111133
|
+
["serve", "--port", "0", "--hostname", "127.0.0.1", "--print-logs", "--log-level", logLevel],
|
|
111133
111134
|
{
|
|
111134
111135
|
cwd: params.cwd,
|
|
111135
111136
|
env: params.env,
|
|
@@ -169717,7 +169718,7 @@ async function runCli4(input) {
|
|
|
169717
169718
|
}
|
|
169718
169719
|
|
|
169719
169720
|
// cli.ts
|
|
169720
|
-
var VERSION10 = "0.1.
|
|
169721
|
+
var VERSION10 = "0.1.51";
|
|
169721
169722
|
var bin = basename2(process.argv[1] || "");
|
|
169722
169723
|
var PROG = bin === "pf" || bin === "pullfrog" ? bin : "pullfrog";
|
|
169723
169724
|
var rawArgs = process.argv.slice(2);
|
package/dist/index.js
CHANGED
|
@@ -100547,7 +100547,7 @@ function hasSimilarIssues(params) {
|
|
|
100547
100547
|
|
|
100548
100548
|
// utils/activity.ts
|
|
100549
100549
|
import { performance as performance2 } from "node:perf_hooks";
|
|
100550
|
-
function
|
|
100550
|
+
function isDebugEnabled() {
|
|
100551
100551
|
return process.env.ACTIONS_STEP_DEBUG === "true" || process.env.RUNNER_DEBUG === "1" || process.env.LOG_LEVEL === "debug";
|
|
100552
100552
|
}
|
|
100553
100553
|
var DEFAULT_ACTIVITY_TIMEOUT_MS = 3e5;
|
|
@@ -100596,7 +100596,7 @@ function startProcessOutputMonitor(ctx) {
|
|
|
100596
100596
|
process.stdout.write = wrapWrite(originalStdoutWrite, markActivity);
|
|
100597
100597
|
process.stderr.write = wrapWrite(originalStderrWrite, markActivity);
|
|
100598
100598
|
const debugBypass = (msg) => {
|
|
100599
|
-
if (!
|
|
100599
|
+
if (!isDebugEnabled()) return;
|
|
100600
100600
|
originalStdoutWrite(`[${(/* @__PURE__ */ new Date()).toISOString()}] [DEBUG] ${msg}
|
|
100601
100601
|
`);
|
|
100602
100602
|
};
|
|
@@ -100805,7 +100805,6 @@ function prefixPlain(name) {
|
|
|
100805
100805
|
}
|
|
100806
100806
|
var isRunnerDebugEnabled = () => core.isDebug();
|
|
100807
100807
|
var isLocalDebugEnabled = () => process.env.LOG_LEVEL === "debug" || process.env.ACTIONS_STEP_DEBUG === "true";
|
|
100808
|
-
var isDebugEnabled = () => isLocalDebugEnabled() || isRunnerDebugEnabled();
|
|
100809
100808
|
function ts() {
|
|
100810
100809
|
return isDebugEnabled() ? `[${(/* @__PURE__ */ new Date()).toISOString()}] ` : "";
|
|
100811
100810
|
}
|
|
@@ -101246,7 +101245,7 @@ var import_semver = __toESM(require_semver2(), 1);
|
|
|
101246
101245
|
// package.json
|
|
101247
101246
|
var package_default = {
|
|
101248
101247
|
name: "pullfrog",
|
|
101249
|
-
version: "0.1.
|
|
101248
|
+
version: "0.1.51",
|
|
101250
101249
|
type: "module",
|
|
101251
101250
|
bin: {
|
|
101252
101251
|
pullfrog: "dist/cli.mjs",
|
|
@@ -109234,9 +109233,11 @@ function parseModel2(value2) {
|
|
|
109234
109233
|
return { providerID: value2.slice(0, slash), modelID: value2.slice(slash + 1) };
|
|
109235
109234
|
}
|
|
109236
109235
|
function bootOpencodeServer(params) {
|
|
109236
|
+
const logLevel = isDebugEnabled() ? "INFO" : "ERROR";
|
|
109237
|
+
if (logLevel !== "ERROR") log.info(`\xBB opencode log level: ${logLevel} (debug run)`);
|
|
109237
109238
|
const proc = nodeSpawn2(
|
|
109238
109239
|
params.cliPath,
|
|
109239
|
-
["serve", "--port", "0", "--hostname", "127.0.0.1", "--print-logs", "--log-level",
|
|
109240
|
+
["serve", "--port", "0", "--hostname", "127.0.0.1", "--print-logs", "--log-level", logLevel],
|
|
109240
109241
|
{
|
|
109241
109242
|
cwd: params.cwd,
|
|
109242
109243
|
env: params.env,
|
package/dist/utils/activity.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* whether the operator asked for debug output — GitHub's own "re-run with debug
|
|
3
|
+
* logging" (`RUNNER_DEBUG=1`), the `ACTIONS_STEP_DEBUG=true` repo secret, or a
|
|
4
|
+
* local `LOG_LEVEL=debug`. lives here rather than in `log.ts` because this
|
|
5
|
+
* module imports only `node:perf_hooks`, so every other util can depend on it
|
|
6
|
+
* without a cycle. one switch raises every diagnostic we own.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isDebugEnabled(): boolean;
|
|
1
9
|
/**
|
|
2
10
|
* generic `spawn()` idle default for ordinary short-lived subprocesses (prep
|
|
3
11
|
* probes, package-manager invocations, dependency installs). these should be
|