effect-durable-agent 0.1.0-alpha.4 → 0.1.0-alpha.5
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 +19 -18
- package/dist/{command-queues-CV7O-51r.d.ts → command-queues-Dwdf41mq.d.ts} +2 -2
- package/dist/{compaction-zbvLREI8.d.ts → compaction-DpHOf-g7.d.ts} +5 -5
- package/dist/{context-projection-n6Rdup0N.d.ts → context-projection-B4DWOZgi.d.ts} +3 -3
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/context-projection.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/host/websocket-protocol.d.ts +26 -3
- package/dist/host/websocket-protocol.js +16 -4
- package/dist/host/websocket-protocol.js.map +1 -1
- package/dist/host/websocket-wire.d.ts +2 -2
- package/dist/host/websocket-wire.js +19 -2
- package/dist/host/websocket-wire.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{message-transcript-DiOPBY3l.d.ts → message-transcript-CFn_D3MH.d.ts} +3 -3
- package/dist/{prompt-projector-C1IbkHr0.d.ts → prompt-projector-C2meuNrV.d.ts} +4 -4
- package/dist/{reducer-registry-CjSJBPKo.d.ts → reducer-registry-K9FqZq5-.d.ts} +2 -2
- package/dist/{runtime-DOgmAKsO.d.ts → runtime-5NEJngu3.d.ts} +10 -5
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +9 -9
- package/dist/services/runtime-layer.js +2 -2
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +6 -2
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +20 -3
- package/dist/services/session-query.js.map +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.d.ts +1 -1
- package/dist/services/session-store.js +1 -1
- package/dist/services/sink-checkpoint-store.d.ts +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/span-names.d.ts +1 -1
- package/dist/services/span-names.js +1 -0
- package/dist/services/span-names.js.map +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/websocket-delivery.d.ts +90 -0
- package/dist/services/websocket-delivery.js +221 -0
- package/dist/services/websocket-delivery.js.map +1 -0
- package/dist/{session-query-C-C4m1eq.d.ts → session-query-5oyZRaQL.d.ts} +16 -9
- package/dist/{session-state-CjOSvWbe.d.ts → session-state-CI1xeT6f.d.ts} +11 -11
- package/dist/{session-state-SStf0KUo.js → session-state-D7dqko7r.js} +3 -3
- package/dist/{session-state-SStf0KUo.js.map → session-state-D7dqko7r.js.map} +1 -1
- package/dist/{session-store-DZZUffUy.d.ts → session-store-BLg6UvZa.d.ts} +2 -2
- package/dist/{sink-checkpoint-store-BZmQFTRE.d.ts → sink-checkpoint-store-B9WNvDtY.d.ts} +2 -2
- package/dist/{sink-registry-D13eUO_c.js → sink-registry-BbmoI9uv.js} +17 -24
- package/dist/sink-registry-BbmoI9uv.js.map +1 -0
- package/dist/{sink-registry-Cf79ICdW.d.ts → sink-registry-CO3YPS1p.d.ts} +26 -14
- package/dist/testkit/layers.d.ts +10 -10
- package/dist/testkit/layers.js +3 -3
- package/dist/{tool-registry-B7Wona6N.d.ts → tool-registry-B8H1P6Pu.d.ts} +2 -2
- package/dist/{websocket-wire-QD2SquQE.d.ts → websocket-wire-DPxwY4G5.d.ts} +39 -10
- package/package.json +11 -23
- package/testing/offline-trace/README.md +2 -1
- package/CHANGELOG.md +0 -34
- package/CONTRIBUTING.md +0 -26
- package/SECURITY.md +0 -7
- package/dist/services/websocket-subscriber.d.ts +0 -54
- package/dist/services/websocket-subscriber.js +0 -190
- package/dist/services/websocket-subscriber.js.map +0 -1
- package/dist/sink-registry-D13eUO_c.js.map +0 -1
- package/docs/assets/architecture.svg +0 -216
- package/docs/assets/event-sequence.svg +0 -133
- package/docs/assets/gcp-trace.png +0 -0
- package/docs/assets/hero.svg +0 -33
- package/docs/message-steering.md +0 -831
- package/docs/releasing.md +0 -114
- package/docs/spec.md +0 -777
- package/docs/subagents.md +0 -725
- package/docs/testing.md +0 -64
- package/docs/ui-projection.md +0 -742
- package/docs/websocket-protocol.md +0 -639
package/docs/releasing.md
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# Releasing Effect Durable Agent
|
|
2
|
-
|
|
3
|
-
Releases publish `effect-durable-agent`, `effect-durable-agent-cloudflare`, and
|
|
4
|
-
`effect-durable-agent-celld` together from the public
|
|
5
|
-
[`advait/effect-durable-agent`](https://github.com/advait/effect-durable-agent) repository. The
|
|
6
|
-
three packages always use the same version, and host packages depend on that exact core version in
|
|
7
|
-
their published manifests.
|
|
8
|
-
|
|
9
|
-
## Current public baseline
|
|
10
|
-
|
|
11
|
-
The current core baseline is `0.1.0-alpha.3`. The `alpha` npm dist-tag resolves to that version;
|
|
12
|
-
`latest` remains on `0.1.0-alpha.1`. The Cloudflare and celld packages are introduced by the next
|
|
13
|
-
lockstep release.
|
|
14
|
-
|
|
15
|
-
Do not reuse a published version or create a GitHub release for an older tag: publishing that
|
|
16
|
-
release would run the npm workflow against an immutable registry version. The Git tag alone does
|
|
17
|
-
not trigger the workflow.
|
|
18
|
-
|
|
19
|
-
## One-time trusted-publisher setup
|
|
20
|
-
|
|
21
|
-
Configure the same trusted publisher for each package in its npm package settings:
|
|
22
|
-
|
|
23
|
-
- Provider: GitHub Actions
|
|
24
|
-
- Organization or user: `advait`
|
|
25
|
-
- Repository: `effect-durable-agent`
|
|
26
|
-
- Workflow filename: `publish.yml`
|
|
27
|
-
- Allowed action: `npm publish`
|
|
28
|
-
- Environment: leave blank unless `.github/workflows/publish.yml` is updated to use one
|
|
29
|
-
|
|
30
|
-
The two new package names must exist on npm before their trusted-publisher settings are available.
|
|
31
|
-
For the first three-package release only, an authenticated maintainer must run `release:check` and
|
|
32
|
-
then `pnpm run publish:workspace`. Publish all three manifests at the same version, and configure
|
|
33
|
-
the trusted publisher on both new packages immediately after that bootstrap. The publish script is
|
|
34
|
-
idempotent: it verifies and skips an identical artifact already in the registry, but refuses an
|
|
35
|
-
existing version with different bytes. All subsequent versions use the release workflow. Do not
|
|
36
|
-
add a long-lived npm publishing token to the repository.
|
|
37
|
-
|
|
38
|
-
The workflow uses a GitHub-hosted runner, grants `id-token: write`, and runs a recent Node/npm pair.
|
|
39
|
-
npm uses the workflow's short-lived OIDC identity and automatically attaches provenance because
|
|
40
|
-
both the repository and packages are public.
|
|
41
|
-
|
|
42
|
-
After one automated release succeeds, configure npm publishing access to require two-factor
|
|
43
|
-
authentication and disallow tokens, then revoke any automation tokens that are no longer needed.
|
|
44
|
-
See npm's [trusted publishing guide](https://docs.npmjs.com/trusted-publishers/) for the current
|
|
45
|
-
registry requirements.
|
|
46
|
-
|
|
47
|
-
## Release channels
|
|
48
|
-
|
|
49
|
-
While the API is in alpha, every package's `publishConfig.tag` remains `alpha`. The workflow also
|
|
50
|
-
passes `--tag alpha` explicitly for prerelease versions, because package-manager support for the
|
|
51
|
-
manifest default is not consistent. Consumers should install the same version of core and host; an
|
|
52
|
-
alpha-tagged publish advances only `alpha` and does not automatically move `latest`.
|
|
53
|
-
|
|
54
|
-
If an alpha has been verified and should also become the default for unqualified installs, an
|
|
55
|
-
authenticated maintainer can move `latest` explicitly:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm dist-tag add effect-durable-agent@0.1.0-alpha.4 latest
|
|
59
|
-
npm dist-tag add effect-durable-agent-cloudflare@0.1.0-alpha.4 latest
|
|
60
|
-
npm dist-tag add effect-durable-agent-celld@0.1.0-alpha.4 latest
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Trusted publishing authorizes `npm publish`, not `npm dist-tag`, so changing a dist-tag is an
|
|
64
|
-
interactive maintainer operation and may require two-factor authentication. Always name the exact
|
|
65
|
-
version being promoted.
|
|
66
|
-
|
|
67
|
-
For the first stable release, remove the prerelease suffix and change `publishConfig.tag` to
|
|
68
|
-
`latest` in the version PR. Leave `alpha` pointing to the final alpha unless there is a deliberate
|
|
69
|
-
reason to move or remove it.
|
|
70
|
-
|
|
71
|
-
## Release checklist
|
|
72
|
-
|
|
73
|
-
1. Choose a new version that has never been published for any of the three packages.
|
|
74
|
-
2. Update all three `package.json` files to that exact version and refresh `pnpm-lock.yaml`.
|
|
75
|
-
3. Add the release notes to `CHANGELOG.md`.
|
|
76
|
-
4. Run the complete release validation:
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
pnpm install --frozen-lockfile
|
|
80
|
-
pnpm run release:check
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
5. Merge the version PR and confirm `CI` passes on `master`.
|
|
84
|
-
6. Create a GitHub release targeting the merged commit. Its tag must be exactly
|
|
85
|
-
`v<package version>`; for example, `v0.1.0-alpha.4`.
|
|
86
|
-
7. Wait for the `Publish to npm` workflow to pass. The workflow independently reruns the full
|
|
87
|
-
release check and rejects a tag that does not match `package.json`.
|
|
88
|
-
8. Verify the registry metadata and dist-tags:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
for package_name in effect-durable-agent effect-durable-agent-cloudflare effect-durable-agent-celld; do
|
|
92
|
-
npm view "$package_name@0.1.0-alpha.4" name version repository.url dist.integrity --json
|
|
93
|
-
npm dist-tag ls "$package_name"
|
|
94
|
-
done
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
9. Install from the public registry in a clean consumer and run its typecheck and bundle. Do not
|
|
98
|
-
validate only against the repository or a local tarball.
|
|
99
|
-
10. If desired for the alpha channel, move `latest` only after the registry install succeeds.
|
|
100
|
-
11. Update downstream consumers, including the `goguardian/gia` submodule pin, in a separate PR.
|
|
101
|
-
|
|
102
|
-
## Failure handling
|
|
103
|
-
|
|
104
|
-
- npm package versions are immutable. Never try to reuse a version after any successful publish;
|
|
105
|
-
increment the version and release again.
|
|
106
|
-
- npm does not provide a multi-package transaction. If any package uploads before a later publish
|
|
107
|
-
fails, rerun `pnpm run publish:workspace` from the exact same commit: it verifies identical
|
|
108
|
-
published bytes, skips them, and continues the remaining packages. If the bytes differ, increment
|
|
109
|
-
every package and release a new version.
|
|
110
|
-
- If the workflow fails before any package publishes, fix the cause on `master` and create a release
|
|
111
|
-
for the corrected, incremented version. Do not move an existing release tag to another commit.
|
|
112
|
-
- If only a dist-tag is wrong, correct the tag instead of republishing the package.
|
|
113
|
-
- Avoid unpublishing except for a genuine security or legal incident. Coordinate through the
|
|
114
|
-
process in [`SECURITY.md`](../SECURITY.md).
|