@mocklane/core 0.1.0 → 1.0.0
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 +1 -34
- package/build/client/assets/{manifest-f8a16862.js → manifest-08a95dab.js} +1 -1
- package/build/client/assets/{root--WDECO_x.css → root-Di4etcLz.css} +1 -1
- package/build/client/index.html +3 -3
- package/package.json +1 -1
- /package/build/client/assets/{root-CCK9sNPJ.js → root-Dlix2DV-.js} +0 -0
package/README.md
CHANGED
|
@@ -272,15 +272,7 @@ Start the React Router development server:
|
|
|
272
272
|
pnpm dev
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
-
The development UI runs at `http://localhost:3010`.
|
|
276
|
-
|
|
277
|
-
```text
|
|
278
|
-
http://localhost:3010/test
|
|
279
|
-
http://localhost:3010/test-t
|
|
280
|
-
http://localhost:3010/test-n
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
The main application uses Transformers.js by default. The test routes isolate WebLLM, Transformers.js, and Native Browser AI behavior.
|
|
275
|
+
The development UI runs at `http://localhost:3010`.
|
|
284
276
|
|
|
285
277
|
### Run the source CLI
|
|
286
278
|
|
|
@@ -309,37 +301,12 @@ pnpm build:package
|
|
|
309
301
|
- `test:cli` verifies UI serving, mock registration, standalone `404` responses, CORS preflight handling, and upstream proxying.
|
|
310
302
|
- `build:package` creates the production browser bundle and compiled CLI.
|
|
311
303
|
|
|
312
|
-
## Packaging
|
|
313
|
-
|
|
314
|
-
Create the npm tarball locally:
|
|
315
|
-
|
|
316
|
-
```bash
|
|
317
|
-
npm pack
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
The `prepack` script automatically runs the production UI and CLI builds. The package contains:
|
|
321
|
-
|
|
322
|
-
```text
|
|
323
|
-
build/client/ Production browser application
|
|
324
|
-
dist/cli.js Compiled Node.js executable
|
|
325
|
-
README.md Package documentation
|
|
326
|
-
LICENSE MIT license
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
Inspect the package without publishing:
|
|
330
|
-
|
|
331
|
-
```bash
|
|
332
|
-
npm publish --dry-run
|
|
333
|
-
```
|
|
334
|
-
|
|
335
304
|
## Architecture
|
|
336
305
|
|
|
337
306
|
```text
|
|
338
307
|
app/
|
|
339
308
|
components/ Shared interface components
|
|
340
309
|
routes/home.tsx Main generator workspace
|
|
341
|
-
routes/test*.tsx Development model test benches
|
|
342
|
-
test-benches/ Provider-specific test interfaces
|
|
343
310
|
styles/app.css Application styles
|
|
344
311
|
cli/
|
|
345
312
|
index.ts CLI entry point and argument parsing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Cw45cONA.js","imports":["/assets/jsx-runtime-BZbza59V.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/root-
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Cw45cONA.js","imports":["/assets/jsx-runtime-BZbza59V.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/root-Dlix2DV-.js","imports":["/assets/jsx-runtime-BZbza59V.js"],"css":["/assets/root-Di4etcLz.css"]},"routes/home":{"id":"routes/home","parentId":"root","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/home-CHNZ1EXV.js","imports":["/assets/jsx-runtime-BZbza59V.js"],"css":[]}},"url":"/assets/manifest-08a95dab.js","version":"08a95dab"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{color-scheme:light;--bg: #f6f7f9;--panel: #ffffff;--panel-soft: #fbfcfe;--ink: #15181f;--muted: #657080;--line: #d9dee7;--line-strong: #bcc5d2;--primary: #1663d9;--primary-dark: #0f4ca7;--code: #111827;--code-ink: #d6e2ff;--brand-ink: #152b3f;--brand-blue: #1597df;--hover-soft: #eef2f7;--ok: #16825d;--warn: #ad5b00;--ready-line: #a7dbc8;--warn-line: #f3cf9c;--focus-ring: rgba(22, 99, 217, .12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}[data-theme=dark]{color-scheme:dark;--bg: #0c1118;--panel: #111821;--panel-soft: #0f151e;--ink: #edf3fb;--muted: #92a0b2;--line: #263241;--line-strong: #3a485a;--primary: #2f9ff0;--primary-dark: #1b84d2;--code: #070b12;--code-ink: #d8e7ff;--brand-ink: #f2f7fd;--brand-blue: #39aaf4;--hover-soft: #1a2431;--ok: #68d6ae;--warn: #ffb75d;--ready-line: #2f735d;--warn-line: #7a5427;--focus-ring: rgba(47, 159, 240, .22)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink)}button,textarea{font:inherit}.app-shell{height:100vh;overflow:hidden;padding:0 24px 24px}.workspace{display:flex;height:calc(100vh - 92px);min-height:0;flex-direction:column;max-width:1440px;margin:0 auto}.workspace-summary{display:block;margin-bottom:18px}.product-description{max-width:760px;margin:0;color:var(--muted);font-size:14px;line-height:1.5}.topbar{width:calc(100% + 48px);display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -24px 18px;border-top:1px solid #55bca9;padding:12px 24px;background:#2d3e50;color:#f6f8fb}.topbar-inner{display:flex;width:100%;max-width:1440px;margin:0 auto;align-items:center;justify-content:space-between;gap:16px}.title-line{display:flex;min-width:0;align-items:baseline;gap:16px}.topbar-actions{display:flex;align-items:center;gap:10px}.eyebrow{margin:0 0 5px;color:var(--primary-dark);font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase}.brand-logo{display:inline-flex;align-items:baseline;flex:0 0 auto;margin-bottom:0;font-size:clamp(18px,1.8vw,24px);font-weight:900;line-height:1;letter-spacing:0}.brand-logo span:first-child{color:#f6f8fb}.brand-logo span:last-child{color:#42d0b6}h1,h2{margin:0;letter-spacing:0}h1{font-size:15px;font-weight:400;line-height:1.25;color:#c8d4df}h2{font-size:20px}.status-pill{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#ffffff0a;color:#d8e2eb;font-size:13px;font-weight:650}.status-pill.ready{border-color:var(--ready-line);color:var(--ok)}.status-pill.fallback{border-color:var(--warn-line);color:var(--warn)}.panels{display:grid;min-height:0;flex:1;grid-template-columns:minmax(360px,.8fr) minmax(420px,1.2fr);gap:18px;align-items:stretch}.input-panel,.output-panel{min-width:0;min-height:0;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.input-panel{display:flex;flex-direction:column;gap:16px;overflow:hidden;padding:18px}.field-group{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px}.prompt-group{min-height:140px;flex:0 0 210px}.field-heading,.output-head{display:flex;align-items:center;justify-content:space-between;gap:12px}label{font-weight:760}.field-heading span{color:var(--muted);font-size:12px;font-weight:650;text-align:right}textarea{width:100%;min-height:0;flex:1;resize:none;border:1px solid var(--line-strong);border-radius:8px;padding:13px;color:var(--ink);background:var(--panel-soft);line-height:1.45;outline:none}textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.actions{display:flex;gap:10px;flex-wrap:wrap}button{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:8px;padding:0 14px;background:var(--primary);color:#fff;cursor:pointer;font-weight:760}button:hover{background:var(--primary-dark)}button:disabled{cursor:wait;opacity:.68}button.secondary{border-color:var(--line-strong);background:var(--panel);color:var(--ink)}button.secondary:hover{border-color:var(--primary);color:var(--primary-dark)}button.mock-active{border-color:var(--ready-line);background:var(--ok);color:#fff}button.mock-active:hover{border-color:var(--ready-line);background:var(--ok)}button.ghost{background:transparent;color:var(--muted)}button.ghost:hover{background:var(--hover-soft);color:var(--ink)}button.load-provider-action{border-color:var(--line-strong);background:var(--panel);color:var(--ink)}button.load-provider-action:hover{border-color:var(--primary);background:var(--hover-soft);color:var(--primary-dark)}button.load-provider-action:disabled{background:transparent;color:var(--muted);cursor:not-allowed;opacity:.72}.provider-progress-text{min-height:18px;margin:-6px 0 0;color:var(--muted);font-size:12px;font-weight:650;line-height:1.4}.spin-icon{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}button.icon-button{width:38px;padding:0;border-color:#ffffff2e;background:#ffffff0a;color:#d8e2eb}button.icon-button:hover{border-color:#42d0b6;background:#42d0b61f;color:#42d0b6}.output-panel{display:flex;min-height:0;overflow:visible;flex-direction:column;padding:18px}.output-head{margin-bottom:14px}.model-picker{position:relative;flex:0 0 auto}.model-select{min-width:260px;justify-content:space-between;border-color:var(--line-strong);background:var(--panel);color:var(--ink)}.model-select:hover{border-color:var(--primary);background:var(--panel);color:var(--primary-dark)}.model-select>span,.model-menu-item>span:first-child{display:grid;min-width:0;text-align:left}.model-select-label,.model-option-label{overflow:hidden;font-size:13px;font-weight:800;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.model-select-detail,.model-option-detail{overflow:hidden;color:var(--muted);font-size:11px;font-weight:650;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.model-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:5;width:min(360px,calc(100vw - 48px));overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 18px 48px #1118272e}.model-menu-item{width:100%;min-height:52px;justify-content:space-between;gap:16px;border:0;border-radius:0;padding:9px 12px;background:var(--panel);color:var(--ink)}.model-menu-item:hover{background:var(--hover-soft);color:var(--ink)}.model-menu-item[aria-selected=true]{background:#1663d914}.model-menu-item:disabled{cursor:not-allowed;opacity:1}.model-menu-item:disabled .model-option-label,.model-menu-item:disabled .model-option-detail{color:var(--muted);opacity:.62}.model-unavailable{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:750;line-height:1;opacity:.7}.code-wrap{position:relative;display:grid;min-height:0;flex:1;overflow:visible;border-radius:8px;background:var(--code)}.code-actions{position:absolute;top:12px;right:26px;z-index:1000;display:flex;gap:8px}.code-icon-button{position:relative;width:36px;min-height:36px;padding:0;border-color:#d8e2eb33;background:#2d3e50db;color:#d8e2eb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.code-icon-button:hover{border-color:#42d0b6;background:#2d3e50;color:#42d0b6}.code-icon-button.copied{border-color:var(--ready-line);background:var(--ok);color:#fff}.json-editor-shell{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column}.json-editor{width:100%;min-height:0;flex:1;resize:none;border:0;border-radius:8px;outline:none;padding:18px 112px 18px 18px;background:transparent;color:var(--code-ink);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:13px;line-height:1.55;white-space:pre}.json-editor:focus{box-shadow:inset 0 0 0 1px #42d0b6a6}.json-editor-error{margin:0;border-top:1px solid var(--warn-line);padding:9px 14px;background:#ad5b0021;color:var(--warn);font-size:12px;font-weight:700;line-height:1.4}.tooltip-bubble{position:absolute;z-index:1001;right:50%;bottom:calc(100% + 10px);transform:translate(50%);visibility:hidden;opacity:0;pointer-events:none;white-space:nowrap;border-radius:6px;padding:7px 9px;background:#2d3e50;color:#f6f8fb;font-size:12px;font-weight:700;transition:opacity .16s ease,visibility .16s ease}.tooltip-bubble:after{position:absolute;top:100%;left:50%;width:0;height:0;border:6px solid transparent;border-top-color:#2d3e50;content:"";transform:translate(-50%)}.copy-control:hover .tooltip-bubble,.copy-control:focus-visible .tooltip-bubble,.copy-control.copied .tooltip-bubble,.generate-control.needs-model:hover .tooltip-bubble,.generate-control.needs-model:focus-visible .tooltip-bubble,.generate-control.needs-model:focus-within .tooltip-bubble{visibility:visible;opacity:1}.copy-control.copied .tooltip-bubble{background:var(--ok)}.copy-control.copied .tooltip-bubble:after{border-top-color:var(--ok)}.generate-control{position:relative;display:inline-flex;border-radius:8px;outline:none}.generate-control:focus-visible{box-shadow:0 0 0 3px var(--focus-ring)}pre{min-height:0;overflow:auto;margin:0;border-radius:0;padding:18px 112px 18px 18px;background:transparent;color:var(--code-ink);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:13px;line-height:1.55;white-space:pre}.mock-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.mock-endpoint{display:flex;width:min(600px,100%);min-width:0;height:38px;align-items:center;overflow:hidden;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel);color:var(--muted);font-size:13px;font-weight:700}.mock-endpoint>span{padding-left:12px;white-space:nowrap}.mock-endpoint input{width:100%;min-width:100px;height:100%;border:0;outline:none;padding:0 12px 0 0;background:transparent;color:var(--ink);font:inherit}.mock-endpoint:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.mock-endpoint input:disabled{color:var(--muted);cursor:not-allowed}.mock-endpoint input::placeholder{color:var(--muted);opacity:.72}.test-shell{min-height:100vh;padding:24px;background:var(--bg)}.test-header{display:flex;max-width:1280px;margin:0 auto 18px;align-items:center;justify-content:space-between;gap:16px}.test-header h1{color:var(--ink);font-size:28px;font-weight:850}.test-grid{display:grid;max-width:1280px;margin:0 auto;grid-template-columns:repeat(2,minmax(420px,1fr));gap:18px}.test-grid-single{grid-template-columns:minmax(420px,1fr)}.test-panel{display:flex;min-width:0;min-height:0;flex-direction:column;gap:16px;border:1px solid var(--line);border-radius:8px;padding:18px;background:var(--panel)}.test-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.model-stat-grid,.test-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.model-stat-grid{grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px}.model-stat-grid>div,.test-stat-grid>div{display:grid;min-width:0;gap:5px;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--panel-soft)}.test-model-stat{position:relative}.test-model-trigger{min-height:22px;justify-content:space-between;border:0;border-radius:4px;padding:0;background:transparent;color:var(--ink)}.test-model-trigger:hover{background:transparent;color:var(--primary-dark)}.test-model-trigger:disabled{cursor:wait}.test-model-trigger strong{max-width:calc(100% - 24px)}.test-model-menu{top:calc(100% + 8px);right:0;left:0;z-index:20;width:auto}.model-stat-grid>div{gap:4px;min-height:52px;padding:7px 10px}.model-stat-dropdown{position:relative}.model-stat-trigger{width:100%;min-height:22px;justify-content:space-between;border:0;border-radius:4px;padding:0;background:transparent;color:var(--ink)}.model-stat-trigger:hover{background:transparent;color:var(--primary-dark)}.model-stat-trigger:disabled{background:transparent;color:var(--muted);cursor:wait}.model-stat-trigger strong{max-width:calc(100% - 24px)}.transformer-model-menu{top:calc(100% + 8px);right:0;left:0;width:auto}.provider-stat{display:flex;position:relative;padding:0}.provider-stat:hover{background:var(--hover-soft)}.provider-stat-card{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) auto auto;column-gap:10px;height:100%;width:100%;min-height:42px;background:transparent;color:var(--ink)}.provider-dropdown-trigger{width:100%;min-height:42px;justify-content:flex-start;border:0;border-radius:0;padding:0 0 0 12px;background:transparent;color:var(--ink)}.provider-chevron-button{width:30px;min-height:42px;border:0;border-radius:0;padding:0 10px 0 0;background:transparent;color:var(--muted)}.provider-chevron-button:hover,.provider-dropdown-trigger:hover{background:transparent;color:var(--muted)}.provider-stat:hover .provider-copy span,.provider-stat:hover .provider-copy strong,.provider-stat:hover .provider-status,.provider-dropdown-trigger:hover .provider-copy span,.provider-dropdown-trigger:hover .provider-copy strong,.provider-dropdown-trigger:hover .provider-status{color:var(--muted)}.provider-copy{display:grid;min-width:0;gap:4px;text-align:left}.provider-copy span{color:var(--muted);font-size:11px;font-weight:750}.provider-copy strong{overflow:hidden;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.provider-status{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:800;white-space:nowrap}.provider-status-wrap{display:grid;justify-items:end}.provider-status-dot{width:9px;height:9px;border:0;border-radius:999px;background:var(--muted)}.provider-status-dot.ready{background:var(--ok)}.provider-status-dot.available{background:var(--primary)}.provider-status-dot.loading{background:var(--warn)}.provider-status-dot.running{background:var(--ok)}.provider-status-dot.missing{background:var(--muted)}.provider-menu{left:0;right:auto;width:min(360px,calc(100vw - 48px))}.model-stat-grid span,.test-stat-grid span{color:var(--muted);font-size:12px;font-weight:750}.model-stat-grid span{font-size:11px}.model-stat-grid strong,.test-stat-grid strong{overflow:hidden;font-size:13px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.model-stat-grid strong{font-size:12px}.model-stat-grid .provider-copy span,.model-stat-grid .provider-status{font-size:11px}.model-stat-grid .provider-status span{color:inherit;font-size:inherit;font-weight:inherit}.test-label{margin-bottom:-8px}.test-textarea{min-height:160px;flex:0 0 auto}.test-status{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.test-output{min-height:260px}.test-output pre{padding-right:18px;white-space:pre-wrap}.test-log{display:grid;gap:10px}.test-log article,.test-log>p{margin:0;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--panel-soft)}.test-log span{display:block;margin-bottom:5px;color:var(--primary-dark);font-size:12px;font-weight:850;text-transform:uppercase}.test-log p{display:-webkit-box;overflow:hidden;margin:0;color:var(--muted);font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:5}@media(max-width:980px){.app-shell{height:auto;overflow:visible;padding:0 16px 16px}.workspace{height:auto}.workspace-summary{grid-template-columns:1fr}.topbar{width:calc(100% + 32px);margin:0 -16px 18px;padding:12px 16px}.topbar-inner{align-items:flex-start;flex-direction:column}.title-line{flex-direction:column;gap:4px}.panels{grid-template-columns:1fr}.input-panel{overflow:visible}.field-group{min-height:250px}.prompt-group{min-height:160px;flex:.65}.output-panel{min-height:520px}.test-shell{padding:16px}.test-header{align-items:flex-start;flex-direction:column}.test-grid{grid-template-columns:1fr}.model-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.app-shell{padding:0 10px 10px}.topbar{width:calc(100% + 20px);margin:0 -10px 14px;padding:12px 10px}.input-panel,.output-panel{padding:12px}.workspace-summary{gap:12px;margin-bottom:14px}.field-heading,.output-head{align-items:flex-start;flex-direction:column}.model-picker,.model-select,.actions,.mock-footer{width:100%}.mock-footer{align-items:stretch;flex-direction:column}.mock-endpoint,.mock-endpoint input{width:100%}button{flex:1 1 120px}.test-shell{padding:10px}.test-panel{padding:12px}.test-header h1{font-size:24px}.model-stat-grid,.test-stat-grid{grid-template-columns:1fr}}
|
|
1
|
+
:root{color-scheme:light;--bg: #f6f7f9;--panel: #ffffff;--panel-soft: #fbfcfe;--ink: #15181f;--muted: #657080;--line: #d9dee7;--line-strong: #bcc5d2;--primary: #1663d9;--primary-dark: #0f4ca7;--code: #111827;--code-ink: #d6e2ff;--brand-ink: #152b3f;--brand-blue: #1597df;--hover-soft: #eef2f7;--ok: #16825d;--warn: #ad5b00;--ready-line: #a7dbc8;--warn-line: #f3cf9c;--focus-ring: rgba(22, 99, 217, .12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}[data-theme=dark]{color-scheme:dark;--bg: #0c1118;--panel: #111821;--panel-soft: #0f151e;--ink: #edf3fb;--muted: #92a0b2;--line: #263241;--line-strong: #3a485a;--primary: #2f9ff0;--primary-dark: #1b84d2;--code: #070b12;--code-ink: #d8e7ff;--brand-ink: #f2f7fd;--brand-blue: #39aaf4;--hover-soft: #1a2431;--ok: #68d6ae;--warn: #ffb75d;--ready-line: #2f735d;--warn-line: #7a5427;--focus-ring: rgba(47, 159, 240, .22)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink)}button,textarea{font:inherit}.app-shell{height:100vh;overflow:hidden;padding:0 24px 24px}.workspace{display:flex;height:calc(100vh - 92px);min-height:0;flex-direction:column;max-width:1440px;margin:0 auto}.workspace-summary{display:block;margin-bottom:18px}.product-description{max-width:760px;margin:0;color:var(--muted);font-size:14px;line-height:1.5}.topbar{width:calc(100% + 48px);display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -24px 18px;border-top:1px solid #55bca9;padding:12px 24px;background:#2d3e50;color:#f6f8fb}.topbar-inner{display:flex;width:100%;max-width:1440px;margin:0 auto;align-items:center;justify-content:space-between;gap:16px}.title-line{display:flex;min-width:0;align-items:baseline;gap:16px}.topbar-actions{display:flex;align-items:center;gap:10px}.eyebrow{margin:0 0 5px;color:var(--primary-dark);font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase}.brand-logo{display:inline-flex;align-items:baseline;flex:0 0 auto;margin-bottom:0;font-size:clamp(18px,1.8vw,24px);font-weight:900;line-height:1;letter-spacing:0}.brand-logo span:first-child{color:#f6f8fb}.brand-logo span:last-child{color:#42d0b6}h1,h2{margin:0;letter-spacing:0}h1{font-size:15px;font-weight:400;line-height:1.25;color:#c8d4df}h2{font-size:20px}.status-pill{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#ffffff0a;color:#d8e2eb;font-size:13px;font-weight:650}.status-pill.ready{border-color:var(--ready-line);color:var(--ok)}.status-pill.fallback{border-color:var(--warn-line);color:var(--warn)}.panels{display:grid;min-height:0;flex:1;grid-template-columns:minmax(360px,.8fr) minmax(420px,1.2fr);gap:18px;align-items:stretch}.input-panel,.output-panel{min-width:0;min-height:0;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.input-panel{display:flex;flex-direction:column;gap:16px;overflow:hidden;padding:18px}.field-group{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px}.prompt-group{min-height:140px;flex:0 0 210px}.field-heading,.output-head{display:flex;align-items:center;justify-content:space-between;gap:12px}label{font-weight:760}.field-heading span{color:var(--muted);font-size:12px;font-weight:650;text-align:right}textarea{width:100%;min-height:0;flex:1;resize:none;border:1px solid var(--line-strong);border-radius:8px;padding:13px;color:var(--ink);background:var(--panel-soft);line-height:1.45;outline:none}textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.actions{display:flex;gap:10px;flex-wrap:wrap}button{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:8px;padding:0 14px;background:var(--primary);color:#fff;cursor:pointer;font-weight:760}button:hover{background:var(--primary-dark)}button:disabled{cursor:wait;opacity:.68}button.secondary{border-color:var(--line-strong);background:var(--panel);color:var(--ink)}button.secondary:hover{border-color:var(--primary);color:var(--primary-dark)}button.mock-active{border-color:var(--ready-line);background:var(--ok);color:#fff}button.mock-active:hover{border-color:var(--ready-line);background:var(--ok)}button.ghost{background:transparent;color:var(--muted)}button.ghost:hover{background:var(--hover-soft);color:var(--ink)}button.load-provider-action{border-color:var(--line-strong);background:var(--panel);color:var(--ink)}button.load-provider-action:hover{border-color:var(--primary);background:var(--hover-soft);color:var(--primary-dark)}button.load-provider-action:disabled{background:transparent;color:var(--muted);cursor:not-allowed;opacity:.72}.provider-progress-text{min-height:18px;margin:-6px 0 0;color:var(--muted);font-size:12px;font-weight:650;line-height:1.4}.spin-icon{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}button.icon-button{width:38px;padding:0;border-color:#ffffff2e;background:#ffffff0a;color:#d8e2eb}button.icon-button:hover{border-color:#42d0b6;background:#42d0b61f;color:#42d0b6}.output-panel{display:flex;min-height:0;overflow:visible;flex-direction:column;padding:18px}.output-head{margin-bottom:14px}.model-picker{position:relative;flex:0 0 auto}.model-select{min-width:260px;justify-content:space-between;border-color:var(--line-strong);background:var(--panel);color:var(--ink)}.model-select:hover{border-color:var(--primary);background:var(--panel);color:var(--primary-dark)}.model-select>span,.model-menu-item>span:first-child{display:grid;min-width:0;text-align:left}.model-select-label,.model-option-label{overflow:hidden;font-size:13px;font-weight:800;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.model-select-detail,.model-option-detail{overflow:hidden;color:var(--muted);font-size:11px;font-weight:650;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.model-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:5;width:min(360px,calc(100vw - 48px));overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 18px 48px #1118272e}.model-menu-item{width:100%;min-height:52px;justify-content:space-between;gap:16px;border:0;border-radius:0;padding:9px 12px;background:var(--panel);color:var(--ink)}.model-menu-item:hover{background:var(--hover-soft);color:var(--ink)}.model-menu-item[aria-selected=true]{background:#1663d914}.model-menu-item:disabled{cursor:not-allowed;opacity:1}.model-menu-item:disabled .model-option-label,.model-menu-item:disabled .model-option-detail{color:var(--muted);opacity:.62}.model-unavailable{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:750;line-height:1;opacity:.7}.code-wrap{position:relative;display:grid;min-height:0;flex:1;overflow:visible;border-radius:8px;background:var(--code)}.code-actions{position:absolute;top:12px;right:26px;z-index:1000;display:flex;gap:8px}.code-icon-button{position:relative;width:36px;min-height:36px;padding:0;border-color:#d8e2eb33;background:#2d3e50db;color:#d8e2eb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.code-icon-button:hover{border-color:#42d0b6;background:#2d3e50;color:#42d0b6}.code-icon-button.copied{border-color:var(--ready-line);background:var(--ok);color:#fff}.json-editor-shell{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column}.json-editor{width:100%;min-height:0;flex:1;resize:none;border:0;border-radius:8px;outline:none;padding:18px 112px 18px 18px;background:transparent;color:var(--code-ink);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:13px;line-height:1.55;white-space:pre}.json-editor:focus{box-shadow:inset 0 0 0 1px #42d0b6a6}.json-editor-error{margin:0;border-top:1px solid var(--warn-line);padding:9px 14px;background:#ad5b0021;color:var(--warn);font-size:12px;font-weight:700;line-height:1.4}.tooltip-bubble{position:absolute;z-index:1001;right:50%;bottom:calc(100% + 10px);transform:translate(50%);visibility:hidden;opacity:0;pointer-events:none;white-space:nowrap;border-radius:6px;padding:7px 9px;background:#2d3e50;color:#f6f8fb;font-size:12px;font-weight:700;transition:opacity .16s ease,visibility .16s ease}.tooltip-bubble:after{position:absolute;top:100%;left:50%;width:0;height:0;border:6px solid transparent;border-top-color:#2d3e50;content:"";transform:translate(-50%)}.copy-control:hover .tooltip-bubble,.copy-control:focus-visible .tooltip-bubble,.copy-control.copied .tooltip-bubble,.generate-control.needs-model:hover .tooltip-bubble,.generate-control.needs-model:focus-visible .tooltip-bubble,.generate-control.needs-model:focus-within .tooltip-bubble{visibility:visible;opacity:1}.copy-control.copied .tooltip-bubble{background:var(--ok)}.copy-control.copied .tooltip-bubble:after{border-top-color:var(--ok)}.generate-control{position:relative;display:inline-flex;border-radius:8px;outline:none}.generate-control:focus-visible{box-shadow:0 0 0 3px var(--focus-ring)}pre{min-height:0;overflow:auto;margin:0;border-radius:0;padding:18px 112px 18px 18px;background:transparent;color:var(--code-ink);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:13px;line-height:1.55;white-space:pre}.mock-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.mock-endpoint{display:flex;width:min(600px,100%);min-width:0;height:38px;align-items:center;overflow:hidden;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel);color:var(--muted);font-size:13px;font-weight:700}.mock-endpoint>span{padding-left:12px;white-space:nowrap}.mock-endpoint input{width:100%;min-width:100px;height:100%;border:0;outline:none;padding:0 12px 0 0;background:transparent;color:var(--ink);font:inherit}.mock-endpoint:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.mock-endpoint input:disabled{color:var(--muted);cursor:not-allowed}.mock-endpoint input::placeholder{color:var(--muted);opacity:.72}.model-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.model-stat-grid{grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px}.model-stat-grid>div{display:grid;min-width:0;gap:5px;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--panel-soft)}.model-stat-grid>div{gap:4px;min-height:52px;padding:7px 10px}.model-stat-dropdown{position:relative}.model-stat-trigger{width:100%;min-height:22px;justify-content:space-between;border:0;border-radius:4px;padding:0;background:transparent;color:var(--ink)}.model-stat-trigger:hover{background:transparent;color:var(--primary-dark)}.model-stat-trigger:disabled{background:transparent;color:var(--muted);cursor:wait}.model-stat-trigger strong{max-width:calc(100% - 24px)}.transformer-model-menu{top:calc(100% + 8px);right:0;left:0;width:auto}.provider-stat{display:flex;position:relative;padding:0}.provider-stat:hover{background:var(--hover-soft)}.provider-stat-card{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) auto auto;column-gap:10px;height:100%;width:100%;min-height:42px;background:transparent;color:var(--ink)}.provider-dropdown-trigger{width:100%;min-height:42px;justify-content:flex-start;border:0;border-radius:0;padding:0 0 0 12px;background:transparent;color:var(--ink)}.provider-chevron-button{width:30px;min-height:42px;border:0;border-radius:0;padding:0 10px 0 0;background:transparent;color:var(--muted)}.provider-chevron-button:hover,.provider-dropdown-trigger:hover{background:transparent;color:var(--muted)}.provider-stat:hover .provider-copy span,.provider-stat:hover .provider-copy strong,.provider-stat:hover .provider-status,.provider-dropdown-trigger:hover .provider-copy span,.provider-dropdown-trigger:hover .provider-copy strong,.provider-dropdown-trigger:hover .provider-status{color:var(--muted)}.provider-copy{display:grid;min-width:0;gap:4px;text-align:left}.provider-copy span{color:var(--muted);font-size:11px;font-weight:750}.provider-copy strong{overflow:hidden;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.provider-status{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:800;white-space:nowrap}.provider-status-wrap{display:grid;justify-items:end}.provider-status-dot{width:9px;height:9px;border:0;border-radius:999px;background:var(--muted)}.provider-status-dot.ready{background:var(--ok)}.provider-status-dot.available{background:var(--primary)}.provider-status-dot.loading{background:var(--warn)}.provider-status-dot.running{background:var(--ok)}.provider-status-dot.missing{background:var(--muted)}.provider-menu{left:0;right:auto;width:min(360px,calc(100vw - 48px))}.model-stat-grid span{color:var(--muted);font-size:12px;font-weight:750}.model-stat-grid span{font-size:11px}.model-stat-grid strong{overflow:hidden;font-size:13px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.model-stat-grid strong{font-size:12px}.model-stat-grid .provider-copy span,.model-stat-grid .provider-status{font-size:11px}.model-stat-grid .provider-status span{color:inherit;font-size:inherit;font-weight:inherit}@media(max-width:980px){.app-shell{height:auto;overflow:visible;padding:0 16px 16px}.workspace{height:auto}.workspace-summary{grid-template-columns:1fr}.topbar{width:calc(100% + 32px);margin:0 -16px 18px;padding:12px 16px}.topbar-inner{align-items:flex-start;flex-direction:column}.title-line{flex-direction:column;gap:4px}.panels{grid-template-columns:1fr}.input-panel{overflow:visible}.field-group{min-height:250px}.prompt-group{min-height:160px;flex:.65}.output-panel{min-height:520px}.model-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.app-shell{padding:0 10px 10px}.topbar{width:calc(100% + 20px);margin:0 -10px 14px;padding:12px 10px}.input-panel,.output-panel{padding:12px}.workspace-summary{gap:12px;margin-bottom:14px}.field-heading,.output-head{align-items:flex-start;flex-direction:column}.model-picker,.model-select,.actions,.mock-footer{width:100%}.mock-footer{align-items:stretch;flex-direction:column}.mock-endpoint,.mock-endpoint input{width:100%}button{flex:1 1 120px}.model-stat-grid{grid-template-columns:1fr}}
|
package/build/client/index.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="modulepreload" href="/assets/manifest-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="modulepreload" href="/assets/manifest-08a95dab.js"/><link rel="modulepreload" href="/assets/entry.client-Cw45cONA.js"/><link rel="modulepreload" href="/assets/jsx-runtime-BZbza59V.js"/><link rel="modulepreload" href="/assets/root-Dlix2DV-.js"/><link rel="stylesheet" href="/assets/root-Di4etcLz.css"/></head><body><script>
|
|
2
2
|
console.log(
|
|
3
3
|
"💿 Hey developer 👋. You can provide a way better UX than this " +
|
|
4
4
|
"when your app is loading JS modules and/or running `clientLoader` " +
|
|
5
5
|
"functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
|
|
6
6
|
"for more information."
|
|
7
7
|
);
|
|
8
|
-
</script><script>window.__reactRouterContext = {"basename":"/","future":{"unstable_optimizeDeps":false,"v8_passThroughRequests":false,"v8_trailingSlashAwareDataRequests":false,"unstable_previewServerPrerendering":false,"v8_middleware":false,"v8_splitRouteModules":false,"v8_viteEnvironmentApi":false},"routeDiscovery":{"mode":"initial"},"ssr":false,"isSpaMode":true};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/assets/manifest-
|
|
9
|
-
import * as route0 from "/assets/root-
|
|
8
|
+
</script><script>window.__reactRouterContext = {"basename":"/","future":{"unstable_optimizeDeps":false,"v8_passThroughRequests":false,"v8_trailingSlashAwareDataRequests":false,"unstable_previewServerPrerendering":false,"v8_middleware":false,"v8_splitRouteModules":false,"v8_viteEnvironmentApi":false},"routeDiscovery":{"mode":"initial"},"ssr":false,"isSpaMode":true};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/assets/manifest-08a95dab.js";
|
|
9
|
+
import * as route0 from "/assets/root-Dlix2DV-.js";
|
|
10
10
|
|
|
11
11
|
window.__reactRouterRouteModules = {"root":route0};
|
|
12
12
|
|
package/package.json
CHANGED
|
File without changes
|