Реверснутый zcode с своими фишками и плагинами
Реверснутая ade zcode без z ai, с массовой загрузкой ключей, умным апи роутингом, плагином для командной разработки
Реверснутая ade zcode без z ai, с массовой загрузкой ключей, умным апи роутингом, плагином для командной разработки
// Снимок пула с поставленными на паузу ключами, затем очистка тестовых ключей.
export default async function ({ page, shot }) {
await page.keyboard.press('Control+Comma').catch(() => {});
await page.waitForTimeout(900);
const ms = page.getByText('Model settings', { exact: true }).first();
if (await ms.count()) await ms.click();
await page.waitForTimeout(800);
await page.evaluate(() => document.getElementById('zteam-dock')?.remove());
await page.getByText('Wikivibe', { exact: true }).first().click();
await page.waitForTimeout(700);
const pool = page.locator('[data-key-pool]');
const toggle = pool.locator('button[aria-expanded]').first();
if ((await toggle.getAttribute('aria-expanded')) !== 'true') await toggle.click();
await page.waitForTimeout(500);
await page.locator('[data-model-provider-detail-scroll]').screenshot({ path: 'shots/31-pool-cooling.png' });
console.log('rows:', await pool.locator('.kp-row').allInnerTexts());
await page.locator('button[aria-label="Smart routing"]').click();
await page.waitForTimeout(450);
await shot('32-log-rotation');
await page.keyboard.press('Escape');
await page.evaluate(async () => {
const s = await window.zcodeKeyPool.read();
const p = structuredClone(s.pool);
p.providers['new-provider-4'].keys = [];
await window.zcodeKeyPool.write(p);
});
}