daisyui-blueprint 1.7.0 → 1.8.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/README.md CHANGED
@@ -64,6 +64,16 @@ next entry would exceed the serialized response budget. When its next step lists
64
64
  batch advances to implementation and, for non-conversion workflows, Quality Inspector. A single
65
65
  entry is always returned so an unusually large component cannot stall the workflow.
66
66
 
67
+ MCP clients receive the workflow instructions during initialization, before tool use:
68
+
69
+ - Respect the user's explicit scope: a page, section, component, or specific UI change.
70
+ - For a new project, build a complete UI with multiple pages unless the user explicitly limits the scope. A short request or a product name does not imply a single page.
71
+ - For that full project, write a page plan before the first Blueprint tool call. List each page's name, route, and purpose based on the user's goal and main tasks.
72
+ - Spawn one sub-agent per planned page. Each must start a new workflow with a distinct `workflowId`.
73
+ - Select one shared Creative Director configuration before page work starts. All page sub-agents in the same project must use the same options and design trend.
74
+ - For a full project, build every planned page with its own route and connect navigation to those routes. Same-page sections, placeholder links, and dialogs do not replace required pages.
75
+ - For a full project, open every planned route and check its content and navigation. Do not report completion until every planned page is implemented, reachable, and verified. List the completed page routes in the final response.
76
+
67
77
  Creative Director and Page Architect are mandatory when the agent creates a new complete page or
68
78
  screen. Call Creative Director first, then Page Architect. Both tools are optional for other tasks.
69
79
  Conversion workflows skip both tools. Component Syntax Expert remains mandatory before markup.
@@ -111,63 +121,4 @@ Then ask your AI agent to use daisyUI Blueprint:
111
121
  - "Create a daisyUI theme from this image."
112
122
  - "Check my UI with daisyUI Blueprint and fix the issues."
113
123
 
114
- ## Package format
115
-
116
- The published package contains the generated `server.js` implementation at its root and the
117
- complete daisyUI reference library in numbered `chunks/*.json` files. It also contains package
118
- metadata, README, and the license document. There are no generated loader files.
119
-
120
- The build compresses each reference record and encrypts it with AES-256-GCM. The record names
121
- and content list are in an encrypted index. Each build uses fresh keys, nonces, and record IDs.
122
- `chunks/1.json` contains a signed manifest. The other numbered JSON files contain encrypted data.
123
-
124
- Startup checks the Ed25519 manifest signature and the SHA-256 hash of the complete `server.js`,
125
- including its integrity checker, before it sends a license request. The license endpoint strings
126
- are Base64 encoded in the bundle and decoded only after this check. This hides readable URLs;
127
- it does not keep the addresses secret. It then checks `LICENSE`
128
- and `EMAIL` with the existing HTTPS license service. After approval, it checks each content
129
- file against the signed size and hash. It opens the index and creates MCP handlers. Required
130
- tool rules, definitions, and schema data are decoded at startup. Other records, including page,
131
- component, and prompt text, are decoded when needed. The record store does not cache decoded text.
132
-
133
- These measures prevent simple file edits while the verifier is intact. They do not provide
134
- confidentiality against a person who controls the local runtime. The package contains the content
135
- decryption key. A person who changes the verifier can bypass the checks or extract decoded text.
136
- The build creates a signing key in memory and does not write it to disk or include it in the
137
- package. This signature binds the files of one build; it is not an external proof of publisher identity.
138
-
139
- ## Build and development
140
-
141
- Run `bun run --no-env-file build` to generate root `server.js` and `chunks/*.json`.
142
- The build needs no license credentials. After a successful build, `node server.js` or `bun .`
143
- starts the server. Startup requires `LICENSE` and `EMAIL` in the process environment.
144
-
145
- The build reads all four source registries and preserves their exact text. It bundles the server
146
- implementation directly into `server.js`. Runtime npm dependencies remain external.
147
- `MAX_CHUNK_SIZE_KB` limits every final JSON file, including the manifest, with a default of
148
- 256 KiB and a hard limit of 1 MiB. A limit too small for the signed manifest stops the build.
149
- Each record and the index have a 16 MiB limit on their decoded JSON bytes.
150
-
151
- The build prepares the package under `tmp/package-build/`, packs it once, and checks the actual
152
- archive against the expected file list and bytes. Only then does it replace root `server.js` and
153
- `chunks/`. It keeps the previous generated output under the build's `previous/` directory and
154
- restores it if replacement fails. It stops if `chunks/` contains unrelated files or symbolic links.
155
-
156
- The build prints the root entry path, archive path, and archive SHA-256 hash. Publication uses
157
- that exact checked archive. The source package remains private. The generated npm package
158
- declares Node `24.x`. The installed server needs no build files under `tmp/`.
159
-
160
- Run `bun run dev` to build root `server.js` and open it in MCP Inspector. Bun loads the project's
161
- `.env` files. Set `LICENSE` and `EMAIL` there; `FIGMA` and the runtime settings above are optional.
162
- Exported environment variables take precedence. The development launcher forwards the settings
163
- to the server through Inspector without putting credentials in child process arguments.
164
-
165
- ## Development tests
166
-
167
- Run `bun test --no-env-file` for the deterministic suite. Package tests use isolated directories
168
- under `tmp/` and the real reference library. Node integration tests use a mock license API and
169
- check tools, resource templates, prompts, invalid credentials, and changed content files.
170
- They do not call the real license service.
171
-
172
- Run `bun run --no-env-file typecheck` and `bun run --no-env-file lint` for static checks.
173
- Remote image checks remain separate and require `CHECK_REMOTE_IMAGES=true`.
124
+
package/chunks/1.json CHANGED
@@ -1 +1 @@
1
- {"payload":"{\"format\":1,\"buildId\":\"71ca7dd1506bc8352539d0d6dd00d785\",\"indexId\":\"fc5b5a5aa7e7dc35160bcab8da168513\",\"server\":{\"byteLength\":221577,\"sha256\":\"9424a840b2ea59e8de9a45d8b80c8a617b0de07e2170cdd87db18f27d8ffa23d\"},\"files\":[{\"path\":\"chunks/2.json\",\"byteLength\":153385,\"sha256\":\"536a9c52284cb9545e57aabcf70ba79fbdd36efb56d20701a66b8316227ede9c\"},{\"path\":\"chunks/3.json\",\"byteLength\":258825,\"sha256\":\"42143883a71c59381dbc5f41496854c165a23003a0daef0972344dfc1e0d6931\"},{\"path\":\"chunks/4.json\",\"byteLength\":260917,\"sha256\":\"fe8e24c83ac06589b73510ff88bca9c3653a301a20c6966f0cc9ab0bc9f9b3a4\"},{\"path\":\"chunks/5.json\",\"byteLength\":258853,\"sha256\":\"58eeb760dced1ba4fc5878b09b690870bee4b794397bdf450192323f2454dd43\"},{\"path\":\"chunks/6.json\",\"byteLength\":261893,\"sha256\":\"02995436f5ab25631c0e8ee1529ef9d92140a0b82ac071662ab61a11eea07896\"},{\"path\":\"chunks/7.json\",\"byteLength\":259557,\"sha256\":\"28e5e8851e46cc12a337d2c0b767540d2fae21b2a06ff1941e55b761e3a63e33\"},{\"path\":\"chunks/8.json\",\"byteLength\":46149,\"sha256\":\"542f70d9c185db99e75eeb7da4a910fdb464e7bb0102ef1faa4459649f4d89a2\"}]}","signature":"3EzSc2Ac7ZHR1/wZLAtnuPdKZmWg2ppTg90oMqym377S8DU3UuX/k8T5myeT3TgityzMcs3cgIbzfekiSaRWAQ=="}
1
+ {"payload":"{\"format\":1,\"buildId\":\"9585c79de89346be41d2c69182972ec6\",\"indexId\":\"d6810d8ffa6478d2c8647b01b2c0666f\",\"server\":{\"byteLength\":221577,\"sha256\":\"f13fa0b31f19d365f881893e59c171071f42d874a0ba953048de6b814d783ec2\"},\"files\":[{\"path\":\"chunks/2.json\",\"byteLength\":154097,\"sha256\":\"bea4bb26b13320a5b2b80c942b13d61ad9a806f341189a13236b54677cccdec1\"},{\"path\":\"chunks/3.json\",\"byteLength\":258941,\"sha256\":\"ec1ca0362c52eac957e67b2d02f1a0ae077699886b5f615fc50f9b19ed983bcd\"},{\"path\":\"chunks/4.json\",\"byteLength\":260917,\"sha256\":\"2b60e9a3b1fc1dd3b13c013e8c87ad6064e6c66e9356c255a3dd665d9904b0a3\"},{\"path\":\"chunks/5.json\",\"byteLength\":258853,\"sha256\":\"11a1f1983d04632d781f0f380575aad25ab20b58d5a4e6f25981b76ffc6798f6\"},{\"path\":\"chunks/6.json\",\"byteLength\":261893,\"sha256\":\"f1fb692e1b2682abd6aa24774e0fd950af91888508c429152f11fd085d4d37c1\"},{\"path\":\"chunks/7.json\",\"byteLength\":259557,\"sha256\":\"a2862928e482c0cf104e7e1cb83ada65ba8ed04bf5aff98b191402826b7a1603\"},{\"path\":\"chunks/8.json\",\"byteLength\":46621,\"sha256\":\"6500bbccecc516da9edba5ea2f265181c7f731809fbed5c7c0bcc9cb09391bb3\"}]}","signature":"17N7KJ1J+HsiIDZK/w60B96mNs1kJh8fkkqngDRlAVUQr/dulfz/zYiGBxHBWgrDXM0cWLCdiWfFaDhpGCTBBA=="}