mirror of
https://github.com/vercel-labs/fx.git
synced 2026-10-28 10:15:17 +08:00
- `world()` from `libfx/durable-world` keeps sessions in a World the app creates, such as Workflow's Postgres World. `local()` and `vercel()` are built on it. libfx never starts or closes a World it was given, and agents that share one take its deliveries in turn instead of the last one taking over. - `agent.newSessionId()` gives an id before the first prompt, every tool call receives `sessionId`, and `session(null)` throws like any other invalid id. The README states the id rule for each durability. - TypeScript declarations for every entry point, wired through `exports` and checked under node16 and bundler resolution against the runtime exports. - `createFxEngine()` names itself in its option errors, `createFxAgent()` refuses `env` when created, and the README lists what code written for 0.0.12 now does differently. - A step the deadline cuts off 3 times in a row is not run again: a cut-off call is answered as possibly run, and a model request cancels its turn. Records carry the step their turn is at, so continuing a cut-off model request counts as the same step. `session.deadline` reports `cutoffs`. The TLA+ model bounds it, a witness shows the endless rerun without the bound, and a new walk drives the code to the bound.
13 lines
749 B
JSON
13 lines
749 B
JSON
{
|
|
"name": "fx-wasm-sdk-node-tests",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"test:term": "node test-xterm-adapter.mjs && node --experimental-wasm-jspi test-term-config-restore.mjs && node --experimental-wasm-jspi test-term-headless.mjs && node --experimental-wasm-jspi test-term-table-stream.mjs && node --experimental-wasm-jspi test-term-lifecycle.mjs && node --experimental-wasm-jspi test-term-compaction.mjs && node --experimental-wasm-jspi test-term-features.mjs && node --experimental-wasm-jspi test-term-history.mjs && node --experimental-wasm-jspi test-term-workspace.mjs && node --experimental-wasm-jspi test-term-agents-md.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@xterm/headless": "6.0.0",
|
|
"typescript": "5.9.3"
|
|
}
|
|
}
|