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

@ -1,4 +1,5 @@
import { createHost, memoryLinkPair, replicatedState } from "@earendil-works/chord";
import { createHost, memoryLinkPair } from "@earendil-works/chord";
import { createHost as createOldHost, replicatedState } from "@earendil-works/chord/old";
import { createAssistantMessageEventStream, validateToolArguments } from "@earendil-works/pi-ai";
import { complete, getModel, getProviders, streamSimple } from "@earendil-works/pi-ai/compat";
import { Agent, streamProxy } from "@earendil-works/pi-agent-core";
@ -27,6 +28,7 @@ console.log(
agent.hasQueuedMessages(),
typeof streamProxy,
typeof createHost,
typeof createOldHost,
typeof memoryLinkPair,
replicatedState({ browser: true }).value.browser,
);