effect-durable-agent 0.1.0-alpha.4 → 0.1.0-alpha.6

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 (85) hide show
  1. package/README.md +19 -18
  2. package/dist/{command-queues-CV7O-51r.d.ts → command-queues-C8muEqeQ.d.ts} +2 -2
  3. package/dist/{compaction-zbvLREI8.d.ts → compaction-F4HEWzuI.d.ts} +5 -5
  4. package/dist/{context-projection-n6Rdup0N.d.ts → context-projection-C43pyxn2.d.ts} +2 -2
  5. package/dist/domain/command-queues.d.ts +1 -1
  6. package/dist/domain/context-projection.d.ts +1 -1
  7. package/dist/domain/message-transcript.d.ts +1 -1
  8. package/dist/domain/reduced-state.d.ts +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/{message-transcript-DiOPBY3l.d.ts → message-transcript-DsKTT47f.d.ts} +3 -3
  11. package/dist/{prompt-projector-C1IbkHr0.d.ts → prompt-projector-hqPh5-NI.d.ts} +4 -4
  12. package/dist/{reducer-registry-CjSJBPKo.d.ts → reducer-registry--vQFATXb.d.ts} +16 -6
  13. package/dist/{runtime-DOgmAKsO.d.ts → runtime-BO9KJq_Y.d.ts} +7 -5
  14. package/dist/services/compaction.d.ts +1 -1
  15. package/dist/services/prompt-projector.d.ts +1 -1
  16. package/dist/services/reducer-registry.d.ts +2 -2
  17. package/dist/services/reducer-registry.js +7 -3
  18. package/dist/services/reducer-registry.js.map +1 -1
  19. package/dist/services/runtime-layer.d.ts +12 -9
  20. package/dist/services/runtime-layer.js +6 -4
  21. package/dist/services/runtime-layer.js.map +1 -1
  22. package/dist/services/runtime.d.ts +1 -1
  23. package/dist/services/runtime.js +3 -2
  24. package/dist/services/runtime.js.map +1 -1
  25. package/dist/services/session-event-observer.d.ts +2 -0
  26. package/dist/services/session-event-observer.js +13 -0
  27. package/dist/services/session-event-observer.js.map +1 -0
  28. package/dist/services/session-query.d.ts +2 -2
  29. package/dist/services/session-query.js +20 -3
  30. package/dist/services/session-query.js.map +1 -1
  31. package/dist/services/session-state.d.ts +1 -1
  32. package/dist/services/session-state.js +1 -1
  33. package/dist/services/session-store.d.ts +1 -1
  34. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  35. package/dist/services/sink-registry.d.ts +1 -1
  36. package/dist/services/sink-registry.js +1 -1
  37. package/dist/services/span-names.d.ts +1 -1
  38. package/dist/services/span-names.js +1 -0
  39. package/dist/services/span-names.js.map +1 -1
  40. package/dist/services/tool-registry.d.ts +1 -1
  41. package/dist/services/tracing.js +23 -2
  42. package/dist/services/tracing.js.map +1 -1
  43. package/dist/session-event-observer-D_aoFnQs.d.ts +24 -0
  44. package/dist/{session-query-C-C4m1eq.d.ts → session-query-_Z3Kw6jj.d.ts} +15 -8
  45. package/dist/{session-state-CjOSvWbe.d.ts → session-state-BfoXKafd.d.ts} +11 -11
  46. package/dist/{session-state-SStf0KUo.js → session-state-C4m0j6CJ.js} +2 -2
  47. package/dist/{session-state-SStf0KUo.js.map → session-state-C4m0j6CJ.js.map} +1 -1
  48. package/dist/{session-store-DZZUffUy.d.ts → session-store-ofm8FFxs.d.ts} +2 -2
  49. package/dist/{sink-checkpoint-store-BZmQFTRE.d.ts → sink-checkpoint-store-BQVbI9DQ.d.ts} +2 -2
  50. package/dist/{sink-registry-D13eUO_c.js → sink-registry-DH6uiEgP.js} +19 -21
  51. package/dist/sink-registry-DH6uiEgP.js.map +1 -0
  52. package/dist/{sink-registry-Cf79ICdW.d.ts → sink-registry-PRYbj6dp.d.ts} +18 -14
  53. package/dist/testkit/layers.d.ts +10 -10
  54. package/dist/testkit/layers.js +3 -3
  55. package/dist/testkit/layers.js.map +1 -1
  56. package/dist/{tool-registry-B7Wona6N.d.ts → tool-registry-ClHdr_G5.d.ts} +2 -2
  57. package/dist/{websocket-wire-QD2SquQE.d.ts → websocket.d.ts} +335 -12
  58. package/dist/websocket.js +428 -0
  59. package/dist/websocket.js.map +1 -0
  60. package/package.json +15 -31
  61. package/testing/offline-trace/README.md +2 -1
  62. package/CHANGELOG.md +0 -34
  63. package/CONTRIBUTING.md +0 -26
  64. package/SECURITY.md +0 -7
  65. package/dist/host/websocket-protocol.d.ts +0 -229
  66. package/dist/host/websocket-protocol.js +0 -99
  67. package/dist/host/websocket-protocol.js.map +0 -1
  68. package/dist/host/websocket-wire.d.ts +0 -2
  69. package/dist/host/websocket-wire.js +0 -105
  70. package/dist/host/websocket-wire.js.map +0 -1
  71. package/dist/services/websocket-subscriber.d.ts +0 -54
  72. package/dist/services/websocket-subscriber.js +0 -190
  73. package/dist/services/websocket-subscriber.js.map +0 -1
  74. package/dist/sink-registry-D13eUO_c.js.map +0 -1
  75. package/docs/assets/architecture.svg +0 -216
  76. package/docs/assets/event-sequence.svg +0 -133
  77. package/docs/assets/gcp-trace.png +0 -0
  78. package/docs/assets/hero.svg +0 -33
  79. package/docs/message-steering.md +0 -831
  80. package/docs/releasing.md +0 -114
  81. package/docs/spec.md +0 -777
  82. package/docs/subagents.md +0 -725
  83. package/docs/testing.md +0 -64
  84. package/docs/ui-projection.md +0 -742
  85. 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).