designsource 0.7.0 → 0.7.1
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3813,6 +3813,7 @@ var EMAIL_MAX = 254;
|
|
|
3813
3813
|
function printable(text) {
|
|
3814
3814
|
return text.replace(/[\u0000-\u001f\u007f-\u009f\u061c\u200b-\u200f\u202a-\u202e\u2028\u2029\u2060-\u2069\ufeff]/g, "");
|
|
3815
3815
|
}
|
|
3816
|
+
var NO_ACCOUNT_YET = "No account yet? Sign up on that page; it's free.";
|
|
3816
3817
|
function clientName(hostname2) {
|
|
3817
3818
|
const host = hostname2.replace(/[^A-Za-z0-9 '._-]/g, "-") || "this computer";
|
|
3818
3819
|
return `designsource on ${host}`.slice(0, CLIENT_NAME_MAX).trimEnd();
|
|
@@ -3838,6 +3839,7 @@ async function deviceLogin(opts) {
|
|
|
3838
3839
|
const deadline = started + seconds(body.expiresIn, DEVICE_MAX_WAIT_MS, 0, DEVICE_MAX_WAIT_MS);
|
|
3839
3840
|
const page = deviceUrl(api);
|
|
3840
3841
|
show(`Open ${page} and enter ${body.userCode}`);
|
|
3842
|
+
show(NO_ACCOUNT_YET);
|
|
3841
3843
|
await open(page);
|
|
3842
3844
|
show("Waiting for you to approve it in the browser\u2026 (Ctrl+C to stop)");
|
|
3843
3845
|
for (; ; ) {
|
|
@@ -4021,7 +4023,7 @@ async function runLogout(args, io, deps = defaultLoginDeps(process.env)) {
|
|
|
4021
4023
|
import { homedir as homedir4 } from "node:os";
|
|
4022
4024
|
|
|
4023
4025
|
// src/version.ts
|
|
4024
|
-
var VERSION = true ? "0.7.
|
|
4026
|
+
var VERSION = true ? "0.7.1" : "0.0.0-dev";
|
|
4025
4027
|
|
|
4026
4028
|
// src/mcp/account-session.ts
|
|
4027
4029
|
var NOT_SIGNED_IN_FOR = (root) => `Not signed in on this computer for ${printable(root)}. Ask the user to run npx designsource login in a terminal in that folder, then restart this app.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "designsource",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "The DS source CLI: add your design system's UI kit to a React app (add), add the design system to any other app (integrate), start a new Next.js project from it (create), or serve it to a coding agent over MCP (mcp) — tokens, every component and your mockup page.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|