-
Notifications
You must be signed in to change notification settings - Fork 135
feat(cli): implement yomo run --production
to skip compile step
#1093
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1093 +/- ##
==========================================
+ Coverage 48.10% 48.14% +0.03%
==========================================
Files 96 96
Lines 7253 7239 -14
==========================================
- Hits 3489 3485 -4
+ Misses 3562 3551 -11
- Partials 202 203 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
--production
option to yomo run
yomo run--production
to skip compile step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a production mode for the CLI to skip the build step and updates the file structure for the generated TypeScript LLM function build process. Key changes include:
- Commenting out the BuildAndRun function in the Go wrapper.
- Updating dependency versions in go.mod.
- Adding a new production flag in the CLI and adjusting file copy logic in the Node.js serverless build.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
pkg/wrapper/wrapper.go | Commented out the BuildAndRun function to skip the build step. |
go.mod | Updated versions for anthroic-sdk-go and go-openai. |
cli/serverless/serverless.go | Minor comment update with a TODO for inferring runtime from flags. |
cli/serverless/options.go | Added a new Production flag for production mode. |
cli/serverless/nodejs/serverless.go | Adjusted tsconfig paths for improved output directory configuration. |
cli/serverless/nodejs/runtime.go | Modified file copy and log statements to reflect updated file paths. |
cli/run.go | Implemented production mode logic to skip the build process. |
cli/cli.go | Updated comments in parseFileArg for clarity. |
Co-authored-by: Copilot <[email protected]>
yomo run--production
to skip compile stepyomo run --production
to skip compile step
1. fix bug: follow code dictionary structure when building typescript llm function
yomo build
generate dictionary structure:expected should be:
2. add
yomo run --production
featureyomo run --production
will skip build step, whileyomo run
won't.