mirror of
https://github.com/p1neappleXpress/OpenFlux.git
synced 2026-10-02 05:04:39 +08:00
* share: links are read and made in the core, with codes for the apps share.Read and share.Make answer every entry point with the same JSON (--parse-link, new --make-link, mobile.ReadShareLink / MakeShareLink, the iOS OpenFluxShareDecode / OpenFluxShareEncode): the configuration and its context, the link, or an error code and param. Every link problem now has a code (share.Code*); the apps word it for their users, the core only decides which one it is. Error() keeps the English detail for the CLI. share.Make normalizes what apps spell differently: surrounding spaces, the default codec, a carrier named after its type, and the context of an encrypted link, filled in by transport.KDFContexts when not given. One configuration gives one link whichever client exports it. The node wizard's link (desktop and Android) comes from one share.NodeConfig, and --share and ExitShareLink go through share.Make too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * share: a lone carrier's link carries no priority Apps that keep a priority for a single carrier and apps that do not now export the same link for the same profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: p1neappleXpress <a@a.a> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>