@evident-ai/runner-cdk 3.5.2-dev.f258bd6 → 3.5.2-dev.f80111b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -113,6 +113,7 @@ For the full end-to-end walkthrough for this construct, see
113
113
  | `gitUserName` / `gitUserEmail` | `string?` | Optional git identity for agent commits. |
114
114
  | `extraImageEnvironment` | `Record<string,string>?` | Non-secret values baked into every VM launched from the image version. |
115
115
  | `evidentApiUrl` / `evidentRunnerId` | `string?` | Supply both to report published image versions to Evident, or omit both. |
116
+ | `imageVersionPruning` | `boolean?` | Opts into construct-owned pruning for this deployment's images. Uses the engine defaults; omitting it creates no pruning resources. |
116
117
 
117
118
  The `DoorbellSecret` CloudFormation logical ID remains stable for Evident's own
118
119
  default stack. It identifies the deployed secret resource, not the customer-facing
@@ -137,19 +138,27 @@ built from a `Dockerfile` you control. The generic runner image lives separately
137
138
 
138
139
  ### Prune image versions
139
140
 
140
- MicroVM image versions are quota-bound. `@evident-ai/lambda-microvm-cdk` ships the
141
- `prune-microvm-image-versions` CLI; enable it with one `package.json` script line:
141
+ MicroVM image versions are quota-bound. Opt into construct-owned pruning with one
142
+ property:
142
143
 
143
- ```json
144
- "microvm:prune": "prune-microvm-image-versions --image-arn arn:aws:lambda:eu-west-1:000000000000:microvm-image:your-image"
144
+ ```ts
145
+ new EvidentMicrovmConstruct(this, 'Runner', {
146
+ // ...other required MicroVM props
147
+ imageVersionPruning: true,
148
+ });
145
149
  ```
146
150
 
147
- See the `@evident-ai/lambda-microvm-cdk` package README for the CLI flags and safety semantics.
151
+ This bounds the per-image version quota (`L-F8BECE9C`) for this deployment's shapes only.
152
+ Retention follows the engine defaults, and pruning runs before the image publish for the
153
+ deploy that invokes it. The custom-resource Lambda writes per-image verdicts and a summary
154
+ to CloudWatch Logs. Use the `prune-microvm-image-versions` CLI for deployments that do not
155
+ use this construct or that need non-default retention; see the
156
+ `@evident-ai/lambda-microvm-cdk` package README for its flags and safety semantics.
148
157
 
149
158
  `EvidentMicrovmConstruct`'s `buildContextPath` is a **local directory** holding the
150
159
  Dockerfile you control and everything it copies. `cdk deploy` zips and uploads that
151
160
  directory, and the Lambda MicroVM service builds the image in *your* account. Start the
152
- Dockerfile from a pinned `ghcr.io/sroze/evident-microvm-base:X.Y.Z` tag; the base image
161
+ Dockerfile from a pinned `ghcr.io/sroze/evident-microvm-base:sha-3f3949d` tag; the base image
153
162
  contains the hook server, lifecycle hooks and common agent tooling.
154
163
 
155
164
  `stageMicrovmBuildContext()` combines your build-context directory with a full checkout