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。

751 B
Raw Blame
import js from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  js.configs.recommended,
  ...tseslint.configs.recommended,
  {
    ignores: ['dist/'],
  },
  {
    rules: {
      'no-restricted-imports': [
        'error',
        {
          patterns: [
            {
              group: ['electron', 'electron/*', 'electron-*'],
              message: '@cindy/voice-input-core 不能依赖 Electron。麦克风、IPC、凭证、日志由 host 注入。',
            },
            {
              group: ['ws', 'ws/*'],
              message: '@cindy/voice-input-core 不能绑定具体 websocket 实现。Provider 适配放在 host 层。',
            },
          ],
        },
      ],
    },
  },
);