Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

941 B
Raw Blame
import { cli, Strategy } from '@jackwener/opencli/registry';
cli({
    site: 'v2ex',
    name: 'member',
    access: 'read',
    description: 'V2EX 用户资料',
    domain: 'www.v2ex.com',
    strategy: Strategy.PUBLIC,
    browser: false,
    args: [
        { name: 'username', required: true, positional: true, help: 'Username' },
    ],
    columns: ['username', 'tagline', 'website', 'github', 'twitter', 'location'],
    pipeline: [
        { fetch: {
                url: 'https://www.v2ex.com/api/members/show.json',
                params: { username: '${{ args.username }}' },
            } },
        { map: {
                username: '${{ item.username }}',
                tagline: '${{ item.tagline }}',
                website: '${{ item.website }}',
                github: '${{ item.github }}',
                twitter: '${{ item.twitter }}',
                location: '${{ item.location }}',
            } },
    ],
});