Skip to content
Open
Prev Previous commit
Next Next commit
docs: drop the "L2PS transport pending" wording; test commands for a …
…standalone checkout

The UI label and the package description still said the L2PS transport
was coming; it is the live path since 2026-10-09. The Tests section gave
monorepo-relative paths that do not exist in the tester bundle or the
public repo; give the standalone commands first (vitest and tsc from the
sibling dacs-sdk tree that setup.sh links) and keep the monorepo form as
a note. The dependency note now describes what setup.sh does instead of
the manual --no-save dance. Raised by the third tester's 09d/10e retest.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KuxqrwyA8kuyT1ZJLUWZWo
  • Loading branch information
pallytin88 and claude committed Oct 10, 2026
commit 2f9de3240567431c9832f052edf109b517fed839
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ both statements true without L2PS:
- `drain.ts`: feeds stored packets into the role's lifecycle client in arrival
order and marks them processed only after the client recorded its outcome.

Label it in any UI as: *private negotiation, L2PS transport coming.*
Label it in any UI as: *private negotiation over an L2PS subnet; listing, vet
records, commitment and payment public.* The HTTP transport is the offline
reference path, not the live one.

### Step 5 — `src/buyer/`: the buyer as a tool the model calls

Expand Down Expand Up @@ -358,12 +360,18 @@ fails with `Cannot find module '@noble/hashes/sha3'`, nest a 1.8.0 copy under

## Tests

From a standalone checkout (the tester bundle or the public repo), after
`./setup.sh` has linked the sibling `dacs-sdk` tree:

```bash
cd packages/dacs-rfq
node ../../dacs-sdk/node_modules/.bin/vitest run
../../node_modules/.bin/tsc --noEmit -p tsconfig.json
./node_modules/.bin/vitest run
../dacs-sdk/node_modules/.bin/tsc --noEmit -p tsconfig.json
```

Inside the colony monorepo the same two commands are
`node ../../dacs-sdk/node_modules/.bin/vitest run` and
`../../node_modules/.bin/tsc --noEmit -p tsconfig.json` from `packages/dacs-rfq`.

`test/showcase.e2e.test.ts` drives the buyer purely through MCP tool calls
against a seller daemon over the interim transport, with real files, an
in-memory finality provider and a fake DEM rail behind the real spend
Expand All @@ -375,24 +383,17 @@ offer on the seller.

## Dependency note

The colony root `npm install` currently fails on the `file:../../dacs-sdk`
link (npm arborist `edgesOut` error). Until that is fixed, these symlinks in
the root `node_modules` make the package resolve against the SDK's own
installed tree:

```
node_modules/@kynesyslabs/dacs -> ../../dacs-sdk
node_modules/better-sqlite3 -> ../dacs-sdk/node_modules/better-sqlite3
node_modules/vitest -> ../dacs-sdk/node_modules/vitest
node_modules/@types/better-sqlite3 -> ../../dacs-sdk/node_modules/@types/better-sqlite3
node_modules/@colony/dacs-rfq -> ../../packages/dacs-rfq
```

The SDK tree carries `@kynesyslabs/demosdk` 4.0.18 (installed with
`npm install --no-save @kynesyslabs/demosdk@4.0.18` inside `dacs-sdk/`; its
manifest still pins `^4.0.16`). 4.0.18 adds the signed L2PS history read
(`l2ps/history`) the Step 4 transport needs. An `npm ci` or `npm install` in
`dacs-sdk/` reverts to 4.0.16; re-run the `--no-save` install afterwards.
A standalone checkout gets everything from `./setup.sh`: it pins the
`dacs-sdk` commit, installs `@kynesyslabs/demosdk` 4.0.18 (version and tarball
integrity checked) plus the pinned tools inside the SDK tree, and symlinks them
into this package's `node_modules`. Re-run it after any `npm ci` or
`npm install` inside `dacs-sdk/`, since those revert demosdk to the manifest's
`^4.0.16`; 4.0.18 adds the signed L2PS history read the Step 4 transport needs.

In the colony monorepo the root `npm install` fails on the `file:../../dacs-sdk`
link (npm arborist `edgesOut` error), so the root `node_modules` carries the
same symlinks by hand (`@kynesyslabs/dacs`, `better-sqlite3`, `vitest`,
`@types/better-sqlite3`, `@colony/dacs-rfq`).

The SDK must be built (`cd dacs-sdk && npm install && npm run build`) because
its `exports` map points at `dist/`. Node 20 or 22 only.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"type": "module",
"description": "SuperColony private RFQ negotiation adapters for @kynesyslabs/dacs: channel signature profiles, SQLite channel reservation, role-local stores and an interim authenticated HTTP transport (L2PS transport pending).",
"description": "SuperColony private RFQ negotiation adapters for @kynesyslabs/dacs: channel signature profiles, SQLite channel reservation, role-local stores and an L2PS subnet transport on a self-hosted Demos node (interim authenticated HTTP transport kept as the offline reference path).",
"main": "src/index.ts",
"scripts": {
"test": "vitest run",
Expand Down