synthesisui 0.16.20 → 0.16.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/doctor.js +28 -0
- package/package.json +1 -1
package/dist/commands/doctor.js
CHANGED
|
@@ -700,6 +700,34 @@ export async function doctor(opts) {
|
|
|
700
700
|
}
|
|
701
701
|
say(body("Every one of these uses your tokens, so coverage says nothing"));
|
|
702
702
|
say(body("about them. A person meets the difference on screen."));
|
|
703
|
+
/**
|
|
704
|
+
* ACHADO → DECISÃO. A finding without a somewhere-to-decide is a
|
|
705
|
+
* complaint, and this is the one finding a code edit cannot fix: aligning
|
|
706
|
+
* twelve components by hand is exactly the toil the product exists to
|
|
707
|
+
* remove. The link opens the studio ALREADY at this question, with every
|
|
708
|
+
* expression on the table and one button each.
|
|
709
|
+
*
|
|
710
|
+
* The registry from the lock, so a self-hosted setup links to itself. The
|
|
711
|
+
* `mine` path assumes the reader owns the system - for a gallery install
|
|
712
|
+
* the page asks them to sign in, which is the honest dead end.
|
|
713
|
+
*/
|
|
714
|
+
if (table.slug) {
|
|
715
|
+
const lockRaw = await readFile(join(root, "_synthesisui", "ds", table.slug, ".lock"), "utf8").catch(() => "");
|
|
716
|
+
let registry = "https://www.synthesisui.com";
|
|
717
|
+
try {
|
|
718
|
+
const parsed = JSON.parse(lockRaw);
|
|
719
|
+
if (parsed.registry)
|
|
720
|
+
registry = parsed.registry;
|
|
721
|
+
}
|
|
722
|
+
catch {
|
|
723
|
+
// No lock, default host.
|
|
724
|
+
}
|
|
725
|
+
say("");
|
|
726
|
+
say(body("Decide once, in the studio - the rewrite is mechanical:"));
|
|
727
|
+
for (const d of divergences) {
|
|
728
|
+
say(` ${registry}/dashboard/mine/${table.slug}/studio?decide=${encodeURIComponent(d.concern)}`);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
703
731
|
}
|
|
704
732
|
// The other way a system fails itself: a recipe that names a SHELF where the
|
|
705
733
|
// system has a ROLE. The value is legitimate, the reference resolves, the CSS
|
package/package.json
CHANGED