Extract a shared Muster Server client package for the CLI and muster-server

Aperta
#452 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading packages/server/src/cli.ts, cli-agent.ts and cli-work.ts, then compare them with the CLI client files packages/cli/src/server-client.ts and server-command.ts in musterhq/muster. Trace the package boundaries and available tests before deciding how both consumers can use the shared client. Done means the request, origin rule, bearer /rpc calls and work commands are shared, with no behavior change for muster-server.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

packages/server/src/cli.ts (request), cli-agent.ts (origin rule) and cli-work.ts (work commands) are the only client for /rpc. The Muster CLI (musterhq/muster) now has its own small client (packages/cli/src/server-client.ts, server-command.ts). Extract request, the https-or-loopback origin rule, bearer /rpc calls and the work commands into one package both consume, so the rules and command names are not copied. No behavior change for muster-server.

Lingua principale
TypeScript
Stelle
3
Fork
0
Merge medio
17h 33m
PR unite (30g)
163

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di musterhq/muster-code

Tutte le issue di musterhq/muster-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.