Load plugins from a URL (trust prompt, pinning, export)

Aperta
#32 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
security, tooling

Direzione di ricerca

Start by reading how plugins are listed in the studio config, how graph format v5 stores plugin data, and how the exporter bundles files. The issue names no specific files or tests, so trace those entry points before estimating the work. Done means a graph can load a trusted URL plugin with hash-mismatch errors, and its exported app runs offline from the bundle.

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

Descrizione

enhancement plugin-api

Phase D of #12 (optional), moved from v0.2.0. Today plugins are loaded at build time, listed in the studio config.

Tasks

  • "Add plugin…" in the studio, then import(url), with an explicit trust prompt and an allowlist of origins: the plugin runs code in the studio.
  • Plugin pinning by version / integrity hash in the graph (plugins of graph format v5).
  • CORS-aware asset URLs for plugin files.
  • The exporter downloads the remote plugin files into the bundle.

Acceptance

  • A graph that needs a plugin from a URL opens after the user trusts its origin, and fails clearly if the hash does not match.
  • Its exported app runs offline from the bundle.

Generated by Claude Code

Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
2h 36m
PR unite (30g)
92

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 webarkit/webarkit-studio

Tutte le issue di webarkit/webarkit-studio

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.