{"timestamp":"2025-09-21T14:14:59.615Z","type":"session_meta","payload":{"id":"01996ca0-c4d3-7a01-b8c9-dcb4e1da406b","timestamp":"2025-09-21T14:14:59.539Z","cwd":"C:\\GitCode\\Todo-server","originator":"codex_cli_rs","cli_version":"0.39.0","instructions":"﻿# Repository Guidelines\n\n## Project Structure & Module Organization\n- `backend/` pnpm workspace for the Express API; `apps/web/src/index.ts` is the server entry, `packages/` holds shared modules (`apis`, `hooks`, `models`, `pipelines`, `utils`), static assets in `public/`, fixtures in `records/`.\n- `frontend/` pnpm workspace for Vue clients; `apps/web` is the Vite app, `apps/mobile` (uni-app) and `apps/desktop` (Electron) reuse shared code in `packages/`.\n- Copy `.env.example` when provisioning environments and keep overrides local to each workspace.\n\n## Build, Test, and Development Commands\n- `cd backend && pnpm install && pnpm run websrv dev` bundles and starts `dist/index.js`; `pnpm run websrv build` emits production assets.\n- `pnpm run lint` and `pnpm run format` (inside `backend`) enforce ESLint + Prettier; run them before commits.\n- `cd frontend && pnpm install && pnpm run webapp dev` launches the Vite dev server; `pnpm run webapp build` or `pnpm run webapp preview` validate production output.\n- `pnpm run mobile dev` and `pnpm run desktop dev` (from `frontend`) target the uni-app and Electron shells; `pnpm run serve:dist` in `backend` serves built bundles for smoke tests.\n\n## Coding Style & Naming Conventions\n- `.editorconfig` requires UTF-8, spaces (size 4), CRLF endings, 100-character lines.\n- Prettier disables semicolons, enforces single quotes and no trailing commas; auto-format staged files.\n- Use PascalCase for classes, camelCase for functions/variables, kebab-case Vue component filenames, and align backend module names with their package folder.\n- Exported APIs should carry explicit TypeScript types to keep cross-workspace imports predictable.\n\n## Testing Guidelines\n- No automated suite ships yet; add focused unit or integration coverage for any feature and document the command in your PR.\n- Colocate specs near source (`*.spec.ts` or `__tests__`) and favor Vitest for Vue logic plus supertest checks for Express routes.\n- Before review, hit `http://localhost:3002` and the Vite preview to sanity-check critical flows.\n\n## Commit & Pull Request Guidelines\n- History favors concise action statements (e.g., `清理项目配置`); match that tone and keep each commit scoped.\n- Rebase away noisy WIP commits, and name branches by surface area such as `backend/fix-auth-token`.\n- Pull requests must link issues, mention environment or schema changes, list validation commands, and attach screenshots or API traces for user-facing work.\n\n## Security & Configuration Tips\n- Never commit real secrets; derive `.env` files from `.env.example` and store credentials outside the repo.\n- Prefer `pnpm run serve:https` when sharing demos and consult `backend/MONGODB_TROUBLESHOOTING.md` before altering deployment scripts.\r\n","git":{"commit_hash":"bacc50b1ae747c80811d0338f19ea3977ccb0bb9","branch":"main","repository_url":"https://github.com/AsokaWang/Todo-server.git"}}}
{"timestamp":"2025-09-21T14:14:59.615Z","type":"response_item","payload":{"type":"message","role":"user","content":[{"type":"input_text","text":"<user_instructions>\n\n﻿# Repository Guidelines\n\n## Project Structure & Module Organization\n- `backend/` pnpm workspace for the Express API; `apps/web/src/index.ts` is the server entry, `packages/` holds shared modules (`apis`, `hooks`, `models`, `pipelines`, `utils`), static assets in `public/`, fixtures in `records/`.\n- `frontend/` pnpm workspace for Vue clients; `apps/web` is the Vite app, `apps/mobile` (uni-app) and `apps/desktop` (Electron) reuse shared code in `packages/`.\n- Copy `.env.example` when provisioning environments and keep overrides local to each workspace.\n\n## Build, Test, and Development Commands\n- `cd backend && pnpm install && pnpm run websrv dev` bundles and starts `dist/index.js`; `pnpm run websrv build` emits production assets.\n- `pnpm run lint` and `pnpm run format` (inside `backend`) enforce ESLint + Prettier; run them before commits.\n- `cd frontend && pnpm install && pnpm run webapp dev` launches the Vite dev server; `pnpm run webapp build` or `pnpm run webapp preview` validate production output.\n- `pnpm run mobile dev` and `pnpm run desktop dev` (from `frontend`) target the uni-app and Electron shells; `pnpm run serve:dist` in `backend` serves built bundles for smoke tests.\n\n## Coding Style & Naming Conventions\n- `.editorconfig` requires UTF-8, spaces (size 4), CRLF endings, 100-character lines.\n- Prettier disables semicolons, enforces single quotes and no trailing commas; auto-format staged files.\n- Use PascalCase for classes, camelCase for functions/variables, kebab-case Vue component filenames, and align backend module names with their package folder.\n- Exported APIs should carry explicit TypeScript types to keep cross-workspace imports predictable.\n\n## Testing Guidelines\n- No automated suite ships yet; add focused unit or integration coverage for any feature and document the command in your PR.\n- Colocate specs near source (`*.spec.ts` or `__tests__`) and favor Vitest for Vue logic plus supertest checks for Express routes.\n- Before review, hit `http://localhost:3002` and the Vite preview to sanity-check critical flows.\n\n## Commit & Pull Request Guidelines\n- History favors concise action statements (e.g., `清理项目配置`); match that tone and keep each commit scoped.\n- Rebase away noisy WIP commits, and name branches by surface area such as `backend/fix-auth-token`.\n- Pull requests must link issues, mention environment or schema changes, list validation commands, and attach screenshots or API traces for user-facing work.\n\n## Security & Configuration Tips\n- Never commit real secrets; derive `.env` files from `.env.example` and store credentials outside the repo.\n- Prefer `pnpm run serve:https` when sharing demos and consult `backend/MONGODB_TROUBLESHOOTING.md` before altering deployment scripts.\r\n\n\n</user_instructions>"}]}}
{"timestamp":"2025-09-21T14:14:59.615Z","type":"response_item","payload":{"type":"message","role":"user","content":[{"type":"input_text","text":"<environment_context>\n  <cwd>C:\\GitCode\\Todo-server</cwd>\n  <approval_policy>on-request</approval_policy>\n  <sandbox_mode>workspace-write</sandbox_mode>\n  <network_access>restricted</network_access>\n  <shell>powershell.exe</shell>\n</environment_context>"}]}}
