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。

926 B
Raw Blame
import { cli, Strategy } from '@jackwener/opencli/registry';
import { fetchCurrentBookmarks } from './bookmark-utils.js';

cli({
  site: 'pixiv',
  name: 'bookmarks',
  access: 'read',
  description: 'List the current Pixiv account bookmarks for illustrations or novels',
  domain: 'www.pixiv.net',
  strategy: Strategy.COOKIE,
  args: [
    { name: 'type', default: 'illust', help: 'Bookmark type: illust or novel' },
    { name: 'limit', type: 'int', default: 20, help: 'Number of bookmarks to list' },
    { name: 'offset', type: 'int', default: 0, help: 'Pagination offset' },
    { name: 'visibility', default: 'show', help: 'Bookmark visibility: show(public) or hide(private)' },
  ],
  columns: ['rank', 'type', 'bookmark_owner_id', 'title', 'author', 'user_id', 'illust_id', 'novel_id', 'pages', 'words', 'bookmarks', 'tags', 'created', 'url'],
  func: async (page, kwargs) => fetchCurrentBookmarks(page, kwargs),
});