@elurjs/universal 0.1.1 → 0.1.2
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/cli/create-app.mjs +21 -1
- package/package.json +1 -1
- package/src/backends/web/base-css.ts +5 -0
package/cli/create-app.mjs
CHANGED
|
@@ -213,7 +213,7 @@ if (template === "sdui") {
|
|
|
213
213
|
when: { ref: "showGuide" },
|
|
214
214
|
then: {
|
|
215
215
|
type: "text",
|
|
216
|
-
text: "1) bun run gateway 2) bun run dev 3) ejecuta gemini en esta carpeta: las tools MCP publican en vivo sin recompilar.",
|
|
216
|
+
text: "1) bun run gateway 2) bun run dev 3) ejecuta gemini/opencode/claude en esta carpeta: las tools MCP publican en vivo sin recompilar.",
|
|
217
217
|
style: { color: "#FFD166", fontSize: 13 },
|
|
218
218
|
},
|
|
219
219
|
},
|
|
@@ -258,6 +258,26 @@ if (template === "sdui") {
|
|
|
258
258
|
join(dest, ".mcp.json"),
|
|
259
259
|
JSON.stringify(mcpConfig, null, 2) + "\n",
|
|
260
260
|
);
|
|
261
|
+
// OpenCode usa su propio esquema: raíz "mcp" + type "local" +
|
|
262
|
+
// command como array plano (no command/args separados).
|
|
263
|
+
const oc = mcpConfig.mcpServers["elur-sdui"];
|
|
264
|
+
writeFileSync(
|
|
265
|
+
join(dest, "opencode.json"),
|
|
266
|
+
JSON.stringify(
|
|
267
|
+
{
|
|
268
|
+
$schema: "https://opencode.ai/config.json",
|
|
269
|
+
mcp: {
|
|
270
|
+
"elur-sdui": {
|
|
271
|
+
type: "local",
|
|
272
|
+
command: [oc.command, ...oc.args],
|
|
273
|
+
enabled: true,
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
null,
|
|
278
|
+
2,
|
|
279
|
+
) + "\n",
|
|
280
|
+
);
|
|
261
281
|
|
|
262
282
|
writeFileSync(join(dest, "src/verify.ts"), `import { ElurTextEncoder } from "@elurjs/universal";
|
|
263
283
|
import { resolveModule } from "@elurjs/universal/native";
|
package/package.json
CHANGED
|
@@ -32,6 +32,11 @@ export const ELUR_BASE_CSS =
|
|
|
32
32
|
"button,input:not([type=checkbox]):not([type=range]),textarea{font:inherit;color:inherit;" +
|
|
33
33
|
"background:transparent;appearance:none;-webkit-appearance:none}" +
|
|
34
34
|
"button{cursor:pointer;text-align:inherit}" +
|
|
35
|
+
// button = acción rotulada: el contenido (el text absorbido como
|
|
36
|
+
// <span> hijo) se centra como en Android/Linux — el UA lo alinearía
|
|
37
|
+
// por text-align y este reset lo hereda de la row.
|
|
38
|
+
"[data-elur-type=\"button\"]{display:inline-flex;align-items:center;" +
|
|
39
|
+
"justify-content:center}" +
|
|
35
40
|
"a{color:inherit;text-decoration:inherit}" +
|
|
36
41
|
"img{display:block}" +
|
|
37
42
|
"[data-elur-refreshing=\"true\"]::before{content:\"\";display:block;width:20px;height:20px;" +
|