Files
Zhongyue Lin 6126413d60 feat(qoder): add Qoder IDE adapter
Reviewed-by: codex-mini0
Reviewed-by: First-principles-0
No-check override: WAWQAQ 2026-06-01
2026-06-01 00:07:49 +08:00

22 lines
624 B
JavaScript

import { cli, Strategy } from '@jackwener/opencli/registry';
import { evaluateQoder } from './_utils.js';
cli({
site: 'qoder',
name: 'status',
access: 'read',
description: 'Check Qoder CDP connection and report the current renderer URL + title.',
domain: 'localhost',
strategy: Strategy.UI,
browser: true,
args: [],
columns: ['Status', 'Url', 'Title'],
func: async (page) => {
return [{
Status: 'Connected',
Url: await evaluateQoder(page, 'window.location.href'),
Title: await evaluateQoder(page, 'document.title'),
}];
},
});