paritytech / paritytech/playground-cli

Switch to truAPI (retire the triangle-js-sdks host transport)

Open
#464 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependencies priority:high task
Dominant language
TypeScript
Stars
5
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Summary

Switch the Host API transport off triangle-js-sdks (the @novasamatech/host-api / host-papp stack) and onto truAPI (@parity/truapi).

Background

The Host to product transport layer used to be provided by triangle-js-sdks, which publishes @novasamatech/host-api and @novasamatech/host-papp. That transport is being retired in favour of @parity/truapi. Newer @parity/product-sdk releases route the host transport through @parity/truapi instead.

This CLI reaches the old transport through @parity/product-sdk-terminal@^0.5.0, which still pulls in the @novasamatech/host-papp chain. There are also two local pnpm patches on @novasamatech/statement-store and @novasamatech/sdk-statement.

What needs to happen

  • Bump @parity/product-sdk-terminal to a release backed by truAPI (latest is 0.6.2) and bump the rest of the product-sdk stack in lockstep.
  • Re-evaluate the two local patches (@novasamatech/statement-store, @novasamatech/sdk-statement) once the transport moves; drop any that are fixed upstream and re-pin any that are still needed against the new versions.
  • Confirm @parity/truapi resolves to a single instance in the tree.
  • Verify the SSO handshake and statement-store pairing (topic and SessionId derivation) still work end to end after the switch.

Acceptance criteria

  • playground init and an SSO pairing complete against the host through truAPI.
  • No direct @novasamatech/host-* transport dependency remains other than any strictly test-only transitive use.
  • The e2e suite passes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dependency manifests and pnpm patches for @novasamatech/statement-store and @novasamatech/sdk-statement. Update the product-sdk stack to a truAPI-backed release, then run the e2e suite and verify playground init, SSO pairing, and statement-store topic and SessionId behavior. Done means no direct host-* transport dependency remains beyond any test-only transitive use.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
api, cli, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.