@evident-ai/runner-synchroniser 0.1.0 → 0.1.1-dev.b352795

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.
Files changed (2) hide show
  1. package/README.md +12 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,8 +15,10 @@ the boot script gates on. It also renders the `litestream.yml` that covers the s
15
15
  database, so both halves read their bucket, prefix and paths from one config module
16
16
  instead of two.
17
17
 
18
- It is a CLI, not a library: the runner's `entrypoint.sh` invokes it as a single
19
- self-contained bundle (`node cli.js <command>`).
18
+ It is a CLI, not a library, invoked by two consumers that differ in how they get the
19
+ binary: the Fargate runner image installs the published package and invokes it by name
20
+ (`runner-synchroniser <command>`); the MicroVM still builds it from source and runs the
21
+ bundle directly (`node cli.js <command>`).
20
22
 
21
23
  ## Install
22
24
 
@@ -32,9 +34,9 @@ the AWS SDK is bundled at build time, so installing it pulls nothing else in.
32
34
 
33
35
  > Publishing is being rolled out (#612). The `dev` tag is published on every merge to
34
36
  > `main` that touches this package; the first publish is a human bootstrap (#694), and
35
- > the `latest`-on-release path is not wired up yet. Nothing in this repo installs the
36
- > package: the runner image and the MicroVM still build the bundle from source, and will
37
- > keep doing so until that flip lands.
37
+ > the `latest`-on-release path is not wired up yet. The Fargate runner image installs
38
+ > the `dev`-tagged package (`ARG RUNNER_SYNCHRONISER_VERSION=dev`); the MicroVM still
39
+ > builds the bundle from source and is not expected to change.
38
40
 
39
41
  ## Commands
40
42
 
@@ -171,10 +173,11 @@ pnpm lint
171
173
 
172
174
  From the repository root, prefix with `pnpm --filter @evident-ai/runner-synchroniser`.
173
175
 
174
- The bundle must stay a **single file**: the runner image copies exactly one artifact out
175
- of its builder stage, so code splitting would ship a `cli.js` importing chunks that are
176
- not there. `tsup.config.ts` disables splitting and bundles the AWS SDK, and the
177
- Dockerfile asserts the output is one file.
176
+ The bundle must stay a **single file**: both consumers need a self-contained
177
+ `dist/cli.js` with no sibling chunks the npm `files: ["dist"]` install ships
178
+ whatever `dist` contains, and the MicroVM runs `dist/cli.js` directly with no
179
+ `node_modules` alongside it. `tsup.config.ts` disables splitting and bundles the
180
+ AWS SDK so neither consumer needs anything else.
178
181
 
179
182
  The restore/sync/CLI tests need neither AWS nor a real filesystem — rather than shimming
180
183
  a fake `aws` binary onto `PATH`, they inject two ports: `InMemoryObjectStore` (in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evident-ai/runner-synchroniser",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-dev.b352795",
4
4
  "description": "Restores and syncs the Evident runner's OpenCode credential stores (and litestream config) to an object store, so a runner survives task replacement with almost no state loss.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",