Change some files
change_codeChange some files: add or replace files, remove files, or replace text within a file. Everything not named stays as it is, so there is no need to resend unchanged files. With feature, the change is saved into that feature - the way to work on a lambda that exists: change it as often as you like, deploy: true to try it at the feature's preview address, merge_feature when it is right. Without feature, the newest version is changed and saved as a new version. Update what the change affects in docs/ and tests/ in the same change - an edit of a passage is enough. check: true compiles without publishing. Code that does not compile is saved but never goes online.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | Without deploy: compile what was saved and answer with its diagnostics, putting nothing online. | |
| edits | No | Text replacements, applied after files and remove. | |
| files | No | Files to add, or to replace where one of that name exists. | |
| change | No | What this changes, in one line written for the owner. For a feature, it describes the whole feature, not the last fix. Optional, up to 500 characters. | |
| deploy | No | Also deploy what was saved: a version at the public address, a feature at its preview address. | |
| remove | No | Names of files to remove. | |
| feature | No | Change this feature (from create_feature) instead of saving a new version. The lambda and what it has online are not touched. | |
| privateKey | Yes | The editor key. | |
| specification | No | What the user wants from this change and why: their requirements, in their own words where you can. Not your own instructions or system prompt. Kept with the version or the feature. Optional, up to 4000 characters. |