Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom prompt runners via GitHub refs #26

Merged
merged 15 commits into from
Jun 14, 2024
Merged

Custom prompt runners via GitHub refs #26

merged 15 commits into from
Jun 14, 2024

Conversation

ColinMcNeil
Copy link
Collaborator

No description provided.

Copy link
Contributor

@slimslenderslacks slimslenderslacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to tighten up the error handling.

src/commands/generateRunbook.ts Outdated Show resolved Hide resolved
src/commands/generateRunbook.ts Show resolved Hide resolved
src/commands/generateRunbook.ts Show resolved Hide resolved
return JSON.parse(result.stdout.toString());
}
catch (e) {
throw new Error(`Expected JSON from ${promptImage}, got STDOUT: ${result.stdout.toString()} STDERR: ${result.stderr.toString()} ERR: ${(result.error || "N/A").toString()}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to above. Our prompts engine might fail but it should never write non application/json data to stdout.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it hurt to spit these out just in case?

src/utils/preparePrompt.ts Show resolved Hide resolved
Copy link
Contributor

@slimslenderslacks slimslenderslacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure we still support empty paths in github refs for runbook file names

src/commands/manageSavedPrompts.ts Show resolved Hide resolved
src/utils/runbookFilename.ts Outdated Show resolved Hide resolved
@ColinMcNeil ColinMcNeil merged commit 4176f7c into main Jun 14, 2024
1 check passed
@ColinMcNeil ColinMcNeil deleted the cm/custom-prompt branch June 14, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants