Spaces:
Running
Running
Commit ·
47bfaa3
1
Parent(s): 78c2b9d
Refine StimMAS interface and add typed advanced parameter form
Browse files- .dockerignore +5 -0
- .gitignore +1 -0
- README.md +13 -0
- frontend/advanced-parameters.jsx +100 -0
- frontend/build.mjs +20 -0
- frontend/parameters.mjs +29 -0
- frontend/ui.jsx +227 -0
- index.html +464 -337
- package-lock.json +530 -0
- package.json +16 -0
- static/images/providers/deepseek.png +0 -0
- static/images/providers/openai.svg +1 -0
- static/images/providers/openrouter.svg +3 -0
- static/images/providers/sources.json +32 -0
- static/script.js +154 -23
- static/styles.css +467 -1619
- static/ui-react.js +0 -0
- static/ui-react.js.LEGAL.txt +56 -0
- tests/test_parameters.cjs +43 -0
.dockerignore
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules/
|
| 2 |
+
.venv/
|
| 3 |
+
.git/
|
| 4 |
+
.pytest_cache/
|
| 5 |
+
__pycache__/
|
.gitignore
CHANGED
|
@@ -4,3 +4,4 @@ __pycache__/
|
|
| 4 |
*.pyc
|
| 5 |
sessions/
|
| 6 |
outputs/
|
|
|
|
|
|
| 4 |
*.pyc
|
| 5 |
sessions/
|
| 6 |
outputs/
|
| 7 |
+
node_modules/
|
README.md
CHANGED
|
@@ -86,6 +86,19 @@ source venv/bin/activate
|
|
| 86 |
pip install -e .
|
| 87 |
```
|
| 88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
## 📝 Usage Instructions
|
| 90 |
|
| 91 |
### Launch Web Interface
|
|
|
|
| 86 |
pip install -e .
|
| 87 |
```
|
| 88 |
|
| 89 |
+
### Frontend animation bundle
|
| 90 |
+
|
| 91 |
+
Flask serves the prebuilt React bundle in `static/ui-react.js`; Node.js is only needed when editing the frontend source. After changing `frontend/ui.jsx`, rebuild it with:
|
| 92 |
+
|
| 93 |
+
```bash
|
| 94 |
+
npm ci
|
| 95 |
+
npm run build
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
The React controls synchronize with the existing form logic. Animations respect the system's reduced-motion preference.
|
| 99 |
+
|
| 100 |
+
Advanced Parameters accepts typed name/value rows and automatically builds the API JSON. It supports numbers, text, booleans and structured JSON, with validation for duplicate names and invalid values. The generated JSON is available in a read-only preview.
|
| 101 |
+
|
| 102 |
## 📝 Usage Instructions
|
| 103 |
|
| 104 |
### Launch Web Interface
|
frontend/advanced-parameters.jsx
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
| 2 |
+
import { serializeParameters } from './parameters.mjs';
|
| 3 |
+
|
| 4 |
+
function rowsFromJSON(json, makeId) {
|
| 5 |
+
try {
|
| 6 |
+
const parameters = JSON.parse(json || '{}');
|
| 7 |
+
if (!parameters || Array.isArray(parameters) || typeof parameters !== 'object') return [];
|
| 8 |
+
return Object.entries(parameters).map(([name, value]) => ({
|
| 9 |
+
id: makeId(), name,
|
| 10 |
+
type: typeof value === 'number' ? 'number' : typeof value === 'boolean' ? 'boolean' : typeof value === 'string' ? 'string' : 'json',
|
| 11 |
+
value: typeof value === 'object' ? JSON.stringify(value) : String(value)
|
| 12 |
+
}));
|
| 13 |
+
} catch { return []; }
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
export function AdvancedParameters() {
|
| 17 |
+
const nextId = useRef(0);
|
| 18 |
+
const makeId = () => `api-parameter-${nextId.current++}`;
|
| 19 |
+
const [rows, setRows] = useState(() => rowsFromJSON(document.getElementById('custom_params').value, makeId));
|
| 20 |
+
const [disabled, setDisabled] = useState(() => Boolean(document.getElementById('model_choice').disabled));
|
| 21 |
+
const result = serializeParameters(rows);
|
| 22 |
+
|
| 23 |
+
useLayoutEffect(() => {
|
| 24 |
+
const field = document.getElementById('custom_params');
|
| 25 |
+
field.value = result.json;
|
| 26 |
+
field.dataset.error = result.error;
|
| 27 |
+
}, [result.json, result.error]);
|
| 28 |
+
|
| 29 |
+
useEffect(() => {
|
| 30 |
+
const reset = () => setRows(rowsFromJSON(document.getElementById('custom_params').defaultValue, makeId));
|
| 31 |
+
const changeDisabled = event => setDisabled(event.detail.disabled);
|
| 32 |
+
window.addEventListener('stimmas:parameters-reset', reset);
|
| 33 |
+
window.addEventListener('stimmas:controls-disabled', changeDisabled);
|
| 34 |
+
return () => {
|
| 35 |
+
window.removeEventListener('stimmas:parameters-reset', reset);
|
| 36 |
+
window.removeEventListener('stimmas:controls-disabled', changeDisabled);
|
| 37 |
+
};
|
| 38 |
+
}, []);
|
| 39 |
+
|
| 40 |
+
const update = (id, key, value) => setRows(current => current.map(row => {
|
| 41 |
+
if (row.id !== id) return row;
|
| 42 |
+
if (key === 'type' && value === 'boolean') return { ...row, type: value, value: row.value === 'true' ? 'true' : 'false' };
|
| 43 |
+
if (key === 'type' && value === 'json' && !row.value) return { ...row, type: value, value: '{}' };
|
| 44 |
+
return { ...row, [key]: value };
|
| 45 |
+
}));
|
| 46 |
+
|
| 47 |
+
return (
|
| 48 |
+
<div className="parameters-editor" role="group" aria-label="Advanced API parameters">
|
| 49 |
+
<div className="parameter-grid-heading" aria-hidden="true"><span>Parameter</span><span>Type</span><span>Value</span><span /></div>
|
| 50 |
+
<div className="parameter-rows">
|
| 51 |
+
{rows.map((row, index) => {
|
| 52 |
+
const invalid = result.invalidRow === index;
|
| 53 |
+
const inputId = row.id;
|
| 54 |
+
return <div className={`parameter-row${invalid ? ' is-invalid' : ''}`} key={row.id}>
|
| 55 |
+
<label className="parameter-name"><span>Parameter</span>
|
| 56 |
+
<input id={`${inputId}-name`} type="text" value={row.name} aria-label={`Parameter ${index + 1} name`}
|
| 57 |
+
aria-invalid={invalid || undefined} aria-describedby={invalid ? 'parameter-error' : undefined}
|
| 58 |
+
spellCheck="false" autoComplete="off" disabled={disabled} data-parameter-control="true"
|
| 59 |
+
onChange={event => update(row.id, 'name', event.target.value)} />
|
| 60 |
+
</label>
|
| 61 |
+
<label className="parameter-type"><span>Type</span>
|
| 62 |
+
<select value={row.type} aria-label={`Parameter ${index + 1} type`} disabled={disabled} data-parameter-control="true"
|
| 63 |
+
onChange={event => update(row.id, 'type', event.target.value)}>
|
| 64 |
+
<option value="number">Number</option><option value="string">Text</option>
|
| 65 |
+
<option value="boolean">Boolean</option><option value="json">JSON</option>
|
| 66 |
+
</select>
|
| 67 |
+
</label>
|
| 68 |
+
<label className="parameter-value"><span>Value</span>
|
| 69 |
+
{row.type === 'boolean' ?
|
| 70 |
+
<select value={row.value} aria-label={`Parameter ${index + 1} value`} disabled={disabled} data-parameter-control="true"
|
| 71 |
+
onChange={event => update(row.id, 'value', event.target.value)}>
|
| 72 |
+
<option value="true">true</option><option value="false">false</option>
|
| 73 |
+
</select> :
|
| 74 |
+
<input type={row.type === 'number' ? 'number' : 'text'} step={row.type === 'number' ? 'any' : undefined}
|
| 75 |
+
value={row.value} aria-label={`Parameter ${index + 1} value`}
|
| 76 |
+
aria-invalid={invalid || undefined} aria-describedby={invalid ? 'parameter-error' : undefined}
|
| 77 |
+
spellCheck="false" autoComplete="off" disabled={disabled} data-parameter-control="true"
|
| 78 |
+
onChange={event => update(row.id, 'value', event.target.value)} />}
|
| 79 |
+
</label>
|
| 80 |
+
<button type="button" className="remove-parameter" aria-label={`Remove parameter ${index + 1}`} disabled={disabled} data-parameter-control="true"
|
| 81 |
+
onClick={() => setRows(current => current.filter(parameter => parameter.id !== row.id))}>
|
| 82 |
+
<i className="far fa-trash-can" aria-hidden="true" />
|
| 83 |
+
</button>
|
| 84 |
+
</div>;
|
| 85 |
+
})}
|
| 86 |
+
</div>
|
| 87 |
+
{result.error && <p className="parameter-error" id="parameter-error" role="alert">{result.error}</p>}
|
| 88 |
+
<div className="parameter-actions">
|
| 89 |
+
<button type="button" className="add-parameter" disabled={disabled} data-parameter-control="true"
|
| 90 |
+
onClick={() => setRows(current => [...current, { id: makeId(), name: '', type: 'number', value: '' }])}>
|
| 91 |
+
<span aria-hidden="true">+</span> Add parameter
|
| 92 |
+
</button>
|
| 93 |
+
<span className="parameter-note">Parameters are converted to JSON automatically.</span>
|
| 94 |
+
</div>
|
| 95 |
+
<details className="parameter-preview"><summary>JSON preview</summary>
|
| 96 |
+
<pre>{result.json ? JSON.stringify(JSON.parse(result.json), null, 2) : 'Complete the parameter fields to preview JSON.'}</pre>
|
| 97 |
+
</details>
|
| 98 |
+
</div>
|
| 99 |
+
);
|
| 100 |
+
}
|
frontend/build.mjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { build, transform } from 'esbuild';
|
| 2 |
+
import { readFile } from 'node:fs/promises';
|
| 3 |
+
import { gzipSync } from 'node:zlib';
|
| 4 |
+
|
| 5 |
+
const css = await transform(await readFile('static/styles.css', 'utf8'), { loader: 'css', logLevel: 'silent' });
|
| 6 |
+
if (css.warnings.length) throw new Error(css.warnings.map(warning => warning.text).join('\n'));
|
| 7 |
+
|
| 8 |
+
await build({
|
| 9 |
+
entryPoints: ['frontend/ui.jsx'],
|
| 10 |
+
outfile: 'static/ui-react.js',
|
| 11 |
+
bundle: true,
|
| 12 |
+
minify: true,
|
| 13 |
+
format: 'esm',
|
| 14 |
+
target: ['es2020'],
|
| 15 |
+
jsx: 'automatic',
|
| 16 |
+
define: { 'process.env.NODE_ENV': '"production"' },
|
| 17 |
+
legalComments: 'linked'
|
| 18 |
+
});
|
| 19 |
+
const bundle = await readFile('static/ui-react.js');
|
| 20 |
+
console.log(`React UI built: ${(bundle.length / 1024).toFixed(1)} KB / ${(gzipSync(bundle).length / 1024).toFixed(1)} KB gzip`);
|
frontend/parameters.mjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export function serializeParameters(rows) {
|
| 2 |
+
const parameters = Object.create(null);
|
| 3 |
+
for (let index = 0; index < rows.length; index++) {
|
| 4 |
+
const row = rows[index];
|
| 5 |
+
const name = row.name.trim();
|
| 6 |
+
const text = String(row.value);
|
| 7 |
+
const fail = message => ({ json: '', error: message, invalidRow: index });
|
| 8 |
+
if (!name && !text) continue;
|
| 9 |
+
if (!name) return fail('Enter a parameter name for each value.');
|
| 10 |
+
if (Object.prototype.hasOwnProperty.call(parameters, name)) return fail(`Parameter “${name}” is listed more than once.`);
|
| 11 |
+
let value;
|
| 12 |
+
if (row.type === 'number') {
|
| 13 |
+
if (!text.trim() || !Number.isFinite(Number(text))) return fail(`Enter a valid number for “${name}”.`);
|
| 14 |
+
value = Number(text);
|
| 15 |
+
} else if (row.type === 'boolean') {
|
| 16 |
+
if (text !== 'true' && text !== 'false') return fail(`Choose true or false for “${name}”.`);
|
| 17 |
+
value = text === 'true';
|
| 18 |
+
} else if (row.type === 'json') {
|
| 19 |
+
try { value = JSON.parse(text); }
|
| 20 |
+
catch { return fail(`Enter valid JSON for “${name}”.`); }
|
| 21 |
+
} else if (row.type === 'string') {
|
| 22 |
+
value = text;
|
| 23 |
+
} else {
|
| 24 |
+
return fail(`Choose a supported value type for “${name}”.`);
|
| 25 |
+
}
|
| 26 |
+
parameters[name] = value;
|
| 27 |
+
}
|
| 28 |
+
return { json: JSON.stringify(parameters), error: '', invalidRow: -1 };
|
| 29 |
+
}
|
frontend/ui.jsx
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
| 2 |
+
import { createRoot } from 'react-dom/client';
|
| 3 |
+
import { AdvancedParameters } from './advanced-parameters.jsx';
|
| 4 |
+
|
| 5 |
+
const EASE = 'cubic-bezier(.22, .68, .2, 1)';
|
| 6 |
+
|
| 7 |
+
function useReducedMotion() {
|
| 8 |
+
const [reduced, setReduced] = useState(() => matchMedia('(prefers-reduced-motion: reduce)').matches);
|
| 9 |
+
useEffect(() => {
|
| 10 |
+
const preference = matchMedia('(prefers-reduced-motion: reduce)');
|
| 11 |
+
const update = () => setReduced(preference.matches);
|
| 12 |
+
preference.addEventListener('change', update);
|
| 13 |
+
return () => preference.removeEventListener('change', update);
|
| 14 |
+
}, []);
|
| 15 |
+
return reduced;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
function ModelModeSwitch({ reduced }) {
|
| 19 |
+
const [mode, setMode] = useState(() => document.querySelector('[data-model-mode][aria-pressed="true"]')?.dataset.modelMode || 'predefined');
|
| 20 |
+
const [disabled, setDisabled] = useState(() => Boolean(document.querySelector('[data-model-mode]')?.disabled));
|
| 21 |
+
const selector = useRef(null);
|
| 22 |
+
const indicator = useRef(null);
|
| 23 |
+
const previousMode = useRef(mode);
|
| 24 |
+
|
| 25 |
+
useEffect(() => {
|
| 26 |
+
const onMode = event => setMode(event.detail.mode);
|
| 27 |
+
const onDisabled = event => setDisabled(event.detail.disabled);
|
| 28 |
+
window.addEventListener('stimmas:model-mode', onMode);
|
| 29 |
+
window.addEventListener('stimmas:controls-disabled', onDisabled);
|
| 30 |
+
return () => {
|
| 31 |
+
window.removeEventListener('stimmas:model-mode', onMode);
|
| 32 |
+
window.removeEventListener('stimmas:controls-disabled', onDisabled);
|
| 33 |
+
};
|
| 34 |
+
}, []);
|
| 35 |
+
|
| 36 |
+
useLayoutEffect(() => {
|
| 37 |
+
let animation;
|
| 38 |
+
const placeIndicator = () => {
|
| 39 |
+
const active = selector.current?.querySelector(`[data-model-mode="${mode}"]`);
|
| 40 |
+
const pill = indicator.current;
|
| 41 |
+
if (!active || !pill) return;
|
| 42 |
+
const oldLeft = pill.style.left;
|
| 43 |
+
const oldWidth = pill.style.width;
|
| 44 |
+
const left = `${active.offsetLeft}px`;
|
| 45 |
+
const width = `${active.offsetWidth}px`;
|
| 46 |
+
animation?.cancel();
|
| 47 |
+
Object.assign(pill.style, { left, width, opacity: '1' });
|
| 48 |
+
if (!reduced && oldLeft && oldLeft !== left) {
|
| 49 |
+
animation = pill.animate([{ left: oldLeft, width: oldWidth }, { left, width }], { duration: 220, easing: EASE });
|
| 50 |
+
}
|
| 51 |
+
};
|
| 52 |
+
placeIndicator();
|
| 53 |
+
const resize = new ResizeObserver(placeIndicator);
|
| 54 |
+
resize.observe(selector.current);
|
| 55 |
+
return () => { resize.disconnect(); animation?.cancel(); };
|
| 56 |
+
}, [mode, reduced]);
|
| 57 |
+
|
| 58 |
+
useEffect(() => {
|
| 59 |
+
if (mode === previousMode.current || reduced) {
|
| 60 |
+
previousMode.current = mode;
|
| 61 |
+
return;
|
| 62 |
+
}
|
| 63 |
+
previousMode.current = mode;
|
| 64 |
+
const animations = Array.from(document.querySelectorAll('.model-configuration-grid input:not([hidden]), .model-configuration-grid select:not([hidden])'), (field, index) =>
|
| 65 |
+
field.animate([{ opacity: .55, transform: 'translateY(4px)' }, { opacity: 1, transform: 'translateY(0)' }], {
|
| 66 |
+
duration: 200, delay: index * 25, easing: EASE
|
| 67 |
+
})
|
| 68 |
+
);
|
| 69 |
+
return () => animations.forEach(animation => animation.cancel());
|
| 70 |
+
}, [mode, reduced]);
|
| 71 |
+
|
| 72 |
+
return (
|
| 73 |
+
<div ref={selector} className="model-mode-selector is-react" role="group" aria-label="Model setup mode">
|
| 74 |
+
<span ref={indicator} className="model-mode-indicator" aria-hidden="true" />
|
| 75 |
+
{[
|
| 76 |
+
['predefined', 'Predefined Models', 'fa-layer-group'],
|
| 77 |
+
['custom', 'Custom Model', 'fa-code']
|
| 78 |
+
].map(([value, label, icon]) => (
|
| 79 |
+
<button key={value} type="button" id={`${value}-model-mode`} data-model-mode={value}
|
| 80 |
+
className={`model-mode-button${mode === value ? ' is-active' : ''}`}
|
| 81 |
+
aria-pressed={mode === value} disabled={disabled}
|
| 82 |
+
onClick={() => window.setModelConfigurationMode(value)}>
|
| 83 |
+
<i className={`fas ${icon}`} aria-hidden="true" />{label}
|
| 84 |
+
</button>
|
| 85 |
+
))}
|
| 86 |
+
</div>
|
| 87 |
+
);
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
function PageMotion({ reduced }) {
|
| 91 |
+
useEffect(() => {
|
| 92 |
+
document.documentElement.dataset.uiMotion = reduced ? 'reduced' : 'ready';
|
| 93 |
+
if (reduced) return;
|
| 94 |
+
const animations = new Set();
|
| 95 |
+
const animate = (element, frames, duration = 240, delay = 0) => {
|
| 96 |
+
if (!element?.isConnected) return;
|
| 97 |
+
const animation = element.animate(frames, { duration, delay, easing: EASE });
|
| 98 |
+
animations.add(animation);
|
| 99 |
+
animation.finished.catch(() => {}).finally(() => animations.delete(animation));
|
| 100 |
+
};
|
| 101 |
+
const entrance = [{ opacity: .55, transform: 'translateY(8px)' }, { opacity: 1, transform: 'translateY(0)' }];
|
| 102 |
+
const sections = new IntersectionObserver(entries => {
|
| 103 |
+
entries.filter(entry => entry.isIntersecting).forEach((entry, index) => {
|
| 104 |
+
// Leave the header steady and keep help panels outside transforms.
|
| 105 |
+
animate(entry.target, [{ opacity: .65 }, { opacity: 1 }], 320, Math.min(index * 40, 80));
|
| 106 |
+
sections.unobserve(entry.target);
|
| 107 |
+
});
|
| 108 |
+
}, { threshold: .06 });
|
| 109 |
+
document.querySelectorAll('.settings-section, .agent-logs-section').forEach(section => sections.observe(section));
|
| 110 |
+
|
| 111 |
+
const rows = new MutationObserver(records => {
|
| 112 |
+
records.forEach(record => record.addedNodes.forEach(node => {
|
| 113 |
+
if (!(node instanceof Element)) return;
|
| 114 |
+
if (node.matches('.item-container')) animate(node, entrance, 220);
|
| 115 |
+
else if (node.matches('tr')) animate(node, [{ opacity: .35 }, { opacity: 1 }], 180);
|
| 116 |
+
}));
|
| 117 |
+
});
|
| 118 |
+
document.querySelectorAll('#items-container, #agent2PropertiesTable tbody, #agent3PropertiesTable tbody').forEach(container =>
|
| 119 |
+
rows.observe(container, { childList: true, subtree: true })
|
| 120 |
+
);
|
| 121 |
+
|
| 122 |
+
const latestEvents = new WeakMap();
|
| 123 |
+
const logUpdates = new MutationObserver(records => {
|
| 124 |
+
new Set(records.map(record => record.target)).forEach(log => {
|
| 125 |
+
const latest = log.lastElementChild;
|
| 126 |
+
if (!latest?.matches('.timeline-event')) return;
|
| 127 |
+
const signature = latest.textContent;
|
| 128 |
+
if (latestEvents.get(log) === signature) return;
|
| 129 |
+
latestEvents.set(log, signature);
|
| 130 |
+
animate(latest, [{ opacity: .45 }, { opacity: 1 }], 180);
|
| 131 |
+
});
|
| 132 |
+
});
|
| 133 |
+
document.querySelectorAll('.log-content').forEach(log => logUpdates.observe(log, { childList: true }));
|
| 134 |
+
|
| 135 |
+
const onPress = event => {
|
| 136 |
+
const button = event.target.closest('button');
|
| 137 |
+
if (button && !button.disabled && event.button === 0) {
|
| 138 |
+
animate(button, [{ transform: 'scale(1)' }, { transform: 'scale(.985)', offset: .45 }, { transform: 'scale(1)' }], 150);
|
| 139 |
+
}
|
| 140 |
+
};
|
| 141 |
+
const onHelp = event => {
|
| 142 |
+
const info = event.target.closest('.tooltip.info-icon');
|
| 143 |
+
if (!info || (event.relatedTarget instanceof Node && info.contains(event.relatedTarget))) return;
|
| 144 |
+
animate(info.querySelector('.tooltip-text'), [{ opacity: .2 }, { opacity: 1 }], 150);
|
| 145 |
+
};
|
| 146 |
+
document.addEventListener('pointerdown', onPress);
|
| 147 |
+
document.addEventListener('pointerover', onHelp);
|
| 148 |
+
document.addEventListener('focusin', onHelp);
|
| 149 |
+
return () => {
|
| 150 |
+
sections.disconnect(); rows.disconnect(); logUpdates.disconnect();
|
| 151 |
+
document.removeEventListener('pointerdown', onPress);
|
| 152 |
+
document.removeEventListener('pointerover', onHelp);
|
| 153 |
+
document.removeEventListener('focusin', onHelp);
|
| 154 |
+
animations.forEach(animation => animation.cancel());
|
| 155 |
+
};
|
| 156 |
+
}, [reduced]);
|
| 157 |
+
return null;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
function HeaderBackgroundMotion({ reduced }) {
|
| 161 |
+
useLayoutEffect(() => {
|
| 162 |
+
const header = document.querySelector('.header-container');
|
| 163 |
+
if (!header) return;
|
| 164 |
+
if (reduced) {
|
| 165 |
+
header.dataset.backgroundMotion = 'reduced';
|
| 166 |
+
return;
|
| 167 |
+
}
|
| 168 |
+
const waves = Array.from(header.querySelectorAll('.header-wave-layer'), (wave, index) => {
|
| 169 |
+
const direction = index === 0 ? 1 : -1;
|
| 170 |
+
return wave.animate([
|
| 171 |
+
{ transform: `translate3d(${-64 * direction}px, 4px, 0)` },
|
| 172 |
+
{ transform: `translate3d(${64 * direction}px, -4px, 0)` }
|
| 173 |
+
], {
|
| 174 |
+
duration: (index === 0 ? 6500 : 8500) / 1.5,
|
| 175 |
+
direction: 'alternate',
|
| 176 |
+
iterations: Infinity,
|
| 177 |
+
easing: 'cubic-bezier(.45, 0, .55, 1)'
|
| 178 |
+
});
|
| 179 |
+
});
|
| 180 |
+
const bounds = header.getBoundingClientRect();
|
| 181 |
+
let inView = bounds.bottom > 0 && bounds.top < window.innerHeight;
|
| 182 |
+
const syncPlayback = () => {
|
| 183 |
+
const running = inView && !document.hidden;
|
| 184 |
+
waves.forEach(animation => running ? animation.play() : animation.pause());
|
| 185 |
+
header.dataset.backgroundMotion = running ? 'running' : 'paused';
|
| 186 |
+
};
|
| 187 |
+
const visibility = new IntersectionObserver(([entry]) => {
|
| 188 |
+
inView = entry.isIntersecting;
|
| 189 |
+
syncPlayback();
|
| 190 |
+
});
|
| 191 |
+
visibility.observe(header);
|
| 192 |
+
document.addEventListener('visibilitychange', syncPlayback);
|
| 193 |
+
syncPlayback();
|
| 194 |
+
return () => {
|
| 195 |
+
visibility.disconnect();
|
| 196 |
+
document.removeEventListener('visibilitychange', syncPlayback);
|
| 197 |
+
waves.forEach(animation => animation.cancel());
|
| 198 |
+
delete header.dataset.backgroundMotion;
|
| 199 |
+
};
|
| 200 |
+
}, [reduced]);
|
| 201 |
+
return null;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
function ProgressMotion({ reduced }) {
|
| 205 |
+
const [progress, setProgress] = useState(null);
|
| 206 |
+
useEffect(() => {
|
| 207 |
+
const update = event => setProgress(event.detail);
|
| 208 |
+
window.addEventListener('stimmas:progress', update);
|
| 209 |
+
return () => window.removeEventListener('stimmas:progress', update);
|
| 210 |
+
}, []);
|
| 211 |
+
useEffect(() => {
|
| 212 |
+
if (!progress || reduced || progress.value === 0 || progress.value === progress.previous) return;
|
| 213 |
+
const bar = document.getElementById('progress_bar');
|
| 214 |
+
const animation = bar.animate([{ width: `${progress.previous}%` }, { width: `${progress.value}%` }], { duration: 380, easing: EASE });
|
| 215 |
+
return () => animation.cancel();
|
| 216 |
+
}, [progress, reduced]);
|
| 217 |
+
return null;
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
function InterfaceEnhancements() {
|
| 221 |
+
const reduced = useReducedMotion();
|
| 222 |
+
return <><ModelModeSwitch reduced={reduced} /><PageMotion reduced={reduced} /><HeaderBackgroundMotion reduced={reduced} /><ProgressMotion reduced={reduced} /></>;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
createRoot(document.getElementById('model-mode-root')).render(<InterfaceEnhancements />);
|
| 226 |
+
|
| 227 |
+
createRoot(document.getElementById('advanced-parameters-root')).render(<AdvancedParameters />);
|
index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
-
<title>
|
| 8 |
<link rel="stylesheet" href="/static/styles.css">
|
| 9 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 10 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.min.js"></script>
|
|
@@ -20,393 +20,519 @@
|
|
| 20 |
</div>
|
| 21 |
</div>
|
| 22 |
|
| 23 |
-
<
|
| 24 |
-
<
|
| 25 |
-
<
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
<
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
<div class="
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
</div>
|
| 39 |
-
<select id="model_choice" name="model_choice" onchange="handleModelChange()">
|
| 40 |
-
<option value="GPT-4o">GPT-4o</option>
|
| 41 |
-
<option value="custom" selected>Custom Model</option>
|
| 42 |
-
</select>
|
| 43 |
</div>
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
<tr>
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
<td><code>deepseek-chat</code></td>
|
| 57 |
-
<td><a href="https://platform.deepseek.com/api_keys" target="_blank" rel="noopener noreferrer">DeepSeek API keys</a></td>
|
| 58 |
</tr>
|
|
|
|
|
|
|
| 59 |
<tr>
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
<td><code>openai/gpt-5.4</code></td>
|
| 63 |
-
<td><a href="https://openrouter.ai/settings/keys" target="_blank" rel="noopener noreferrer">OpenRouter API keys</a></td>
|
| 64 |
</tr>
|
| 65 |
<tr>
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
<td><code>gpt-5.4</code></td>
|
| 69 |
-
<td><a href="https://platform.openai.com/api-keys" target="_blank" rel="noopener noreferrer">OpenAI API keys</a></td>
|
| 70 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
</tbody>
|
| 72 |
</table>
|
| 73 |
</div>
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
<
|
| 79 |
-
|
| 80 |
-
<
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</div>
|
| 84 |
</div>
|
| 85 |
-
<input type="text" id="custom_model_name" name="custom_model_name"
|
| 86 |
-
placeholder="e.g., deepseek-chat">
|
| 87 |
</div>
|
| 88 |
<div class="form-group">
|
| 89 |
<div class="label-container">
|
| 90 |
-
<label for="
|
| 91 |
-
<div class="tooltip info-icon">
|
| 92 |
-
<span class="info-icon-inner">i</span>
|
| 93 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
</div>
|
| 95 |
</div>
|
| 96 |
-
<
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
</div>
|
| 108 |
-
<textarea id="custom_params" name="custom_params" rows="4">{"max_tokens": 2000, "temperature": 0.7}</textarea>
|
| 109 |
</div>
|
| 110 |
</div>
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
</div>
|
| 118 |
-
</div>
|
| 119 |
-
<input type="text" id="api_key" placeholder="Enter your API Key">
|
| 120 |
</div>
|
| 121 |
-
<div class="
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
</div>
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
<
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
|
|
|
|
|
|
|
|
|
| 160 |
<tbody>
|
| 161 |
-
<tr>
|
| 162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
</tbody>
|
| 164 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
</div>
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
<tr>
|
| 175 |
-
|
| 176 |
-
|
|
|
|
|
|
|
| 177 |
</tr>
|
| 178 |
-
|
| 179 |
-
|
| 180 |
<tr>
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
|
|
|
| 184 |
</tr>
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
<
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
<button class="add-item-btn">Add item</button>
|
| 194 |
</div>
|
| 195 |
</div>
|
| 196 |
</div>
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
on the <strong>TV</strong>.)<br>
|
| 222 |
-
- Neutral context: does not predict the target word (e.g. She placed the ball next to the
|
| 223 |
-
<strong>TV</strong>)<br>
|
| 224 |
-
Supportive and neutral contexts are matched for sentence length and structure.
|
| 225 |
-
</span>
|
| 226 |
</div>
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
- Component 1: ...
|
| 230 |
-
- Component 2: ...
|
| 231 |
-
- Manipulation: ...
|
| 232 |
-
💡 Click the info icon (ℹ️) to see a complete example."></textarea>
|
| 233 |
-
<!-- 添加"AutoGenerate properties"按钮 -->
|
| 234 |
-
<div class="button-container-spaced">
|
| 235 |
-
<button id="auto_generate_button" class="auto-generate-btn">AutoGenerate properties</button>
|
| 236 |
-
</div>
|
| 237 |
-
<!-- 重启提醒文本 -->
|
| 238 |
-
<div class="restart-notice">* To ensure the server operates normally, the app will auto-restart periodically.</div>
|
| 239 |
-
<div class="restart-notice">* A countdown will appear in the top-left corner of this page twenty minutes prior to each restart.</div>
|
| 240 |
-
</div>
|
| 241 |
-
</div>
|
| 242 |
-
<h2>Agent Property Settings</h2>
|
| 243 |
-
<div class="pale-blue-section">
|
| 244 |
-
<div class="form-group">
|
| 245 |
-
<div class="label-container">
|
| 246 |
-
<label><i class="fas fa-check-circle agent-icon validator-icon"></i> Validator</label>
|
| 247 |
-
<div class="tooltip info-icon">
|
| 248 |
-
<span class="info-icon-inner">i</span>
|
| 249 |
-
<span class="tooltip-text">
|
| 250 |
-
<strong>### What is a Validator?</strong><br>
|
| 251 |
-
Validators define the <strong>mandatory requirements</strong> that each generated stimulus
|
| 252 |
-
must meet.<br>
|
| 253 |
-
---<br>
|
| 254 |
-
<strong>### How to use:</strong><br>
|
| 255 |
-
- In the <strong>Properties</strong> column, define a short label (e.g.
|
| 256 |
-
<code>IsSynonym</code>, <code>ContainsTargetWord</code>)<br>
|
| 257 |
-
- In the <strong>Description</strong>, explain what this constraint means<br>
|
| 258 |
-
---<br>
|
| 259 |
-
<strong>### Example:</strong><br>
|
| 260 |
-
IsSynonym: Whether the two words in the word pair are synonyms<br>
|
| 261 |
-
Predictability: Whether the supportive context can predict target word
|
| 262 |
-
</span>
|
| 263 |
</div>
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
<
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
<
|
| 278 |
-
<td class="agent_2_description-column"><input type="text"
|
| 279 |
-
placeholder="e.g. Whether the words in the word pair are synonyms."></td>
|
| 280 |
-
<td><button class="delete-row-btn delete-btn">Delete</button></td>
|
| 281 |
-
</tr>
|
| 282 |
-
</tbody>
|
| 283 |
-
</table>
|
| 284 |
-
<div class="button-container-spaced">
|
| 285 |
-
<button id="add_agent_2_property_button">Add Validator's property</button>
|
| 286 |
-
</div>
|
| 287 |
-
<div class="form-group" style="margin-top: 15px;">
|
| 288 |
-
<div class="label-container">
|
| 289 |
-
<label>
|
| 290 |
-
<input type="checkbox" id="agent2_individual_validation" style="margin-right: 8px;">
|
| 291 |
-
Individual Criteria Validation
|
| 292 |
-
</label>
|
| 293 |
-
<div class="tooltip info-icon">
|
| 294 |
-
<span class="info-icon-inner">i</span>
|
| 295 |
-
<span class="tooltip-text">
|
| 296 |
-
<strong>When this option is enabled:</strong><br>
|
| 297 |
-
• Agent 2 (Validator) will validate each criterion individually instead of all at once<br>
|
| 298 |
-
• Validation stops immediately when any criterion fails (early rejection)<br>
|
| 299 |
-
• May provide more precise validation but increases the number of API calls and processing time
|
| 300 |
-
</span>
|
| 301 |
</div>
|
| 302 |
</div>
|
| 303 |
</div>
|
| 304 |
</div>
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
<
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|Word Pair Frequency | How frequently the word pair is used in English | 0 | 10 |<br>
|
| 326 |
-
| Predictability | How strongly the supportive context predicts the target word | 0 | 100 |
|
| 327 |
-
</span>
|
| 328 |
-
</div>
|
| 329 |
-
</div>
|
| 330 |
-
<p class="description-text">Define the dimensions along which the generated items will be rated.</p>
|
| 331 |
-
<table id="agent3PropertiesTable">
|
| 332 |
-
<thead>
|
| 333 |
-
<tr>
|
| 334 |
-
<th class="agent_3_properties-column">Aspects</th>
|
| 335 |
-
<th class="agent_3_description-column">Description</th>
|
| 336 |
-
<th class="agent_3_minimum-column">Min score</th>
|
| 337 |
-
<th class="agent_3_maximum-column">Max score</th>
|
| 338 |
-
<th style="width: 70px;">Action</th>
|
| 339 |
-
</tr>
|
| 340 |
-
</thead>
|
| 341 |
-
<tbody>
|
| 342 |
-
<tr>
|
| 343 |
-
<td class="agent_3_properties-column"><input type="text"
|
| 344 |
-
placeholder="e.g. Word Pair Frequency"></td>
|
| 345 |
-
<td class="agent_3_description-column"><input type="text"
|
| 346 |
-
placeholder="e.g. How frequent the word pair are used in English"></td>
|
| 347 |
-
<td class="agent_3_minimum-column"><input type="number" min="0" placeholder="e.g. 0"></td>
|
| 348 |
-
<td class="agent_3_maximum-column"><input type="number" min="0" placeholder="e.g. 10"></td>
|
| 349 |
-
<td><button class="delete-row-btn delete-btn">Delete</button></td>
|
| 350 |
-
</tr>
|
| 351 |
-
</tbody>
|
| 352 |
-
</table>
|
| 353 |
-
<div class="button-container-spaced">
|
| 354 |
-
<button id="add_agent_3_property_button">Add Scorer's aspect</button>
|
| 355 |
-
</div>
|
| 356 |
-
<div class="form-group" style="margin-top: 15px;">
|
| 357 |
-
<div class="label-container">
|
| 358 |
-
<label>
|
| 359 |
-
<input type="checkbox" id="agent3_individual_scoring" style="margin-right: 8px;">
|
| 360 |
-
Individual Aspect Scoring
|
| 361 |
-
</label>
|
| 362 |
-
<div class="tooltip info-icon">
|
| 363 |
-
<span class="info-icon-inner">i</span>
|
| 364 |
-
<span class="tooltip-text">
|
| 365 |
-
<strong>When this option is enabled:</strong><br>
|
| 366 |
-
• Agent 3 (Scorer) will score each aspect individually instead of all at once<br>
|
| 367 |
-
• Each aspect gets a separate API call for more focused scoring<br>
|
| 368 |
-
• May provide more accurate scores but increases the number of API calls and processing time
|
| 369 |
-
</span>
|
| 370 |
</div>
|
|
|
|
| 371 |
</div>
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
<div class="pale-blue-section">
|
| 377 |
-
<div class="form-group">
|
| 378 |
-
<div class="label-container">
|
| 379 |
-
<label for="iteration">The number of items</label>
|
| 380 |
-
<div class="tooltip info-icon">
|
| 381 |
-
<span class="info-icon-inner">i</span>
|
| 382 |
-
<span class="tooltip-text"><strong>Positive integer.</strong><br>Rounds of stimulus generation, corresponding to
|
| 383 |
-
the number of constructed sets of stimuli.</span>
|
| 384 |
</div>
|
| 385 |
</div>
|
| 386 |
-
<
|
| 387 |
-
|
| 388 |
-
<div class="button-container">
|
| 389 |
-
<button id="generate_button">Generate stimulus</button>
|
| 390 |
-
<button id="stop_button" disabled>Stop</button>
|
| 391 |
-
<button id="clear_button">Clear all</button>
|
| 392 |
-
</div>
|
| 393 |
-
<div class="generation-status-container">
|
| 394 |
-
<span id="generation_status" class="generation-status"></span>
|
| 395 |
-
</div>
|
| 396 |
-
<div class="progress-section">
|
| 397 |
-
<div class="label-container">
|
| 398 |
-
<label>Progress bar</label>
|
| 399 |
</div>
|
| 400 |
-
<div class="progress-
|
| 401 |
-
<div class="
|
|
|
|
| 402 |
<span class="progress-percentage" id="progress_percentage">0%</span>
|
| 403 |
</div>
|
|
|
|
|
|
|
|
|
|
| 404 |
</div>
|
|
|
|
| 405 |
</div>
|
| 406 |
-
</
|
| 407 |
<section class="agent-logs-section" aria-labelledby="agent-logs-title">
|
| 408 |
<div class="agent-logs-toolbar">
|
| 409 |
-
<div class="agent-logs-heading"><span class="logs-terminal" aria-hidden="true">
|
| 410 |
<h2 id="agent-logs-title">Agent Logs</h2>
|
| 411 |
<p>Real-time activity of the multi-agent stimulus generation process.</p>
|
| 412 |
</div></div>
|
|
@@ -454,8 +580,9 @@
|
|
| 454 |
</div>
|
| 455 |
</div>
|
| 456 |
</section>
|
| 457 |
-
</
|
| 458 |
<script src="/static/script.js"></script>
|
|
|
|
| 459 |
</body>
|
| 460 |
|
| 461 |
</html>
|
|
|
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>StimMAS</title>
|
| 8 |
<link rel="stylesheet" href="/static/styles.css">
|
| 9 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 10 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.min.js"></script>
|
|
|
|
| 20 |
</div>
|
| 21 |
</div>
|
| 22 |
|
| 23 |
+
<main class="container">
|
| 24 |
+
<header class="header-container">
|
| 25 |
+
<span class="app-mark" aria-hidden="true"><svg viewBox="0 0 48 48" fill="currentColor"><path d="m28 3 4.5 12.5L45 20l-12.5 4.5L28 37l-4.5-12.5L11 20l12.5-4.5Z"/><path d="m9 3 2.5 6.5L18 12l-6.5 2.5L9 21l-2.5-6.5L0 12l6.5-2.5ZM13 29l2.7 7.3L23 39l-7.3 2.7L13 49l-2.7-7.3L3 39l7.3-2.7Z"/></svg></span>
|
| 26 |
+
<div class="header-copy">
|
| 27 |
+
<h1>StimMAS</h1>
|
| 28 |
+
<p class="instruction-text">Multi-agent AI for psychological stimulus generation.</p>
|
| 29 |
+
</div>
|
| 30 |
+
<div class="header-waves" aria-hidden="true">
|
| 31 |
+
<div class="header-wave-layer"><svg viewBox="0 0 1200 130" preserveAspectRatio="none"><path d="M0 30C230 60 250 120 490 85S725 140 935 55 1080 15 1200 35V200H0Z" fill="#dcecff"/></svg></div>
|
| 32 |
+
<div class="header-wave-layer"><svg viewBox="0 0 1200 130" preserveAspectRatio="none"><path d="M0 75C250 115 320 75 505 100S790 125 960 65 1110 45 1200 70V200H0Z" fill="#eaf3ff"/></svg></div>
|
| 33 |
+
</div>
|
| 34 |
+
</header>
|
| 35 |
+
<section class="settings-section parameter-section" aria-labelledby="parameter-settings-title">
|
| 36 |
+
<div class="section-heading">
|
| 37 |
+
<span class="section-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6h6m4 0h6M4 12h10m4 0h2M4 18h2m4 0h10"/><circle cx="12" cy="6" r="2"/><circle cx="16" cy="12" r="2"/><circle cx="8" cy="18" r="2"/></svg></span>
|
| 38 |
+
<h2 id="parameter-settings-title">Parameter Settings</h2>
|
| 39 |
+
</div>
|
| 40 |
+
<p class="section-introduction">Fill in your experiment design and let the model generate customized stimuli.</p>
|
| 41 |
+
<div class="pale-blue-section">
|
| 42 |
+
<input type="hidden" id="model_choice" name="model_choice" value="custom">
|
| 43 |
+
<div class="setup-step">
|
| 44 |
+
<div class="step-heading"><span class="step-number" aria-hidden="true">1</span><h3>Model</h3></div>
|
| 45 |
+
<div class="step-content">
|
| 46 |
+
<div id="model-mode-root">
|
| 47 |
+
<div class="model-mode-selector" role="group" aria-label="Model setup mode">
|
| 48 |
+
<button type="button" class="model-mode-button is-active" id="predefined-model-mode" data-model-mode="predefined" aria-pressed="true"><i class="fas fa-layer-group" aria-hidden="true"></i> Predefined Models</button>
|
| 49 |
+
<button type="button" class="model-mode-button" id="custom-model-mode" data-model-mode="custom" aria-pressed="false"><i class="fas fa-code" aria-hidden="true"></i> Custom Model</button>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
<div class="model-reference">
|
| 53 |
+
<h3 id="model-reference-title">Common model names and URLs</h3>
|
| 54 |
+
<div class="reference-table-scroll" tabindex="0" role="region" aria-labelledby="model-reference-title">
|
| 55 |
+
<table class="model-reference-table">
|
| 56 |
+
<thead><tr><th scope="col">Provider</th><th scope="col">Model name</th><th scope="col">API URL</th><th scope="col">Get an API key</th></tr></thead>
|
| 57 |
+
<tbody>
|
| 58 |
+
<tr>
|
| 59 |
+
<td><span class="provider-name"><img class="provider-logo" src="/static/images/providers/deepseek.png" width="24" height="24" alt="" decoding="async"><strong>DeepSeek</strong></span></td>
|
| 60 |
+
<td><code>deepseek-chat</code></td>
|
| 61 |
+
<td><code>https://api.deepseek.com/chat/completions</code></td>
|
| 62 |
+
<td><a href="https://platform.deepseek.com/api_keys" target="_blank" rel="noopener noreferrer">DeepSeek API keys<i class="fas fa-arrow-up-right-from-square" aria-hidden="true"></i></a></td>
|
| 63 |
+
</tr>
|
| 64 |
+
<tr>
|
| 65 |
+
<td><span class="provider-name"><img class="provider-logo" src="/static/images/providers/openrouter.svg" width="24" height="24" alt="" decoding="async"><strong>OpenRouter</strong></span></td>
|
| 66 |
+
<td><code>openai/gpt-5.4</code></td>
|
| 67 |
+
<td><code>https://openrouter.ai/api/v1/chat/completions</code></td>
|
| 68 |
+
<td><a href="https://openrouter.ai/settings/keys" target="_blank" rel="noopener noreferrer">OpenRouter API keys<i class="fas fa-arrow-up-right-from-square" aria-hidden="true"></i></a></td>
|
| 69 |
+
</tr>
|
| 70 |
+
<tr>
|
| 71 |
+
<td><span class="provider-name"><img class="provider-logo" src="/static/images/providers/openai.svg" width="24" height="24" alt="" decoding="async"><strong>OpenAI</strong></span></td>
|
| 72 |
+
<td><code>gpt-5.4</code></td>
|
| 73 |
+
<td><code>https://api.openai.com/v1/chat/completions</code></td>
|
| 74 |
+
<td><a href="https://platform.openai.com/api-keys" target="_blank" rel="noopener noreferrer">OpenAI API keys<i class="fas fa-arrow-up-right-from-square" aria-hidden="true"></i></a></td>
|
| 75 |
+
</tr>
|
| 76 |
+
</tbody>
|
| 77 |
+
</table>
|
| 78 |
+
</div>
|
| 79 |
+
<p class="model-reference-note">Example model IDs. Check your provider's current model availability.</p>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
<div id="custom_model_config" class="custom-model-panel">
|
| 84 |
+
<div class="setup-step">
|
| 85 |
+
<div class="step-heading"><span class="step-number" aria-hidden="true">2</span><h3>Model Configuration</h3></div>
|
| 86 |
+
<div class="step-content model-configuration-grid">
|
| 87 |
+
<div class="form-group">
|
| 88 |
+
<div class="label-container">
|
| 89 |
+
<label id="model-name-label" for="predefined_model">Model name</label>
|
| 90 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Model name" aria-describedby="field-help-2">
|
| 91 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 92 |
+
<div class="tooltip-text markdown-content" id="field-help-2" role="tooltip">
|
| 93 |
+
<h3>Model name</h3>
|
| 94 |
+
<ul>
|
| 95 |
+
<li><strong>Predefined Models:</strong> Select a model to fill in its model name and API URL automatically.</li>
|
| 96 |
+
<li><strong>Custom Model:</strong> Enter the exact model ID supported by your provider, such as <code>deepseek-chat</code>.</li>
|
| 97 |
+
</ul>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
<select id="predefined_model" name="predefined_model">
|
| 102 |
+
<option value="deepseek">deepseek-chat (DeepSeek)</option>
|
| 103 |
+
<option value="openrouter">openai/gpt-5.4 (OpenRouter)</option>
|
| 104 |
+
<option value="openai">gpt-5.4 (OpenAI)</option>
|
| 105 |
+
<option value="gpt4o">gpt-4o (OpenAI)</option>
|
| 106 |
+
</select>
|
| 107 |
+
<input type="text" id="custom_model_name" name="custom_model_name" value="deepseek-chat" hidden>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="form-group">
|
| 110 |
+
<div class="label-container">
|
| 111 |
+
<label for="custom_api_url">API URL</label>
|
| 112 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: API URL" aria-describedby="field-help-3">
|
| 113 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 114 |
+
<div class="tooltip-text markdown-content" id="field-help-3" role="tooltip">
|
| 115 |
+
<h3>API URL</h3>
|
| 116 |
+
<p>Use your provider's chat completions endpoint.</p>
|
| 117 |
+
<p>For predefined models, the URL is filled in automatically. Switch to <strong>Custom Model</strong> to enter a different endpoint.</p>
|
| 118 |
+
<p>Example: <code>https://api.deepseek.com/chat/completions</code></p>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
<input type="text" id="custom_api_url" name="custom_api_url" value="https://api.deepseek.com/chat/completions" readonly>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
<div class="setup-step">
|
| 127 |
+
<div class="step-heading">
|
| 128 |
+
<span class="step-number" aria-hidden="true">3</span><h3>Advanced Parameters</h3>
|
| 129 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Advanced parameters" aria-describedby="field-help-4">
|
| 130 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 131 |
+
<div class="tooltip-text markdown-content" id="field-help-4" role="tooltip">
|
| 132 |
+
<h3>Advanced parameters</h3>
|
| 133 |
+
<p>Add a parameter name, choose its value type, and enter a value. The form builds the JSON automatically.</p>
|
| 134 |
+
<ul><li><strong>Number:</strong> Numeric values, such as <code>2000</code> or <code>0.7</code>.</li><li><strong>Text:</strong> A string value, without surrounding quotes.</li><li><strong>Boolean:</strong> Choose <code>true</code> or <code>false</code>.</li><li><strong>JSON:</strong> Structured values, such as an array or object.</li></ul>
|
| 135 |
+
<p>Use parameters supported by your selected provider and model. Remove all rows to send no extra parameters. Expand <strong>JSON preview</strong> to review the result.</p>
|
| 136 |
+
</div>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="step-content form-group">
|
| 140 |
+
<textarea id="custom_params" name="custom_params" hidden>{"max_tokens":2000,"temperature":0.7}</textarea>
|
| 141 |
+
<div id="advanced-parameters-root">
|
| 142 |
+
<div class="parameters-fallback">
|
| 143 |
+
<label>max_tokens<input type="number" value="2000" disabled></label>
|
| 144 |
+
<label>temperature<input type="number" value="0.7" step="any" disabled></label>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
<div class="setup-step api-key-step">
|
| 151 |
+
<div class="step-heading">
|
| 152 |
+
<span class="step-number" aria-hidden="true">4</span><h3><label for="api_key">API Key</label></h3>
|
| 153 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: API key" aria-describedby="field-help-5">
|
| 154 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 155 |
+
<div class="tooltip-text markdown-content" id="field-help-5" role="tooltip">
|
| 156 |
+
<h3>API key</h3>
|
| 157 |
+
<p>Enter an API key for the <strong>selected provider</strong>. The links in the model reference table open each provider's API key page.</p>
|
| 158 |
+
<p>Use the eye button to show or hide the key while editing.</p>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
<div class="step-content password-field">
|
| 163 |
+
<input type="password" id="api_key" placeholder="Enter your API key" autocomplete="off" spellcheck="false">
|
| 164 |
+
<button type="button" id="toggle_api_key" class="password-toggle" aria-label="Show API key" aria-pressed="false" aria-controls="api_key"><i class="far fa-eye" aria-hidden="true"></i></button>
|
| 165 |
</div>
|
| 166 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
</div>
|
| 168 |
+
</section>
|
| 169 |
+
<section class="settings-section" aria-labelledby="stimulus-design-title">
|
| 170 |
+
<div class="section-heading">
|
| 171 |
+
<span class="section-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="3" width="14" height="18" rx="2.5"/><path d="M9 8h6M9 12h6M9 16h3"/><path d="m15 17 1 1 3-3"/></svg></span>
|
| 172 |
+
<div><h2 id="stimulus-design-title">Stimulus Design</h2>
|
| 173 |
+
<p>Provide example items and describe what you want to generate.</p></div>
|
| 174 |
+
</div>
|
| 175 |
+
<div class="pale-blue-section">
|
| 176 |
+
<div class="form-group custom-example-group">
|
| 177 |
+
<div class="label-container">
|
| 178 |
+
<label><span class="field-icon" aria-hidden="true"><i class="fas fa-list-ul"></i></span><strong>Example stimuli</strong></label>
|
| 179 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Example stimuli" aria-describedby="field-help-6">
|
| 180 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 181 |
+
<div class="tooltip-text markdown-content" id="field-help-6" role="tooltip">
|
| 182 |
+
<h3>Example stimuli</h3>
|
| 183 |
+
<p>Each item is a complete example of the stimulus you want to generate.</p>
|
| 184 |
+
<ul>
|
| 185 |
+
<li><strong>Components:</strong> Name each part of the item.</li>
|
| 186 |
+
<li><strong>Content:</strong> Provide the corresponding example content.</li>
|
| 187 |
+
<li>Use the same components across all example items.</li>
|
| 188 |
+
<li>Put components that must be unique across items <strong>before the components that use them</strong>.</li>
|
| 189 |
+
</ul>
|
| 190 |
+
<h4>Example</h4>
|
| 191 |
+
<div class="tooltip-table-scroll"><table>
|
| 192 |
+
<thead>
|
| 193 |
<tr>
|
| 194 |
+
<th>Components</th>
|
| 195 |
+
<th>Content</th>
|
|
|
|
|
|
|
| 196 |
</tr>
|
| 197 |
+
</thead>
|
| 198 |
+
<tbody>
|
| 199 |
<tr>
|
| 200 |
+
<td>Verb</td>
|
| 201 |
+
<td>eat</td>
|
|
|
|
|
|
|
| 202 |
</tr>
|
| 203 |
<tr>
|
| 204 |
+
<td>Name</td>
|
| 205 |
+
<td>Alice</td>
|
|
|
|
|
|
|
| 206 |
</tr>
|
| 207 |
+
<tr>
|
| 208 |
+
<td>Active</td>
|
| 209 |
+
<td>Alice eats an apple.</td>
|
| 210 |
+
</tr>
|
| 211 |
+
<tr>
|
| 212 |
+
<td>Passive</td>
|
| 213 |
+
<td>An apple is eaten by Alice.</td>
|
| 214 |
+
</tr>
|
| 215 |
+
</tbody>
|
| 216 |
+
</table></div>
|
| 217 |
+
<p>Use <strong>Add component</strong> to add a row to every item and <strong>Add item</strong> to add another complete example. Provide <strong>2–3 full examples</strong> to help the agent learn.</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
<p class="description-text">Add multiple example items to help the agent learn.</p>
|
| 222 |
+
<div class="component-tip" role="note">
|
| 223 |
+
<p><strong>Avoid repeats:</strong> Put elements that must be unique across stimulus items (e.g., verbs or names) in separate components, and list these components before those that use them.</p>
|
| 224 |
+
<p><strong>Example:</strong> Each item uses a unique verb and name to generate sentences in two conditions: active and passive voice.</p>
|
| 225 |
+
<table class="component-example-table" aria-label="Example components for active and passive conditions">
|
| 226 |
+
<thead><tr><th scope="col">Components</th><th scope="col">Content</th></tr></thead>
|
| 227 |
+
<tbody>
|
| 228 |
+
<tr><th scope="row">Verb</th><td>eat</td></tr>
|
| 229 |
+
<tr><th scope="row">Name</th><td>Alice</td></tr>
|
| 230 |
+
<tr><th scope="row">Active</th><td>Alice eats an apple.</td></tr>
|
| 231 |
+
<tr><th scope="row">Passive</th><td>An apple is eaten by Alice.</td></tr>
|
| 232 |
</tbody>
|
| 233 |
</table>
|
| 234 |
</div>
|
| 235 |
+
|
| 236 |
+
<!-- Example table container -->
|
| 237 |
+
<div id="items-container">
|
| 238 |
+
<!-- Item 1 -->
|
| 239 |
+
<div class="item-container" id="item-1">
|
| 240 |
+
<div class="item-title">Item 1</div>
|
| 241 |
+
<table class="stimuli-table">
|
| 242 |
+
<thead>
|
| 243 |
+
<tr>
|
| 244 |
+
<th class="type-column">Components</th>
|
| 245 |
+
<th class="content-column">Content</th>
|
| 246 |
+
</tr>
|
| 247 |
+
</thead>
|
| 248 |
+
<tbody>
|
| 249 |
+
<tr>
|
| 250 |
+
<td class="type-column"><input type="text" aria-label="Component"></td>
|
| 251 |
+
<td class="content-column"><input type="text" aria-label="Content">
|
| 252 |
+
</td>
|
| 253 |
+
</tr>
|
| 254 |
+
</tbody>
|
| 255 |
+
</table>
|
| 256 |
+
<div class="item-buttons-row example-buttons">
|
| 257 |
+
<div class="left-buttons">
|
| 258 |
+
<button class="add-component-btn">Add component</button>
|
| 259 |
+
<button class="delete-component-btn">Delete component</button>
|
| 260 |
+
</div>
|
| 261 |
+
<div class="right-buttons">
|
| 262 |
+
<button class="add-item-btn">Add item</button>
|
| 263 |
+
</div>
|
| 264 |
+
</div>
|
| 265 |
</div>
|
| 266 |
</div>
|
|
|
|
|
|
|
| 267 |
</div>
|
| 268 |
<div class="form-group">
|
| 269 |
<div class="label-container">
|
| 270 |
+
<label for="experiment_design"><span class="field-icon" aria-hidden="true"><i class="fas fa-pen"></i></span>Stimulus design</label>
|
| 271 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Stimulus design" aria-describedby="field-help-7">
|
| 272 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 273 |
+
<div class="tooltip-text markdown-content" id="field-help-7" role="tooltip">
|
| 274 |
+
<h3>Stimulus design</h3>
|
| 275 |
+
<p>Describe the research question, the structure of each stimulus item, and the requirements for each experimental condition.</p>
|
| 276 |
+
<p>Include:</p>
|
| 277 |
+
<ul>
|
| 278 |
+
<li><strong>Components:</strong> What each item should contain.</li>
|
| 279 |
+
<li><strong>Conditions:</strong> How the content should differ across conditions.</li>
|
| 280 |
+
<li><strong>Constraints:</strong> What to include, what to avoid, and which components must be unique across items.</li>
|
| 281 |
+
<li><strong>Controls:</strong> Which properties should be matched across conditions, such as length or complexity.</li>
|
| 282 |
+
</ul>
|
| 283 |
+
<p>Replace the bracketed fields in the default template with your experiment's details.</p>
|
| 284 |
+
<h4>Example</h4>
|
| 285 |
+
<p>Generate an active sentence and a passive sentence for each verb and name. Keep the verb and name unique across items, and match the two conditions for meaning and plausibility.</p>
|
| 286 |
+
</div>
|
| 287 |
</div>
|
| 288 |
</div>
|
| 289 |
+
<textarea id="experiment_design" rows="16">We are designing stimuli for an experiment investigating [research question].
|
| 290 |
+
|
| 291 |
+
Each stimulus item should [describe what the stimuli should contain].
|
| 292 |
+
|
| 293 |
+
The experiment includes [number] conditions:
|
| 294 |
+
|
| 295 |
+
- [Condition 1]: [Describe the requirements for this condition.]
|
| 296 |
+
- [Condition 2]: [Describe the requirements for this condition.]
|
| 297 |
+
|
| 298 |
+
All stimuli should meet the following requirements:
|
| 299 |
+
|
| 300 |
+
- [Specify what the stimuli must include.]
|
| 301 |
+
- [Specify what should be avoided.]
|
| 302 |
+
- [Specify any additional requirements.]
|
| 303 |
+
|
| 304 |
+
Stimuli across conditions should be matched for [properties to control, e.g., length or complexity].</textarea>
|
| 305 |
+
<!-- 添加"AutoGenerate properties"按钮 -->
|
| 306 |
+
<div class="button-container-spaced">
|
| 307 |
+
<button id="auto_generate_button" class="auto-generate-btn"><i class="fas fa-wand-magic-sparkles" aria-hidden="true"></i> Auto-generate properties</button>
|
| 308 |
</div>
|
|
|
|
| 309 |
</div>
|
| 310 |
</div>
|
| 311 |
+
</section>
|
| 312 |
+
<section class="settings-section" aria-labelledby="agent-settings-title">
|
| 313 |
+
<div class="section-heading">
|
| 314 |
+
<span class="section-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="5.5" r="2.5"/><circle cx="5.5" cy="18" r="2.5"/><circle cx="18.5" cy="18" r="2.5"/><path d="m10.8 7.8-4.1 7.9m6.5-7.9 4.1 7.9M8 18h8"/></svg></span>
|
| 315 |
+
<div><h2 id="agent-settings-title">Agent Property Settings</h2>
|
| 316 |
+
<p>Set the criteria for validation and the dimensions for scoring.</p></div>
|
|
|
|
|
|
|
|
|
|
| 317 |
</div>
|
| 318 |
+
<div class="pale-blue-section">
|
| 319 |
+
<div class="form-group agent-settings-card validator-settings">
|
| 320 |
+
<div class="label-container">
|
| 321 |
+
<label><i class="fas fa-check-circle agent-icon validator-icon"></i> Validator</label>
|
| 322 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Validator" aria-describedby="field-help-8">
|
| 323 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 324 |
+
<div class="tooltip-text markdown-content" id="field-help-8" role="tooltip">
|
| 325 |
+
<h3>Validator</h3>
|
| 326 |
+
<p>The Validator checks the <strong>mandatory requirements</strong> that every generated stimulus must meet. An item is accepted only when <strong>all criteria pass</strong>.</p>
|
| 327 |
+
<h4>How to configure it</h4>
|
| 328 |
+
<ol>
|
| 329 |
+
<li>Enter a short criterion name in <strong>Properties</strong>.</li>
|
| 330 |
+
<li>Explain the requirement in <strong>Description</strong>.</li>
|
| 331 |
+
<li>Write each requirement so that a valid item returns <strong>true</strong>.</li>
|
| 332 |
+
</ol>
|
| 333 |
+
<h4>Example</h4>
|
| 334 |
+
<div class="tooltip-table-scroll"><table>
|
| 335 |
+
<thead>
|
| 336 |
+
<tr>
|
| 337 |
+
<th>Properties</th>
|
| 338 |
+
<th>Description</th>
|
| 339 |
+
</tr>
|
| 340 |
+
</thead>
|
| 341 |
+
<tbody>
|
| 342 |
+
<tr>
|
| 343 |
+
<td>SameMeaning</td>
|
| 344 |
+
<td>The active and passive sentences convey the same meaning.</td>
|
| 345 |
+
</tr>
|
| 346 |
+
<tr>
|
| 347 |
+
<td>ContainsName</td>
|
| 348 |
+
<td>Both sentences contain the specified name.</td>
|
| 349 |
+
</tr>
|
| 350 |
+
</tbody>
|
| 351 |
+
</table></div>
|
| 352 |
+
</div>
|
| 353 |
+
</div>
|
| 354 |
</div>
|
| 355 |
+
<p class="description-text">Define the property name (left) and its validation logic (right). Help the
|
| 356 |
+
Validator agent to filter out unacceptable items.</p>
|
| 357 |
+
<div class="editable-table-scroll" tabindex="0" role="region" aria-label="Validator properties">
|
| 358 |
+
<table id="agent2PropertiesTable">
|
| 359 |
+
<thead>
|
| 360 |
+
<tr>
|
| 361 |
+
<th class="agent_2_properties-column">Properties</th>
|
| 362 |
+
<th>Description</th>
|
| 363 |
+
<th style="width: 70px;">Action</th>
|
| 364 |
+
</tr>
|
| 365 |
+
</thead>
|
| 366 |
<tbody>
|
| 367 |
+
<tr>
|
| 368 |
+
<td class="agent_2_properties-column"><input type="text" placeholder="e.g. Synonym"></td>
|
| 369 |
+
<td class="agent_2_description-column"><input type="text"
|
| 370 |
+
placeholder="e.g. Whether the words in the word pair are synonyms."></td>
|
| 371 |
+
<td><button class="delete-row-btn delete-btn">Delete</button></td>
|
| 372 |
+
</tr>
|
| 373 |
</tbody>
|
| 374 |
</table>
|
| 375 |
+
</div>
|
| 376 |
+
<div class="button-container-spaced">
|
| 377 |
+
<button id="add_agent_2_property_button">Add Validator's property</button>
|
| 378 |
+
</div>
|
| 379 |
+
<div class="form-group criteria-option">
|
| 380 |
+
<div class="label-container">
|
| 381 |
+
<label>
|
| 382 |
+
<input type="checkbox" id="agent2_individual_validation">
|
| 383 |
+
Individual Criteria Validation
|
| 384 |
+
</label>
|
| 385 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Individual Criteria Validation" aria-describedby="field-help-9">
|
| 386 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 387 |
+
<div class="tooltip-text markdown-content" id="field-help-9" role="tooltip">
|
| 388 |
+
<h3>Individual criteria validation</h3>
|
| 389 |
+
<p>When enabled:</p>
|
| 390 |
+
<ul>
|
| 391 |
+
<li>The Validator checks each criterion in a separate API call.</li>
|
| 392 |
+
<li>Validation stops as soon as a criterion fails.</li>
|
| 393 |
+
<li>More focused checks may require additional API calls and processing time.</li>
|
| 394 |
+
</ul>
|
| 395 |
+
<p>When disabled, all criteria are checked together.</p>
|
| 396 |
+
</div>
|
| 397 |
+
</div>
|
| 398 |
+
</div>
|
| 399 |
+
</div>
|
| 400 |
</div>
|
| 401 |
+
<div class="form-group agent-settings-card scorer-settings">
|
| 402 |
+
<div class="label-container">
|
| 403 |
+
<label><i class="fas fa-star agent-icon scorer-icon"></i> Scorer</label>
|
| 404 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Scorer" aria-describedby="field-help-10">
|
| 405 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 406 |
+
<div class="tooltip-text markdown-content" id="field-help-10" role="tooltip">
|
| 407 |
+
<h3>Scorer</h3>
|
| 408 |
+
<p>The Scorer assigns <strong>numeric ratings</strong> to each generated item so that you can compare, filter, or rank results.</p>
|
| 409 |
+
<p>Define:</p>
|
| 410 |
+
<ul>
|
| 411 |
+
<li><strong>Aspects:</strong> The dimension to evaluate.</li>
|
| 412 |
+
<li><strong>Description:</strong> What the rating measures.</li>
|
| 413 |
+
<li><strong>Min score / Max score:</strong> The allowed scoring range.</li>
|
| 414 |
+
</ul>
|
| 415 |
+
<h4>Example</h4>
|
| 416 |
+
<div class="tooltip-table-scroll"><table>
|
| 417 |
+
<thead>
|
| 418 |
<tr>
|
| 419 |
+
<th>Aspects</th>
|
| 420 |
+
<th>Description</th>
|
| 421 |
+
<th>Min score</th>
|
| 422 |
+
<th>Max score</th>
|
| 423 |
</tr>
|
| 424 |
+
</thead>
|
| 425 |
+
<tbody>
|
| 426 |
<tr>
|
| 427 |
+
<td>Fluency</td>
|
| 428 |
+
<td>How natural and grammatical the sentences are.</td>
|
| 429 |
+
<td>0</td>
|
| 430 |
+
<td>10</td>
|
| 431 |
</tr>
|
| 432 |
+
<tr>
|
| 433 |
+
<td>Plausibility</td>
|
| 434 |
+
<td>How realistic the described events are.</td>
|
| 435 |
+
<td>0</td>
|
| 436 |
+
<td>10</td>
|
| 437 |
+
</tr>
|
| 438 |
+
</tbody>
|
| 439 |
+
</table></div>
|
|
|
|
| 440 |
</div>
|
| 441 |
</div>
|
| 442 |
</div>
|
| 443 |
+
<p class="description-text">Define the dimensions along which the generated items will be rated.</p>
|
| 444 |
+
<div class="editable-table-scroll" tabindex="0" role="region" aria-label="Scorer aspects">
|
| 445 |
+
<table id="agent3PropertiesTable">
|
| 446 |
+
<thead>
|
| 447 |
+
<tr>
|
| 448 |
+
<th class="agent_3_properties-column">Aspects</th>
|
| 449 |
+
<th class="agent_3_description-column">Description</th>
|
| 450 |
+
<th class="agent_3_minimum-column">Min score</th>
|
| 451 |
+
<th class="agent_3_maximum-column">Max score</th>
|
| 452 |
+
<th style="width: 70px;">Action</th>
|
| 453 |
+
</tr>
|
| 454 |
+
</thead>
|
| 455 |
+
<tbody>
|
| 456 |
+
<tr>
|
| 457 |
+
<td class="agent_3_properties-column"><input type="text"
|
| 458 |
+
placeholder="e.g. Word Pair Frequency"></td>
|
| 459 |
+
<td class="agent_3_description-column"><input type="text"
|
| 460 |
+
placeholder="e.g. How frequent the word pair are used in English"></td>
|
| 461 |
+
<td class="agent_3_minimum-column"><input type="number" min="0" placeholder="e.g. 0"></td>
|
| 462 |
+
<td class="agent_3_maximum-column"><input type="number" min="0" placeholder="e.g. 10"></td>
|
| 463 |
+
<td><button class="delete-row-btn delete-btn">Delete</button></td>
|
| 464 |
+
</tr>
|
| 465 |
+
</tbody>
|
| 466 |
+
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 467 |
</div>
|
| 468 |
+
<div class="button-container-spaced">
|
| 469 |
+
<button id="add_agent_3_property_button">Add Scorer's aspect</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 470 |
</div>
|
| 471 |
+
<div class="form-group criteria-option">
|
| 472 |
+
<div class="label-container">
|
| 473 |
+
<label>
|
| 474 |
+
<input type="checkbox" id="agent3_individual_scoring">
|
| 475 |
+
Individual Aspect Scoring
|
| 476 |
+
</label>
|
| 477 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: Individual Aspect Scoring" aria-describedby="field-help-11">
|
| 478 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 479 |
+
<div class="tooltip-text markdown-content" id="field-help-11" role="tooltip">
|
| 480 |
+
<h3>Individual aspect scoring</h3>
|
| 481 |
+
<p>When enabled, the Scorer evaluates each aspect in a <strong>separate API call</strong>. This provides a more focused evaluation, but may increase the number of API calls and processing time.</p>
|
| 482 |
+
<p>When disabled, all aspects are scored together.</p>
|
| 483 |
+
</div>
|
| 484 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 485 |
</div>
|
| 486 |
</div>
|
| 487 |
</div>
|
| 488 |
</div>
|
| 489 |
+
</section>
|
| 490 |
+
<section class="settings-section" aria-labelledby="output-title">
|
| 491 |
+
<div class="section-heading">
|
| 492 |
+
<span class="section-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v11m-4-4 4 4 4-4M5 14v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5"/></svg></span>
|
| 493 |
+
<div><h2 id="output-title">Output</h2>
|
| 494 |
+
<p>Choose how many items to generate and follow the progress below.</p></div>
|
| 495 |
+
</div>
|
| 496 |
+
<div class="pale-blue-section">
|
| 497 |
+
<div class="output-controls">
|
| 498 |
+
<div class="form-group">
|
| 499 |
+
<div class="label-container">
|
| 500 |
+
<label for="iteration">The number of items</label>
|
| 501 |
+
<div class="tooltip info-icon" tabindex="0" aria-label="Help: The number of items" aria-describedby="field-help-12">
|
| 502 |
+
<span class="info-icon-inner" aria-hidden="true">i</span>
|
| 503 |
+
<div class="tooltip-text markdown-content" id="field-help-12" role="tooltip">
|
| 504 |
+
<h3>Number of items</h3>
|
| 505 |
+
<p>Enter a <strong>positive integer</strong>, such as <code>50</code>.</p>
|
| 506 |
+
<p>Each item is one complete set of the stimulus components you defined, including the content for its experimental conditions.</p>
|
| 507 |
+
</div>
|
| 508 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 509 |
</div>
|
| 510 |
+
<input type="text" id="iteration" placeholder="e.g. 50">
|
| 511 |
</div>
|
| 512 |
+
<div class="button-container">
|
| 513 |
+
<button id="generate_button"><i class="fas fa-play" aria-hidden="true"></i> Generate stimulus</button>
|
| 514 |
+
<button id="stop_button" disabled><i class="fas fa-stop" aria-hidden="true"></i> Stop</button>
|
| 515 |
+
<button id="clear_button"><i class="fas fa-arrow-rotate-left" aria-hidden="true"></i> Clear all</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 516 |
</div>
|
| 517 |
</div>
|
| 518 |
+
<div class="generation-status-container">
|
| 519 |
+
<span id="generation_status" class="generation-status" role="status" aria-live="polite"></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 520 |
</div>
|
| 521 |
+
<div class="progress-section">
|
| 522 |
+
<div class="label-container">
|
| 523 |
+
<label id="progress-label">Generation progress</label>
|
| 524 |
<span class="progress-percentage" id="progress_percentage">0%</span>
|
| 525 |
</div>
|
| 526 |
+
<div class="progress-container" role="progressbar" aria-labelledby="progress-label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">
|
| 527 |
+
<div class="progress-bar" id="progress_bar"></div>
|
| 528 |
+
</div>
|
| 529 |
</div>
|
| 530 |
+
<p class="restart-notice"><i class="fas fa-circle-info" aria-hidden="true"></i><span>The app restarts periodically to keep the server running. A countdown appears in the top-left corner 20 minutes before each restart.</span></p>
|
| 531 |
</div>
|
| 532 |
+
</section>
|
| 533 |
<section class="agent-logs-section" aria-labelledby="agent-logs-title">
|
| 534 |
<div class="agent-logs-toolbar">
|
| 535 |
+
<div class="agent-logs-heading"><span class="logs-terminal" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3m6 0h4"/></svg></span><div>
|
| 536 |
<h2 id="agent-logs-title">Agent Logs</h2>
|
| 537 |
<p>Real-time activity of the multi-agent stimulus generation process.</p>
|
| 538 |
</div></div>
|
|
|
|
| 580 |
</div>
|
| 581 |
</div>
|
| 582 |
</section>
|
| 583 |
+
</main>
|
| 584 |
<script src="/static/script.js"></script>
|
| 585 |
+
<script type="module" src="/static/ui-react.js"></script>
|
| 586 |
</body>
|
| 587 |
|
| 588 |
</html>
|
package-lock.json
ADDED
|
@@ -0,0 +1,530 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "stimmas-ui",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "stimmas-ui",
|
| 9 |
+
"version": "1.0.0",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"react": "19.3.1",
|
| 12 |
+
"react-dom": "19.3.1"
|
| 13 |
+
},
|
| 14 |
+
"devDependencies": {
|
| 15 |
+
"esbuild": "0.28.2"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"node_modules/@esbuild/aix-ppc64": {
|
| 19 |
+
"version": "0.28.2",
|
| 20 |
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
|
| 21 |
+
"integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
|
| 22 |
+
"cpu": [
|
| 23 |
+
"ppc64"
|
| 24 |
+
],
|
| 25 |
+
"dev": true,
|
| 26 |
+
"license": "MIT",
|
| 27 |
+
"optional": true,
|
| 28 |
+
"os": [
|
| 29 |
+
"aix"
|
| 30 |
+
],
|
| 31 |
+
"engines": {
|
| 32 |
+
"node": ">=18"
|
| 33 |
+
}
|
| 34 |
+
},
|
| 35 |
+
"node_modules/@esbuild/android-arm": {
|
| 36 |
+
"version": "0.28.2",
|
| 37 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
|
| 38 |
+
"integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
|
| 39 |
+
"cpu": [
|
| 40 |
+
"arm"
|
| 41 |
+
],
|
| 42 |
+
"dev": true,
|
| 43 |
+
"license": "MIT",
|
| 44 |
+
"optional": true,
|
| 45 |
+
"os": [
|
| 46 |
+
"android"
|
| 47 |
+
],
|
| 48 |
+
"engines": {
|
| 49 |
+
"node": ">=18"
|
| 50 |
+
}
|
| 51 |
+
},
|
| 52 |
+
"node_modules/@esbuild/android-arm64": {
|
| 53 |
+
"version": "0.28.2",
|
| 54 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
|
| 55 |
+
"integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
|
| 56 |
+
"cpu": [
|
| 57 |
+
"arm64"
|
| 58 |
+
],
|
| 59 |
+
"dev": true,
|
| 60 |
+
"license": "MIT",
|
| 61 |
+
"optional": true,
|
| 62 |
+
"os": [
|
| 63 |
+
"android"
|
| 64 |
+
],
|
| 65 |
+
"engines": {
|
| 66 |
+
"node": ">=18"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"node_modules/@esbuild/android-x64": {
|
| 70 |
+
"version": "0.28.2",
|
| 71 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
|
| 72 |
+
"integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
|
| 73 |
+
"cpu": [
|
| 74 |
+
"x64"
|
| 75 |
+
],
|
| 76 |
+
"dev": true,
|
| 77 |
+
"license": "MIT",
|
| 78 |
+
"optional": true,
|
| 79 |
+
"os": [
|
| 80 |
+
"android"
|
| 81 |
+
],
|
| 82 |
+
"engines": {
|
| 83 |
+
"node": ">=18"
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
"node_modules/@esbuild/darwin-arm64": {
|
| 87 |
+
"version": "0.28.2",
|
| 88 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
|
| 89 |
+
"integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
|
| 90 |
+
"cpu": [
|
| 91 |
+
"arm64"
|
| 92 |
+
],
|
| 93 |
+
"dev": true,
|
| 94 |
+
"license": "MIT",
|
| 95 |
+
"optional": true,
|
| 96 |
+
"os": [
|
| 97 |
+
"darwin"
|
| 98 |
+
],
|
| 99 |
+
"engines": {
|
| 100 |
+
"node": ">=18"
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
"node_modules/@esbuild/darwin-x64": {
|
| 104 |
+
"version": "0.28.2",
|
| 105 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
|
| 106 |
+
"integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
|
| 107 |
+
"cpu": [
|
| 108 |
+
"x64"
|
| 109 |
+
],
|
| 110 |
+
"dev": true,
|
| 111 |
+
"license": "MIT",
|
| 112 |
+
"optional": true,
|
| 113 |
+
"os": [
|
| 114 |
+
"darwin"
|
| 115 |
+
],
|
| 116 |
+
"engines": {
|
| 117 |
+
"node": ">=18"
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
"node_modules/@esbuild/freebsd-arm64": {
|
| 121 |
+
"version": "0.28.2",
|
| 122 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
|
| 123 |
+
"integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
|
| 124 |
+
"cpu": [
|
| 125 |
+
"arm64"
|
| 126 |
+
],
|
| 127 |
+
"dev": true,
|
| 128 |
+
"license": "MIT",
|
| 129 |
+
"optional": true,
|
| 130 |
+
"os": [
|
| 131 |
+
"freebsd"
|
| 132 |
+
],
|
| 133 |
+
"engines": {
|
| 134 |
+
"node": ">=18"
|
| 135 |
+
}
|
| 136 |
+
},
|
| 137 |
+
"node_modules/@esbuild/freebsd-x64": {
|
| 138 |
+
"version": "0.28.2",
|
| 139 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
|
| 140 |
+
"integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
|
| 141 |
+
"cpu": [
|
| 142 |
+
"x64"
|
| 143 |
+
],
|
| 144 |
+
"dev": true,
|
| 145 |
+
"license": "MIT",
|
| 146 |
+
"optional": true,
|
| 147 |
+
"os": [
|
| 148 |
+
"freebsd"
|
| 149 |
+
],
|
| 150 |
+
"engines": {
|
| 151 |
+
"node": ">=18"
|
| 152 |
+
}
|
| 153 |
+
},
|
| 154 |
+
"node_modules/@esbuild/linux-arm": {
|
| 155 |
+
"version": "0.28.2",
|
| 156 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
|
| 157 |
+
"integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
|
| 158 |
+
"cpu": [
|
| 159 |
+
"arm"
|
| 160 |
+
],
|
| 161 |
+
"dev": true,
|
| 162 |
+
"license": "MIT",
|
| 163 |
+
"optional": true,
|
| 164 |
+
"os": [
|
| 165 |
+
"linux"
|
| 166 |
+
],
|
| 167 |
+
"engines": {
|
| 168 |
+
"node": ">=18"
|
| 169 |
+
}
|
| 170 |
+
},
|
| 171 |
+
"node_modules/@esbuild/linux-arm64": {
|
| 172 |
+
"version": "0.28.2",
|
| 173 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
|
| 174 |
+
"integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
|
| 175 |
+
"cpu": [
|
| 176 |
+
"arm64"
|
| 177 |
+
],
|
| 178 |
+
"dev": true,
|
| 179 |
+
"license": "MIT",
|
| 180 |
+
"optional": true,
|
| 181 |
+
"os": [
|
| 182 |
+
"linux"
|
| 183 |
+
],
|
| 184 |
+
"engines": {
|
| 185 |
+
"node": ">=18"
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
"node_modules/@esbuild/linux-ia32": {
|
| 189 |
+
"version": "0.28.2",
|
| 190 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
|
| 191 |
+
"integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
|
| 192 |
+
"cpu": [
|
| 193 |
+
"ia32"
|
| 194 |
+
],
|
| 195 |
+
"dev": true,
|
| 196 |
+
"license": "MIT",
|
| 197 |
+
"optional": true,
|
| 198 |
+
"os": [
|
| 199 |
+
"linux"
|
| 200 |
+
],
|
| 201 |
+
"engines": {
|
| 202 |
+
"node": ">=18"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"node_modules/@esbuild/linux-loong64": {
|
| 206 |
+
"version": "0.28.2",
|
| 207 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
|
| 208 |
+
"integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
|
| 209 |
+
"cpu": [
|
| 210 |
+
"loong64"
|
| 211 |
+
],
|
| 212 |
+
"dev": true,
|
| 213 |
+
"license": "MIT",
|
| 214 |
+
"optional": true,
|
| 215 |
+
"os": [
|
| 216 |
+
"linux"
|
| 217 |
+
],
|
| 218 |
+
"engines": {
|
| 219 |
+
"node": ">=18"
|
| 220 |
+
}
|
| 221 |
+
},
|
| 222 |
+
"node_modules/@esbuild/linux-mips64el": {
|
| 223 |
+
"version": "0.28.2",
|
| 224 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
|
| 225 |
+
"integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
|
| 226 |
+
"cpu": [
|
| 227 |
+
"mips64el"
|
| 228 |
+
],
|
| 229 |
+
"dev": true,
|
| 230 |
+
"license": "MIT",
|
| 231 |
+
"optional": true,
|
| 232 |
+
"os": [
|
| 233 |
+
"linux"
|
| 234 |
+
],
|
| 235 |
+
"engines": {
|
| 236 |
+
"node": ">=18"
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
"node_modules/@esbuild/linux-ppc64": {
|
| 240 |
+
"version": "0.28.2",
|
| 241 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
|
| 242 |
+
"integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
|
| 243 |
+
"cpu": [
|
| 244 |
+
"ppc64"
|
| 245 |
+
],
|
| 246 |
+
"dev": true,
|
| 247 |
+
"license": "MIT",
|
| 248 |
+
"optional": true,
|
| 249 |
+
"os": [
|
| 250 |
+
"linux"
|
| 251 |
+
],
|
| 252 |
+
"engines": {
|
| 253 |
+
"node": ">=18"
|
| 254 |
+
}
|
| 255 |
+
},
|
| 256 |
+
"node_modules/@esbuild/linux-riscv64": {
|
| 257 |
+
"version": "0.28.2",
|
| 258 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
|
| 259 |
+
"integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
|
| 260 |
+
"cpu": [
|
| 261 |
+
"riscv64"
|
| 262 |
+
],
|
| 263 |
+
"dev": true,
|
| 264 |
+
"license": "MIT",
|
| 265 |
+
"optional": true,
|
| 266 |
+
"os": [
|
| 267 |
+
"linux"
|
| 268 |
+
],
|
| 269 |
+
"engines": {
|
| 270 |
+
"node": ">=18"
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
"node_modules/@esbuild/linux-s390x": {
|
| 274 |
+
"version": "0.28.2",
|
| 275 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
|
| 276 |
+
"integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
|
| 277 |
+
"cpu": [
|
| 278 |
+
"s390x"
|
| 279 |
+
],
|
| 280 |
+
"dev": true,
|
| 281 |
+
"license": "MIT",
|
| 282 |
+
"optional": true,
|
| 283 |
+
"os": [
|
| 284 |
+
"linux"
|
| 285 |
+
],
|
| 286 |
+
"engines": {
|
| 287 |
+
"node": ">=18"
|
| 288 |
+
}
|
| 289 |
+
},
|
| 290 |
+
"node_modules/@esbuild/linux-x64": {
|
| 291 |
+
"version": "0.28.2",
|
| 292 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",
|
| 293 |
+
"integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",
|
| 294 |
+
"cpu": [
|
| 295 |
+
"x64"
|
| 296 |
+
],
|
| 297 |
+
"dev": true,
|
| 298 |
+
"license": "MIT",
|
| 299 |
+
"optional": true,
|
| 300 |
+
"os": [
|
| 301 |
+
"linux"
|
| 302 |
+
],
|
| 303 |
+
"engines": {
|
| 304 |
+
"node": ">=18"
|
| 305 |
+
}
|
| 306 |
+
},
|
| 307 |
+
"node_modules/@esbuild/netbsd-arm64": {
|
| 308 |
+
"version": "0.28.2",
|
| 309 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
|
| 310 |
+
"integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
|
| 311 |
+
"cpu": [
|
| 312 |
+
"arm64"
|
| 313 |
+
],
|
| 314 |
+
"dev": true,
|
| 315 |
+
"license": "MIT",
|
| 316 |
+
"optional": true,
|
| 317 |
+
"os": [
|
| 318 |
+
"netbsd"
|
| 319 |
+
],
|
| 320 |
+
"engines": {
|
| 321 |
+
"node": ">=18"
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
"node_modules/@esbuild/netbsd-x64": {
|
| 325 |
+
"version": "0.28.2",
|
| 326 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
|
| 327 |
+
"integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
|
| 328 |
+
"cpu": [
|
| 329 |
+
"x64"
|
| 330 |
+
],
|
| 331 |
+
"dev": true,
|
| 332 |
+
"license": "MIT",
|
| 333 |
+
"optional": true,
|
| 334 |
+
"os": [
|
| 335 |
+
"netbsd"
|
| 336 |
+
],
|
| 337 |
+
"engines": {
|
| 338 |
+
"node": ">=18"
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"node_modules/@esbuild/openbsd-arm64": {
|
| 342 |
+
"version": "0.28.2",
|
| 343 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
|
| 344 |
+
"integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
|
| 345 |
+
"cpu": [
|
| 346 |
+
"arm64"
|
| 347 |
+
],
|
| 348 |
+
"dev": true,
|
| 349 |
+
"license": "MIT",
|
| 350 |
+
"optional": true,
|
| 351 |
+
"os": [
|
| 352 |
+
"openbsd"
|
| 353 |
+
],
|
| 354 |
+
"engines": {
|
| 355 |
+
"node": ">=18"
|
| 356 |
+
}
|
| 357 |
+
},
|
| 358 |
+
"node_modules/@esbuild/openbsd-x64": {
|
| 359 |
+
"version": "0.28.2",
|
| 360 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
|
| 361 |
+
"integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
|
| 362 |
+
"cpu": [
|
| 363 |
+
"x64"
|
| 364 |
+
],
|
| 365 |
+
"dev": true,
|
| 366 |
+
"license": "MIT",
|
| 367 |
+
"optional": true,
|
| 368 |
+
"os": [
|
| 369 |
+
"openbsd"
|
| 370 |
+
],
|
| 371 |
+
"engines": {
|
| 372 |
+
"node": ">=18"
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"node_modules/@esbuild/openharmony-arm64": {
|
| 376 |
+
"version": "0.28.2",
|
| 377 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
|
| 378 |
+
"integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
|
| 379 |
+
"cpu": [
|
| 380 |
+
"arm64"
|
| 381 |
+
],
|
| 382 |
+
"dev": true,
|
| 383 |
+
"license": "MIT",
|
| 384 |
+
"optional": true,
|
| 385 |
+
"os": [
|
| 386 |
+
"openharmony"
|
| 387 |
+
],
|
| 388 |
+
"engines": {
|
| 389 |
+
"node": ">=18"
|
| 390 |
+
}
|
| 391 |
+
},
|
| 392 |
+
"node_modules/@esbuild/sunos-x64": {
|
| 393 |
+
"version": "0.28.2",
|
| 394 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
|
| 395 |
+
"integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
|
| 396 |
+
"cpu": [
|
| 397 |
+
"x64"
|
| 398 |
+
],
|
| 399 |
+
"dev": true,
|
| 400 |
+
"license": "MIT",
|
| 401 |
+
"optional": true,
|
| 402 |
+
"os": [
|
| 403 |
+
"sunos"
|
| 404 |
+
],
|
| 405 |
+
"engines": {
|
| 406 |
+
"node": ">=18"
|
| 407 |
+
}
|
| 408 |
+
},
|
| 409 |
+
"node_modules/@esbuild/win32-arm64": {
|
| 410 |
+
"version": "0.28.2",
|
| 411 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
|
| 412 |
+
"integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
|
| 413 |
+
"cpu": [
|
| 414 |
+
"arm64"
|
| 415 |
+
],
|
| 416 |
+
"dev": true,
|
| 417 |
+
"license": "MIT",
|
| 418 |
+
"optional": true,
|
| 419 |
+
"os": [
|
| 420 |
+
"win32"
|
| 421 |
+
],
|
| 422 |
+
"engines": {
|
| 423 |
+
"node": ">=18"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"node_modules/@esbuild/win32-ia32": {
|
| 427 |
+
"version": "0.28.2",
|
| 428 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
|
| 429 |
+
"integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
|
| 430 |
+
"cpu": [
|
| 431 |
+
"ia32"
|
| 432 |
+
],
|
| 433 |
+
"dev": true,
|
| 434 |
+
"license": "MIT",
|
| 435 |
+
"optional": true,
|
| 436 |
+
"os": [
|
| 437 |
+
"win32"
|
| 438 |
+
],
|
| 439 |
+
"engines": {
|
| 440 |
+
"node": ">=18"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
"node_modules/@esbuild/win32-x64": {
|
| 444 |
+
"version": "0.28.2",
|
| 445 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
|
| 446 |
+
"integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
|
| 447 |
+
"cpu": [
|
| 448 |
+
"x64"
|
| 449 |
+
],
|
| 450 |
+
"dev": true,
|
| 451 |
+
"license": "MIT",
|
| 452 |
+
"optional": true,
|
| 453 |
+
"os": [
|
| 454 |
+
"win32"
|
| 455 |
+
],
|
| 456 |
+
"engines": {
|
| 457 |
+
"node": ">=18"
|
| 458 |
+
}
|
| 459 |
+
},
|
| 460 |
+
"node_modules/esbuild": {
|
| 461 |
+
"version": "0.28.2",
|
| 462 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",
|
| 463 |
+
"integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",
|
| 464 |
+
"dev": true,
|
| 465 |
+
"hasInstallScript": true,
|
| 466 |
+
"license": "MIT",
|
| 467 |
+
"bin": {
|
| 468 |
+
"esbuild": "bin/esbuild"
|
| 469 |
+
},
|
| 470 |
+
"engines": {
|
| 471 |
+
"node": ">=18"
|
| 472 |
+
},
|
| 473 |
+
"optionalDependencies": {
|
| 474 |
+
"@esbuild/aix-ppc64": "0.28.2",
|
| 475 |
+
"@esbuild/android-arm": "0.28.2",
|
| 476 |
+
"@esbuild/android-arm64": "0.28.2",
|
| 477 |
+
"@esbuild/android-x64": "0.28.2",
|
| 478 |
+
"@esbuild/darwin-arm64": "0.28.2",
|
| 479 |
+
"@esbuild/darwin-x64": "0.28.2",
|
| 480 |
+
"@esbuild/freebsd-arm64": "0.28.2",
|
| 481 |
+
"@esbuild/freebsd-x64": "0.28.2",
|
| 482 |
+
"@esbuild/linux-arm": "0.28.2",
|
| 483 |
+
"@esbuild/linux-arm64": "0.28.2",
|
| 484 |
+
"@esbuild/linux-ia32": "0.28.2",
|
| 485 |
+
"@esbuild/linux-loong64": "0.28.2",
|
| 486 |
+
"@esbuild/linux-mips64el": "0.28.2",
|
| 487 |
+
"@esbuild/linux-ppc64": "0.28.2",
|
| 488 |
+
"@esbuild/linux-riscv64": "0.28.2",
|
| 489 |
+
"@esbuild/linux-s390x": "0.28.2",
|
| 490 |
+
"@esbuild/linux-x64": "0.28.2",
|
| 491 |
+
"@esbuild/netbsd-arm64": "0.28.2",
|
| 492 |
+
"@esbuild/netbsd-x64": "0.28.2",
|
| 493 |
+
"@esbuild/openbsd-arm64": "0.28.2",
|
| 494 |
+
"@esbuild/openbsd-x64": "0.28.2",
|
| 495 |
+
"@esbuild/openharmony-arm64": "0.28.2",
|
| 496 |
+
"@esbuild/sunos-x64": "0.28.2",
|
| 497 |
+
"@esbuild/win32-arm64": "0.28.2",
|
| 498 |
+
"@esbuild/win32-ia32": "0.28.2",
|
| 499 |
+
"@esbuild/win32-x64": "0.28.2"
|
| 500 |
+
}
|
| 501 |
+
},
|
| 502 |
+
"node_modules/react": {
|
| 503 |
+
"version": "19.3.1",
|
| 504 |
+
"resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
|
| 505 |
+
"integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
|
| 506 |
+
"license": "MIT",
|
| 507 |
+
"engines": {
|
| 508 |
+
"node": ">=0.10.0"
|
| 509 |
+
}
|
| 510 |
+
},
|
| 511 |
+
"node_modules/react-dom": {
|
| 512 |
+
"version": "19.3.1",
|
| 513 |
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
|
| 514 |
+
"integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
|
| 515 |
+
"license": "MIT",
|
| 516 |
+
"dependencies": {
|
| 517 |
+
"scheduler": "^0.28.0"
|
| 518 |
+
},
|
| 519 |
+
"peerDependencies": {
|
| 520 |
+
"react": "^19.3.1"
|
| 521 |
+
}
|
| 522 |
+
},
|
| 523 |
+
"node_modules/scheduler": {
|
| 524 |
+
"version": "0.28.0",
|
| 525 |
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
|
| 526 |
+
"integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
|
| 527 |
+
"license": "MIT"
|
| 528 |
+
}
|
| 529 |
+
}
|
| 530 |
+
}
|
package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "stimmas-ui",
|
| 3 |
+
"private": true,
|
| 4 |
+
"version": "1.0.0",
|
| 5 |
+
"scripts": {
|
| 6 |
+
"build": "node frontend/build.mjs",
|
| 7 |
+
"test": "node tests/test_frontend.cjs && node tests/test_parameters.cjs"
|
| 8 |
+
},
|
| 9 |
+
"dependencies": {
|
| 10 |
+
"react": "19.3.1",
|
| 11 |
+
"react-dom": "19.3.1"
|
| 12 |
+
},
|
| 13 |
+
"devDependencies": {
|
| 14 |
+
"esbuild": "0.28.2"
|
| 15 |
+
}
|
| 16 |
+
}
|
static/images/providers/deepseek.png
ADDED
|
static/images/providers/openai.svg
ADDED
|
|
static/images/providers/openrouter.svg
ADDED
|
|
static/images/providers/sources.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"retrieved": "2026-11-17",
|
| 3 |
+
"assets": [
|
| 4 |
+
{
|
| 5 |
+
"file": "deepseek.png",
|
| 6 |
+
"source": "https://www.deepseek.com/favicon.ico",
|
| 7 |
+
"original_bytes": 209762,
|
| 8 |
+
"original_dimensions": [
|
| 9 |
+
225,
|
| 10 |
+
225
|
| 11 |
+
],
|
| 12 |
+
"dimensions": [
|
| 13 |
+
48,
|
| 14 |
+
48
|
| 15 |
+
],
|
| 16 |
+
"bytes": 3091,
|
| 17 |
+
"optimization": "48px maximum, optimized PNG; served locally at 24px"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"file": "openrouter.svg",
|
| 21 |
+
"source": "https://openrouter.ai/brand/logos/transparent/glyph/svg/glyph-grape.svg",
|
| 22 |
+
"bytes": 563,
|
| 23 |
+
"optimization": "Original compact SVG; served locally at 24px"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"file": "openai.svg",
|
| 27 |
+
"source": "https://openrouter.ai/images/icons/OpenAI.svg",
|
| 28 |
+
"bytes": 1708,
|
| 29 |
+
"optimization": "Compact provider logo SVG; served locally at 24px"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
static/script.js
CHANGED
|
@@ -18,6 +18,13 @@ const modelChoice = document.getElementById('model_choice');
|
|
| 18 |
const apiKeyInput = document.getElementById('api_key');
|
| 19 |
const generationStatus = document.getElementById('generation_status'); // Get generation status element
|
| 20 |
const autoGenerateButton = document.getElementById('auto_generate_button'); // Get AutoGenerate button element
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
// Log display related elements
|
| 23 |
const generatorLog = document.getElementById('generator-log');
|
|
@@ -890,6 +897,115 @@ function handleModelChange() {
|
|
| 890 |
}
|
| 891 |
}
|
| 892 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 893 |
// Initial setup: Add event listeners for the first Item's buttons
|
| 894 |
document.querySelector('.add-component-btn').addEventListener('click', addComponentToAllItems);
|
| 895 |
document.querySelector('.delete-component-btn').addEventListener('click', deleteComponentFromAllItems);
|
|
@@ -919,7 +1035,16 @@ document.addEventListener('visibilitychange', () => {
|
|
| 919 |
});
|
| 920 |
|
| 921 |
// Validate whether AutoGenerate required inputs are filled correctly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 922 |
function validateAutoGenerateInputs() {
|
|
|
|
| 923 |
const selectedModel = modelChoice.value;
|
| 924 |
const apiKey = document.getElementById('api_key').value.trim();
|
| 925 |
const experimentDesign = document.getElementById('experiment_design').value.trim();
|
|
@@ -1046,8 +1171,8 @@ function addComponentToAllItems() {
|
|
| 1046 |
tables.forEach(tbody => {
|
| 1047 |
const newRow = document.createElement('tr');
|
| 1048 |
newRow.innerHTML = `
|
| 1049 |
-
<td class="type-column"><input type="text"
|
| 1050 |
-
<td class="content-column"><input type="text"
|
| 1051 |
`;
|
| 1052 |
tbody.appendChild(newRow);
|
| 1053 |
});
|
|
@@ -1107,8 +1232,8 @@ function addNewItem() {
|
|
| 1107 |
for (let i = 0; i < rowCount; i++) {
|
| 1108 |
const row = document.createElement('tr');
|
| 1109 |
row.innerHTML = `
|
| 1110 |
-
<td class="type-column"><input type="text"
|
| 1111 |
-
<td class="content-column"><input type="text"
|
| 1112 |
`;
|
| 1113 |
tbody.appendChild(row);
|
| 1114 |
}
|
|
@@ -1315,6 +1440,7 @@ function updateProgress(progress) {
|
|
| 1315 |
|
| 1316 |
// Update progress display
|
| 1317 |
progressBar.style.width = `${roundedProgress}%`;
|
|
|
|
| 1318 |
document.getElementById('progress_percentage').textContent = `${roundedProgress}%`;
|
| 1319 |
|
| 1320 |
console.log(`Progress bar updated to ${roundedProgress}%`);
|
|
@@ -1334,6 +1460,7 @@ function updateProgress(progress) {
|
|
| 1334 |
generateButton.disabled = false;
|
| 1335 |
stopButton.disabled = true;
|
| 1336 |
}
|
|
|
|
| 1337 |
}
|
| 1338 |
|
| 1339 |
function resetUI() {
|
|
@@ -1357,20 +1484,15 @@ function resetUI() {
|
|
| 1357 |
// Enable model selection dropdown
|
| 1358 |
document.getElementById('model_choice').disabled = false;
|
| 1359 |
|
| 1360 |
-
|
| 1361 |
-
|
| 1362 |
-
if (selectedModel === 'GPT-4o') {
|
| 1363 |
-
document.getElementById('api_key').disabled = false;
|
| 1364 |
-
} else {
|
| 1365 |
-
document.getElementById('api_key').disabled = true;
|
| 1366 |
-
}
|
| 1367 |
|
| 1368 |
// Enable all other input boxes and text areas
|
| 1369 |
document.getElementById('iteration').disabled = false;
|
| 1370 |
document.getElementById('experiment_design').disabled = false;
|
| 1371 |
|
| 1372 |
// Enable all input boxes in all tables
|
| 1373 |
-
document.querySelectorAll('input[type="text"], input[type="number"], textarea').forEach(input => {
|
| 1374 |
if (input.id !== 'api_key') { // API Key input box is excluded
|
| 1375 |
input.disabled = false;
|
| 1376 |
}
|
|
@@ -1381,6 +1503,7 @@ function resetUI() {
|
|
| 1381 |
}
|
| 1382 |
|
| 1383 |
function validateInputs() {
|
|
|
|
| 1384 |
const selectedModel = modelChoice.value;
|
| 1385 |
const apiKey = document.getElementById('api_key').value.trim();
|
| 1386 |
const iteration = document.getElementById('iteration').value.trim();
|
|
@@ -1546,6 +1669,7 @@ function startGeneration() {
|
|
| 1546 |
|
| 1547 |
// Disable model selection dropdown
|
| 1548 |
document.getElementById('model_choice').disabled = true;
|
|
|
|
| 1549 |
|
| 1550 |
// Disable all input boxes and text areas
|
| 1551 |
document.getElementById('api_key').disabled = true;
|
|
@@ -1553,7 +1677,7 @@ function startGeneration() {
|
|
| 1553 |
document.getElementById('experiment_design').disabled = true;
|
| 1554 |
|
| 1555 |
// Disable all input boxes in all tables
|
| 1556 |
-
document.querySelectorAll('input[type="text"], input[type="number"], textarea').forEach(input => {
|
| 1557 |
input.disabled = true;
|
| 1558 |
});
|
| 1559 |
|
|
@@ -1923,7 +2047,7 @@ clearButton.addEventListener('click', () => {
|
|
| 1923 |
textAreas.forEach(id => {
|
| 1924 |
const element = document.getElementById(id);
|
| 1925 |
if (element) {
|
| 1926 |
-
element.value = ''
|
| 1927 |
}
|
| 1928 |
});
|
| 1929 |
|
|
@@ -1939,6 +2063,7 @@ clearButton.addEventListener('click', () => {
|
|
| 1939 |
element.value = id === 'custom_params' ? element.defaultValue : '';
|
| 1940 |
}
|
| 1941 |
});
|
|
|
|
| 1942 |
|
| 1943 |
// Reset checkboxes to default state
|
| 1944 |
const agent2IndividualValidation = document.getElementById('agent2_individual_validation');
|
|
@@ -1951,8 +2076,11 @@ clearButton.addEventListener('click', () => {
|
|
| 1951 |
agent3IndividualScoring.checked = false;
|
| 1952 |
}
|
| 1953 |
|
| 1954 |
-
//
|
| 1955 |
-
|
|
|
|
|
|
|
|
|
|
| 1956 |
|
| 1957 |
// Clear all Items, only keep one initial Item
|
| 1958 |
while (itemsContainer.firstChild) {
|
|
@@ -1974,8 +2102,8 @@ clearButton.addEventListener('click', () => {
|
|
| 1974 |
</thead>
|
| 1975 |
<tbody>
|
| 1976 |
<tr>
|
| 1977 |
-
<td class="type-column"><input type="text"
|
| 1978 |
-
<td class="content-column"><input type="text"
|
| 1979 |
</tr>
|
| 1980 |
</tbody>
|
| 1981 |
</table>
|
|
@@ -2050,6 +2178,7 @@ function periodicSocketCheck() {
|
|
| 2050 |
function disableAllElements() {
|
| 2051 |
// Start safety timeout
|
| 2052 |
startSafetyTimeout();
|
|
|
|
| 2053 |
|
| 2054 |
// Disable all dropdowns, text boxes, and text areas
|
| 2055 |
document.querySelectorAll('input, textarea, select').forEach(element => {
|
|
@@ -2093,6 +2222,7 @@ function disableAllElements() {
|
|
| 2093 |
function enableAllElements() {
|
| 2094 |
// Clear safety timeout
|
| 2095 |
clearSafetyTimeout();
|
|
|
|
| 2096 |
|
| 2097 |
// Enable all dropdowns, text boxes, and text areas
|
| 2098 |
document.querySelectorAll('input, textarea, select').forEach(element => {
|
|
@@ -2228,7 +2358,7 @@ function callOpenAIAPI(prompt) {
|
|
| 2228 |
.finally(() => {
|
| 2229 |
// Restore button state
|
| 2230 |
autoGenerateButton.disabled = false;
|
| 2231 |
-
autoGenerateButton.innerText = "
|
| 2232 |
});
|
| 2233 |
} catch (error) {
|
| 2234 |
// Catch any errors that occur before setting up or executing API call
|
|
@@ -2236,7 +2366,7 @@ function callOpenAIAPI(prompt) {
|
|
| 2236 |
clearSafetyTimeout();
|
| 2237 |
enableAllElements();
|
| 2238 |
autoGenerateButton.disabled = false;
|
| 2239 |
-
autoGenerateButton.innerText = "
|
| 2240 |
alert(`Error setting up API call: ${error.message}`);
|
| 2241 |
}
|
| 2242 |
}
|
|
@@ -2253,7 +2383,8 @@ function callcustomAPI(prompt) {
|
|
| 2253 |
prompt: prompt,
|
| 2254 |
model: modelName,
|
| 2255 |
api_url: apiUrl,
|
| 2256 |
-
api_key: apiKey
|
|
|
|
| 2257 |
};
|
| 2258 |
|
| 2259 |
fetch('/api/custom_model_inference', {
|
|
@@ -2290,7 +2421,7 @@ function callcustomAPI(prompt) {
|
|
| 2290 |
})
|
| 2291 |
.finally(() => {
|
| 2292 |
autoGenerateButton.disabled = false;
|
| 2293 |
-
autoGenerateButton.innerText = "
|
| 2294 |
});
|
| 2295 |
}
|
| 2296 |
|
|
@@ -2590,7 +2721,7 @@ function startSafetyTimeout() {
|
|
| 2590 |
enableAllElements();
|
| 2591 |
alert("Operation timed out. The page has been unlocked. Please try again.");
|
| 2592 |
autoGenerateButton.disabled = false;
|
| 2593 |
-
autoGenerateButton.innerText = "
|
| 2594 |
}
|
| 2595 |
}, 90000); // 90 second timeout
|
| 2596 |
}
|
|
|
|
| 18 |
const apiKeyInput = document.getElementById('api_key');
|
| 19 |
const generationStatus = document.getElementById('generation_status'); // Get generation status element
|
| 20 |
const autoGenerateButton = document.getElementById('auto_generate_button'); // Get AutoGenerate button element
|
| 21 |
+
const modelPresets = {
|
| 22 |
+
deepseek: { name: 'deepseek-chat', url: 'https://api.deepseek.com/chat/completions' },
|
| 23 |
+
openrouter: { name: 'openai/gpt-5.4', url: 'https://openrouter.ai/api/v1/chat/completions' },
|
| 24 |
+
openai: { name: 'gpt-5.4', url: 'https://api.openai.com/v1/chat/completions' },
|
| 25 |
+
gpt4o: { name: 'gpt-4o', url: 'https://api.openai.com/v1/chat/completions' }
|
| 26 |
+
};
|
| 27 |
+
let modelConfigurationMode = 'predefined';
|
| 28 |
|
| 29 |
// Log display related elements
|
| 30 |
const generatorLog = document.getElementById('generator-log');
|
|
|
|
| 897 |
}
|
| 898 |
}
|
| 899 |
|
| 900 |
+
function applyModelPreset() {
|
| 901 |
+
const preset = modelPresets[document.getElementById('predefined_model').value];
|
| 902 |
+
if (!preset) return;
|
| 903 |
+
document.getElementById('custom_model_name').value = preset.name;
|
| 904 |
+
document.getElementById('custom_api_url').value = preset.url;
|
| 905 |
+
}
|
| 906 |
+
|
| 907 |
+
function setModelConfigurationMode(mode) {
|
| 908 |
+
if (mode !== 'predefined' && mode !== 'custom') return;
|
| 909 |
+
const nameInput = document.getElementById('custom_model_name');
|
| 910 |
+
const urlInput = document.getElementById('custom_api_url');
|
| 911 |
+
const enteringCustomMode = mode === 'custom' && modelConfigurationMode !== 'custom';
|
| 912 |
+
modelConfigurationMode = mode;
|
| 913 |
+
const isCustom = mode === 'custom';
|
| 914 |
+
document.querySelectorAll('[data-model-mode]').forEach(button => {
|
| 915 |
+
const active = button.dataset.modelMode === mode;
|
| 916 |
+
button.classList.toggle('is-active', active);
|
| 917 |
+
button.setAttribute('aria-pressed', String(active));
|
| 918 |
+
});
|
| 919 |
+
document.getElementById('predefined_model').hidden = isCustom;
|
| 920 |
+
nameInput.hidden = !isCustom;
|
| 921 |
+
urlInput.readOnly = !isCustom;
|
| 922 |
+
document.getElementById('model-name-label').htmlFor = isCustom ? 'custom_model_name' : 'predefined_model';
|
| 923 |
+
if (enteringCustomMode) {
|
| 924 |
+
nameInput.value = '';
|
| 925 |
+
urlInput.value = '';
|
| 926 |
+
} else if (!isCustom) {
|
| 927 |
+
applyModelPreset();
|
| 928 |
+
}
|
| 929 |
+
// Both modes use the existing OpenAI-compatible API configuration.
|
| 930 |
+
modelChoice.value = 'custom';
|
| 931 |
+
handleModelChange();
|
| 932 |
+
window.dispatchEvent(new CustomEvent('stimmas:model-mode', { detail: { mode } }));
|
| 933 |
+
}
|
| 934 |
+
|
| 935 |
+
function setApiKeyVisibility(visible) {
|
| 936 |
+
const toggle = document.getElementById('toggle_api_key');
|
| 937 |
+
apiKeyInput.type = visible ? 'text' : 'password';
|
| 938 |
+
toggle.setAttribute('aria-label', visible ? 'Hide API key' : 'Show API key');
|
| 939 |
+
toggle.setAttribute('aria-pressed', String(visible));
|
| 940 |
+
toggle.querySelector('i').className = visible ? 'far fa-eye-slash' : 'far fa-eye';
|
| 941 |
+
}
|
| 942 |
+
|
| 943 |
+
function setModelControlsDisabled(disabled) {
|
| 944 |
+
document.querySelectorAll('[data-model-mode], #predefined_model, #toggle_api_key, [data-parameter-control]').forEach(control => {
|
| 945 |
+
control.disabled = disabled;
|
| 946 |
+
});
|
| 947 |
+
window.dispatchEvent(new CustomEvent('stimmas:controls-disabled', { detail: { disabled } }));
|
| 948 |
+
}
|
| 949 |
+
|
| 950 |
+
function positionHelpTooltip(tooltip) {
|
| 951 |
+
if (window.innerWidth <= 600) {
|
| 952 |
+
tooltip.dataset.placement = 'overlay';
|
| 953 |
+
return;
|
| 954 |
+
}
|
| 955 |
+
const panel = tooltip.querySelector('.tooltip-text');
|
| 956 |
+
const anchor = tooltip.getBoundingClientRect();
|
| 957 |
+
const margin = 16;
|
| 958 |
+
panel.style.removeProperty('--tooltip-max-height');
|
| 959 |
+
const spaceAbove = anchor.top - 12 - margin;
|
| 960 |
+
const spaceBelow = window.innerHeight - anchor.bottom - 12 - margin;
|
| 961 |
+
const showAbove = spaceAbove >= panel.offsetHeight || (spaceBelow < panel.offsetHeight && spaceAbove > spaceBelow);
|
| 962 |
+
const availableHeight = showAbove ? spaceAbove : spaceBelow;
|
| 963 |
+
panel.style.setProperty('--tooltip-max-height', `${Math.max(120, availableHeight)}px`);
|
| 964 |
+
const left = Math.max(margin, Math.min(anchor.left - 28, window.innerWidth - panel.offsetWidth - margin));
|
| 965 |
+
const top = showAbove ? anchor.top - panel.offsetHeight - 12 : anchor.bottom + 12;
|
| 966 |
+
panel.style.setProperty('--tooltip-left', `${left}px`);
|
| 967 |
+
panel.style.setProperty('--tooltip-top', `${Math.max(margin, top)}px`);
|
| 968 |
+
tooltip.dataset.placement = showAbove ? 'above' : 'below';
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
let activeHelpTooltip = null;
|
| 972 |
+
document.querySelectorAll('.tooltip.info-icon').forEach(tooltip => {
|
| 973 |
+
const showHelp = () => {
|
| 974 |
+
activeHelpTooltip = tooltip;
|
| 975 |
+
tooltip.classList.remove('is-dismissed');
|
| 976 |
+
positionHelpTooltip(tooltip);
|
| 977 |
+
};
|
| 978 |
+
tooltip.addEventListener('mouseenter', showHelp);
|
| 979 |
+
tooltip.addEventListener('focusin', showHelp);
|
| 980 |
+
tooltip.addEventListener('mouseleave', () => {
|
| 981 |
+
if (activeHelpTooltip === tooltip && !tooltip.contains(document.activeElement)) activeHelpTooltip = null;
|
| 982 |
+
});
|
| 983 |
+
tooltip.addEventListener('focusout', () => {
|
| 984 |
+
if (activeHelpTooltip === tooltip && !tooltip.matches(':hover')) activeHelpTooltip = null;
|
| 985 |
+
});
|
| 986 |
+
tooltip.addEventListener('keydown', event => {
|
| 987 |
+
if (event.key === 'Escape') {
|
| 988 |
+
tooltip.classList.add('is-dismissed');
|
| 989 |
+
tooltip.blur();
|
| 990 |
+
activeHelpTooltip = null;
|
| 991 |
+
}
|
| 992 |
+
});
|
| 993 |
+
});
|
| 994 |
+
window.addEventListener('scroll', () => {
|
| 995 |
+
if (activeHelpTooltip) positionHelpTooltip(activeHelpTooltip);
|
| 996 |
+
}, true);
|
| 997 |
+
window.addEventListener('resize', () => {
|
| 998 |
+
if (activeHelpTooltip) positionHelpTooltip(activeHelpTooltip);
|
| 999 |
+
});
|
| 1000 |
+
|
| 1001 |
+
document.querySelectorAll('[data-model-mode]').forEach(button => {
|
| 1002 |
+
button.addEventListener('click', () => setModelConfigurationMode(button.dataset.modelMode));
|
| 1003 |
+
});
|
| 1004 |
+
document.getElementById('predefined_model').addEventListener('change', applyModelPreset);
|
| 1005 |
+
document.getElementById('toggle_api_key').addEventListener('click', () => {
|
| 1006 |
+
setApiKeyVisibility(apiKeyInput.type === 'password');
|
| 1007 |
+
});
|
| 1008 |
+
|
| 1009 |
// Initial setup: Add event listeners for the first Item's buttons
|
| 1010 |
document.querySelector('.add-component-btn').addEventListener('click', addComponentToAllItems);
|
| 1011 |
document.querySelector('.delete-component-btn').addEventListener('click', deleteComponentFromAllItems);
|
|
|
|
| 1035 |
});
|
| 1036 |
|
| 1037 |
// Validate whether AutoGenerate required inputs are filled correctly
|
| 1038 |
+
function validateAdvancedParameters() {
|
| 1039 |
+
const parameters = document.getElementById('custom_params');
|
| 1040 |
+
if (!parameters.dataset.error) return true;
|
| 1041 |
+
alert(parameters.dataset.error);
|
| 1042 |
+
document.querySelector('#advanced-parameters-root [aria-invalid="true"]')?.focus();
|
| 1043 |
+
return false;
|
| 1044 |
+
}
|
| 1045 |
+
|
| 1046 |
function validateAutoGenerateInputs() {
|
| 1047 |
+
if (!validateAdvancedParameters()) return false;
|
| 1048 |
const selectedModel = modelChoice.value;
|
| 1049 |
const apiKey = document.getElementById('api_key').value.trim();
|
| 1050 |
const experimentDesign = document.getElementById('experiment_design').value.trim();
|
|
|
|
| 1171 |
tables.forEach(tbody => {
|
| 1172 |
const newRow = document.createElement('tr');
|
| 1173 |
newRow.innerHTML = `
|
| 1174 |
+
<td class="type-column"><input type="text" aria-label="Component"></td>
|
| 1175 |
+
<td class="content-column"><input type="text" aria-label="Content"></td>
|
| 1176 |
`;
|
| 1177 |
tbody.appendChild(newRow);
|
| 1178 |
});
|
|
|
|
| 1232 |
for (let i = 0; i < rowCount; i++) {
|
| 1233 |
const row = document.createElement('tr');
|
| 1234 |
row.innerHTML = `
|
| 1235 |
+
<td class="type-column"><input type="text" aria-label="Component"></td>
|
| 1236 |
+
<td class="content-column"><input type="text" aria-label="Content"></td>
|
| 1237 |
`;
|
| 1238 |
tbody.appendChild(row);
|
| 1239 |
}
|
|
|
|
| 1440 |
|
| 1441 |
// Update progress display
|
| 1442 |
progressBar.style.width = `${roundedProgress}%`;
|
| 1443 |
+
progressBar.parentElement.setAttribute('aria-valuenow', String(roundedProgress));
|
| 1444 |
document.getElementById('progress_percentage').textContent = `${roundedProgress}%`;
|
| 1445 |
|
| 1446 |
console.log(`Progress bar updated to ${roundedProgress}%`);
|
|
|
|
| 1460 |
generateButton.disabled = false;
|
| 1461 |
stopButton.disabled = true;
|
| 1462 |
}
|
| 1463 |
+
window.dispatchEvent(new CustomEvent('stimmas:progress', { detail: { value: roundedProgress, previous: currentProgress } }));
|
| 1464 |
}
|
| 1465 |
|
| 1466 |
function resetUI() {
|
|
|
|
| 1484 |
// Enable model selection dropdown
|
| 1485 |
document.getElementById('model_choice').disabled = false;
|
| 1486 |
|
| 1487 |
+
handleModelChange();
|
| 1488 |
+
setModelControlsDisabled(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1489 |
|
| 1490 |
// Enable all other input boxes and text areas
|
| 1491 |
document.getElementById('iteration').disabled = false;
|
| 1492 |
document.getElementById('experiment_design').disabled = false;
|
| 1493 |
|
| 1494 |
// Enable all input boxes in all tables
|
| 1495 |
+
document.querySelectorAll('input[type="text"], input[type="password"], input[type="number"], textarea').forEach(input => {
|
| 1496 |
if (input.id !== 'api_key') { // API Key input box is excluded
|
| 1497 |
input.disabled = false;
|
| 1498 |
}
|
|
|
|
| 1503 |
}
|
| 1504 |
|
| 1505 |
function validateInputs() {
|
| 1506 |
+
if (!validateAdvancedParameters()) return false;
|
| 1507 |
const selectedModel = modelChoice.value;
|
| 1508 |
const apiKey = document.getElementById('api_key').value.trim();
|
| 1509 |
const iteration = document.getElementById('iteration').value.trim();
|
|
|
|
| 1669 |
|
| 1670 |
// Disable model selection dropdown
|
| 1671 |
document.getElementById('model_choice').disabled = true;
|
| 1672 |
+
setModelControlsDisabled(true);
|
| 1673 |
|
| 1674 |
// Disable all input boxes and text areas
|
| 1675 |
document.getElementById('api_key').disabled = true;
|
|
|
|
| 1677 |
document.getElementById('experiment_design').disabled = true;
|
| 1678 |
|
| 1679 |
// Disable all input boxes in all tables
|
| 1680 |
+
document.querySelectorAll('input[type="text"], input[type="password"], input[type="number"], textarea').forEach(input => {
|
| 1681 |
input.disabled = true;
|
| 1682 |
});
|
| 1683 |
|
|
|
|
| 2047 |
textAreas.forEach(id => {
|
| 2048 |
const element = document.getElementById(id);
|
| 2049 |
if (element) {
|
| 2050 |
+
element.value = id === 'experiment_design' ? element.defaultValue : '';
|
| 2051 |
}
|
| 2052 |
});
|
| 2053 |
|
|
|
|
| 2063 |
element.value = id === 'custom_params' ? element.defaultValue : '';
|
| 2064 |
}
|
| 2065 |
});
|
| 2066 |
+
window.dispatchEvent(new CustomEvent('stimmas:parameters-reset'));
|
| 2067 |
|
| 2068 |
// Reset checkboxes to default state
|
| 2069 |
const agent2IndividualValidation = document.getElementById('agent2_individual_validation');
|
|
|
|
| 2076 |
agent3IndividualScoring.checked = false;
|
| 2077 |
}
|
| 2078 |
|
| 2079 |
+
// Restore the default preset and conceal any previously revealed key.
|
| 2080 |
+
modelConfigurationMode = 'predefined';
|
| 2081 |
+
document.getElementById('predefined_model').value = 'deepseek';
|
| 2082 |
+
setModelConfigurationMode('predefined');
|
| 2083 |
+
setApiKeyVisibility(false);
|
| 2084 |
|
| 2085 |
// Clear all Items, only keep one initial Item
|
| 2086 |
while (itemsContainer.firstChild) {
|
|
|
|
| 2102 |
</thead>
|
| 2103 |
<tbody>
|
| 2104 |
<tr>
|
| 2105 |
+
<td class="type-column"><input type="text" aria-label="Component"></td>
|
| 2106 |
+
<td class="content-column"><input type="text" aria-label="Content"></td>
|
| 2107 |
</tr>
|
| 2108 |
</tbody>
|
| 2109 |
</table>
|
|
|
|
| 2178 |
function disableAllElements() {
|
| 2179 |
// Start safety timeout
|
| 2180 |
startSafetyTimeout();
|
| 2181 |
+
setModelControlsDisabled(true);
|
| 2182 |
|
| 2183 |
// Disable all dropdowns, text boxes, and text areas
|
| 2184 |
document.querySelectorAll('input, textarea, select').forEach(element => {
|
|
|
|
| 2222 |
function enableAllElements() {
|
| 2223 |
// Clear safety timeout
|
| 2224 |
clearSafetyTimeout();
|
| 2225 |
+
setModelControlsDisabled(false);
|
| 2226 |
|
| 2227 |
// Enable all dropdowns, text boxes, and text areas
|
| 2228 |
document.querySelectorAll('input, textarea, select').forEach(element => {
|
|
|
|
| 2358 |
.finally(() => {
|
| 2359 |
// Restore button state
|
| 2360 |
autoGenerateButton.disabled = false;
|
| 2361 |
+
autoGenerateButton.innerText = "Auto-generate properties";
|
| 2362 |
});
|
| 2363 |
} catch (error) {
|
| 2364 |
// Catch any errors that occur before setting up or executing API call
|
|
|
|
| 2366 |
clearSafetyTimeout();
|
| 2367 |
enableAllElements();
|
| 2368 |
autoGenerateButton.disabled = false;
|
| 2369 |
+
autoGenerateButton.innerText = "Auto-generate properties";
|
| 2370 |
alert(`Error setting up API call: ${error.message}`);
|
| 2371 |
}
|
| 2372 |
}
|
|
|
|
| 2383 |
prompt: prompt,
|
| 2384 |
model: modelName,
|
| 2385 |
api_url: apiUrl,
|
| 2386 |
+
api_key: apiKey,
|
| 2387 |
+
params: JSON.parse(document.getElementById('custom_params').value || '{}')
|
| 2388 |
};
|
| 2389 |
|
| 2390 |
fetch('/api/custom_model_inference', {
|
|
|
|
| 2421 |
})
|
| 2422 |
.finally(() => {
|
| 2423 |
autoGenerateButton.disabled = false;
|
| 2424 |
+
autoGenerateButton.innerText = "Auto-generate properties";
|
| 2425 |
});
|
| 2426 |
}
|
| 2427 |
|
|
|
|
| 2721 |
enableAllElements();
|
| 2722 |
alert("Operation timed out. The page has been unlocked. Please try again.");
|
| 2723 |
autoGenerateButton.disabled = false;
|
| 2724 |
+
autoGenerateButton.innerText = "Auto-generate properties";
|
| 2725 |
}
|
| 2726 |
}, 90000); // 90 second timeout
|
| 2727 |
}
|
static/styles.css
CHANGED
|
@@ -1,1609 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
font-family: 'Arial', sans-serif;
|
| 3 |
-
background-color: #f4f8fb;
|
| 4 |
margin: 0;
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
h2 {
|
| 10 |
-
text-align: center;
|
| 11 |
-
position: relative;
|
| 12 |
-
font-family: 'Arial', sans-serif;
|
| 13 |
-
letter-spacing: 1px;
|
| 14 |
-
}
|
| 15 |
-
|
| 16 |
-
h1 {
|
| 17 |
-
color: transparent;
|
| 18 |
-
background-image: linear-gradient(135deg, #2980b9, #6dd5fa, #2980b9);
|
| 19 |
-
background-clip: text;
|
| 20 |
-
-webkit-background-clip: text;
|
| 21 |
-
text-shadow: 0 2px 15px rgba(42, 157, 244, 0.2);
|
| 22 |
-
font-size: 2.8rem;
|
| 23 |
-
margin: 10px 0 20px;
|
| 24 |
-
font-weight: 700;
|
| 25 |
-
position: relative;
|
| 26 |
-
display: inline-block;
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
h1::after {
|
| 30 |
-
content: '';
|
| 31 |
-
position: absolute;
|
| 32 |
-
bottom: -8px;
|
| 33 |
-
left: 50%;
|
| 34 |
-
transform: translateX(-50%);
|
| 35 |
-
width: 60%;
|
| 36 |
-
height: 2px;
|
| 37 |
-
background: linear-gradient(90deg, transparent, #6dd5fa, transparent);
|
| 38 |
-
}
|
| 39 |
-
|
| 40 |
-
h2 {
|
| 41 |
-
color: #ffffff;
|
| 42 |
-
background: linear-gradient(90deg, #7fbde8, #a4d8fd);
|
| 43 |
-
padding: 10px 15px;
|
| 44 |
-
margin: 30px 0 0;
|
| 45 |
-
border-radius: 12px 12px 0 0;
|
| 46 |
-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| 47 |
-
font-size: 1.5rem;
|
| 48 |
-
font-weight: 600;
|
| 49 |
-
position: relative;
|
| 50 |
-
overflow: hidden;
|
| 51 |
-
line-height: 1.3;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
h2::before {
|
| 55 |
-
content: '';
|
| 56 |
-
position: absolute;
|
| 57 |
-
top: 0;
|
| 58 |
-
left: -50%;
|
| 59 |
-
width: 30%;
|
| 60 |
-
height: 100%;
|
| 61 |
-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
| 62 |
-
transform: skewX(-25deg);
|
| 63 |
-
animation: shine 4s infinite;
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
@keyframes shine {
|
| 67 |
-
0% {
|
| 68 |
-
left: -50%;
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
100% {
|
| 72 |
-
left: 150%;
|
| 73 |
-
}
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
.instruction-text {
|
| 77 |
-
color: #445577;
|
| 78 |
-
text-align: center;
|
| 79 |
-
font-size: 1.05rem;
|
| 80 |
-
margin-top: 5px;
|
| 81 |
-
margin-bottom: 25px;
|
| 82 |
-
font-weight: normal;
|
| 83 |
line-height: 1.5;
|
|
|
|
| 84 |
}
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
font-style: normal;
|
| 93 |
-
line-height: 1.4;
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
.container {
|
| 99 |
-
max-width: 950px;
|
| 100 |
-
margin: 30px auto;
|
| 101 |
-
background-color: #ffffff;
|
| 102 |
-
padding: 30px;
|
| 103 |
-
border-radius: 15px;
|
| 104 |
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
|
| 105 |
-
position: relative;
|
| 106 |
-
overflow: visible;
|
| 107 |
-
}
|
| 108 |
-
|
| 109 |
-
.container::before {
|
| 110 |
-
content: '';
|
| 111 |
-
position: absolute;
|
| 112 |
-
top: 0;
|
| 113 |
-
left: 0;
|
| 114 |
-
width: 100%;
|
| 115 |
-
height: 5px;
|
| 116 |
-
background: linear-gradient(90deg, #7fbde8, #a4d8fd);
|
| 117 |
-
}
|
| 118 |
-
|
| 119 |
-
.button-container {
|
| 120 |
-
display: flex;
|
| 121 |
-
justify-content: center;
|
| 122 |
-
gap: 10px;
|
| 123 |
-
margin-top: 20px;
|
| 124 |
-
}
|
| 125 |
-
|
| 126 |
-
.item-container {
|
| 127 |
-
margin-bottom: 0;
|
| 128 |
-
border-radius: 8px;
|
| 129 |
-
overflow: hidden;
|
| 130 |
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
| 131 |
-
transition: all 0.3s ease;
|
| 132 |
-
border: 1px solid #e1eaf5;
|
| 133 |
-
}
|
| 134 |
-
|
| 135 |
-
.item-container:hover {
|
| 136 |
-
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
|
| 137 |
-
transform: translateY(-2px);
|
| 138 |
-
}
|
| 139 |
-
|
| 140 |
-
.item-title {
|
| 141 |
-
background: linear-gradient(135deg, #e1ecf7, #d0e4f5);
|
| 142 |
-
color: #445577;
|
| 143 |
-
text-align: center;
|
| 144 |
-
padding: 12px;
|
| 145 |
-
font-weight: 600;
|
| 146 |
-
border-bottom: 1px solid #e1eaf5;
|
| 147 |
-
letter-spacing: 0.5px;
|
| 148 |
-
}
|
| 149 |
-
|
| 150 |
-
.item-buttons {
|
| 151 |
-
display: flex;
|
| 152 |
-
gap: 15px;
|
| 153 |
-
margin-top: 10px;
|
| 154 |
-
margin-bottom: 20px;
|
| 155 |
-
}
|
| 156 |
-
|
| 157 |
-
#addAgent1PropertyButton,
|
| 158 |
-
#add_agent_2_property_button,
|
| 159 |
-
#add_agent_3_property_button {
|
| 160 |
-
margin-right: 0;
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
.item-buttons-row {
|
| 164 |
-
display: flex;
|
| 165 |
-
justify-content: space-between;
|
| 166 |
-
margin-top: 10px;
|
| 167 |
-
margin-bottom: 0;
|
| 168 |
-
padding-bottom: 0;
|
| 169 |
-
}
|
| 170 |
-
|
| 171 |
-
.left-buttons {
|
| 172 |
-
display: flex;
|
| 173 |
-
gap: 15px;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
.right-buttons {
|
| 177 |
-
display: flex;
|
| 178 |
-
gap: 15px;
|
| 179 |
-
}
|
| 180 |
-
|
| 181 |
-
.form-group {
|
| 182 |
-
margin-bottom: 25px;
|
| 183 |
-
position: relative;
|
| 184 |
-
transition: all 0.3s ease;
|
| 185 |
-
}
|
| 186 |
-
|
| 187 |
-
.form-group:has(#items-container) {
|
| 188 |
-
margin-bottom: 0;
|
| 189 |
-
}
|
| 190 |
-
|
| 191 |
-
.button-container-spaced {
|
| 192 |
-
display: flex;
|
| 193 |
-
gap: 15px;
|
| 194 |
-
margin-top: 10px;
|
| 195 |
-
margin-bottom: 0;
|
| 196 |
-
padding-bottom: 0;
|
| 197 |
-
}
|
| 198 |
-
|
| 199 |
-
.button-container-centered {
|
| 200 |
-
display: flex;
|
| 201 |
-
gap: 15px;
|
| 202 |
-
margin-top: 10px;
|
| 203 |
-
margin-bottom: 0;
|
| 204 |
-
padding-bottom: 0;
|
| 205 |
-
justify-content: center;
|
| 206 |
-
}
|
| 207 |
-
|
| 208 |
-
label {
|
| 209 |
-
display: block;
|
| 210 |
-
font-weight: 600;
|
| 211 |
-
margin-bottom: 10px;
|
| 212 |
-
color: #445577;
|
| 213 |
-
letter-spacing: 0.5px;
|
| 214 |
}
|
|
|
|
|
|
|
|
|
|
| 215 |
|
| 216 |
-
.
|
|
|
|
| 217 |
display: flex;
|
| 218 |
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
margin-bottom: 10px;
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
display: flex;
|
| 227 |
align-items: center;
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
}
|
| 235 |
-
|
| 236 |
-
.
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
}
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
margin-top: -1px;
|
| 254 |
-
padding: 0;
|
| 255 |
-
box-sizing: border-box;
|
| 256 |
-
box-shadow: 0 2px 5px rgba(127, 189, 232, 0.3);
|
| 257 |
-
}
|
| 258 |
-
|
| 259 |
-
.info-icon-inner {
|
| 260 |
-
position: absolute;
|
| 261 |
-
top: 50%;
|
| 262 |
-
left: 50%;
|
| 263 |
-
transform: translate(-50%, -50%);
|
| 264 |
-
font-size: 12px;
|
| 265 |
-
line-height: 1;
|
| 266 |
-
text-align: center;
|
| 267 |
width: 100%;
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
.tooltip .tooltip-text {
|
| 280 |
-
visibility: hidden;
|
| 281 |
-
width: 300px;
|
| 282 |
-
background-color: #ffffff;
|
| 283 |
-
color: #445577;
|
| 284 |
-
text-align: left;
|
| 285 |
-
border-radius: 8px;
|
| 286 |
-
padding: 15px;
|
| 287 |
-
position: absolute;
|
| 288 |
-
z-index: 9999;
|
| 289 |
-
bottom: 130%;
|
| 290 |
-
left: 50%;
|
| 291 |
-
margin-left: -150px;
|
| 292 |
-
opacity: 0;
|
| 293 |
-
transition: all 0.3s ease;
|
| 294 |
-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
| 295 |
-
border: 1px solid #e1eaf5;
|
| 296 |
-
font-weight: normal;
|
| 297 |
-
font-size: 14px;
|
| 298 |
-
line-height: 1.6;
|
| 299 |
-
}
|
| 300 |
-
|
| 301 |
-
.tooltip .tooltip-text::after {
|
| 302 |
-
content: "";
|
| 303 |
-
position: absolute;
|
| 304 |
-
top: 100%;
|
| 305 |
-
left: 50%;
|
| 306 |
-
margin-left: -8px;
|
| 307 |
-
border-width: 8px;
|
| 308 |
-
border-style: solid;
|
| 309 |
-
border-color: #ffffff transparent transparent transparent;
|
| 310 |
-
filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.05));
|
| 311 |
-
}
|
| 312 |
-
|
| 313 |
-
.tooltip:hover .tooltip-text {
|
| 314 |
-
visibility: visible;
|
| 315 |
-
opacity: 1;
|
| 316 |
-
transform: translateY(-5px);
|
| 317 |
-
}
|
| 318 |
-
|
| 319 |
-
input[type="text"],
|
| 320 |
-
input[type="number"],
|
| 321 |
-
textarea,
|
| 322 |
-
select {
|
| 323 |
-
width: 93.5%;
|
| 324 |
-
padding: 12px;
|
| 325 |
-
font-size: 1rem;
|
| 326 |
-
border: 1px solid #e1eaf5;
|
| 327 |
-
border-radius: 8px;
|
| 328 |
-
transition: all 0.3s ease;
|
| 329 |
-
font-family: 'Arial', sans-serif;
|
| 330 |
-
background-color: #f9fafc;
|
| 331 |
-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
|
| 332 |
}
|
| 333 |
-
|
| 334 |
-
input[type=
|
| 335 |
-
input[type=
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
box-shadow: 0 0 0 3px rgba(127, 189, 232, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.05);
|
| 340 |
outline: none;
|
| 341 |
-
background-color: #ffffff;
|
| 342 |
-
}
|
| 343 |
-
|
| 344 |
-
input[type="text"]:disabled,
|
| 345 |
-
input[type="number"]:disabled {
|
| 346 |
-
background-color: #f0f3f7;
|
| 347 |
-
cursor: not-allowed;
|
| 348 |
-
border-color: #d8e0ed;
|
| 349 |
-
box-shadow: none;
|
| 350 |
-
}
|
| 351 |
-
|
| 352 |
-
input::placeholder,
|
| 353 |
-
textarea::placeholder,
|
| 354 |
-
select::placeholder {
|
| 355 |
-
font-family: 'Calibri', sans-serif;
|
| 356 |
-
font-size: 1rem;
|
| 357 |
-
color: #a0b0c7;
|
| 358 |
-
font-style: normal;
|
| 359 |
-
}
|
| 360 |
-
|
| 361 |
-
textarea,
|
| 362 |
-
input[type="text"],
|
| 363 |
-
input[type="number"],
|
| 364 |
-
select {
|
| 365 |
-
font-family: 'Arial', sans-serif !important;
|
| 366 |
-
font-size: 1rem !important;
|
| 367 |
-
color: #445577 !important;
|
| 368 |
-
font-style: normal !important;
|
| 369 |
-
}
|
| 370 |
-
|
| 371 |
-
textarea {
|
| 372 |
-
resize: vertical;
|
| 373 |
-
transition: none;
|
| 374 |
}
|
| 375 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
select {
|
| 377 |
appearance: none;
|
| 378 |
-
|
|
|
|
| 379 |
background-repeat: no-repeat;
|
| 380 |
-
background-position: right
|
| 381 |
-
|
| 382 |
-
}
|
| 383 |
-
|
| 384 |
-
.
|
| 385 |
-
|
| 386 |
-
}
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
}
|
| 401 |
-
|
| 402 |
-
table:hover {
|
| 403 |
-
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
|
| 404 |
-
}
|
| 405 |
-
|
| 406 |
-
table thead tr:first-child th:first-child {
|
| 407 |
-
border-top-left-radius: 8px;
|
| 408 |
-
}
|
| 409 |
-
|
| 410 |
-
table thead tr:first-child th:last-child {
|
| 411 |
-
border-top-right-radius: 8px;
|
| 412 |
-
}
|
| 413 |
-
|
| 414 |
-
table tbody tr:last-child td:first-child {
|
| 415 |
-
border-bottom-left-radius: 8px;
|
| 416 |
-
}
|
| 417 |
-
|
| 418 |
-
table tbody tr:last-child td:last-child {
|
| 419 |
-
border-bottom-right-radius: 8px;
|
| 420 |
-
}
|
| 421 |
-
|
| 422 |
-
th,
|
| 423 |
-
td {
|
| 424 |
-
text-align: left;
|
| 425 |
-
padding: 12px 15px;
|
| 426 |
-
border-right: 1px solid #e1eaf5;
|
| 427 |
-
border-bottom: 1px solid #e1eaf5;
|
| 428 |
-
position: relative;
|
| 429 |
-
}
|
| 430 |
-
|
| 431 |
-
th:last-child,
|
| 432 |
-
td:last-child {
|
| 433 |
-
border-right: none;
|
| 434 |
-
}
|
| 435 |
-
|
| 436 |
-
tbody tr:last-child td {
|
| 437 |
-
border-bottom: none;
|
| 438 |
-
}
|
| 439 |
-
|
| 440 |
-
th {
|
| 441 |
-
background: linear-gradient(135deg, #e1ecf7, #d0e4f5);
|
| 442 |
-
font-weight: 600;
|
| 443 |
-
color: #445577;
|
| 444 |
-
letter-spacing: 0.5px;
|
| 445 |
-
text-transform: none;
|
| 446 |
-
font-size: 0.85rem;
|
| 447 |
-
padding: 12px 15px;
|
| 448 |
-
font-family: 'Arial', sans-serif;
|
| 449 |
-
}
|
| 450 |
-
|
| 451 |
-
td {
|
| 452 |
-
background-color: #ffffff;
|
| 453 |
-
transition: background-color 0.2s;
|
| 454 |
-
}
|
| 455 |
-
|
| 456 |
-
tbody tr:hover td {
|
| 457 |
-
background-color: #f9fafc;
|
| 458 |
-
}
|
| 459 |
-
|
| 460 |
-
.agent-column {
|
| 461 |
-
width: 18%;
|
| 462 |
-
min-width: 100px;
|
| 463 |
-
}
|
| 464 |
-
|
| 465 |
-
.type-column {
|
| 466 |
-
width: 20%;
|
| 467 |
-
min-width: 100px;
|
| 468 |
-
}
|
| 469 |
-
|
| 470 |
-
.type-column input {
|
| 471 |
-
width: 87%;
|
| 472 |
-
}
|
| 473 |
-
|
| 474 |
-
.content-column input {
|
| 475 |
-
width: 96.8%;
|
| 476 |
-
}
|
| 477 |
-
|
| 478 |
-
.agent_1_properties-column input {
|
| 479 |
-
width: 97.5%;
|
| 480 |
-
}
|
| 481 |
-
|
| 482 |
-
.agent_2_properties-column {
|
| 483 |
-
width: 20%;
|
| 484 |
-
min-width: 100px;
|
| 485 |
-
}
|
| 486 |
-
|
| 487 |
-
.agent_2_properties-column input {
|
| 488 |
-
width: 87%;
|
| 489 |
-
}
|
| 490 |
-
|
| 491 |
-
.agent_2_description-column input {
|
| 492 |
-
width: 96.8%;
|
| 493 |
-
}
|
| 494 |
-
|
| 495 |
-
.agent_3_properties-column {
|
| 496 |
-
width: 24%;
|
| 497 |
-
min-width: 100px;
|
| 498 |
-
}
|
| 499 |
-
|
| 500 |
-
.agent_3_properties-column input {
|
| 501 |
-
width: 89%;
|
| 502 |
-
}
|
| 503 |
-
|
| 504 |
-
.agent_3_description-column {
|
| 505 |
-
width: 60%;
|
| 506 |
-
min-width: 100px;
|
| 507 |
-
}
|
| 508 |
-
|
| 509 |
-
.agent_3_description-column input {
|
| 510 |
-
width: 95%;
|
| 511 |
-
}
|
| 512 |
-
|
| 513 |
-
.agent_3_minimum-column,
|
| 514 |
-
.agent_3_maximum-column {
|
| 515 |
-
width: 8%;
|
| 516 |
-
min-width: 70px;
|
| 517 |
-
}
|
| 518 |
-
|
| 519 |
-
.agent_3_minimum-column input,
|
| 520 |
-
.agent_3_maximum-column input {
|
| 521 |
-
width: 75%;
|
| 522 |
-
text-align: left;
|
| 523 |
-
margin-right: 10px;
|
| 524 |
-
padding-right: 5px;
|
| 525 |
-
}
|
| 526 |
-
|
| 527 |
-
#api_key {
|
| 528 |
-
width: 97.5%;
|
| 529 |
-
}
|
| 530 |
-
|
| 531 |
-
#iteration {
|
| 532 |
-
width: 97.5%;
|
| 533 |
-
}
|
| 534 |
-
|
| 535 |
-
#model_choice {
|
| 536 |
-
width: 99.85%;
|
| 537 |
-
}
|
| 538 |
-
|
| 539 |
-
#experiment_design {
|
| 540 |
-
width: 96.3%;
|
| 541 |
-
padding: 15px;
|
| 542 |
-
margin: 10px 0;
|
| 543 |
-
min-height: 120px;
|
| 544 |
-
font-family: 'Arial', sans-serif;
|
| 545 |
-
background-color: #f9fafc;
|
| 546 |
-
background-image:
|
| 547 |
-
linear-gradient(transparent 19px, #e1eaf5 20px),
|
| 548 |
-
linear-gradient(90deg, transparent 19px, #e1eaf5 20px);
|
| 549 |
-
background-size: 20px 20px;
|
| 550 |
-
line-height: 20px;
|
| 551 |
-
border: 1px solid #e1eaf5;
|
| 552 |
-
border-radius: 8px;
|
| 553 |
-
resize: vertical;
|
| 554 |
-
}
|
| 555 |
-
|
| 556 |
-
#generate_button,
|
| 557 |
-
#add_row_button,
|
| 558 |
-
#addAgent1PropertyButton,
|
| 559 |
-
#add_agent_2_property_button,
|
| 560 |
-
#add_agent_3_property_button,
|
| 561 |
-
.add-component-btn,
|
| 562 |
-
.add-item-btn {
|
| 563 |
-
background: linear-gradient(135deg, #87CEEB, #5CADDF);
|
| 564 |
-
color: #ffffff;
|
| 565 |
-
border: none;
|
| 566 |
-
padding: 8px 16px;
|
| 567 |
-
font-size: 0.95rem;
|
| 568 |
-
border-radius: 5px;
|
| 569 |
-
cursor: pointer;
|
| 570 |
-
transition: all 0.3s ease;
|
| 571 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 572 |
-
}
|
| 573 |
-
|
| 574 |
-
.auto-generate-btn {
|
| 575 |
-
background: linear-gradient(135deg, #9775fa, #7048e8);
|
| 576 |
-
color: #ffffff;
|
| 577 |
-
border: none;
|
| 578 |
-
padding: 8px 16px;
|
| 579 |
-
font-size: 0.95rem;
|
| 580 |
-
border-radius: 5px;
|
| 581 |
-
cursor: pointer;
|
| 582 |
-
transition: all 0.3s ease;
|
| 583 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 584 |
-
margin-top: 10px;
|
| 585 |
-
position: relative;
|
| 586 |
-
overflow: hidden;
|
| 587 |
-
}
|
| 588 |
-
|
| 589 |
-
.auto-generate-btn::before {
|
| 590 |
-
content: '';
|
| 591 |
-
position: absolute;
|
| 592 |
-
top: 0;
|
| 593 |
-
left: -50%;
|
| 594 |
-
width: 30%;
|
| 595 |
-
height: 100%;
|
| 596 |
-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
| 597 |
-
transform: skewX(-25deg);
|
| 598 |
-
animation: shine 4s infinite;
|
| 599 |
-
}
|
| 600 |
-
|
| 601 |
-
.auto-generate-btn:hover {
|
| 602 |
-
background: linear-gradient(135deg, #7048e8, #5f3dc4);
|
| 603 |
-
transform: translateY(-2px);
|
| 604 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 605 |
-
}
|
| 606 |
-
|
| 607 |
-
.auto-generate-btn:active {
|
| 608 |
-
transform: translateY(0);
|
| 609 |
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
|
| 610 |
-
}
|
| 611 |
-
|
| 612 |
-
#generate_button:hover {
|
| 613 |
-
background: linear-gradient(135deg, #5CADDF, #4A90E2);
|
| 614 |
-
transform: translateY(-2px);
|
| 615 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 616 |
-
}
|
| 617 |
-
|
| 618 |
-
#generate_button:active {
|
| 619 |
-
transform: translateY(0);
|
| 620 |
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
|
| 621 |
-
}
|
| 622 |
-
|
| 623 |
-
.add-component-btn:hover,
|
| 624 |
-
.add-item-btn:hover,
|
| 625 |
-
#add_row_button:hover,
|
| 626 |
-
#addAgent1PropertyButton:hover,
|
| 627 |
-
#add_agent_2_property_button:hover,
|
| 628 |
-
#add_agent_3_property_button:hover {
|
| 629 |
-
background: linear-gradient(135deg, #5CADDF, #4A90E2);
|
| 630 |
-
transform: translateY(-2px);
|
| 631 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 632 |
-
}
|
| 633 |
-
|
| 634 |
-
.add-component-btn:active,
|
| 635 |
-
.add-item-btn:active,
|
| 636 |
-
#add_row_button:active,
|
| 637 |
-
#addAgent1PropertyButton:active,
|
| 638 |
-
#add_agent_2_property_button:active,
|
| 639 |
-
#add_agent_3_property_button:active {
|
| 640 |
-
transform: translateY(0);
|
| 641 |
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
|
| 642 |
-
}
|
| 643 |
-
|
| 644 |
-
#stop_button,
|
| 645 |
-
#delete_row_button,
|
| 646 |
-
#deleteAgent1PropertyButton,
|
| 647 |
-
#delete_agent_2_property_button,
|
| 648 |
-
#delete_agent_3_property_button,
|
| 649 |
-
.delete-component-btn,
|
| 650 |
-
.delete-item-btn,
|
| 651 |
-
.delete-btn {
|
| 652 |
-
background: linear-gradient(135deg, #FF6B6B, #FF4C4C);
|
| 653 |
-
color: #ffffff;
|
| 654 |
-
border: none;
|
| 655 |
-
padding: 8px 16px;
|
| 656 |
-
font-size: 0.95rem;
|
| 657 |
-
border-radius: 5px;
|
| 658 |
-
cursor: pointer;
|
| 659 |
-
transition: all 0.3s ease;
|
| 660 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 661 |
-
}
|
| 662 |
-
|
| 663 |
-
#stop_button:hover {
|
| 664 |
-
background: linear-gradient(135deg, #FF4C4C, #D93939);
|
| 665 |
-
transform: translateY(-2px);
|
| 666 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 667 |
-
}
|
| 668 |
-
|
| 669 |
-
#stop_button:disabled {
|
| 670 |
-
background: linear-gradient(135deg, #FF9999, #FF6666);
|
| 671 |
-
cursor: not-allowed;
|
| 672 |
-
opacity: 0.6;
|
| 673 |
-
box-shadow: none;
|
| 674 |
-
transform: none;
|
| 675 |
-
}
|
| 676 |
-
|
| 677 |
-
.delete-component-btn:hover,
|
| 678 |
-
.delete-item-btn:hover,
|
| 679 |
-
#delete_row_button:hover,
|
| 680 |
-
#deleteAgent1PropertyButton:hover,
|
| 681 |
-
#delete_agent_2_property_button:hover,
|
| 682 |
-
#delete_agent_3_property_button:hover,
|
| 683 |
-
.delete-btn:hover {
|
| 684 |
-
background: linear-gradient(135deg, #FF4C4C, #D93939);
|
| 685 |
-
transform: translateY(-2px);
|
| 686 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 687 |
-
}
|
| 688 |
-
|
| 689 |
-
.delete-component-btn:active,
|
| 690 |
-
.delete-item-btn:active,
|
| 691 |
-
#delete_row_button:active,
|
| 692 |
-
#deleteAgent1PropertyButton:active,
|
| 693 |
-
#delete_agent_2_property_button:active,
|
| 694 |
-
#delete_agent_3_property_button:active,
|
| 695 |
-
.delete-btn:active {
|
| 696 |
-
transform: translateY(0);
|
| 697 |
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
|
| 698 |
-
}
|
| 699 |
-
|
| 700 |
-
#clear_button {
|
| 701 |
-
background: linear-gradient(135deg, #d3d3d3, #b0b0b0);
|
| 702 |
-
color: #ffffff;
|
| 703 |
-
border: none;
|
| 704 |
-
padding: 10px 20px;
|
| 705 |
-
font-size: 1rem;
|
| 706 |
-
border-radius: 5px;
|
| 707 |
-
cursor: pointer;
|
| 708 |
-
transition: all 0.3s ease;
|
| 709 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 710 |
-
}
|
| 711 |
-
|
| 712 |
-
#clear_button:hover {
|
| 713 |
-
background: linear-gradient(135deg, #b0b0b0, #a0a0a0);
|
| 714 |
-
transform: translateY(-2px);
|
| 715 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 716 |
-
}
|
| 717 |
-
|
| 718 |
-
#clear_button:active {
|
| 719 |
-
transform: translateY(0);
|
| 720 |
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
|
| 721 |
-
}
|
| 722 |
-
|
| 723 |
-
.progress-container {
|
| 724 |
-
background-color: #e0e0e0;
|
| 725 |
-
border-radius: 20px;
|
| 726 |
-
overflow: hidden;
|
| 727 |
-
height: 20px;
|
| 728 |
-
margin-top: 20px;
|
| 729 |
-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
| 730 |
-
}
|
| 731 |
-
|
| 732 |
-
.progress-bar {
|
| 733 |
-
height: 100%;
|
| 734 |
-
background: linear-gradient(to right, #7fbde8, #a4d8fd);
|
| 735 |
-
transition: width 0.4s ease;
|
| 736 |
-
width: 0%;
|
| 737 |
-
position: relative;
|
| 738 |
-
}
|
| 739 |
-
|
| 740 |
-
.progress-bar .progress-percentage {
|
| 741 |
-
position: absolute;
|
| 742 |
-
top: 50%;
|
| 743 |
-
left: 50%;
|
| 744 |
-
transform: translate(-50%, -50%);
|
| 745 |
-
font-size: 0.9rem;
|
| 746 |
-
color: #ffffff;
|
| 747 |
-
font-weight: bold;
|
| 748 |
-
pointer-events: none;
|
| 749 |
-
}
|
| 750 |
-
|
| 751 |
-
@media (max-width: 768px) {
|
| 752 |
-
h1 {
|
| 753 |
-
font-size: 2rem;
|
| 754 |
-
}
|
| 755 |
-
|
| 756 |
-
.form-group {
|
| 757 |
-
margin-bottom: 15px;
|
| 758 |
-
}
|
| 759 |
-
|
| 760 |
-
button {
|
| 761 |
-
width: 100%;
|
| 762 |
-
margin-bottom: 10px;
|
| 763 |
-
}
|
| 764 |
-
|
| 765 |
-
table {
|
| 766 |
-
font-size: 0.9rem;
|
| 767 |
-
}
|
| 768 |
-
}
|
| 769 |
-
|
| 770 |
-
.logo {
|
| 771 |
-
max-width: 200px;
|
| 772 |
-
margin: 0;
|
| 773 |
-
display: block;
|
| 774 |
-
height: auto;
|
| 775 |
-
}
|
| 776 |
-
|
| 777 |
-
.header-container {
|
| 778 |
-
display: flex;
|
| 779 |
-
align-items: center;
|
| 780 |
-
justify-content: center;
|
| 781 |
-
margin: 15px auto 30px;
|
| 782 |
-
padding: 15px 20px;
|
| 783 |
-
gap: 20px;
|
| 784 |
-
background: linear-gradient(135deg, #f4f8fb, #e6f2ff);
|
| 785 |
border-radius: 10px;
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
}
|
| 798 |
-
|
| 799 |
-
.
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 804 |
}
|
| 805 |
-
|
| 806 |
-
.
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
margin-bottom:
|
| 814 |
-
}
|
| 815 |
-
|
| 816 |
-
.
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
}
|
| 820 |
-
|
| 821 |
-
.
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
padding:
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
}
|
| 829 |
-
|
| 830 |
-
.
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
}
|
| 834 |
-
|
| 835 |
-
.
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
padding:
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
}
|
| 845 |
-
|
| 846 |
-
.
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
}
|
| 850 |
-
|
| 851 |
-
.
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
font-
|
| 856 |
-
|
| 857 |
-
}
|
| 858 |
-
|
| 859 |
-
.
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
}
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
}
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
}
|
| 871 |
-
|
| 872 |
-
.scorer-icon {
|
| 873 |
-
color: #FFD700;
|
| 874 |
-
}
|
| 875 |
-
|
| 876 |
-
.log-content {
|
| 877 |
-
padding: 15px;
|
| 878 |
-
max-height: 400px;
|
| 879 |
-
overflow-y: auto;
|
| 880 |
-
font-family: 'Consolas', 'Monaco', monospace;
|
| 881 |
-
font-size: 0.9rem;
|
| 882 |
-
line-height: 1.6;
|
| 883 |
-
white-space: pre-wrap;
|
| 884 |
-
color: #333;
|
| 885 |
-
background-color: #fafafa;
|
| 886 |
-
border-radius: 0 0 8px 8px;
|
| 887 |
-
scroll-behavior: smooth;
|
| 888 |
-
}
|
| 889 |
-
|
| 890 |
-
.log-content::-webkit-scrollbar {
|
| 891 |
-
width: 8px;
|
| 892 |
-
}
|
| 893 |
-
|
| 894 |
-
.log-content::-webkit-scrollbar-track {
|
| 895 |
-
background: #f1f1f1;
|
| 896 |
-
border-radius: 4px;
|
| 897 |
-
}
|
| 898 |
-
|
| 899 |
-
.log-content::-webkit-scrollbar-thumb {
|
| 900 |
-
background: #c1c1c1;
|
| 901 |
-
border-radius: 4px;
|
| 902 |
-
}
|
| 903 |
-
|
| 904 |
-
.log-content::-webkit-scrollbar-thumb:hover {
|
| 905 |
-
background: #a8a8a8;
|
| 906 |
-
}
|
| 907 |
-
|
| 908 |
-
.log-message {
|
| 909 |
-
margin-bottom: 12px;
|
| 910 |
-
padding: 12px;
|
| 911 |
-
border-left: 4px solid #e0e0e0;
|
| 912 |
-
background-color: rgba(255, 255, 255, 0.7);
|
| 913 |
-
border-radius: 6px;
|
| 914 |
-
position: relative;
|
| 915 |
-
transition: all 0.3s ease;
|
| 916 |
-
animation: slideInFromLeft 0.4s ease-out;
|
| 917 |
-
}
|
| 918 |
-
|
| 919 |
-
@keyframes slideInFromLeft {
|
| 920 |
-
0% {
|
| 921 |
-
transform: translateX(-20px);
|
| 922 |
-
opacity: 0;
|
| 923 |
-
}
|
| 924 |
-
|
| 925 |
-
100% {
|
| 926 |
-
transform: translateX(0);
|
| 927 |
-
opacity: 1;
|
| 928 |
-
}
|
| 929 |
-
}
|
| 930 |
-
|
| 931 |
-
.log-message:hover {
|
| 932 |
-
transform: translateY(-1px);
|
| 933 |
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
| 934 |
-
}
|
| 935 |
-
|
| 936 |
-
.log-message:last-child {
|
| 937 |
-
margin-bottom: 0;
|
| 938 |
-
}
|
| 939 |
-
|
| 940 |
-
.log-message.success {
|
| 941 |
-
border-left-color: #4CAF50;
|
| 942 |
-
border-left-width: 5px;
|
| 943 |
-
background-color: rgba(76, 175, 80, 0.08);
|
| 944 |
-
box-shadow: 0 1px 3px rgba(76, 175, 80, 0.2);
|
| 945 |
-
}
|
| 946 |
-
|
| 947 |
-
.log-message.error {
|
| 948 |
-
border-left-color: #f44336;
|
| 949 |
-
border-left-width: 5px;
|
| 950 |
-
background-color: rgba(244, 67, 54, 0.08);
|
| 951 |
-
box-shadow: 0 1px 3px rgba(244, 67, 54, 0.2);
|
| 952 |
-
}
|
| 953 |
-
|
| 954 |
-
.log-message.warning {
|
| 955 |
-
border-left-color: #FF9800;
|
| 956 |
-
border-left-width: 5px;
|
| 957 |
-
background-color: rgba(255, 152, 0, 0.08);
|
| 958 |
-
box-shadow: 0 1px 3px rgba(255, 152, 0, 0.2);
|
| 959 |
-
}
|
| 960 |
-
|
| 961 |
-
.log-message.info {
|
| 962 |
-
border-left-color: #2196F3;
|
| 963 |
-
border-left-width: 5px;
|
| 964 |
-
background-color: rgba(33, 150, 243, 0.08);
|
| 965 |
-
box-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
|
| 966 |
-
}
|
| 967 |
-
|
| 968 |
-
.log-message.progress {
|
| 969 |
-
border-left-color: #9C27B0;
|
| 970 |
-
border-left-width: 5px;
|
| 971 |
-
background-color: rgba(156, 39, 176, 0.08);
|
| 972 |
-
box-shadow: 0 1px 3px rgba(156, 39, 176, 0.2);
|
| 973 |
-
}
|
| 974 |
-
|
| 975 |
-
.log-timestamp {
|
| 976 |
-
color: #888;
|
| 977 |
-
font-size: 0.8rem;
|
| 978 |
-
margin-bottom: 4px;
|
| 979 |
-
font-weight: normal;
|
| 980 |
-
font-family: 'Consolas', 'Monaco', monospace;
|
| 981 |
-
}
|
| 982 |
-
|
| 983 |
-
.log-text {
|
| 984 |
-
color: #333;
|
| 985 |
-
font-weight: 500;
|
| 986 |
-
display: flex;
|
| 987 |
-
align-items: flex-start;
|
| 988 |
-
gap: 4px;
|
| 989 |
-
}
|
| 990 |
-
|
| 991 |
-
/* Enhanced message styling */
|
| 992 |
-
.log-message.success .log-text {
|
| 993 |
-
color: #2E7D32;
|
| 994 |
-
}
|
| 995 |
-
|
| 996 |
-
.log-message.error .log-text {
|
| 997 |
-
color: #C62828;
|
| 998 |
-
}
|
| 999 |
-
|
| 1000 |
-
.log-message.warning .log-text {
|
| 1001 |
-
color: #EF6C00;
|
| 1002 |
-
}
|
| 1003 |
-
|
| 1004 |
-
.log-message.info .log-text {
|
| 1005 |
-
color: #1565C0;
|
| 1006 |
-
}
|
| 1007 |
-
|
| 1008 |
-
.log-message.progress .log-text {
|
| 1009 |
-
color: #7B1FA2;
|
| 1010 |
-
}
|
| 1011 |
-
|
| 1012 |
-
/* Special styling for JSON outputs */
|
| 1013 |
-
.log-message .message-output {
|
| 1014 |
-
font-family: 'Consolas', 'Monaco', monospace;
|
| 1015 |
-
line-height: 1.4;
|
| 1016 |
-
}
|
| 1017 |
-
|
| 1018 |
-
/* Styling for readable JSON format container */
|
| 1019 |
-
|
| 1020 |
-
/* Round message styling */
|
| 1021 |
-
.log-message .message-round {
|
| 1022 |
-
background: linear-gradient(90deg, #4A90E2, #6dd5fa);
|
| 1023 |
-
background-clip: text;
|
| 1024 |
-
-webkit-background-clip: text;
|
| 1025 |
-
color: transparent;
|
| 1026 |
-
font-weight: bold;
|
| 1027 |
-
font-size: 1.05em;
|
| 1028 |
-
}
|
| 1029 |
-
|
| 1030 |
-
/* Pulse animation for progress messages */
|
| 1031 |
-
.log-message.progress {
|
| 1032 |
-
animation: slideInFromLeft 0.4s ease-out, progressPulse 2s infinite;
|
| 1033 |
-
}
|
| 1034 |
-
|
| 1035 |
-
@keyframes progressPulse {
|
| 1036 |
-
|
| 1037 |
-
0%,
|
| 1038 |
-
100% {
|
| 1039 |
-
box-shadow: 0 1px 3px rgba(156, 39, 176, 0.2);
|
| 1040 |
-
}
|
| 1041 |
-
|
| 1042 |
-
50% {
|
| 1043 |
-
box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
|
| 1044 |
-
}
|
| 1045 |
-
}
|
| 1046 |
-
|
| 1047 |
-
.message-round {
|
| 1048 |
-
color: #4A90E2;
|
| 1049 |
-
font-weight: bold;
|
| 1050 |
-
}
|
| 1051 |
-
|
| 1052 |
-
.message-output {
|
| 1053 |
-
color: #333;
|
| 1054 |
-
}
|
| 1055 |
-
|
| 1056 |
-
.message-warning {
|
| 1057 |
-
color: #FFA500;
|
| 1058 |
-
}
|
| 1059 |
-
|
| 1060 |
-
.message-error {
|
| 1061 |
-
color: #FF4C4C;
|
| 1062 |
-
}
|
| 1063 |
-
|
| 1064 |
-
.json-key {
|
| 1065 |
-
color: #7D2E68;
|
| 1066 |
-
}
|
| 1067 |
-
|
| 1068 |
-
.json-string {
|
| 1069 |
-
color: #2E7D32;
|
| 1070 |
-
}
|
| 1071 |
-
|
| 1072 |
-
.json-number {
|
| 1073 |
-
color: #0277BD;
|
| 1074 |
-
}
|
| 1075 |
-
|
| 1076 |
-
.json-boolean {
|
| 1077 |
-
color: #F57C00;
|
| 1078 |
-
}
|
| 1079 |
-
|
| 1080 |
-
/* Horizontal JSON format styling */
|
| 1081 |
-
.json-key-horizontal {
|
| 1082 |
-
color: #7D2E68;
|
| 1083 |
-
font-weight: 600;
|
| 1084 |
-
}
|
| 1085 |
-
|
| 1086 |
-
.json-string-horizontal {
|
| 1087 |
-
color: #2E7D32;
|
| 1088 |
-
font-weight: normal;
|
| 1089 |
-
}
|
| 1090 |
-
|
| 1091 |
-
.json-number-horizontal {
|
| 1092 |
-
color: #0277BD;
|
| 1093 |
-
font-weight: 500;
|
| 1094 |
-
}
|
| 1095 |
-
|
| 1096 |
-
.json-boolean-horizontal {
|
| 1097 |
-
color: #F57C00;
|
| 1098 |
-
font-weight: 500;
|
| 1099 |
-
}
|
| 1100 |
-
|
| 1101 |
-
.json-null-horizontal {
|
| 1102 |
-
color: #888;
|
| 1103 |
-
font-style: italic;
|
| 1104 |
-
}
|
| 1105 |
-
|
| 1106 |
-
@keyframes fadeIn {
|
| 1107 |
-
from {
|
| 1108 |
-
opacity: 0;
|
| 1109 |
-
transform: translateY(10px);
|
| 1110 |
-
}
|
| 1111 |
-
|
| 1112 |
-
to {
|
| 1113 |
-
opacity: 1;
|
| 1114 |
-
transform: translateY(0);
|
| 1115 |
-
}
|
| 1116 |
-
}
|
| 1117 |
-
|
| 1118 |
-
.log-message {
|
| 1119 |
-
animation: fadeIn 0.3s ease-in-out;
|
| 1120 |
-
}
|
| 1121 |
-
|
| 1122 |
-
.pale-blue-section {
|
| 1123 |
-
background-color: #f0f7ff;
|
| 1124 |
-
padding: 25px 30px 0;
|
| 1125 |
-
margin: 0 0 30px;
|
| 1126 |
-
border-radius: 0 0 12px 12px;
|
| 1127 |
-
border: 1px solid #e1eaf5;
|
| 1128 |
-
border-top: none;
|
| 1129 |
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
|
| 1130 |
-
transition: all 0.3s ease;
|
| 1131 |
-
position: relative;
|
| 1132 |
-
}
|
| 1133 |
-
|
| 1134 |
-
.pale-blue-section> :last-child {
|
| 1135 |
-
padding-bottom: 25px;
|
| 1136 |
-
}
|
| 1137 |
-
|
| 1138 |
-
.pale-blue-section:hover {
|
| 1139 |
-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
| 1140 |
-
background-color: #f5f9ff;
|
| 1141 |
-
}
|
| 1142 |
-
|
| 1143 |
-
.progress-section {
|
| 1144 |
-
margin-top: 20px;
|
| 1145 |
-
}
|
| 1146 |
-
|
| 1147 |
-
input[type="number"] {
|
| 1148 |
-
appearance: textfield;
|
| 1149 |
-
-moz-appearance: textfield;
|
| 1150 |
-
}
|
| 1151 |
-
|
| 1152 |
-
input[type="number"]::-webkit-outer-spin-button,
|
| 1153 |
-
input[type="number"]::-webkit-inner-spin-button {
|
| 1154 |
-
-webkit-appearance: none;
|
| 1155 |
-
margin: 0;
|
| 1156 |
-
}
|
| 1157 |
-
|
| 1158 |
-
#items-container {
|
| 1159 |
-
margin-bottom: 0;
|
| 1160 |
-
}
|
| 1161 |
-
|
| 1162 |
-
.item-buttons-row {
|
| 1163 |
-
margin-bottom: 0;
|
| 1164 |
-
}
|
| 1165 |
-
|
| 1166 |
-
.pale-blue-section .form-group:last-child {
|
| 1167 |
-
margin-bottom: 0;
|
| 1168 |
-
}
|
| 1169 |
-
|
| 1170 |
-
.pale-blue-section>.form-group:last-child {
|
| 1171 |
-
margin-bottom: 0;
|
| 1172 |
-
}
|
| 1173 |
-
|
| 1174 |
-
#items-container {
|
| 1175 |
-
margin-bottom: 0;
|
| 1176 |
-
}
|
| 1177 |
-
|
| 1178 |
-
.form-group:nth-child(3) {
|
| 1179 |
-
margin-bottom: 0;
|
| 1180 |
-
}
|
| 1181 |
-
|
| 1182 |
-
.button-container-spaced {
|
| 1183 |
-
display: flex;
|
| 1184 |
-
gap: 15px;
|
| 1185 |
-
margin-top: 10px;
|
| 1186 |
-
margin-bottom: 0;
|
| 1187 |
-
padding-bottom: 0;
|
| 1188 |
-
}
|
| 1189 |
-
|
| 1190 |
-
.custom-example-group {
|
| 1191 |
-
margin-bottom: 0 !important;
|
| 1192 |
-
}
|
| 1193 |
-
|
| 1194 |
-
.custom-example-group .item-buttons-row {
|
| 1195 |
-
margin-bottom: 0;
|
| 1196 |
-
padding-bottom: 0;
|
| 1197 |
-
}
|
| 1198 |
-
|
| 1199 |
-
.example-buttons {
|
| 1200 |
-
margin-bottom: 0;
|
| 1201 |
-
padding-bottom: 0;
|
| 1202 |
-
}
|
| 1203 |
-
|
| 1204 |
-
.custom-example-group+.form-group {
|
| 1205 |
-
padding-top: 25px;
|
| 1206 |
-
margin-top: 0;
|
| 1207 |
-
}
|
| 1208 |
-
|
| 1209 |
-
.generation-status-container {
|
| 1210 |
-
text-align: center;
|
| 1211 |
-
min-height: 28px;
|
| 1212 |
-
margin-top: 10px;
|
| 1213 |
-
}
|
| 1214 |
-
|
| 1215 |
-
.generation-status {
|
| 1216 |
-
font-style: italic;
|
| 1217 |
-
color: #2980b9;
|
| 1218 |
-
font-weight: 600;
|
| 1219 |
-
font-size: 1.1rem;
|
| 1220 |
-
animation: pulse 1.5s infinite;
|
| 1221 |
-
display: none;
|
| 1222 |
-
}
|
| 1223 |
-
|
| 1224 |
-
@keyframes pulse {
|
| 1225 |
-
0% {
|
| 1226 |
-
opacity: 0.6;
|
| 1227 |
-
transform: scale(0.98);
|
| 1228 |
-
}
|
| 1229 |
-
|
| 1230 |
-
50% {
|
| 1231 |
-
opacity: 1;
|
| 1232 |
-
transform: scale(1.02);
|
| 1233 |
-
}
|
| 1234 |
-
|
| 1235 |
-
100% {
|
| 1236 |
-
opacity: 0.6;
|
| 1237 |
-
transform: scale(0.98);
|
| 1238 |
-
}
|
| 1239 |
-
}
|
| 1240 |
-
|
| 1241 |
-
.generation-status.generating {
|
| 1242 |
-
background: linear-gradient(90deg, #2980b9, #6dd5fa);
|
| 1243 |
-
background-clip: text;
|
| 1244 |
-
-webkit-background-clip: text;
|
| 1245 |
-
color: transparent;
|
| 1246 |
-
text-shadow: 0 0 5px rgba(42, 157, 244, 0.2);
|
| 1247 |
-
}
|
| 1248 |
-
|
| 1249 |
-
.generation-status.checking {
|
| 1250 |
-
background: linear-gradient(90deg, #2980b9, #3498db);
|
| 1251 |
-
background-clip: text;
|
| 1252 |
-
-webkit-background-clip: text;
|
| 1253 |
-
color: transparent;
|
| 1254 |
-
text-shadow: 0 0 5px rgba(42, 157, 244, 0.2);
|
| 1255 |
-
}
|
| 1256 |
-
|
| 1257 |
-
.page-overlay {
|
| 1258 |
-
position: fixed;
|
| 1259 |
-
top: 0;
|
| 1260 |
-
left: 0;
|
| 1261 |
-
width: 100%;
|
| 1262 |
-
height: 100%;
|
| 1263 |
-
background-color: rgba(255, 255, 255, 0.7);
|
| 1264 |
-
z-index: 1000;
|
| 1265 |
-
display: flex;
|
| 1266 |
-
flex-direction: column;
|
| 1267 |
-
justify-content: center;
|
| 1268 |
-
align-items: center;
|
| 1269 |
-
backdrop-filter: blur(2px);
|
| 1270 |
-
}
|
| 1271 |
-
|
| 1272 |
-
.loading-spinner {
|
| 1273 |
-
width: 50px;
|
| 1274 |
-
height: 50px;
|
| 1275 |
-
border: 5px solid #f3f3f3;
|
| 1276 |
-
border-top: 5px solid #7048e8;
|
| 1277 |
-
border-radius: 50%;
|
| 1278 |
-
animation: spin 1s linear infinite;
|
| 1279 |
-
margin-bottom: 15px;
|
| 1280 |
-
}
|
| 1281 |
-
|
| 1282 |
-
@keyframes spin {
|
| 1283 |
-
0% {
|
| 1284 |
-
transform: rotate(0deg);
|
| 1285 |
-
}
|
| 1286 |
-
|
| 1287 |
-
100% {
|
| 1288 |
-
transform: rotate(360deg);
|
| 1289 |
-
}
|
| 1290 |
-
}
|
| 1291 |
-
|
| 1292 |
-
.loading-text {
|
| 1293 |
-
color: #7048e8;
|
| 1294 |
-
font-size: 18px;
|
| 1295 |
-
font-weight: 600;
|
| 1296 |
-
text-align: center;
|
| 1297 |
-
animation: pulse 1.5s infinite;
|
| 1298 |
-
}
|
| 1299 |
-
|
| 1300 |
-
.disabled-table {
|
| 1301 |
-
opacity: 0.6;
|
| 1302 |
-
pointer-events: none;
|
| 1303 |
-
user-select: none;
|
| 1304 |
-
}
|
| 1305 |
-
|
| 1306 |
-
/* Restart countdown timer styles */
|
| 1307 |
-
.restart-countdown {
|
| 1308 |
-
position: fixed;
|
| 1309 |
-
top: 20px;
|
| 1310 |
-
left: 20px;
|
| 1311 |
-
z-index: 9999;
|
| 1312 |
-
background: linear-gradient(135deg, #FF6B6B, #FF4C4C);
|
| 1313 |
-
border-radius: 8px;
|
| 1314 |
-
padding: 12px 16px;
|
| 1315 |
-
box-shadow: 0 4px 15px rgba(255, 76, 76, 0.3);
|
| 1316 |
-
border: 2px solid #FF4C4C;
|
| 1317 |
-
animation: countdownPulse 2s infinite;
|
| 1318 |
-
backdrop-filter: blur(10px);
|
| 1319 |
-
}
|
| 1320 |
-
|
| 1321 |
-
.countdown-content {
|
| 1322 |
-
display: flex;
|
| 1323 |
-
align-items: center;
|
| 1324 |
-
gap: 8px;
|
| 1325 |
-
color: white;
|
| 1326 |
-
font-family: 'Arial', sans-serif;
|
| 1327 |
-
font-weight: 600;
|
| 1328 |
-
font-size: 0.9rem;
|
| 1329 |
-
}
|
| 1330 |
-
|
| 1331 |
-
.countdown-content i {
|
| 1332 |
-
font-size: 1rem;
|
| 1333 |
-
color: white;
|
| 1334 |
-
animation: clockTick 1s infinite;
|
| 1335 |
-
}
|
| 1336 |
-
|
| 1337 |
-
#countdown-time {
|
| 1338 |
-
font-family: 'Consolas', 'Monaco', monospace;
|
| 1339 |
-
font-size: 1.1rem;
|
| 1340 |
-
font-weight: bold;
|
| 1341 |
-
color: white;
|
| 1342 |
-
min-width: 50px;
|
| 1343 |
-
text-align: center;
|
| 1344 |
-
letter-spacing: 1px;
|
| 1345 |
-
}
|
| 1346 |
-
|
| 1347 |
-
.countdown-label {
|
| 1348 |
-
color: white;
|
| 1349 |
-
font-size: 0.85rem;
|
| 1350 |
-
font-weight: 500;
|
| 1351 |
-
opacity: 0.95;
|
| 1352 |
-
}
|
| 1353 |
-
|
| 1354 |
-
@keyframes countdownPulse {
|
| 1355 |
-
0%, 100% {
|
| 1356 |
-
box-shadow: 0 4px 15px rgba(255, 76, 76, 0.3);
|
| 1357 |
-
transform: scale(1);
|
| 1358 |
-
}
|
| 1359 |
-
50% {
|
| 1360 |
-
box-shadow: 0 6px 25px rgba(255, 76, 76, 0.5);
|
| 1361 |
-
transform: scale(1.02);
|
| 1362 |
-
}
|
| 1363 |
-
}
|
| 1364 |
-
|
| 1365 |
-
@keyframes clockTick {
|
| 1366 |
-
0%, 50% {
|
| 1367 |
-
transform: scale(1);
|
| 1368 |
-
}
|
| 1369 |
-
25%, 75% {
|
| 1370 |
-
transform: scale(1.1);
|
| 1371 |
-
}
|
| 1372 |
-
}
|
| 1373 |
-
|
| 1374 |
-
/* Responsive design for countdown */
|
| 1375 |
-
@media (max-width: 768px) {
|
| 1376 |
-
.restart-countdown {
|
| 1377 |
-
top: 10px;
|
| 1378 |
-
left: 10px;
|
| 1379 |
-
padding: 10px 12px;
|
| 1380 |
-
}
|
| 1381 |
-
|
| 1382 |
-
.countdown-content {
|
| 1383 |
-
font-size: 0.8rem;
|
| 1384 |
-
gap: 6px;
|
| 1385 |
-
}
|
| 1386 |
-
|
| 1387 |
-
#countdown-time {
|
| 1388 |
-
font-size: 1rem;
|
| 1389 |
-
min-width: 45px;
|
| 1390 |
-
}
|
| 1391 |
-
|
| 1392 |
-
.countdown-label {
|
| 1393 |
-
font-size: 0.75rem;
|
| 1394 |
-
}
|
| 1395 |
-
}
|
| 1396 |
-
|
| 1397 |
-
/* Restart notice text styles */
|
| 1398 |
-
.restart-notice {
|
| 1399 |
-
color: #d32f2f;
|
| 1400 |
-
font-size: 1rem;
|
| 1401 |
-
font-style: italic;
|
| 1402 |
-
font-family: 'Calibri', sans-serif;
|
| 1403 |
-
margin: 8px 0 4px;
|
| 1404 |
-
padding-left: 2px;
|
| 1405 |
-
line-height: 1.4;
|
| 1406 |
-
opacity: 0.9;
|
| 1407 |
-
}
|
| 1408 |
-
/* Reference tables are read-only; keep them separate from editable stimuli. */
|
| 1409 |
-
.custom-model-panel {
|
| 1410 |
-
margin-top: 14px;
|
| 1411 |
-
padding: 20px;
|
| 1412 |
-
background: #ffffff;
|
| 1413 |
-
border: 1px solid #dbe7ef;
|
| 1414 |
-
border-radius: 12px;
|
| 1415 |
-
box-shadow: 0 4px 16px rgba(38, 74, 103, 0.04);
|
| 1416 |
-
}
|
| 1417 |
-
|
| 1418 |
-
.custom-model-panel .form-group {
|
| 1419 |
-
margin-bottom: 16px;
|
| 1420 |
-
}
|
| 1421 |
-
|
| 1422 |
-
.model-reference,
|
| 1423 |
-
.component-tip {
|
| 1424 |
-
padding: 16px 18px;
|
| 1425 |
-
border: 1px solid #d8e9ec;
|
| 1426 |
-
border-left: 4px solid #398d98;
|
| 1427 |
-
border-radius: 10px;
|
| 1428 |
-
background: #eef7f8;
|
| 1429 |
-
color: #31545f;
|
| 1430 |
-
}
|
| 1431 |
-
|
| 1432 |
-
.api-key-group {
|
| 1433 |
-
margin-top: 24px;
|
| 1434 |
-
margin-bottom: 24px;
|
| 1435 |
-
}
|
| 1436 |
-
|
| 1437 |
-
.component-tip p {
|
| 1438 |
-
margin: 0 0 12px;
|
| 1439 |
-
}
|
| 1440 |
-
|
| 1441 |
-
.component-tip p > strong {
|
| 1442 |
-
color: #176473;
|
| 1443 |
-
}
|
| 1444 |
-
|
| 1445 |
-
.component-example-table,
|
| 1446 |
-
.model-reference-table {
|
| 1447 |
-
width: 100%;
|
| 1448 |
-
border-collapse: separate;
|
| 1449 |
-
border-spacing: 0;
|
| 1450 |
-
text-align: left;
|
| 1451 |
-
overflow: hidden;
|
| 1452 |
-
border: 1px solid #dce8ef;
|
| 1453 |
-
border-radius: 9px;
|
| 1454 |
-
box-shadow: none;
|
| 1455 |
-
}
|
| 1456 |
-
|
| 1457 |
-
.component-example-table th,
|
| 1458 |
-
.component-example-table td {
|
| 1459 |
-
padding: 10px 12px;
|
| 1460 |
-
border: 0;
|
| 1461 |
-
border-bottom: 1px solid #e2edef;
|
| 1462 |
-
background: #ffffff;
|
| 1463 |
-
color: #365461;
|
| 1464 |
-
}
|
| 1465 |
-
|
| 1466 |
-
.component-example-table thead th {
|
| 1467 |
-
background: #dceef0;
|
| 1468 |
-
color: #285e69;
|
| 1469 |
-
}
|
| 1470 |
-
|
| 1471 |
-
.component-example-table tbody th {
|
| 1472 |
-
font-weight: 600;
|
| 1473 |
-
width: 40%;
|
| 1474 |
-
background: #f6fbfb;
|
| 1475 |
-
}
|
| 1476 |
-
|
| 1477 |
-
.component-example-table tbody tr:last-child > * {
|
| 1478 |
-
border-bottom: 0;
|
| 1479 |
-
}
|
| 1480 |
-
|
| 1481 |
-
.model-reference {
|
| 1482 |
-
margin-bottom: 22px;
|
| 1483 |
-
}
|
| 1484 |
-
|
| 1485 |
-
.model-reference h3 {
|
| 1486 |
-
margin: 0 0 12px;
|
| 1487 |
-
color: #176473;
|
| 1488 |
-
font-size: 1rem;
|
| 1489 |
-
}
|
| 1490 |
-
|
| 1491 |
-
.reference-table-scroll {
|
| 1492 |
-
overflow-x: auto;
|
| 1493 |
-
}
|
| 1494 |
-
|
| 1495 |
-
.model-reference-table {
|
| 1496 |
-
font-size: 0.88rem;
|
| 1497 |
-
line-height: 1.5;
|
| 1498 |
-
}
|
| 1499 |
-
|
| 1500 |
-
.model-reference-table th,
|
| 1501 |
-
.model-reference-table td {
|
| 1502 |
-
padding: 12px;
|
| 1503 |
-
border: 0;
|
| 1504 |
-
border-bottom: 1px solid #e3ecf3;
|
| 1505 |
-
vertical-align: top;
|
| 1506 |
-
}
|
| 1507 |
-
|
| 1508 |
-
.model-reference-table thead th {
|
| 1509 |
-
background: #dceef0;
|
| 1510 |
-
color: #285e69;
|
| 1511 |
-
font-weight: 600;
|
| 1512 |
-
}
|
| 1513 |
-
|
| 1514 |
-
.model-reference-table tbody td {
|
| 1515 |
-
background: #ffffff;
|
| 1516 |
-
color: #415b70;
|
| 1517 |
-
}
|
| 1518 |
-
|
| 1519 |
-
.model-reference-table tbody tr:nth-child(even) td {
|
| 1520 |
-
background: #f6fbfb;
|
| 1521 |
-
}
|
| 1522 |
-
|
| 1523 |
-
.model-reference-table tbody tr:last-child td {
|
| 1524 |
-
border-bottom: 0;
|
| 1525 |
-
}
|
| 1526 |
-
|
| 1527 |
-
.model-reference-table td:first-child strong {
|
| 1528 |
-
display: inline-block;
|
| 1529 |
-
margin-bottom: 3px;
|
| 1530 |
-
color: #254d68;
|
| 1531 |
-
}
|
| 1532 |
-
|
| 1533 |
-
.model-reference-table code {
|
| 1534 |
-
overflow-wrap: anywhere;
|
| 1535 |
-
font-size: 0.83rem;
|
| 1536 |
-
color: #415b70;
|
| 1537 |
-
}
|
| 1538 |
-
|
| 1539 |
-
.model-reference-table td:nth-child(3) code {
|
| 1540 |
-
display: inline-block;
|
| 1541 |
-
padding: 3px 7px;
|
| 1542 |
-
background: #e3f0f2;
|
| 1543 |
-
color: #285e69;
|
| 1544 |
-
border-radius: 5px;
|
| 1545 |
-
}
|
| 1546 |
-
|
| 1547 |
-
.model-reference-table a {
|
| 1548 |
-
display: inline-block;
|
| 1549 |
-
padding: 5px 8px;
|
| 1550 |
-
background: #e1eff2;
|
| 1551 |
-
color: #176473;
|
| 1552 |
-
border-radius: 6px;
|
| 1553 |
-
text-decoration: none;
|
| 1554 |
-
font-weight: 600;
|
| 1555 |
-
}
|
| 1556 |
-
|
| 1557 |
-
.model-reference-table a:hover,
|
| 1558 |
-
.model-reference-table a:focus-visible {
|
| 1559 |
-
background: #cfe5e9;
|
| 1560 |
-
text-decoration: underline;
|
| 1561 |
-
}
|
| 1562 |
-
|
| 1563 |
-
.model-reference-note {
|
| 1564 |
-
margin: 9px 0 0;
|
| 1565 |
-
color: #60758a;
|
| 1566 |
-
font-size: 0.82rem;
|
| 1567 |
-
}
|
| 1568 |
-
|
| 1569 |
-
.model-reference-table th:first-child {
|
| 1570 |
-
width: 14%;
|
| 1571 |
-
}
|
| 1572 |
-
|
| 1573 |
-
.model-reference-table th:nth-child(2) {
|
| 1574 |
-
width: 42%;
|
| 1575 |
-
}
|
| 1576 |
-
|
| 1577 |
-
.model-reference-table th:nth-child(3) {
|
| 1578 |
-
width: 21%;
|
| 1579 |
-
}
|
| 1580 |
-
|
| 1581 |
-
.model-reference-table th:nth-child(4) {
|
| 1582 |
-
width: 23%;
|
| 1583 |
}
|
| 1584 |
|
| 1585 |
/* Generation activity: quiet surfaces, compact events, structured model output. */
|
| 1586 |
.log-container { gap: 20px; }
|
| 1587 |
-
.log-panel { border: 1px solid #
|
| 1588 |
-
.log-panel:hover { transform: none; box-shadow: 0 3px 12px rgba(38, 74,
|
| 1589 |
-
.log-panel .log-header { padding: 15px 18px; background: #fff; border-bottom: 1px solid #
|
| 1590 |
.log-header-left { gap: 10px; }
|
| 1591 |
-
.log-header h3 { color: #
|
| 1592 |
.log-header .agent-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; border-radius: 9px; font-size: 1rem; }
|
| 1593 |
-
.log-header .generator-icon { background: #
|
| 1594 |
.log-header .validator-icon { background: #e7f3ef; color: #33816c; }
|
| 1595 |
.log-header .scorer-icon { background: #f5f0e3; color: #a17b32; }
|
| 1596 |
-
.log-clear-btn { padding: 6px 10px; color: #
|
| 1597 |
-
.log-clear-btn:hover { background: #
|
| 1598 |
-
.log-panel .log-content { padding: 16px 18px; max-height: 440px; min-height: 100px; background: #
|
| 1599 |
-
.log-content:empty::before { content: 'Activity will appear here when generation starts.'; display: block; padding: 26px 0; text-align: center; color: #
|
| 1600 |
-
.log-content .log-message { margin: 0 0 10px; padding: 12px 14px; border: 1px solid #
|
| 1601 |
.log-content .log-message:hover { transform: none; box-shadow: none; }
|
| 1602 |
.log-entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
|
| 1603 |
-
.log-content .log-timestamp { margin: 0; color: #
|
| 1604 |
-
.log-entry-title { font-size: 12px; font-weight: 700; color: #
|
| 1605 |
-
.log-content .log-text { display: block; font: 13px/1.65 Arial, sans-serif; font-weight: 400; color: #
|
| 1606 |
-
.log-status { display: inline-flex; align-items: center; gap: 6px; color: #
|
| 1607 |
.log-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
| 1608 |
.log-content .success { background: #f2faf6; border-color: #d7eae1; }
|
| 1609 |
.log-content .success .log-status, .log-content .success .log-text { color: #37775f; }
|
|
@@ -1611,100 +459,100 @@ input[type="number"]::-webkit-inner-spin-button {
|
|
| 1611 |
.log-content .warning .log-status, .log-content .warning .log-text { color: #92723a; }
|
| 1612 |
.log-content .error { background: #fff6f5; border-color: #f1d9d6; }
|
| 1613 |
.log-content .error .log-status, .log-content .error .log-text { color: #a15b55; }
|
| 1614 |
-
.log-content .progress .log-status { color: #
|
| 1615 |
.log-content .log-round { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; background: transparent; border: 0; }
|
| 1616 |
-
.log-round::after { content: ''; height: 1px; background: #
|
| 1617 |
.log-round .log-timestamp { order: 2; }
|
| 1618 |
-
.log-round-label { border: 1px solid #
|
| 1619 |
.log-fields { display: grid; gap: 0; }
|
| 1620 |
-
.log-field { display: grid; grid-template-columns: minmax(120px, 24%) minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid #
|
| 1621 |
-
.log-field-label { color: #
|
| 1622 |
-
.log-field-value { color: #
|
| 1623 |
.log-validator-output .log-fields { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
|
| 1624 |
-
.log-validator-output .log-field { display: flex; align-items: center; gap: 10px; border: 1px solid #
|
| 1625 |
.log-verdict { padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
|
| 1626 |
.log-verdict.is-passed { color: #34735c; background: #e8f5ed; }
|
| 1627 |
.log-verdict.is-failed { color: #a05a51; background: #fbece8; }
|
| 1628 |
.log-scorer-output .log-fields { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding-top: 4px; }
|
| 1629 |
-
.log-scorer-output .log-field { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border: 1px solid #
|
| 1630 |
-
.log-field-value.log-score-value { color: #
|
| 1631 |
-
.log-field-value.is-missing { color: #
|
| 1632 |
@media (max-width: 600px) {
|
| 1633 |
.log-panel .log-content { padding: 12px; }
|
| 1634 |
.log-field { grid-template-columns: 1fr; gap: 3px; }
|
| 1635 |
.log-validator-output .log-field { flex-wrap: wrap; }
|
| 1636 |
.log-scorer-output .log-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 1637 |
}
|
| 1638 |
-
.log-content .info .log-text, .log-content .progress .log-text { color: #
|
| 1639 |
.log-scorer-output .log-score-value { margin-top: auto; }
|
| 1640 |
|
| 1641 |
/* Agent log timeline and shared item/event controls. */
|
| 1642 |
-
.agent-logs-section { margin: 32px 0 12px; color: #
|
| 1643 |
.agent-logs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 20px; }
|
| 1644 |
.agent-logs-heading { display: flex; align-items: center; gap: 13px; flex: 1 1 280px; }
|
| 1645 |
-
.logs-terminal { display: grid; place-items: center; width:
|
| 1646 |
#agent-logs-title { margin: 0 0 4px; padding: 0; background: none; box-shadow: none; color: #173854; font-size: 1.25rem; text-align: left; letter-spacing: -.3px; line-height: 1.2; }
|
| 1647 |
#agent-logs-title::before { display: none; }
|
| 1648 |
-
.agent-logs-heading p { margin: 0; color: #
|
| 1649 |
.agent-log-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
|
| 1650 |
-
.agent-log-controls select { width: auto; min-height: 36px; margin: 0; padding: 7px 27px 7px 10px; border: 1px solid #
|
| 1651 |
.log-item-navigation { display: flex; gap: 5px; align-items: center; }
|
| 1652 |
-
.log-item-navigation button { min-width: 26px; width: 28px; height: 30px; margin: 0; padding: 0; border: 1px solid #
|
| 1653 |
.log-item-navigation button:disabled { opacity: .35; cursor: default; }
|
| 1654 |
-
.raw-log-control { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 0 5px; color: #
|
| 1655 |
.raw-log-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
| 1656 |
-
.raw-log-switch { display: inline-block; width: 32px; height: 18px; background: #
|
| 1657 |
.raw-log-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
|
| 1658 |
-
.raw-log-control input:checked + .raw-log-switch { background: #
|
| 1659 |
.raw-log-control input:checked + .raw-log-switch::before { transform: translateX(14px); }
|
| 1660 |
-
.raw-log-control input:focus-visible + .raw-log-switch { outline: 2px solid #
|
| 1661 |
-
.log-toolbar-note { color: #
|
| 1662 |
.agent-logs-section .log-container { gap: 14px; }
|
| 1663 |
-
.agent-logs-section .log-panel { border-color: #
|
| 1664 |
-
.agent-logs-section .log-header { padding: 13px 18px; background: #
|
| 1665 |
.agent-logs-section .log-header-left { flex-wrap: wrap; gap: 10px; }
|
| 1666 |
-
.agent-logs-section .log-header h3 { color: #
|
| 1667 |
-
.agent-log-description { color: #
|
| 1668 |
.log-header-actions { display: flex; align-items: center; gap: 20px; }
|
| 1669 |
-
.agent-log-status { padding: 4px 10px; border-radius: 7px; background: #
|
| 1670 |
.agent-log-status.success { background: #e5f5ea; color: #278344; }
|
| 1671 |
.agent-log-status.success::before { content: '✓'; margin-right: 7px; }
|
| 1672 |
-
.agent-log-status.info, .agent-log-status.progress { background: #
|
| 1673 |
.agent-log-status.warning { background: #fff3db; color: #936b27; }
|
| 1674 |
.agent-log-status.error { background: #fceae8; color: #a44f47; }
|
| 1675 |
.agent-logs-section .log-content { padding: 12px 22px 20px; max-height: 480px; min-height: 70px; background: #fff; }
|
| 1676 |
.timeline-event { display: grid; grid-template-columns: 70px 20px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; padding: 0 0 13px; }
|
| 1677 |
.timeline-event:last-child { padding-bottom: 0; }
|
| 1678 |
-
.timeline-event:not(:last-child)::after { content: ''; position: absolute; left: 91px; top: 20px; bottom: -1px; border-left: 1px solid #
|
| 1679 |
-
.timeline-time { padding-top: 1px; color: #
|
| 1680 |
-
.timeline-dot { width: 17px; height: 17px; margin-top: 2px; border: 2px solid white; border-radius: 50%; background: #
|
| 1681 |
.timeline-event.info .timeline-dot, .timeline-event.progress .timeline-dot { width: 10px; height: 10px; margin: 5px 3px; }
|
| 1682 |
.timeline-event.success .timeline-dot { background: #48a45e; }
|
| 1683 |
.timeline-event.warning .timeline-dot { background: #cf9a3f; }
|
| 1684 |
.timeline-event.error .timeline-dot { background: #cb6c63; }
|
| 1685 |
-
.timeline-message { font-size: 13px; line-height: 1.65; color: #
|
| 1686 |
-
.timeline-output-title { margin: 0 0 9px; font-size: 13px; font-weight: 700; line-height: 1.65; color: #
|
| 1687 |
.timeline-fields { min-width: 0; }
|
| 1688 |
-
.timeline-generator { border: 1px solid #
|
| 1689 |
-
.timeline-generator .timeline-field { display: grid; grid-template-columns: minmax(110px, 25%) minmax(0,1fr); border-bottom: 1px solid #
|
| 1690 |
.timeline-generator .timeline-field:last-child { border-bottom: 0; }
|
| 1691 |
.timeline-field-label, .timeline-field-value { padding: 8px 12px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
|
| 1692 |
-
.timeline-generator .timeline-field-label { background: #
|
| 1693 |
-
.timeline-field-value { color: #
|
| 1694 |
.timeline-validator { display: flex; gap: 9px; flex-wrap: wrap; }
|
| 1695 |
.timeline-validator .timeline-field { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; background: #edf8f0; color: #2a7052; }
|
| 1696 |
.timeline-validator .timeline-field.not-passed { background: #fceee8; color: #a56044; }
|
| 1697 |
.timeline-validator .timeline-field-label { padding: 0; color: inherit; }
|
| 1698 |
.timeline-verdict-mark { font-size: 16px; font-weight: 700; }
|
| 1699 |
.timeline-scorer { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 10px; }
|
| 1700 |
-
.timeline-scorer .timeline-field { display: flex; flex-direction: column; border: 1px solid #
|
| 1701 |
-
.timeline-scorer .timeline-field-label { padding: 0 0 10px; color: #
|
| 1702 |
.timeline-scorer .timeline-field-value { padding: 0; margin-top: auto; }
|
| 1703 |
-
.timeline-field-value.timeline-score { font-size: 26px; font-weight: 700; color: #
|
| 1704 |
-
.timeline-score-max { font-size: 13px; font-weight: 400; color: #
|
| 1705 |
-
.timeline-field-value.is-missing { color: #
|
| 1706 |
-
.timeline-raw { margin: 0; padding: 9px 12px; background: #
|
| 1707 |
-
.timeline-empty { text-align: center; color: #
|
| 1708 |
@media(max-width:700px) {
|
| 1709 |
.agent-logs-toolbar { align-items: flex-start; }
|
| 1710 |
.agent-log-controls { width:100%; }
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
color-scheme: light;
|
| 3 |
+
--ink: #122e49;
|
| 4 |
+
--muted: #4d647c;
|
| 5 |
+
--accent: #377ed0;
|
| 6 |
+
--accent-hover: #2d6cbd;
|
| 7 |
+
--accent-soft: #edf5ff;
|
| 8 |
+
--line: #dfe7f1;
|
| 9 |
+
--field: #fbfcff;
|
| 10 |
+
--shadow: 0 2px 8px rgba(38, 74, 110, .025);
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
*, *::before, *::after { box-sizing: border-box; }
|
| 14 |
+
[hidden] { display: none !important; }
|
| 15 |
body {
|
|
|
|
|
|
|
| 16 |
margin: 0;
|
| 17 |
+
background: #f7f9fc;
|
| 18 |
+
color: var(--ink);
|
| 19 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
|
| 20 |
+
font-size: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
line-height: 1.5;
|
| 22 |
+
-webkit-font-smoothing: antialiased;
|
| 23 |
}
|
| 24 |
+
button, input, textarea, select { font: inherit; }
|
| 25 |
+
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
|
| 26 |
+
button, a, select, input, textarea { transition: border-color .15s, background-color .15s, box-shadow .15s; }
|
| 27 |
+
button, select { cursor: pointer; }
|
| 28 |
+
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
|
| 29 |
+
outline: 3px solid #c8d7e8;
|
| 30 |
+
outline-offset: 3px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
+
.container { width: calc(100% - 48px); max-width: 1120px; margin: 28px auto 48px; }
|
| 33 |
+
h1, h2, h3, p { margin-top: 0; }
|
| 34 |
+
h1, h2, h3 { line-height: 1.3; }
|
| 35 |
|
| 36 |
+
/* Keep the original blue identity with quieter surfaces and lighter borders. */
|
| 37 |
+
.header-container {
|
| 38 |
display: flex;
|
| 39 |
align-items: center;
|
| 40 |
+
gap: 18px;
|
| 41 |
+
position: relative;
|
| 42 |
+
isolation: isolate;
|
| 43 |
+
overflow: hidden;
|
| 44 |
+
padding: 16px 40px 42px;
|
| 45 |
margin-bottom: 10px;
|
| 46 |
+
min-height: 136px;
|
| 47 |
+
background: #f2f7ff;
|
| 48 |
+
border-radius: 14px;
|
| 49 |
+
}
|
| 50 |
+
.app-mark {
|
| 51 |
+
display: grid;
|
| 52 |
+
place-items: center;
|
| 53 |
+
flex: 0 0 42px;
|
| 54 |
+
height: 42px;
|
| 55 |
+
color: var(--accent);
|
| 56 |
+
}
|
| 57 |
+
.app-mark svg { width: 42px; height: 45px; }
|
| 58 |
+
.app-mark svg path:last-child { color: #58b5de; }
|
| 59 |
+
.header-waves { position: absolute; inset: 0; opacity: .8; z-index: -1; pointer-events: none; }
|
| 60 |
+
.header-wave-layer { position: absolute; left: -160px; bottom: -24px; width: calc(100% + 320px); height: 120px; will-change: transform; }
|
| 61 |
+
.header-wave-layer:first-child { transform: translate3d(-64px, 4px, 0); }
|
| 62 |
+
.header-wave-layer:last-child { transform: translate3d(64px, 4px, 0); }
|
| 63 |
+
.header-wave-layer svg { display: block; width: 100%; height: 100%; }
|
| 64 |
+
.header-copy { min-width: 0; }
|
| 65 |
+
h1 { margin: 0 0 2px; color: #24569f; font-size: 40px; font-weight: 680; letter-spacing: -.9px; }
|
| 66 |
+
.instruction-text { margin: 0; color: #2e4d6a; font-size: 15px; line-height: 1.6; }
|
| 67 |
+
.settings-section { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
|
| 68 |
+
.section-heading {
|
| 69 |
display: flex;
|
| 70 |
align-items: center;
|
| 71 |
+
gap: 14px;
|
| 72 |
+
padding: 19px 28px;
|
| 73 |
+
background: #f6f9ff;
|
| 74 |
+
border-bottom: 1px solid #dfe7f1;
|
| 75 |
+
border-radius: 13px 13px 0 0;
|
| 76 |
+
}
|
| 77 |
+
.section-icon, .field-icon { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 7px; color: #4b7db9; background: #edf3fd; }
|
| 78 |
+
.section-icon { width: 40px; height: 40px; border: 1px solid #d5e4f9; border-radius: 12px; color: #326db6; background: #edf4ff; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(38, 74, 110, .025); }
|
| 79 |
+
.section-icon svg, .logs-terminal svg { display: block; width: 23px; height: 23px; }
|
| 80 |
+
.section-heading h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.45px; }
|
| 81 |
+
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
|
| 82 |
+
.pale-blue-section { padding: 28px 32px 30px; border-radius: 0 0 16px 16px; background: #fff; }
|
| 83 |
+
.pale-blue-section > :last-child { margin-bottom: 0; }
|
| 84 |
+
|
| 85 |
+
/* Form fields */
|
| 86 |
+
.form-group { position: relative; min-width: 0; margin-bottom: 26px; }
|
| 87 |
+
.label-container { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 26px; }
|
| 88 |
+
label { display: block; font-weight: 650; color: var(--ink); }
|
| 89 |
+
.label-container label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
|
| 90 |
+
.field-icon { width: 34px; height: 34px; font-size: 16px; }
|
| 91 |
+
.icon-field { padding-left: 48px; }
|
| 92 |
+
.icon-field > .label-container > .field-icon { position: absolute; top: -4px; left: 0; }
|
| 93 |
+
.description-text { color: var(--muted); font-size: 13px; margin: 0 0 18px; line-height: 1.65; }
|
| 94 |
+
input[type='text'], input[type='password'], input[type='number'], textarea, select {
|
| 95 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
width: 100%;
|
| 97 |
+
min-width: 0;
|
| 98 |
+
min-height: 46px;
|
| 99 |
+
padding: 11px 14px;
|
| 100 |
+
border: 1px solid #dfe7f1;
|
| 101 |
+
border-radius: 10px;
|
| 102 |
+
background: var(--field);
|
| 103 |
+
box-shadow: inset 0 1px 2px rgba(38, 74, 110, .025);
|
| 104 |
+
color: var(--ink);
|
| 105 |
+
font-size: 15px;
|
| 106 |
+
line-height: 1.5;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
}
|
| 108 |
+
input::placeholder, textarea::placeholder { color: #526a82; opacity: 1; }
|
| 109 |
+
input[type='text']:hover, input[type='password']:hover, input[type='number']:hover, textarea:hover, select:hover { border-color: #c8d7e8; }
|
| 110 |
+
input[type='text']:focus, input[type='password']:focus, input[type='number']:focus, textarea:focus, select:focus {
|
| 111 |
+
border-color: #79a4df;
|
| 112 |
+
background-color: #fff;
|
| 113 |
+
box-shadow: 0 0 0 3px #f7f9fc;
|
|
|
|
| 114 |
outline: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
}
|
| 116 |
+
input:disabled, textarea:disabled, select:disabled { background-color: #f7f9fc; color: #526a82; cursor: not-allowed; }
|
| 117 |
+
input[type='checkbox'] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
|
| 118 |
+
input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
|
| 119 |
+
input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
|
| 120 |
+
textarea { resize: vertical; }
|
| 121 |
+
#experiment_design { min-height: 420px; line-height: 1.8; }
|
| 122 |
select {
|
| 123 |
appearance: none;
|
| 124 |
+
padding-right: 38px;
|
| 125 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23577598' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
| 126 |
background-repeat: no-repeat;
|
| 127 |
+
background-position: right 14px center;
|
| 128 |
+
}
|
| 129 |
+
.custom-model-panel { margin: 0; }
|
| 130 |
+
.custom-model-panel .form-group:last-child { margin-bottom: 0; }
|
| 131 |
+
.api-key-group { margin: 26px 0 0; }
|
| 132 |
+
.info-icon { display: inline-grid; place-items: center; position: relative; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #c8d7e8; border-radius: 50%; background: transparent; color: #5f7c9b; cursor: help; }
|
| 133 |
+
.info-icon:hover { color: var(--accent); border-color: var(--accent); }
|
| 134 |
+
.info-icon-inner { font: 700 13px Georgia, serif; }
|
| 135 |
+
.tooltip .tooltip-text {
|
| 136 |
+
visibility: hidden;
|
| 137 |
+
opacity: 0;
|
| 138 |
+
position: fixed;
|
| 139 |
+
top: var(--tooltip-top, 16px);
|
| 140 |
+
left: var(--tooltip-left, 16px);
|
| 141 |
+
z-index: 100;
|
| 142 |
+
width: min(440px, calc(100vw - 32px));
|
| 143 |
+
max-height: min(65vh, 520px, var(--tooltip-max-height, 520px));
|
| 144 |
+
overflow-y: auto;
|
| 145 |
+
padding: 16px;
|
| 146 |
+
border: 1px solid var(--line);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
border-radius: 10px;
|
| 148 |
+
background: #fff;
|
| 149 |
+
color: #2e4d6a;
|
| 150 |
+
box-shadow: 0 8px 28px #2345681f;
|
| 151 |
+
font-size: 13px;
|
| 152 |
+
font-weight: 400;
|
| 153 |
+
line-height: 1.65;
|
| 154 |
+
cursor: auto;
|
| 155 |
+
}
|
| 156 |
+
.tooltip:hover .tooltip-text, .tooltip:focus .tooltip-text, .tooltip:focus-within .tooltip-text { visibility: visible; opacity: 1; }
|
| 157 |
+
.tooltip.is-dismissed .tooltip-text { visibility: hidden; opacity: 0; }
|
| 158 |
+
.tooltip::after { content: ''; position: absolute; height: 14px; bottom: 100%; left: -8px; right: -8px; }
|
| 159 |
+
.tooltip[data-placement='below']::after { bottom: auto; top: 100%; }
|
| 160 |
+
.markdown-content h3 { margin: 0 0 10px; color: #2e4d6a; font-size: 15px; line-height: 1.4; }
|
| 161 |
+
.markdown-content h4 { margin: 16px 0 7px; color: #2e4d6a; font-size: 13px; }
|
| 162 |
+
.markdown-content p { margin: 0 0 10px; }
|
| 163 |
+
.markdown-content ul, .markdown-content ol { margin: 0 0 12px; padding-left: 20px; }
|
| 164 |
+
.markdown-content li { margin: 5px 0; }
|
| 165 |
+
.markdown-content strong { color: #173854; font-weight: 650; }
|
| 166 |
+
.markdown-content code { padding: 2px 4px; border-radius: 4px; background: #f7f9fc; color: #2e4d6a; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
|
| 167 |
+
.markdown-content pre { padding: 10px 12px; margin: 0 0 12px; border: 1px solid #dfe7f1; border-radius: 7px; background: #f7f9fc; white-space: pre-wrap; }
|
| 168 |
+
.markdown-content pre code { padding: 0; background: none; }
|
| 169 |
+
.tooltip-table-scroll { margin: 0 0 12px; overflow-x: auto; border-radius: 6px; }
|
| 170 |
+
.markdown-content table { table-layout: auto; min-width: 300px; border-radius: 6px; box-shadow: none; }
|
| 171 |
+
.markdown-content th, .markdown-content td { padding: 7px 9px; font-size: 11px; line-height: 1.5; overflow-wrap: normal; }
|
| 172 |
+
.markdown-content > :last-child { margin-bottom: 0; }
|
| 173 |
+
|
| 174 |
+
/* Read-only guidance and provider links */
|
| 175 |
+
.model-reference, .component-tip { padding: 18px 20px; border: 1px solid #dfe7f1; border-left: 3px solid #2e4d6a; border-radius: 11px; background: #fff; color: #2e4d6a; }
|
| 176 |
+
.model-reference { margin-bottom: 30px; }
|
| 177 |
+
.model-reference h3 { margin: 0 0 14px; color: #173854; font-size: 17px; font-weight: 700; }
|
| 178 |
+
.reference-table-scroll, .editable-table-scroll { overflow-x: auto; border-radius: 10px; }
|
| 179 |
+
table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid #dfe7f1; border-radius: 10px; overflow: hidden; background: #fff; }
|
| 180 |
+
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #dfe7f1; vertical-align: middle; overflow-wrap: anywhere; }
|
| 181 |
+
th { background: #f7f9fc; color: #2e4d6a; font-size: 12px; font-weight: 650; }
|
| 182 |
+
tbody tr:last-child > * { border-bottom: 0; }
|
| 183 |
+
td { font-size: 13px; }
|
| 184 |
+
.model-reference-table { min-width: 850px; }
|
| 185 |
+
.model-reference-table th { padding: 11px 14px; background: #dfe7f1; color: #2e4d6a; font-size: 13px; }
|
| 186 |
+
.model-reference-table td { padding: 13px 14px; color: #2e4d6a; }
|
| 187 |
+
.model-reference-table tbody tr:nth-child(even) { background: #f7f9fc; }
|
| 188 |
+
.model-reference-table th:nth-child(1) { width: 17%; }
|
| 189 |
+
.model-reference-table th:nth-child(2) { width: 19%; }
|
| 190 |
+
.model-reference-table th:nth-child(3) { width: 42%; }
|
| 191 |
+
.model-reference-table th:nth-child(4) { width: 22%; }
|
| 192 |
+
.model-reference-table strong { color: var(--ink); font-size: 14px; }
|
| 193 |
+
.model-reference-table code { font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
|
| 194 |
+
.model-reference-table td:nth-child(2) code { display: inline-block; padding: 4px 8px; border-radius: 7px; background: #e9f2fd; color: #2e6196; font-weight: 600; }
|
| 195 |
+
.model-reference-table td:nth-child(3) code { font-family: inherit; font-size: 13px; }
|
| 196 |
+
.model-reference-table a { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 10px; border: 1px solid #dfe7f1; border-radius: 9px; background: #f7f9fc; color: #2e4d6a; font-size: 12px; font-weight: 650; text-decoration: none; box-shadow: 0 2px 4px #23456808; }
|
| 197 |
+
.model-reference-table a:hover { background: #f7f9fc; border-color: #c8d7e8; }
|
| 198 |
+
.model-reference-note { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; color: #2e4d6a; font-size: 12px; line-height: 1.6; }
|
| 199 |
+
.model-reference-note::before { content: 'i'; display: inline-grid; place-items: center; flex: 0 0 16px; height: 16px; border-radius: 50%; background: #526a82; color: white; font: 700 11px Georgia, serif; }
|
| 200 |
+
.provider-name { display: flex; align-items: center; gap: 9px; }
|
| 201 |
+
.provider-logo { display: block; flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
|
| 202 |
+
|
| 203 |
+
/* Model setup follows the four numbered steps in the configuration reference. */
|
| 204 |
+
.parameter-section .section-heading { margin: 0; padding: 20px 28px 8px; border: 0; border-radius: 13px 13px 0 0; }
|
| 205 |
+
.section-introduction { padding: 8px 30px 16px 86px; margin: 0; border-bottom: 1px solid #dfe7f1; color: #2e4d6a; font-size: 14px; }
|
| 206 |
+
.parameter-section .pale-blue-section { padding: 0 30px 14px; }
|
| 207 |
+
.setup-step { padding: 22px 0 26px; border-bottom: 1px solid #dfe7f1; }
|
| 208 |
+
.setup-step:last-child { border-bottom: 0; }
|
| 209 |
+
.custom-model-panel .setup-step:last-child { border-bottom: 1px solid #dfe7f1; }
|
| 210 |
+
.step-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; position: relative; }
|
| 211 |
+
.step-number { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #dbe7f8; border-radius: 8px; background: #edf4ff; color: #3f77bc; font-size: 15px; font-weight: 600; }
|
| 212 |
+
.step-heading h3 { margin: 0; color: #173854; font-size: 19px; font-weight: 650; letter-spacing: -.2px; }
|
| 213 |
+
.step-heading h3 label { color: inherit; font: inherit; }
|
| 214 |
+
.step-heading > .info-icon { margin-left: -6px; }
|
| 215 |
+
.step-content { margin-left: 54px; min-width: 0; }
|
| 216 |
+
.model-mode-selector { display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 0 20px; }
|
| 217 |
+
.model-mode-button { min-height: 46px; min-width: 220px; padding: 10px 20px; gap: 10px; background: #f7f9fc; border-color: #dfe7f1; color: #2e4d6a; font-weight: 500; font-size: 15px; }
|
| 218 |
+
.model-mode-button i { font-size: 17px; }
|
| 219 |
+
.model-mode-button.is-active { color: var(--accent); background: var(--accent-soft); border-color: #bfd7f6; box-shadow: none; }
|
| 220 |
+
.model-mode-selector.is-react { display: inline-grid; grid-template-columns: 1fr 1fr; position: relative; gap: 4px; padding: 4px; border: 1px solid #dfe7f1; border-radius: 11px; background: #f4f7fc; }
|
| 221 |
+
.is-react .model-mode-button { position: relative; z-index: 1; min-width: 205px; min-height: 42px; padding: 9px 18px; border-color: transparent; background: transparent; border-radius: 7px; }
|
| 222 |
+
.is-react .model-mode-button:hover { color: #2d6cbd; background: transparent; }
|
| 223 |
+
.is-react .model-mode-button.is-active { color: #2c67b0; border-color: transparent; background: transparent; box-shadow: none; }
|
| 224 |
+
.model-mode-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; opacity: 0; border: 1px solid #d3e2f7; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgba(38, 74, 110, .05); pointer-events: none; }
|
| 225 |
+
html[data-ui-motion='ready'] .progress-bar { transition: none; }
|
| 226 |
+
.parameter-section .model-reference { margin-bottom: 0; padding: 14px 16px; border: 1px solid var(--line); background: #f8faff; }
|
| 227 |
+
.parameter-section .model-reference h3 { color: #274f73; font-size: 17px; margin-bottom: 12px; }
|
| 228 |
+
.parameter-section .model-reference-table th, .parameter-section .model-reference-table td { padding: 10px 12px; }
|
| 229 |
+
.parameter-section .model-reference-table th { background: #edf4fd; color: #3f6182; }
|
| 230 |
+
.parameter-section .model-reference-table strong { font-size: 14px; }
|
| 231 |
+
.parameter-section .model-reference-table a { padding: 6px 8px; font-size: 12px; gap: 6px; background: #eef5ff; color: #2865aa; border-color: transparent; box-shadow: none; }
|
| 232 |
+
.parameter-section .model-reference-note { margin-top: 10px; }
|
| 233 |
+
.model-configuration-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 22px; }
|
| 234 |
+
.model-configuration-grid .form-group, .setup-step .form-group { margin-bottom: 0; }
|
| 235 |
+
.parameter-section .label-container { margin-bottom: 8px; min-height: 20px; }
|
| 236 |
+
.parameter-section .label-container label { font-size: 14px; font-weight: 550; color: #2e4d6a; }
|
| 237 |
+
.parameter-section input, .parameter-section select { font-size: 14px; }
|
| 238 |
+
.parameters-fallback { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
|
| 239 |
+
.parameters-fallback label { color: #2e4d6a; font-size: 13px; }
|
| 240 |
+
.parameters-fallback input { margin-top: 8px; }
|
| 241 |
+
.parameter-grid-heading, .parameter-row { display: grid; grid-template-columns: minmax(0, 1.15fr) 130px minmax(0, 1fr) 34px; gap: 10px; align-items: center; }
|
| 242 |
+
.parameter-grid-heading { margin-bottom: 8px; color: #2e4d6a; font-size: 13px; font-weight: 550; }
|
| 243 |
+
.parameter-rows { display: grid; gap: 10px; }
|
| 244 |
+
.parameter-row label { min-width: 0; font-weight: 400; }
|
| 245 |
+
.parameter-row label > span { display: none; }
|
| 246 |
+
.parameter-row input, .parameter-row select { min-height: 42px; padding: 9px 12px; font-size: 13px; }
|
| 247 |
+
.parameter-row .parameter-name input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
|
| 248 |
+
.remove-parameter { width: 34px; height: 36px; padding: 0; border-color: transparent; background: transparent; color: #66809b; box-shadow: none; }
|
| 249 |
+
.remove-parameter:hover { border-color: #f0d9d5; background: #fff3f1; color: #a4554d; }
|
| 250 |
+
.parameter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
|
| 251 |
+
.add-parameter { font-size: 12px; padding: 8px 12px; }
|
| 252 |
+
.add-parameter > span { font-size: 17px; font-weight: 400; line-height: 1; }
|
| 253 |
+
.parameter-note { color: #4d647c; font-size: 12px; }
|
| 254 |
+
.parameter-error { margin: 10px 0 0; color: #a24943; font-size: 12px; }
|
| 255 |
+
.parameter-row [aria-invalid='true'] { border-color: #d6958e; }
|
| 256 |
+
.parameter-preview { margin-top: 14px; color: #4d647c; font-size: 12px; }
|
| 257 |
+
.parameter-preview summary { width: fit-content; cursor: pointer; padding: 3px 0; }
|
| 258 |
+
.parameter-preview pre { margin: 8px 0 0; padding: 12px 14px; border: 1px solid #dfe7f1; border-radius: 8px; background: #f7faff; color: #2e4d6a; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
|
| 259 |
+
input[readonly] { color: #2e4d6a; cursor: default; }
|
| 260 |
+
.password-field { position: relative; }
|
| 261 |
+
.password-field input { padding-right: 50px; }
|
| 262 |
+
.password-toggle { position: absolute; top: 4px; right: 5px; width: 38px; height: 38px; padding: 0; background: transparent; border-color: transparent; color: #526a82; font-size: 17px; box-shadow: none; }
|
| 263 |
+
.password-toggle:hover { background: #dfe7f1; border-color: transparent; }
|
| 264 |
+
.component-tip { margin: 0 0 22px; font-size: 13px; line-height: 1.65; }
|
| 265 |
+
.component-tip p { margin: 0 0 10px; }
|
| 266 |
+
.component-tip strong { color: #2e4d6a; }
|
| 267 |
+
.component-example-table { max-width: 580px; border-color: #dfe7f1; }
|
| 268 |
+
.component-example-table th, .component-example-table td { padding: 8px 12px; font-size: 12px; }
|
| 269 |
+
.component-example-table thead th { background: #dfe7f1; color: #2e4d6a; }
|
| 270 |
+
.component-example-table th:first-child { width: 32%; }
|
| 271 |
+
.component-example-table tbody th { background: #f7f9fc; }
|
| 272 |
+
|
| 273 |
+
/* Example items and editable agent tables */
|
| 274 |
+
#items-container { display: flex; flex-direction: column; gap: 18px; }
|
| 275 |
+
.item-container { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
|
| 276 |
+
.item-title { padding: 11px 16px; border-bottom: 1px solid #dfe7f1; background: #f7f9fc; color: #2e4d6a; font-size: 13px; font-weight: 650; }
|
| 277 |
+
.stimuli-table { border: 0; border-radius: 0; }
|
| 278 |
+
.stimuli-table th { background: #f7f9fc; }
|
| 279 |
+
.stimuli-table th, .stimuli-table td { padding: 12px 16px; }
|
| 280 |
+
.stimuli-table .type-column { width: 29%; }
|
| 281 |
+
.stimuli-table td + td { border-left: 1px solid #dfe7f1; }
|
| 282 |
+
table input[type='text'], table input[type='number'] { width: 100%; min-height: 40px; padding: 9px 10px; border-radius: 7px; font-size: 13px; }
|
| 283 |
+
.item-buttons-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #dfe7f1; background: #f7f9fc; }
|
| 284 |
+
.left-buttons, .right-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
|
| 285 |
+
.custom-example-group + .form-group { margin-top: 30px; padding-top: 26px; border-top: 1px solid #dfe7f1; }
|
| 286 |
+
.agent-settings-card { padding: 22px; border: 1px solid #dfe7f1; border-radius: 12px; background: #fff; }
|
| 287 |
+
.agent-settings-card > .label-container { margin-bottom: 8px; }
|
| 288 |
+
.agent-settings-card .agent-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
|
| 289 |
+
.validator-icon { color: #33816c; }
|
| 290 |
+
.scorer-icon { color: #a17b32; }
|
| 291 |
+
.validator-settings .agent-icon { background: #e7f3ef; }
|
| 292 |
+
.scorer-settings .agent-icon { background: #f5f0e3; }
|
| 293 |
+
#agent2PropertiesTable { min-width: 610px; }
|
| 294 |
+
#agent3PropertiesTable { min-width: 790px; }
|
| 295 |
+
.agent_2_properties-column { width: 24%; }
|
| 296 |
+
.agent_3_properties-column { width: 23%; }
|
| 297 |
+
.agent_3_description-column { width: 40%; }
|
| 298 |
+
.agent_3_minimum-column, .agent_3_maximum-column { width: 11%; }
|
| 299 |
+
#agent2PropertiesTable th:last-child, #agent3PropertiesTable th:last-child { width: 90px !important; }
|
| 300 |
+
.criteria-option { margin: 18px 0 0; padding: 14px; border: 1px solid #dfe7f1; border-radius: 9px; background: #f7f9fc; }
|
| 301 |
+
.criteria-option .label-container { margin: 0; }
|
| 302 |
+
.criteria-option .label-container label { gap: 9px; font-size: 13px; font-weight: 500; }
|
| 303 |
+
.criteria-option .info-icon { width: 17px; height: 17px; flex-basis: 17px; }
|
| 304 |
+
|
| 305 |
+
/* Actions use a solid primary and quiet secondary / destructive variants. */
|
| 306 |
+
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid #dfe7f1; border-radius: 8px; background: #f7f9fc; color: #2e4d6a; font-size: 13px; font-weight: 600; line-height: 1.45; }
|
| 307 |
+
button:hover { background: #f7f9fc; border-color: #c8d7e8; }
|
| 308 |
+
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
|
| 309 |
+
#generate_button, .auto-generate-btn { padding: 11px 18px; border-color: var(--accent); background: var(--accent); color: white; box-shadow: none; }
|
| 310 |
+
#generate_button:hover, .auto-generate-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
|
| 311 |
+
.delete-component-btn, .delete-item-btn, .delete-btn, #stop_button { color: #aa625e; border-color: #efd9d6; background: #fff8f7; }
|
| 312 |
+
.delete-component-btn:hover, .delete-item-btn:hover, .delete-btn:hover, #stop_button:hover:not(:disabled) { color: #984c46; border-color: #dfb6b0; background: #fcece9; }
|
| 313 |
+
#stop_button:disabled { color: #526a82; border-color: #dfe7f1; background: #f7f9fc; opacity: .7; }
|
| 314 |
+
#clear_button { color: #2e4d6a; border-color: #dfe7f1; background: #fff; }
|
| 315 |
+
#clear_button:hover { background: #f7f9fc; }
|
| 316 |
+
.delete-row-btn { padding: 7px 10px; font-size: 12px; }
|
| 317 |
+
.add-component-btn::before, .add-item-btn::before, #add_agent_2_property_button::before, #add_agent_3_property_button::before { content: '+'; font-size: 16px; line-height: 1; font-weight: 400; }
|
| 318 |
+
.button-container-spaced { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
|
| 319 |
+
.button-container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
|
| 320 |
+
.output-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
|
| 321 |
+
.output-controls .form-group { flex: 0 1 260px; margin-bottom: 0; }
|
| 322 |
+
.output-controls .button-container { padding-bottom: 1px; }
|
| 323 |
+
.generation-status-container { margin-top: 18px; }
|
| 324 |
+
.generation-status-container:has(.generation-status:empty) { display: none; }
|
| 325 |
+
.generation-status { display: none; color: #2e4d6a; font-size: 13px; font-weight: 600; }
|
| 326 |
+
.progress-section { padding-top: 24px; margin-top: 24px; border-top: 1px solid #dfe7f1; }
|
| 327 |
+
.progress-section .label-container { justify-content: space-between; margin-bottom: 12px; }
|
| 328 |
+
.progress-section label { color: #2e4d6a; font-size: 13px; font-weight: 500; }
|
| 329 |
+
.progress-percentage { color: #526a82; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
| 330 |
+
.progress-container { height: 10px; border-radius: 8px; background: #f7f9fc; overflow: hidden; }
|
| 331 |
+
.progress-bar { width: 0%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
|
| 332 |
+
.restart-notice { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; color: #526a82; font-size: 12px; line-height: 1.65; }
|
| 333 |
+
|
| 334 |
+
/* Loading and server restart states */
|
| 335 |
+
.page-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; background: #ffffffbf; backdrop-filter: blur(3px); }
|
| 336 |
+
.loading-spinner { width: 44px; height: 44px; margin-bottom: 16px; border: 4px solid #dfe7f1; border-top-color: #526a82; border-radius: 50%; animation: spin 1s linear infinite; }
|
| 337 |
+
.loading-text { color: #2e4d6a; font-size: 16px; font-weight: 600; text-align: center; }
|
| 338 |
+
.disabled-table { opacity: .6; pointer-events: none; user-select: none; }
|
| 339 |
+
.restart-countdown { position: fixed; top: 16px; left: 16px; z-index: 9999; padding: 10px 14px; border: 1px solid #efd0b1; border-radius: 10px; background: #fff8ec; color: #9b6730; box-shadow: 0 4px 18px #805b2920; }
|
| 340 |
+
.countdown-content { display: flex; align-items: center; gap: 8px; font-size: 12px; }
|
| 341 |
+
#countdown-time { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; }
|
| 342 |
+
@keyframes spin { to { transform: rotate(360deg); } }
|
| 343 |
+
|
| 344 |
+
/* Base layout for the existing Agent Logs components. */
|
| 345 |
+
.log-container { display: flex; flex-direction: column; margin-top: 20px; }
|
| 346 |
+
.log-panel { overflow: hidden; background: #fff; }
|
| 347 |
+
.log-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe7f1; }
|
| 348 |
+
.log-header-left { display: flex; align-items: center; }
|
| 349 |
+
.log-header h3 { margin: 0; font-weight: 600; }
|
| 350 |
+
.log-clear-btn { border: 0; background: none; font-weight: 400; cursor: pointer; box-shadow: none; }
|
| 351 |
+
.log-content { overflow-y: auto; line-height: 1.6; }
|
| 352 |
+
.log-content::-webkit-scrollbar { width: 8px; }
|
| 353 |
+
.log-content::-webkit-scrollbar-track { background: #f7f9fc; }
|
| 354 |
+
.log-content::-webkit-scrollbar-thumb { background: #c8d7e8; border: 2px solid #f7f9fc; border-radius: 8px; }
|
| 355 |
+
|
| 356 |
+
@media (max-width: 900px) {
|
| 357 |
+
.container { width: calc(100% - 32px); }
|
| 358 |
+
.header-container { padding: 16px 24px 36px; }
|
| 359 |
+
.pale-blue-section { padding: 24px; }
|
| 360 |
+
.section-heading { padding: 18px 24px; }
|
| 361 |
+
.output-controls { flex-wrap: wrap; gap: 18px; }
|
| 362 |
+
.output-controls .form-group { flex-basis: 100%; }
|
| 363 |
+
#iteration { max-width: 300px; }
|
| 364 |
}
|
| 365 |
+
@media (max-width: 600px) {
|
| 366 |
+
.container { width: calc(100% - 24px); margin-top: 12px; margin-bottom: 28px; }
|
| 367 |
+
.header-container { gap: 12px; padding: 16px 12px 30px; margin-bottom: 10px; min-height: 124px; align-items: flex-start; }
|
| 368 |
+
.app-mark { flex-basis: 30px; height: 38px; }
|
| 369 |
+
.app-mark svg { width: 30px; height: 34px; }
|
| 370 |
+
.header-wave-layer { height: 95px; bottom: -20px; }
|
| 371 |
+
h1 { font-size: 26px; letter-spacing: -.6px; }
|
| 372 |
+
.instruction-text { font-size: 12px; }
|
| 373 |
+
.settings-section { margin-bottom: 20px; border-radius: 13px; }
|
| 374 |
+
.section-heading { padding: 16px; gap: 10px; border-radius: 13px 13px 0 0; }
|
| 375 |
+
.section-icon { width: 34px; height: 34px; font-size: 17px; }
|
| 376 |
+
.section-heading h2 { font-size: 18px; }
|
| 377 |
+
.section-heading p { font-size: 12px; }
|
| 378 |
+
.pale-blue-section { padding: 22px 16px; border-radius: 0 0 13px 13px; }
|
| 379 |
+
.label-container label { font-size: 14px; }
|
| 380 |
+
.icon-field { padding-left: 0; }
|
| 381 |
+
.icon-field > .label-container > .field-icon { position: static; }
|
| 382 |
+
.field-icon { width: 29px; height: 29px; font-size: 14px; }
|
| 383 |
+
.form-group { margin-bottom: 22px; }
|
| 384 |
+
.api-key-group { margin-bottom: 0; }
|
| 385 |
+
.model-reference, .component-tip { padding: 14px 12px; }
|
| 386 |
+
.model-reference h3 { font-size: 15px; }
|
| 387 |
+
.model-reference-note { font-size: 11px; }
|
| 388 |
+
.model-reference-table { min-width: 850px; }
|
| 389 |
+
.parameter-section .section-heading { margin: 7px 7px 0; padding: 9px 10px; }
|
| 390 |
+
.section-introduction { padding: 10px 17px 16px; font-size: 12px; }
|
| 391 |
+
.parameter-section .pale-blue-section { padding: 0 16px 6px; }
|
| 392 |
+
.setup-step { padding: 18px 0 22px; }
|
| 393 |
+
.step-heading { gap: 10px; margin-bottom: 14px; }
|
| 394 |
+
.step-number { flex-basis: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
|
| 395 |
+
.step-heading h3 { font-size: 16px; }
|
| 396 |
+
.step-content { margin-left: 0; }
|
| 397 |
+
.model-mode-selector { gap: 8px; }
|
| 398 |
+
.model-mode-button { min-width: 0; flex: 1; padding: 9px 8px; font-size: 12px; gap: 7px; }
|
| 399 |
+
.model-mode-selector.is-react { display: grid; width: 100%; }
|
| 400 |
+
.is-react .model-mode-button { min-width: 0; padding: 9px 7px; font-size: 12px; gap: 7px; }
|
| 401 |
+
.model-mode-button i { font-size: 14px; }
|
| 402 |
+
.parameter-section .model-reference { padding: 12px 10px; }
|
| 403 |
+
.parameter-section .model-reference h3 { font-size: 14px; }
|
| 404 |
+
.model-configuration-grid { grid-template-columns: 1fr; gap: 18px; }
|
| 405 |
+
.parameter-grid-heading { display: none; }
|
| 406 |
+
.parameter-row { position: relative; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid #dfe7f1; border-radius: 9px; }
|
| 407 |
+
.parameter-row label > span { display: block; margin-bottom: 5px; color: #2e4d6a; font-size: 12px; font-weight: 500; }
|
| 408 |
+
.parameter-name { grid-column: 1 / -1; padding-right: 32px; }
|
| 409 |
+
.parameter-row .remove-parameter { position: absolute; top: 29px; right: 8px; }
|
| 410 |
+
.parameter-note { font-size: 11px; }
|
| 411 |
+
.agent-settings-card { padding: 15px 12px; }
|
| 412 |
+
.agent-settings-card > .description-text { font-size: 12px; }
|
| 413 |
+
.stimuli-table th, .stimuli-table td { padding: 10px 8px; }
|
| 414 |
+
.stimuli-table .type-column { width: 38%; }
|
| 415 |
+
table input[type='text'], table input[type='number'] { font-size: 12px; padding: 9px 8px; }
|
| 416 |
+
.item-buttons-row { padding: 12px 10px; }
|
| 417 |
+
.item-buttons-row button { padding: 8px 10px; font-size: 12px; }
|
| 418 |
+
.criteria-option { padding: 12px 10px; }
|
| 419 |
+
.criteria-option .label-container label { font-size: 12px; }
|
| 420 |
+
.output-controls { gap: 16px; }
|
| 421 |
+
.output-controls .button-container { width: 100%; gap: 8px; }
|
| 422 |
+
#generate_button { flex: 1 1 100%; }
|
| 423 |
+
#stop_button, #clear_button { flex: 1; }
|
| 424 |
+
#iteration { max-width: none; }
|
| 425 |
+
.tooltip .tooltip-text { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; max-height: 55vh; }
|
| 426 |
+
.agent-log-controls select { max-width: 100%; }
|
| 427 |
+
}
|
| 428 |
+
@media (prefers-reduced-motion: reduce) {
|
| 429 |
+
.header-wave-layer { will-change: auto; }
|
| 430 |
+
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 431 |
}
|
| 432 |
|
| 433 |
/* Generation activity: quiet surfaces, compact events, structured model output. */
|
| 434 |
.log-container { gap: 20px; }
|
| 435 |
+
.log-panel { border: 1px solid #dfe7f1; border-radius: 12px; box-shadow: 0 3px 12px rgba(38, 74, 110, .035); }
|
| 436 |
+
.log-panel:hover { transform: none; box-shadow: 0 3px 12px rgba(38, 74, 110, .035); }
|
| 437 |
+
.log-panel .log-header { padding: 15px 18px; background: #fff; border-bottom: 1px solid #dfe7f1; }
|
| 438 |
.log-header-left { gap: 10px; }
|
| 439 |
+
.log-header h3 { color: #173854; font-size: 1rem; letter-spacing: 0; }
|
| 440 |
.log-header .agent-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; border-radius: 9px; font-size: 1rem; }
|
| 441 |
+
.log-header .generator-icon { background: #f7f9fc; color: #2e4d6a; }
|
| 442 |
.log-header .validator-icon { background: #e7f3ef; color: #33816c; }
|
| 443 |
.log-header .scorer-icon { background: #f5f0e3; color: #a17b32; }
|
| 444 |
+
.log-clear-btn { padding: 6px 10px; color: #526a82; font-size: .78rem; }
|
| 445 |
+
.log-clear-btn:hover { background: #f7f9fc; color: #2e4d6a; }
|
| 446 |
+
.log-panel .log-content { padding: 16px 18px; max-height: 440px; min-height: 100px; background: #f7f9fc; white-space: normal; font-family: Arial, sans-serif; color: #173854; scroll-behavior: auto; scrollbar-gutter: stable; }
|
| 447 |
+
.log-content:empty::before { content: 'Activity will appear here when generation starts.'; display: block; padding: 26px 0; text-align: center; color: #526a82; font-size: .85rem; }
|
| 448 |
+
.log-content .log-message { margin: 0 0 10px; padding: 12px 14px; border: 1px solid #dfe7f1; border-left-width: 1px; border-radius: 9px; background: #fff; box-shadow: none; animation: none; transition: none; }
|
| 449 |
.log-content .log-message:hover { transform: none; box-shadow: none; }
|
| 450 |
.log-entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
|
| 451 |
+
.log-content .log-timestamp { margin: 0; color: #526a82; font: 11px Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
| 452 |
+
.log-entry-title { font-size: 12px; font-weight: 700; color: #2e4d6a; }
|
| 453 |
+
.log-content .log-text { display: block; font: 13px/1.65 Arial, sans-serif; font-weight: 400; color: #2e4d6a; white-space: pre-wrap; overflow-wrap: anywhere; }
|
| 454 |
+
.log-status { display: inline-flex; align-items: center; gap: 6px; color: #526a82; font-size: 11px; font-weight: 600; }
|
| 455 |
.log-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
| 456 |
.log-content .success { background: #f2faf6; border-color: #d7eae1; }
|
| 457 |
.log-content .success .log-status, .log-content .success .log-text { color: #37775f; }
|
|
|
|
| 459 |
.log-content .warning .log-status, .log-content .warning .log-text { color: #92723a; }
|
| 460 |
.log-content .error { background: #fff6f5; border-color: #f1d9d6; }
|
| 461 |
.log-content .error .log-status, .log-content .error .log-text { color: #a15b55; }
|
| 462 |
+
.log-content .progress .log-status { color: #526a82; }
|
| 463 |
.log-content .log-round { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; background: transparent; border: 0; }
|
| 464 |
+
.log-round::after { content: ''; height: 1px; background: #dfe7f1; flex: 1; order: 1; }
|
| 465 |
.log-round .log-timestamp { order: 2; }
|
| 466 |
+
.log-round-label { border: 1px solid #dfe7f1; border-radius: 5px; background: #f7f9fc; padding: 3px 8px; color: #2e4d6a; font-size: 11px; font-weight: 700; }
|
| 467 |
.log-fields { display: grid; gap: 0; }
|
| 468 |
+
.log-field { display: grid; grid-template-columns: minmax(120px, 24%) minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid #f7f9fc; align-items: start; }
|
| 469 |
+
.log-field-label { color: #526a82; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
|
| 470 |
+
.log-field-value { color: #173854; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
|
| 471 |
.log-validator-output .log-fields { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
|
| 472 |
+
.log-validator-output .log-field { display: flex; align-items: center; gap: 10px; border: 1px solid #dfe7f1; border-radius: 7px; background: #f7f9fc; padding: 7px 10px; }
|
| 473 |
.log-verdict { padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
|
| 474 |
.log-verdict.is-passed { color: #34735c; background: #e8f5ed; }
|
| 475 |
.log-verdict.is-failed { color: #a05a51; background: #fbece8; }
|
| 476 |
.log-scorer-output .log-fields { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding-top: 4px; }
|
| 477 |
+
.log-scorer-output .log-field { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border: 1px solid #dfe7f1; border-radius: 7px; background: #f7f9fc; }
|
| 478 |
+
.log-field-value.log-score-value { color: #2e4d6a; font-size: 23px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
|
| 479 |
+
.log-field-value.is-missing { color: #526a82; font-style: italic; }
|
| 480 |
@media (max-width: 600px) {
|
| 481 |
.log-panel .log-content { padding: 12px; }
|
| 482 |
.log-field { grid-template-columns: 1fr; gap: 3px; }
|
| 483 |
.log-validator-output .log-field { flex-wrap: wrap; }
|
| 484 |
.log-scorer-output .log-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 485 |
}
|
| 486 |
+
.log-content .info .log-text, .log-content .progress .log-text { color: #2e4d6a; }
|
| 487 |
.log-scorer-output .log-score-value { margin-top: auto; }
|
| 488 |
|
| 489 |
/* Agent log timeline and shared item/event controls. */
|
| 490 |
+
.agent-logs-section { margin: 32px 0 12px; color: #173854; }
|
| 491 |
.agent-logs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 20px; }
|
| 492 |
.agent-logs-heading { display: flex; align-items: center; gap: 13px; flex: 1 1 280px; }
|
| 493 |
+
.logs-terminal { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #d5e4f9; border-radius: 12px; color: #326db6; background: #edf4ff; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(38, 74, 110, .025); }
|
| 494 |
#agent-logs-title { margin: 0 0 4px; padding: 0; background: none; box-shadow: none; color: #173854; font-size: 1.25rem; text-align: left; letter-spacing: -.3px; line-height: 1.2; }
|
| 495 |
#agent-logs-title::before { display: none; }
|
| 496 |
+
.agent-logs-heading p { margin: 0; color: #2e4d6a; font-size: 12px; line-height: 1.5; }
|
| 497 |
.agent-log-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
|
| 498 |
+
.agent-log-controls select { width: auto; min-height: 36px; margin: 0; padding: 7px 27px 7px 10px; border: 1px solid #dfe7f1; border-radius: 8px; background-color: #fff; color: #173854; font-size: 12px; }
|
| 499 |
.log-item-navigation { display: flex; gap: 5px; align-items: center; }
|
| 500 |
+
.log-item-navigation button { min-width: 26px; width: 28px; height: 30px; margin: 0; padding: 0; border: 1px solid #dfe7f1; background: #fff; border-radius: 7px; color: #2e4d6a; font-size: 23px; line-height: 1; box-shadow: none; }
|
| 501 |
.log-item-navigation button:disabled { opacity: .35; cursor: default; }
|
| 502 |
+
.raw-log-control { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 0 5px; color: #2e4d6a; font-size: 12px; font-weight: 400; cursor: pointer; position: relative; }
|
| 503 |
.raw-log-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
| 504 |
+
.raw-log-switch { display: inline-block; width: 32px; height: 18px; background: #c8d7e8; border-radius: 12px; position: relative; }
|
| 505 |
.raw-log-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
|
| 506 |
+
.raw-log-control input:checked + .raw-log-switch { background: #526a82; }
|
| 507 |
.raw-log-control input:checked + .raw-log-switch::before { transform: translateX(14px); }
|
| 508 |
+
.raw-log-control input:focus-visible + .raw-log-switch { outline: 2px solid #526a82; outline-offset: 3px; }
|
| 509 |
+
.log-toolbar-note { color: #526a82; font-size: 15px; }
|
| 510 |
.agent-logs-section .log-container { gap: 14px; }
|
| 511 |
+
.agent-logs-section .log-panel { border-color: #dfe7f1; box-shadow: 0 3px 12px rgba(38, 74, 110, .065); border-radius: 12px; background: #fff; }
|
| 512 |
+
.agent-logs-section .log-header { padding: 13px 18px; background: #f7f9fc; border-color: #dfe7f1; flex-wrap: wrap; gap: 10px; }
|
| 513 |
.agent-logs-section .log-header-left { flex-wrap: wrap; gap: 10px; }
|
| 514 |
+
.agent-logs-section .log-header h3 { color: #173854; font-size: 1.05rem; }
|
| 515 |
+
.agent-log-description { color: #2e4d6a; font-size: 12px; margin-left: 6px; }
|
| 516 |
.log-header-actions { display: flex; align-items: center; gap: 20px; }
|
| 517 |
+
.agent-log-status { padding: 4px 10px; border-radius: 7px; background: #dfe7f1; color: #526a82; font-size: 12px; font-weight: 600; }
|
| 518 |
.agent-log-status.success { background: #e5f5ea; color: #278344; }
|
| 519 |
.agent-log-status.success::before { content: '✓'; margin-right: 7px; }
|
| 520 |
+
.agent-log-status.info, .agent-log-status.progress { background: #f7f9fc; color: #2e4d6a; }
|
| 521 |
.agent-log-status.warning { background: #fff3db; color: #936b27; }
|
| 522 |
.agent-log-status.error { background: #fceae8; color: #a44f47; }
|
| 523 |
.agent-logs-section .log-content { padding: 12px 22px 20px; max-height: 480px; min-height: 70px; background: #fff; }
|
| 524 |
.timeline-event { display: grid; grid-template-columns: 70px 20px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; padding: 0 0 13px; }
|
| 525 |
.timeline-event:last-child { padding-bottom: 0; }
|
| 526 |
+
.timeline-event:not(:last-child)::after { content: ''; position: absolute; left: 91px; top: 20px; bottom: -1px; border-left: 1px solid #dfe7f1; }
|
| 527 |
+
.timeline-time { padding-top: 1px; color: #526a82; font-size: 12px; line-height: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
| 528 |
+
.timeline-dot { width: 17px; height: 17px; margin-top: 2px; border: 2px solid white; border-radius: 50%; background: #526a82; color: white; display: grid; place-items: center; box-sizing: content-box; font-size: 12px; line-height: 17px; z-index: 1; }
|
| 529 |
.timeline-event.info .timeline-dot, .timeline-event.progress .timeline-dot { width: 10px; height: 10px; margin: 5px 3px; }
|
| 530 |
.timeline-event.success .timeline-dot { background: #48a45e; }
|
| 531 |
.timeline-event.warning .timeline-dot { background: #cf9a3f; }
|
| 532 |
.timeline-event.error .timeline-dot { background: #cb6c63; }
|
| 533 |
+
.timeline-message { font-size: 13px; line-height: 1.65; color: #2e4d6a; white-space: pre-wrap; overflow-wrap: anywhere; }
|
| 534 |
+
.timeline-output-title { margin: 0 0 9px; font-size: 13px; font-weight: 700; line-height: 1.65; color: #173854; }
|
| 535 |
.timeline-fields { min-width: 0; }
|
| 536 |
+
.timeline-generator { border: 1px solid #dfe7f1; border-radius: 9px; overflow: hidden; }
|
| 537 |
+
.timeline-generator .timeline-field { display: grid; grid-template-columns: minmax(110px, 25%) minmax(0,1fr); border-bottom: 1px solid #dfe7f1; }
|
| 538 |
.timeline-generator .timeline-field:last-child { border-bottom: 0; }
|
| 539 |
.timeline-field-label, .timeline-field-value { padding: 8px 12px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
|
| 540 |
+
.timeline-generator .timeline-field-label { background: #f7f9fc; color: #2e4d6a; border-right: 1px solid #dfe7f1; }
|
| 541 |
+
.timeline-field-value { color: #173854; }
|
| 542 |
.timeline-validator { display: flex; gap: 9px; flex-wrap: wrap; }
|
| 543 |
.timeline-validator .timeline-field { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; background: #edf8f0; color: #2a7052; }
|
| 544 |
.timeline-validator .timeline-field.not-passed { background: #fceee8; color: #a56044; }
|
| 545 |
.timeline-validator .timeline-field-label { padding: 0; color: inherit; }
|
| 546 |
.timeline-verdict-mark { font-size: 16px; font-weight: 700; }
|
| 547 |
.timeline-scorer { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 10px; }
|
| 548 |
+
.timeline-scorer .timeline-field { display: flex; flex-direction: column; border: 1px solid #dfe7f1; background: #f7f9fc; border-radius: 8px; padding: 11px 12px; }
|
| 549 |
+
.timeline-scorer .timeline-field-label { padding: 0 0 10px; color: #2e4d6a; }
|
| 550 |
.timeline-scorer .timeline-field-value { padding: 0; margin-top: auto; }
|
| 551 |
+
.timeline-field-value.timeline-score { font-size: 26px; font-weight: 700; color: #173854; line-height: 1.25; }
|
| 552 |
+
.timeline-score-max { font-size: 13px; font-weight: 400; color: #526a82; }
|
| 553 |
+
.timeline-field-value.is-missing { color: #526a82; font-style: italic; }
|
| 554 |
+
.timeline-raw { margin: 0; padding: 9px 12px; background: #f7f9fc; border: 1px solid #dfe7f1; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 monospace; color: #2e4d6a; }
|
| 555 |
+
.timeline-empty { text-align: center; color: #526a82; font-size: 12px; padding: 24px 8px; }
|
| 556 |
@media(max-width:700px) {
|
| 557 |
.agent-logs-toolbar { align-items: flex-start; }
|
| 558 |
.agent-log-controls { width:100%; }
|
static/ui-react.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/ui-react.js.LEGAL.txt
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bundled license information:
|
| 2 |
+
|
| 3 |
+
react/cjs/react.production.js:
|
| 4 |
+
/**
|
| 5 |
+
* @license React
|
| 6 |
+
* react.production.js
|
| 7 |
+
*
|
| 8 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 9 |
+
*
|
| 10 |
+
* This source code is licensed under the MIT license found in the
|
| 11 |
+
* LICENSE file in the root directory of this source tree.
|
| 12 |
+
*/
|
| 13 |
+
|
| 14 |
+
scheduler/cjs/scheduler.production.js:
|
| 15 |
+
/**
|
| 16 |
+
* @license React
|
| 17 |
+
* scheduler.production.js
|
| 18 |
+
*
|
| 19 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 20 |
+
*
|
| 21 |
+
* This source code is licensed under the MIT license found in the
|
| 22 |
+
* LICENSE file in the root directory of this source tree.
|
| 23 |
+
*/
|
| 24 |
+
|
| 25 |
+
react-dom/cjs/react-dom.production.js:
|
| 26 |
+
/**
|
| 27 |
+
* @license React
|
| 28 |
+
* react-dom.production.js
|
| 29 |
+
*
|
| 30 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 31 |
+
*
|
| 32 |
+
* This source code is licensed under the MIT license found in the
|
| 33 |
+
* LICENSE file in the root directory of this source tree.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
react-dom/cjs/react-dom-client.production.js:
|
| 37 |
+
/**
|
| 38 |
+
* @license React
|
| 39 |
+
* react-dom-client.production.js
|
| 40 |
+
*
|
| 41 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 42 |
+
*
|
| 43 |
+
* This source code is licensed under the MIT license found in the
|
| 44 |
+
* LICENSE file in the root directory of this source tree.
|
| 45 |
+
*/
|
| 46 |
+
|
| 47 |
+
react/cjs/react-jsx-runtime.production.js:
|
| 48 |
+
/**
|
| 49 |
+
* @license React
|
| 50 |
+
* react-jsx-runtime.production.js
|
| 51 |
+
*
|
| 52 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 53 |
+
*
|
| 54 |
+
* This source code is licensed under the MIT license found in the
|
| 55 |
+
* LICENSE file in the root directory of this source tree.
|
| 56 |
+
*/
|
tests/test_parameters.cjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const assert = require('node:assert/strict');
|
| 2 |
+
|
| 3 |
+
(async () => {
|
| 4 |
+
const { serializeParameters } = await import('../frontend/parameters.mjs');
|
| 5 |
+
const rows = [
|
| 6 |
+
{ name: 'max_tokens', type: 'number', value: '2000' },
|
| 7 |
+
{ name: 'temperature', type: 'number', value: '0' },
|
| 8 |
+
{ name: 'stream', type: 'boolean', value: 'false' },
|
| 9 |
+
{ name: 'label', type: 'string', value: '' },
|
| 10 |
+
{ name: 'stop', type: 'json', value: '["END", "STOP"]' },
|
| 11 |
+
{ name: 'response_format', type: 'json', value: '{"type":"json_object"}' },
|
| 12 |
+
{ name: 'nullable', type: 'json', value: 'null' }
|
| 13 |
+
];
|
| 14 |
+
const result = serializeParameters(rows);
|
| 15 |
+
assert.equal(result.error, '');
|
| 16 |
+
assert.deepEqual(JSON.parse(result.json), {
|
| 17 |
+
max_tokens: 2000, temperature: 0, stream: false, label: '',
|
| 18 |
+
stop: ['END', 'STOP'], response_format: { type: 'json_object' }, nullable: null
|
| 19 |
+
});
|
| 20 |
+
assert.equal(serializeParameters([]).json, '{}');
|
| 21 |
+
assert.equal(serializeParameters([{ name: '', type: 'number', value: '' }]).json, '{}');
|
| 22 |
+
assert.equal(serializeParameters([{ name: ' seed ', type: 'number', value: '0' }]).json, '{"seed":0}');
|
| 23 |
+
for (const row of [
|
| 24 |
+
{ name: 'temperature', type: 'number', value: '' },
|
| 25 |
+
{ name: 'temperature', type: 'number', value: 'Infinity' },
|
| 26 |
+
{ name: 'temperature', type: 'number', value: 'NaN' },
|
| 27 |
+
{ name: '', type: 'string', value: 'missing name' },
|
| 28 |
+
{ name: 'stop', type: 'json', value: '[broken' },
|
| 29 |
+
{ name: 'stream', type: 'boolean', value: 'not-a-boolean' }
|
| 30 |
+
]) {
|
| 31 |
+
const invalid = serializeParameters([row]);
|
| 32 |
+
assert(invalid.error);
|
| 33 |
+
assert.equal(invalid.json, '');
|
| 34 |
+
assert.equal(invalid.invalidRow, 0);
|
| 35 |
+
}
|
| 36 |
+
const duplicate = serializeParameters([{ name: 'seed', type: 'number', value: '0' }, { name: ' seed ', type: 'number', value: '1' }]);
|
| 37 |
+
assert(duplicate.error.includes('more than once'));
|
| 38 |
+
assert.equal(duplicate.json, '');
|
| 39 |
+
const special = serializeParameters([{ name: '__proto__', type: 'json', value: '{"enabled":true}' }]);
|
| 40 |
+
assert(Object.hasOwn(JSON.parse(special.json), '__proto__'));
|
| 41 |
+
assert.equal({}.enabled, undefined);
|
| 42 |
+
console.log('Parameter form checks passed: typed JSON, zero/false, empty rows, invalid input, duplicates and safe keys');
|
| 43 |
+
})().catch(error => { console.error(error); process.exitCode = 1; });
|