├── .coverage ├── .env.example ├── .gitignore ├── AGENTS.md ├── LICENSE ├── README.md ├── ainovel.db ├── backend ├── .coverage ├── .dockerignore ├── .env.example ├── .pre-commit-config.yaml ├── Dockerfile ├── README.md ├── ainovel.db ├── deploy-cloudflare.sh ├── docs │ └── api.md ├── migrate-to-d1.sh ├── migrations │ └── 001_initial_tables.sql ├── package-lock.json ├── package.json ├── pyproject.toml ├── requirements.txt ├── src │ ├── api │ │ ├── __init__.py │ │ ├── chapter.py │ │ ├── global_lines.py │ │ ├── inspiration.py │ │ └── outline.py │ ├── checkpoints │ │ ├── __init__.py │ │ └── sqlite_checkpointer.py │ ├── database-manager.js │ ├── database │ │ ├── __init__.py │ │ ├── connection.py │ │ └── models.py │ ├── fastapi-adapter.js │ ├── graph │ │ ├── __init__.py │ │ └── persistence.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ ├── chapter.py │ │ ├── character.py │ │ ├── global_lines.py │ │ ├── inspiration.py │ │ ├── outline.py │ │ ├── relationship.py │ │ └── world_event.py │ ├── monitoring │ │ ├── __init__.py │ │ └── logger.py │ ├── optimization │ │ ├── __init__.py │ │ ├── batch_processing.py │ │ ├── caching.py │ │ ├── conditional_execution.py │ │ └── token_usage.py │ ├── realtime │ │ └── events.py │ ├── repositories │ │ ├── __init__.py │ │ ├── candidate_repo.py │ │ ├── chapter_repo.py │ │ ├── global_lines_repo.py │ │ ├── inspiration_repo.py │ │ ├── memory_repo.py │ │ └── outline_repo.py │ ├── router.js │ ├── services │ │ ├── __init__.py │ │ ├── ai-service.js │ │ ├── ai_service.py │ │ ├── chapter_service.py │ │ ├── global_lines_service.py │ │ ├── inspiration_service.py │ │ └── outline_service.py │ └── state │ │ ├── __init__.py │ │ ├── novel_creation.py │ │ └── reducers.py ├── tests │ ├── contract │ │ ├── test_chapter_post.py │ │ ├── test_global_lines.py │ │ ├── test_inspiration_post.py │ │ └── test_outline_post.py │ ├── integration │ │ ├── test_api_endpoints.py │ │ ├── test_chapter_creation.py │ │ ├── test_error_handling.py │ │ ├── test_global_lines_integration.py │ │ ├── test_outline_generation.py │ │ ├── test_user_modification.py │ │ └── test_workflow_integration.py │ ├── performance │ │ ├── test_chapter_performance.py │ │ └── test_global_lines_performance.py │ └── unit │ │ ├── test_ai_parsing.py │ │ ├── test_models.py │ │ ├── test_repositories.py │ │ ├── test_services.py │ │ └── test_utils.py ├── worker-simple.js ├── worker.js └── wrangler.toml ├── docker-compose.yml ├── docs ├── deployment │ └── docker-compose.md └── user-guide.md ├── frontend ├── .dockerignore ├── .eslintrc.js ├── .prettierrc ├── .swcrc ├── Dockerfile ├── Dockerfile.cloudflare ├── README.md ├── deploy-cloudflare.sh ├── index.html ├── jest.config.js ├── nginx.conf ├── package-lock.json ├── package.json ├── postcss.config.js ├── src │ ├── components │ │ ├── CandidateReview.tsx │ │ ├── ChapterReader.tsx │ │ ├── CharacterInfo.tsx │ │ ├── CharacterPanel.tsx │ │ ├── CreationControl.tsx │ │ ├── ErrorBoundary.tsx │ │ ├── GlobalLinesEditor.tsx │ │ ├── InspirationInput.tsx │ │ ├── LoadingSpinner.tsx │ │ ├── OutlineView.tsx │ │ ├── SoftModifyPanel.tsx │ │ └── TimelineView.tsx │ ├── hooks │ │ ├── useGlobalEvents.ts │ │ └── useNovelUpdates.ts │ ├── index.css │ ├── main.tsx │ ├── optimization │ │ └── performance.ts │ ├── router.tsx │ ├── services │ │ ├── api.ts │ │ └── config.ts │ ├── store │ │ └── novelStore.ts │ ├── styles │ │ └── theme.ts │ └── tests │ │ ├── components │ │ ├── ChapterReader.test.tsx │ │ ├── GlobalLinesEditor.test.tsx │ │ ├── InspirationInput.test.tsx │ │ └── OutlineView.test.tsx │ │ ├── hooks │ │ └── useNovelUpdates.test.tsx │ │ └── setup.ts ├── tailwind.config.js ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── wrangler.toml ├── scripts ├── quickstart.ps1 └── quickstart.sh └── specs └── 001-ai-novel-creation-platform ├── contracts └── api-spec.yaml ├── data-model.md ├── plan.md ├── quickstart.md ├── research.md ├── spec.md └── tasks.md /.coverage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/.coverage -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/.gitignore -------------------------------------------------------------------------------- /AGENTS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/AGENTS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/README.md -------------------------------------------------------------------------------- /ainovel.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/ainovel.db -------------------------------------------------------------------------------- /backend/.coverage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/.coverage -------------------------------------------------------------------------------- /backend/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/.dockerignore -------------------------------------------------------------------------------- /backend/.env.example: -------------------------------------------------------------------------------- 1 | # 复制为 backend/.env 并填写实际值 2 | # 可选:用于启用 Gemini 2.5 Flash 能力 3 | GEMINI_API_KEY= 4 | 5 | -------------------------------------------------------------------------------- /backend/.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/.pre-commit-config.yaml -------------------------------------------------------------------------------- /backend/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/Dockerfile -------------------------------------------------------------------------------- /backend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/README.md -------------------------------------------------------------------------------- /backend/ainovel.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/ainovel.db -------------------------------------------------------------------------------- /backend/deploy-cloudflare.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/deploy-cloudflare.sh -------------------------------------------------------------------------------- /backend/docs/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/docs/api.md -------------------------------------------------------------------------------- /backend/migrate-to-d1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/migrate-to-d1.sh -------------------------------------------------------------------------------- /backend/migrations/001_initial_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/migrations/001_initial_tables.sql -------------------------------------------------------------------------------- /backend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/package-lock.json -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/pyproject.toml -------------------------------------------------------------------------------- /backend/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/requirements.txt -------------------------------------------------------------------------------- /backend/src/api/__init__.py: -------------------------------------------------------------------------------- 1 | """API 路由包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/api/chapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/api/chapter.py -------------------------------------------------------------------------------- /backend/src/api/global_lines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/api/global_lines.py -------------------------------------------------------------------------------- /backend/src/api/inspiration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/api/inspiration.py -------------------------------------------------------------------------------- /backend/src/api/outline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/api/outline.py -------------------------------------------------------------------------------- /backend/src/checkpoints/__init__.py: -------------------------------------------------------------------------------- 1 | """检查点包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/checkpoints/sqlite_checkpointer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/checkpoints/sqlite_checkpointer.py -------------------------------------------------------------------------------- /backend/src/database-manager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/database-manager.js -------------------------------------------------------------------------------- /backend/src/database/__init__.py: -------------------------------------------------------------------------------- 1 | """数据库包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/database/connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/database/connection.py -------------------------------------------------------------------------------- /backend/src/database/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/database/models.py -------------------------------------------------------------------------------- /backend/src/fastapi-adapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/fastapi-adapter.js -------------------------------------------------------------------------------- /backend/src/graph/__init__.py: -------------------------------------------------------------------------------- 1 | """Graph 包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/graph/persistence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/graph/persistence.py -------------------------------------------------------------------------------- /backend/src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/main.py -------------------------------------------------------------------------------- /backend/src/models/__init__.py: -------------------------------------------------------------------------------- 1 | """数据模型包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/models/chapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/chapter.py -------------------------------------------------------------------------------- /backend/src/models/character.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/character.py -------------------------------------------------------------------------------- /backend/src/models/global_lines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/global_lines.py -------------------------------------------------------------------------------- /backend/src/models/inspiration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/inspiration.py -------------------------------------------------------------------------------- /backend/src/models/outline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/outline.py -------------------------------------------------------------------------------- /backend/src/models/relationship.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/relationship.py -------------------------------------------------------------------------------- /backend/src/models/world_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/models/world_event.py -------------------------------------------------------------------------------- /backend/src/monitoring/__init__.py: -------------------------------------------------------------------------------- 1 | """监控包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/monitoring/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/monitoring/logger.py -------------------------------------------------------------------------------- /backend/src/optimization/__init__.py: -------------------------------------------------------------------------------- 1 | """优化包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/optimization/batch_processing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/optimization/batch_processing.py -------------------------------------------------------------------------------- /backend/src/optimization/caching.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/optimization/caching.py -------------------------------------------------------------------------------- /backend/src/optimization/conditional_execution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/optimization/conditional_execution.py -------------------------------------------------------------------------------- /backend/src/optimization/token_usage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/optimization/token_usage.py -------------------------------------------------------------------------------- /backend/src/realtime/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/realtime/events.py -------------------------------------------------------------------------------- /backend/src/repositories/__init__.py: -------------------------------------------------------------------------------- 1 | """仓储层包。""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/repositories/candidate_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/repositories/candidate_repo.py -------------------------------------------------------------------------------- /backend/src/repositories/chapter_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/repositories/chapter_repo.py -------------------------------------------------------------------------------- /backend/src/repositories/global_lines_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/repositories/global_lines_repo.py -------------------------------------------------------------------------------- /backend/src/repositories/inspiration_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/repositories/inspiration_repo.py -------------------------------------------------------------------------------- /backend/src/repositories/memory_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/repositories/memory_repo.py -------------------------------------------------------------------------------- /backend/src/repositories/outline_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/repositories/outline_repo.py -------------------------------------------------------------------------------- /backend/src/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/router.js -------------------------------------------------------------------------------- /backend/src/services/__init__.py: -------------------------------------------------------------------------------- 1 | """服务层包初始化""" 2 | 3 | -------------------------------------------------------------------------------- /backend/src/services/ai-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/services/ai-service.js -------------------------------------------------------------------------------- /backend/src/services/ai_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/services/ai_service.py -------------------------------------------------------------------------------- /backend/src/services/chapter_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/services/chapter_service.py -------------------------------------------------------------------------------- /backend/src/services/global_lines_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/services/global_lines_service.py -------------------------------------------------------------------------------- /backend/src/services/inspiration_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/services/inspiration_service.py -------------------------------------------------------------------------------- /backend/src/services/outline_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/services/outline_service.py -------------------------------------------------------------------------------- /backend/src/state/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/state/__init__.py -------------------------------------------------------------------------------- /backend/src/state/novel_creation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/state/novel_creation.py -------------------------------------------------------------------------------- /backend/src/state/reducers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/src/state/reducers.py -------------------------------------------------------------------------------- /backend/tests/contract/test_chapter_post.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/contract/test_chapter_post.py -------------------------------------------------------------------------------- /backend/tests/contract/test_global_lines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/contract/test_global_lines.py -------------------------------------------------------------------------------- /backend/tests/contract/test_inspiration_post.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/contract/test_inspiration_post.py -------------------------------------------------------------------------------- /backend/tests/contract/test_outline_post.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/contract/test_outline_post.py -------------------------------------------------------------------------------- /backend/tests/integration/test_api_endpoints.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_api_endpoints.py -------------------------------------------------------------------------------- /backend/tests/integration/test_chapter_creation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_chapter_creation.py -------------------------------------------------------------------------------- /backend/tests/integration/test_error_handling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_error_handling.py -------------------------------------------------------------------------------- /backend/tests/integration/test_global_lines_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_global_lines_integration.py -------------------------------------------------------------------------------- /backend/tests/integration/test_outline_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_outline_generation.py -------------------------------------------------------------------------------- /backend/tests/integration/test_user_modification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_user_modification.py -------------------------------------------------------------------------------- /backend/tests/integration/test_workflow_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/integration/test_workflow_integration.py -------------------------------------------------------------------------------- /backend/tests/performance/test_chapter_performance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/performance/test_chapter_performance.py -------------------------------------------------------------------------------- /backend/tests/performance/test_global_lines_performance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/performance/test_global_lines_performance.py -------------------------------------------------------------------------------- /backend/tests/unit/test_ai_parsing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/unit/test_ai_parsing.py -------------------------------------------------------------------------------- /backend/tests/unit/test_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/unit/test_models.py -------------------------------------------------------------------------------- /backend/tests/unit/test_repositories.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/unit/test_repositories.py -------------------------------------------------------------------------------- /backend/tests/unit/test_services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/unit/test_services.py -------------------------------------------------------------------------------- /backend/tests/unit/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/tests/unit/test_utils.py -------------------------------------------------------------------------------- /backend/worker-simple.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/worker-simple.js -------------------------------------------------------------------------------- /backend/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/worker.js -------------------------------------------------------------------------------- /backend/wrangler.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/backend/wrangler.toml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/deployment/docker-compose.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/docs/deployment/docker-compose.md -------------------------------------------------------------------------------- /docs/user-guide.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/docs/user-guide.md -------------------------------------------------------------------------------- /frontend/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/.dockerignore -------------------------------------------------------------------------------- /frontend/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/.eslintrc.js -------------------------------------------------------------------------------- /frontend/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/.prettierrc -------------------------------------------------------------------------------- /frontend/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/.swcrc -------------------------------------------------------------------------------- /frontend/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/Dockerfile -------------------------------------------------------------------------------- /frontend/Dockerfile.cloudflare: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/Dockerfile.cloudflare -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/README.md -------------------------------------------------------------------------------- /frontend/deploy-cloudflare.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/deploy-cloudflare.sh -------------------------------------------------------------------------------- /frontend/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/index.html -------------------------------------------------------------------------------- /frontend/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/jest.config.js -------------------------------------------------------------------------------- /frontend/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/nginx.conf -------------------------------------------------------------------------------- /frontend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/package-lock.json -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/postcss.config.js -------------------------------------------------------------------------------- /frontend/src/components/CandidateReview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/CandidateReview.tsx -------------------------------------------------------------------------------- /frontend/src/components/ChapterReader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/ChapterReader.tsx -------------------------------------------------------------------------------- /frontend/src/components/CharacterInfo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/CharacterInfo.tsx -------------------------------------------------------------------------------- /frontend/src/components/CharacterPanel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/CharacterPanel.tsx -------------------------------------------------------------------------------- /frontend/src/components/CreationControl.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/CreationControl.tsx -------------------------------------------------------------------------------- /frontend/src/components/ErrorBoundary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/ErrorBoundary.tsx -------------------------------------------------------------------------------- /frontend/src/components/GlobalLinesEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/GlobalLinesEditor.tsx -------------------------------------------------------------------------------- /frontend/src/components/InspirationInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/InspirationInput.tsx -------------------------------------------------------------------------------- /frontend/src/components/LoadingSpinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/LoadingSpinner.tsx -------------------------------------------------------------------------------- /frontend/src/components/OutlineView.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/OutlineView.tsx -------------------------------------------------------------------------------- /frontend/src/components/SoftModifyPanel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/SoftModifyPanel.tsx -------------------------------------------------------------------------------- /frontend/src/components/TimelineView.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/components/TimelineView.tsx -------------------------------------------------------------------------------- /frontend/src/hooks/useGlobalEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/hooks/useGlobalEvents.ts -------------------------------------------------------------------------------- /frontend/src/hooks/useNovelUpdates.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/hooks/useNovelUpdates.ts -------------------------------------------------------------------------------- /frontend/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/index.css -------------------------------------------------------------------------------- /frontend/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/main.tsx -------------------------------------------------------------------------------- /frontend/src/optimization/performance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/optimization/performance.ts -------------------------------------------------------------------------------- /frontend/src/router.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/router.tsx -------------------------------------------------------------------------------- /frontend/src/services/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/services/api.ts -------------------------------------------------------------------------------- /frontend/src/services/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/services/config.ts -------------------------------------------------------------------------------- /frontend/src/store/novelStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/store/novelStore.ts -------------------------------------------------------------------------------- /frontend/src/styles/theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/styles/theme.ts -------------------------------------------------------------------------------- /frontend/src/tests/components/ChapterReader.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/tests/components/ChapterReader.test.tsx -------------------------------------------------------------------------------- /frontend/src/tests/components/GlobalLinesEditor.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/tests/components/GlobalLinesEditor.test.tsx -------------------------------------------------------------------------------- /frontend/src/tests/components/InspirationInput.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/tests/components/InspirationInput.test.tsx -------------------------------------------------------------------------------- /frontend/src/tests/components/OutlineView.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/tests/components/OutlineView.test.tsx -------------------------------------------------------------------------------- /frontend/src/tests/hooks/useNovelUpdates.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/tests/hooks/useNovelUpdates.test.tsx -------------------------------------------------------------------------------- /frontend/src/tests/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/src/tests/setup.ts -------------------------------------------------------------------------------- /frontend/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/tailwind.config.js -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/tsconfig.json -------------------------------------------------------------------------------- /frontend/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/tsconfig.node.json -------------------------------------------------------------------------------- /frontend/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/vite.config.ts -------------------------------------------------------------------------------- /frontend/wrangler.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/frontend/wrangler.toml -------------------------------------------------------------------------------- /scripts/quickstart.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/scripts/quickstart.ps1 -------------------------------------------------------------------------------- /scripts/quickstart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/scripts/quickstart.sh -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/contracts/api-spec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/contracts/api-spec.yaml -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/data-model.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/data-model.md -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/plan.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/plan.md -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/quickstart.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/quickstart.md -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/research.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/research.md -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/spec.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/spec.md -------------------------------------------------------------------------------- /specs/001-ai-novel-creation-platform/tasks.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1594834522-coder/AINovel/HEAD/specs/001-ai-novel-creation-platform/tasks.md --------------------------------------------------------------------------------