refactor instructions to return object with full/system/user/event/runtime properties, fix duplicate modes and json prompt extraction (#110)
This commit is contained in:
committed by
pullfrog[bot]
parent
410b11db71
commit
cb925556e8
+3
-1
@@ -108,7 +108,9 @@ export function resolvePayload(repoSettings: RepoSettings) {
|
||||
return {
|
||||
"~pullfrog": true as const,
|
||||
agent: resolvedAgent,
|
||||
prompt: inputs.prompt ?? jsonPayload?.prompt,
|
||||
// inverted: jsonPayload.prompt extracts the text from the JSON payload,
|
||||
// whereas inputs.prompt IS the raw JSON string when internally dispatched
|
||||
prompt: jsonPayload?.prompt ?? inputs.prompt,
|
||||
event,
|
||||
effort: inputs.effort ?? jsonPayload?.effort ?? "auto",
|
||||
cwd: resolveCwd(inputs.cwd),
|
||||
|
||||
Reference in New Issue
Block a user