Support user-specified runtime via args.runtime parameter - #16
Merged
Conversation
* Initial plan * feat: prioritize args.runtime when provided by user Co-authored-by: DevDengChao <16363180+DevDengChao@users.noreply.github.com> * docs: update runtime example to custom.debian11 Co-authored-by: DevDengChao <16363180+DevDengChao@users.noreply.github.com> * test: improve test name clarity for runtime priority test Co-authored-by: DevDengChao <16363180+DevDengChao@users.noreply.github.com> * revert: restore $index placeholder in src/code/index.js Co-authored-by: DevDengChao <16363180+DevDengChao@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DevDengChao <16363180+DevDengChao@users.noreply.github.com>
Signed-off-by: DevDengChao <2325690622@qq.com>
DevDengChao
force-pushed
the
feat/args-runtime
branch
from
February 10, 2026 03:44
e64bdf7 to
d45bf89
Compare
Signed-off-by: DevDengChao <2325690622@qq.com>
Signed-off-by: DevDengChao <2325690622@qq.com>
Signed-off-by: DevDengChao <2325690622@qq.com>
Contributor
Author
|
fix: #12 |
Signed-off-by: DevDengChao <2325690622@qq.com>
Contributor
Author
|
fix: #13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for customizing the function runtime, improves error handling, and updates tests and documentation to reflect these changes.
Now, users can specify a custom runtime via the
runtimeparameter, and the code will throw an explicit error if the requiredcodeproperty is missing. The tests and documentation have been updated accordingly.Custom Runtime Support
runtimeparameter, allowing users to specify a custom function runtime (e.g.,custom.debian11) instead of the defaultcustomruntime insrc/index.js. The plugin now prioritizes the user-provided runtime if specified.readme.md) to explain the newruntimeparameter and provide usage examples. [1] [2]Error Handling Improvements
props.codeis missing, improving clarity for users.Testing Enhancements
test/index.spec.jsto cover the new error handling and custom runtime logic. This includes a new test to verify that the user-provided runtime is prioritized. [1] [2]Development Dependencies
fs-extra,jest, andnodetopackage.jsonto improve type safety and developer experience.