feat(chord): Chord v2 is the package's root

src/next is src (the main export), src/next-node is src/node with short subpaths (/http, /workers, /plugins,
/plugins/runtime, /app, /surfaces, /web, /react, /tui, /tui/launcher); the foundations get /json and /watch;
Chord v1 moves to src/old (/old, /old/node) until p2 runs on v2; tests and docs move likewise (test/, docs/,
test/old, docs/old). Durable and env import the foundations from their subpaths.
This commit is contained in:
Mario Zechner 2026-11-02 22:36:54 +00:00
parent 0a4fad5489
commit e9c0ff4d84
966 changed files with 2968 additions and 2804 deletions

View file

@ -4,16 +4,10 @@
It uses existing package types as follows:
```ts
import type {
Context,
Draft,
JsonRepresentation,
JsonValue,
WatchCall,
WatchEnd,
WatchHandle,
} from "@earendil-works/chord";
import type { Op } from "@earendil-works/chord/delta";
import type { Context } from "@earendil-works/chord/context";
import type { Draft, Op } from "@earendil-works/chord/delta";
import type { JsonRepresentation, JsonValue } from "@earendil-works/chord/json";
import type { WatchCall, WatchEnd, WatchHandle } from "@earendil-works/chord/watch";
import type {
AssistantMessage,
CacheRetention,
@ -5381,7 +5375,7 @@ aborted directly (section 8.3).
### 9.1 Watches
Durable exposes committed state only through watches: Chord's `WatchHandle`
and its end type `WatchEnd`, exported by `@earendil-works/chord` (Durable
and its end type `WatchEnd`, exported by `@earendil-works/chord/watch` (Durable
re-exports both):
```ts