Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d525fc21be |
@@ -51,12 +51,7 @@ export const agent = (input: Agent): Agent => {
|
|||||||
return {
|
return {
|
||||||
...input,
|
...input,
|
||||||
run: async (ctx: AgentRunContext): Promise<AgentResult> => {
|
run: async (ctx: AgentRunContext): Promise<AgentResult> => {
|
||||||
if (ctx.payload.model) log.info(`» model: ${ctx.payload.model}`);
|
|
||||||
if (ctx.payload.timeout) log.info(`» timeout: ${ctx.payload.timeout}`);
|
|
||||||
log.info(`» push: ${ctx.payload.push}`);
|
|
||||||
log.info(`» shell: ${ctx.payload.shell}`);
|
|
||||||
log.debug(`» payload: ${JSON.stringify(ctx.payload, null, 2)}`);
|
log.debug(`» payload: ${JSON.stringify(ctx.payload, null, 2)}`);
|
||||||
|
|
||||||
return input.run(ctx);
|
return input.run(ctx);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -144706,7 +144706,7 @@ var import_semver = __toESM(require_semver2(), 1);
|
|||||||
// package.json
|
// package.json
|
||||||
var package_default = {
|
var package_default = {
|
||||||
name: "@pullfrog/pullfrog",
|
name: "@pullfrog/pullfrog",
|
||||||
version: "0.0.190",
|
version: "0.0.191",
|
||||||
type: "module",
|
type: "module",
|
||||||
files: [
|
files: [
|
||||||
"index.js",
|
"index.js",
|
||||||
@@ -149171,10 +149171,6 @@ var agent = (input) => {
|
|||||||
return {
|
return {
|
||||||
...input,
|
...input,
|
||||||
run: async (ctx) => {
|
run: async (ctx) => {
|
||||||
if (ctx.payload.model) log.info(`\xBB model: ${ctx.payload.model}`);
|
|
||||||
if (ctx.payload.timeout) log.info(`\xBB timeout: ${ctx.payload.timeout}`);
|
|
||||||
log.info(`\xBB push: ${ctx.payload.push}`);
|
|
||||||
log.info(`\xBB shell: ${ctx.payload.shell}`);
|
|
||||||
log.debug(`\xBB payload: ${JSON.stringify(ctx.payload, null, 2)}`);
|
log.debug(`\xBB payload: ${JSON.stringify(ctx.payload, null, 2)}`);
|
||||||
return input.run(ctx);
|
return input.run(ctx);
|
||||||
}
|
}
|
||||||
@@ -151361,6 +151357,10 @@ async function main() {
|
|||||||
toolContext.mcpServerUrl = mcpHttpServer.url;
|
toolContext.mcpServerUrl = mcpHttpServer.url;
|
||||||
log.info(`\xBB MCP server started at ${mcpHttpServer.url}`);
|
log.info(`\xBB MCP server started at ${mcpHttpServer.url}`);
|
||||||
timer.checkpoint("mcpServer");
|
timer.checkpoint("mcpServer");
|
||||||
|
if (payload.model) log.info(`\xBB model: ${payload.model}`);
|
||||||
|
if (payload.timeout) log.info(`\xBB timeout: ${payload.timeout}`);
|
||||||
|
log.info(`\xBB push: ${payload.push}`);
|
||||||
|
log.info(`\xBB shell: ${payload.shell}`);
|
||||||
const instructions = resolveInstructions({
|
const instructions = resolveInstructions({
|
||||||
payload,
|
payload,
|
||||||
repo: runContext.repo,
|
repo: runContext.repo,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export {
|
|||||||
modelAliases,
|
modelAliases,
|
||||||
parseModel,
|
parseModel,
|
||||||
providers,
|
providers,
|
||||||
|
resolveCliModel,
|
||||||
resolveModelSlug,
|
resolveModelSlug,
|
||||||
} from "../external.ts";
|
} from "../external.ts";
|
||||||
export type { Mode } from "../modes.ts";
|
export type { Mode } from "../modes.ts";
|
||||||
|
|||||||
@@ -305,6 +305,11 @@ export async function main(): Promise<MainResult> {
|
|||||||
log.info(`» MCP server started at ${mcpHttpServer.url}`);
|
log.info(`» MCP server started at ${mcpHttpServer.url}`);
|
||||||
timer.checkpoint("mcpServer");
|
timer.checkpoint("mcpServer");
|
||||||
|
|
||||||
|
if (payload.model) log.info(`» model: ${payload.model}`);
|
||||||
|
if (payload.timeout) log.info(`» timeout: ${payload.timeout}`);
|
||||||
|
log.info(`» push: ${payload.push}`);
|
||||||
|
log.info(`» shell: ${payload.shell}`);
|
||||||
|
|
||||||
const instructions = resolveInstructions({
|
const instructions = resolveInstructions({
|
||||||
payload,
|
payload,
|
||||||
repo: runContext.repo,
|
repo: runContext.repo,
|
||||||
@@ -312,7 +317,6 @@ export async function main(): Promise<MainResult> {
|
|||||||
outputSchema,
|
outputSchema,
|
||||||
learnings: runContext.repoSettings.learnings,
|
learnings: runContext.repoSettings.learnings,
|
||||||
});
|
});
|
||||||
// log instructions as soon as they are fully resolved
|
|
||||||
const logParts = [
|
const logParts = [
|
||||||
instructions.eventInstructions
|
instructions.eventInstructions
|
||||||
? `EVENT-LEVEL INSTRUCTIONS:\n${instructions.eventInstructions}`
|
? `EVENT-LEVEL INSTRUCTIONS:\n${instructions.eventInstructions}`
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pullfrog/pullfrog",
|
"name": "@pullfrog/pullfrog",
|
||||||
"version": "0.0.190",
|
"version": "0.0.191",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|||||||
@@ -41559,7 +41559,7 @@ var core3 = __toESM(require_core(), 1);
|
|||||||
// package.json
|
// package.json
|
||||||
var package_default = {
|
var package_default = {
|
||||||
name: "@pullfrog/pullfrog",
|
name: "@pullfrog/pullfrog",
|
||||||
version: "0.0.190",
|
version: "0.0.191",
|
||||||
type: "module",
|
type: "module",
|
||||||
files: [
|
files: [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user