Fix repo slug
This commit is contained in:
committed by
pullfrog[bot]
parent
5604cf1868
commit
3fa309853b
@@ -74360,12 +74360,11 @@ var init_index_CLFto6T2 = __esm({
|
||||
|
||||
// entry.ts
|
||||
var core4 = __toESM(require_core(), 1);
|
||||
import { resolve, isAbsolute } from "path";
|
||||
|
||||
// main.ts
|
||||
import { mkdtemp as mkdtemp2 } from "node:fs/promises";
|
||||
import { tmpdir as tmpdir2 } from "node:os";
|
||||
import { join as join13 } from "node:path";
|
||||
import { isAbsolute, join as join13, resolve } from "node:path";
|
||||
|
||||
// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/arrays.js
|
||||
var append = (to, value2, opts) => {
|
||||
@@ -99967,7 +99966,7 @@ function query({
|
||||
|
||||
// package.json
|
||||
var package_default = {
|
||||
name: "@pullfrog/action",
|
||||
name: "@pullfrog/pullfrog",
|
||||
version: "0.0.157",
|
||||
type: "module",
|
||||
files: [
|
||||
@@ -100020,15 +100019,15 @@ var package_default = {
|
||||
},
|
||||
repository: {
|
||||
type: "git",
|
||||
url: "git+https://github.com/pullfrog/action.git"
|
||||
url: "git+https://github.com/pullfrog/pullfrog.git"
|
||||
},
|
||||
keywords: [],
|
||||
author: "",
|
||||
license: "MIT",
|
||||
bugs: {
|
||||
url: "https://github.com/pullfrog/action/issues"
|
||||
url: "https://github.com/pullfrog/pullfrog/issues"
|
||||
},
|
||||
homepage: "https://github.com/pullfrog/action#readme",
|
||||
homepage: "https://github.com/pullfrog/pullfrog#readme",
|
||||
zshy: {
|
||||
exports: "./index.ts"
|
||||
},
|
||||
@@ -100346,6 +100345,11 @@ var AgentName = type.enumerated(...Object.keys(agentsManifest));
|
||||
var Effort = type.enumerated("nothink", "think", "max");
|
||||
|
||||
// modes.ts
|
||||
var ModeSchema = type({
|
||||
name: "string",
|
||||
description: "string",
|
||||
prompt: "string"
|
||||
});
|
||||
var reportProgressInstruction = `Use ${ghPullfrogMcpName}/report_progress to share progress and results. Continue calling it as you make progress - it will update the same comment. Never create additional comments manually.`;
|
||||
var dependencyInstallationGuidance = `## Dependency Installation
|
||||
|
||||
@@ -138403,11 +138407,28 @@ var Timer = class {
|
||||
// main.ts
|
||||
var Inputs = type({
|
||||
prompt: "string",
|
||||
"effort?": Effort
|
||||
"effort?": Effort,
|
||||
"agent?": AgentName.or("null"),
|
||||
"event?": "object",
|
||||
"modes?": ModeSchema.array(),
|
||||
"sandbox?": "boolean",
|
||||
"disableProgressComment?": "true",
|
||||
"comment_id?": "number|null",
|
||||
"issue_id?": "number|null",
|
||||
"pr_id?": "number|null",
|
||||
"cwd?": "string"
|
||||
});
|
||||
async function main(inputs) {
|
||||
var _stack2 = [];
|
||||
try {
|
||||
let cwd2 = inputs.cwd || process.env.GITHUB_WORKSPACE;
|
||||
if (inputs.cwd && !isAbsolute(inputs.cwd) && process.env.GITHUB_WORKSPACE) {
|
||||
cwd2 = resolve(process.env.GITHUB_WORKSPACE, inputs.cwd);
|
||||
}
|
||||
if (cwd2 && process.cwd() !== cwd2) {
|
||||
log.debug(`changing to working directory: ${cwd2}`);
|
||||
process.chdir(cwd2);
|
||||
}
|
||||
const timer = new Timer();
|
||||
const tokenRef = __using(_stack2, await setupGitHubInstallationToken(), true);
|
||||
let payload;
|
||||
@@ -138592,7 +138613,7 @@ To fix this, add the required secret to your GitHub repository:
|
||||
Alternatively, configure Pullfrog to use a different agent at ${settingsUrl}`;
|
||||
}
|
||||
async function initializeGitHub(token) {
|
||||
log.info(`\u{1F438} Running pullfrog/action@${package_default.version}...`);
|
||||
log.info(`\u{1F438} Running pullfrog/pullfrog@${package_default.version}...`);
|
||||
const { owner, name } = parseRepoContext();
|
||||
const octokit = createOctokit(token);
|
||||
const [repoResponse, repoSettings] = await Promise.all([
|
||||
@@ -138650,6 +138671,22 @@ async function createTempDirectory() {
|
||||
return sharedTempDir;
|
||||
}
|
||||
function parsePayload(inputs) {
|
||||
const agent2 = inputs.agent === void 0 || inputs.agent === "null" ? null : inputs.agent;
|
||||
if (inputs.event) {
|
||||
return {
|
||||
"~pullfrog": true,
|
||||
agent: agent2,
|
||||
prompt: inputs.prompt,
|
||||
event: inputs.event,
|
||||
modes: inputs.modes ?? modes,
|
||||
effort: inputs.effort ?? "think",
|
||||
sandbox: inputs.sandbox,
|
||||
disableProgressComment: inputs.disableProgressComment,
|
||||
comment_id: inputs.comment_id,
|
||||
issue_id: inputs.issue_id,
|
||||
pr_id: inputs.pr_id
|
||||
};
|
||||
}
|
||||
try {
|
||||
const parsedPrompt = JSON.parse(inputs.prompt);
|
||||
if (!("~pullfrog" in parsedPrompt)) {
|
||||
@@ -138662,13 +138699,14 @@ function parsePayload(inputs) {
|
||||
} catch {
|
||||
return {
|
||||
"~pullfrog": true,
|
||||
agent: null,
|
||||
agent: agent2,
|
||||
prompt: inputs.prompt,
|
||||
event: {
|
||||
trigger: "unknown"
|
||||
},
|
||||
modes,
|
||||
effort: inputs.effort ?? "think"
|
||||
modes: inputs.modes ?? modes,
|
||||
effort: inputs.effort ?? "think",
|
||||
sandbox: inputs.sandbox
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -138754,19 +138792,11 @@ async function handleAgentResult(result) {
|
||||
|
||||
// entry.ts
|
||||
async function run() {
|
||||
const cwdInput = core4.getInput("cwd");
|
||||
let cwd2 = cwdInput || process.env.GITHUB_WORKSPACE;
|
||||
if (cwdInput && !isAbsolute(cwdInput) && process.env.GITHUB_WORKSPACE) {
|
||||
cwd2 = resolve(process.env.GITHUB_WORKSPACE, cwdInput);
|
||||
}
|
||||
if (cwd2 && process.cwd() !== cwd2) {
|
||||
log.debug(`changing to working directory: ${cwd2}`);
|
||||
process.chdir(cwd2);
|
||||
}
|
||||
try {
|
||||
const inputs = Inputs.assert({
|
||||
prompt: core4.getInput("prompt", { required: true }),
|
||||
effort: core4.getInput("effort") || "think"
|
||||
effort: core4.getInput("effort") || "think",
|
||||
cwd: core4.getInput("cwd") || void 0
|
||||
});
|
||||
const result = await main(inputs);
|
||||
if (!result.success) {
|
||||
|
||||
Reference in New Issue
Block a user