@evident-ai/runner-cdk 0.1.0 → 0.1.1-dev.d96ef8a
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 +21 -16
- package/dist/controller-lambda/handler.js +50523 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8 -1
- package/dist/microvm/constants.d.ts +4 -0
- package/dist/microvm/constants.js +24 -0
- package/dist/microvm/construct.d.ts +73 -0
- package/dist/microvm/construct.js +242 -0
- package/dist/microvm/controller/doorbell.d.ts +73 -0
- package/dist/microvm/controller/doorbell.js +107 -0
- package/dist/microvm/controller/handle-doorbell.d.ts +27 -0
- package/dist/microvm/controller/handle-doorbell.js +480 -0
- package/dist/microvm/controller/microvm-client.d.ts +75 -0
- package/dist/microvm/controller/microvm-client.js +7 -0
- package/dist/microvm/controller/shape-catalogue.d.ts +64 -0
- package/dist/microvm/controller/shape-catalogue.js +108 -0
- package/dist/microvm/controller/throttle-retry.d.ts +11 -0
- package/dist/microvm/controller/throttle-retry.js +27 -0
- package/dist/microvm/shapes.d.ts +72 -0
- package/dist/microvm/shapes.js +93 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
# `@evident-ai/runner-cdk`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
the
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
Reusable AWS CDK constructs for running an [Evident](https://evident.run) agent runner in
|
|
4
|
+
**your** AWS account, against **your** repo. Two runner strategies:
|
|
5
|
+
|
|
6
|
+
- **`EvidentScaleToZeroConstruct`** — **one scale-to-zero agent runner** on Fargate,
|
|
7
|
+
covered by the rest of this README. The runner sleeps when nobody is talking to it:
|
|
8
|
+
after `idleTimeoutSeconds` of inactivity the task scales its own service to
|
|
9
|
+
`desiredCount 0`, and an HMAC-authenticated waker Lambda scales it back up on the next
|
|
10
|
+
message. You pay for the time the agent is actually working.
|
|
11
|
+
- **`EvidentMicrovmConstruct`** — a per-session AWS Lambda MicroVM that boots on demand
|
|
12
|
+
and suspends between messages. It is not yet at Fargate's install-only parity here:
|
|
13
|
+
building its runner image still means cloning the `sroze/evident` repo (tracked in
|
|
14
|
+
[#1528](https://github.com/sroze/evident/issues/1528)). See
|
|
15
|
+
[the AWS runner doc](https://evident.run/docs/aws-runner) for the full picture of both
|
|
16
|
+
strategies.
|
|
10
17
|
|
|
11
18
|
## What it creates
|
|
12
19
|
|
|
@@ -108,14 +115,12 @@ built from a `Dockerfile` you control. The generic runner image lives separately
|
|
|
108
115
|
|
|
109
116
|
## Status / limitations
|
|
110
117
|
|
|
111
|
-
- **
|
|
112
|
-
(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
consumer (`infrastructure/evident-runner`) keeps consuming it as a `workspace:*`
|
|
119
|
-
dependency, and following this guide outside this repo means working from a checkout.
|
|
118
|
+
- **Published to npm** as `@evident-ai/runner-cdk` (MIT) — see
|
|
119
|
+
[#957](https://github.com/sroze/evident/issues/957). Install it with `npm install
|
|
120
|
+
@evident-ai/runner-cdk` (or `pnpm add`/`yarn add`); no checkout of this repo is
|
|
121
|
+
required. It builds to a self-contained `dist/` (`pnpm --filter @evident-ai/runner-cdk
|
|
122
|
+
build`) with no `workspace:`/`@evident/*` runtime dependency. This repo's own
|
|
123
|
+
consumer (`infrastructure/evident-runner`) still consumes it as a `workspace:*`
|
|
124
|
+
dependency for dogfooding.
|
|
120
125
|
- **AWS/ECS-specific.** Non-AWS clouds are an open question on the epic, not a supported
|
|
121
126
|
path.
|