ShareServer previously existed only as design documents. The repository now includes a standalone Hono service and a responsive React management-console prototype covering administrator and member workflows, with local build, test, and container entry points. The sharing design now includes organization-scoped digital agents and explicit local partitioned-memory selection for @ calls. Memory documentation consistently uses partitioned memory and treats time or internal events only as optional recall triggers. This remains an interactive prototype: fixture actions do not persist, and production authentication, PostgreSQL isolation, device connections, routing, relay, and federation still require implementation. Release note: 新增可独立运行的 ShareServer 管理控制台交互原型,并完善组织数字人与分区记忆共享设计;当前原型数据和操作不会写入生产系统。
107 lines
2.0 KiB
JavaScript
107 lines
2.0 KiB
JavaScript
import js from '@eslint/js'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import globals from 'globals'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: [
|
|
'.agent-resources/**',
|
|
'.remote-runtime-resources/**',
|
|
'.runtime-resources/**',
|
|
'coverage/**',
|
|
'dist/**',
|
|
'node_modules/**',
|
|
'out/**',
|
|
'shareserver/build-server/**',
|
|
'shareserver/dist/**',
|
|
'shareserver/node_modules/**'
|
|
]
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['src/main/**/*.ts', 'src/preload/**/*.ts', 'src/shared/**/*.ts'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['build/**/*.cjs'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-require-imports': 'off'
|
|
}
|
|
},
|
|
{
|
|
files: ['src/renderer/src/**/*.{ts,tsx}'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser
|
|
}
|
|
},
|
|
plugins: {
|
|
'react-hooks': reactHooks
|
|
},
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules
|
|
}
|
|
},
|
|
{
|
|
files: ['shareserver/src/**/*.{ts,tsx}'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.vitest
|
|
}
|
|
},
|
|
plugins: {
|
|
'react-hooks': reactHooks
|
|
},
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules
|
|
}
|
|
},
|
|
{
|
|
files: ['shareserver/server/**/*.ts'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.vitest
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['sites/**/*.js'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['sites/**/*.mjs'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.test.{ts,tsx}', 'vitest.config.ts'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.browser,
|
|
...globals.vitest
|
|
}
|
|
}
|
|
}
|
|
)
|