diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 59b8c0e..ec6f2aa 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,7 +2,7 @@ name: Publish Release on: workflow_run: - workflows: ["Release"] + workflows: ['Release'] types: [completed] workflow_dispatch: inputs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bd2b2d..b5e8af2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 20 cache: 'pnpm' - name: Install dependencies diff --git a/.gitignore b/.gitignore index de04c1c..a040553 100644 --- a/.gitignore +++ b/.gitignore @@ -125,4 +125,32 @@ cli/aliases.json accounts_backup.json # Bun lock file -bun.lock \ No newline at end of file +bun.lock + +# Build tools (installed via CI) +tools/ +*.zip + +# AI agent session data +thoughts/ +.impeccable.md +CLAUDE.md + +# One-shot scripts (already applied) +fix-ts.js +patch-proxy.js +patch-settings.js +rename-deep.js +test-process.ts + +# Legacy CLI launchers +agm.bat +run_cli.bat + +# Nix (not used) +flake.nix +flake.lock + +# Planning/spec data +.planning/ +openspec/ \ No newline at end of file diff --git a/.releaserc.json b/.releaserc.json deleted file mode 100644 index 6f7c02e..0000000 --- a/.releaserc.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "branches": ["main"], - "plugins": [ - ["@semantic-release/commit-analyzer", { - "preset": "conventionalcommits", - "releaseRules": [ - { "type": "feat", "release": "minor" }, - { "type": "fix", "release": "patch" }, - { "type": "perf", "release": "patch" }, - { "type": "refactor", "release": "patch" }, - { "type": "docs", "release": false }, - { "type": "style", "release": false }, - { "type": "chore", "release": false }, - { "type": "ci", "release": false }, - { "type": "test", "release": false }, - { "breaking": true, "release": "major" } - ] - }], - ["@semantic-release/release-notes-generator", { - "preset": "conventionalcommits", - "presetConfig": { - "types": [ - { "type": "feat", "section": "๐Ÿš€ Features" }, - { "type": "fix", "section": "๐Ÿ› Bug Fixes" }, - { "type": "perf", "section": "โšก Performance" }, - { "type": "refactor", "section": "โ™ป๏ธ Refactors" }, - { "type": "docs", "section": "๐Ÿ“š Documentation", "hidden": true }, - { "type": "chore", "section": "๐Ÿงฐ Maintenance", "hidden": true }, - { "type": "ci", "section": "๐Ÿ”ง CI/CD", "hidden": true } - ] - } - }], - ["@semantic-release/changelog", { - "changelogFile": "CHANGELOG.md" - }], - ["@semantic-release/npm", { - "npmPublish": false - }], - ["@semantic-release/git", { - "assets": ["package.json", "pnpm-lock.yaml", "CHANGELOG.md"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - }], - ["@semantic-release/github", { - "successComment": false, - "failTitle": false - }] - ] -} diff --git a/AGENTS.md b/AGENTS.md index f466d16..aae55f6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,7 +12,7 @@ This document is a user-level guide for AI assistants working in this repository - **Runtime**: Node.js (Electron environment) - **Node**: Recommended Node.js 20+ -- **Package manager**: `npm` (this project includes `package-lock.json`; use npm only) +- **Package manager**: `pnpm` (this project includes `pnpm-lock.yaml`; use pnpm only) - **Build tools**: Electron Forge + Vite - **Terminal**: Windows (PowerShell) / VSCode MCP tools can be used safely @@ -75,32 +75,32 @@ This document is a user-level guide for AI assistants working in this repository ## ๐Ÿ“ฆ Common Scripts -Use `npm` for all commands: +Use `pnpm` for all commands: - **Development (Dev)**: - - `npm start` - Start Electron dev environment (Electron Forge) - - `npm run lint` - Run ESLint checks - - `npm run format` - Run Prettier check - - `npm run format:write` - Auto-format with Prettier - - `npm run type-check` - Run TypeScript type check + - `pnpm start` - Start Electron dev environment (Electron Forge) + - `pnpm run lint` - Run ESLint checks + - `pnpm run format` - Run Prettier check + - `pnpm run format:write` - Auto-format with Prettier + - `pnpm run type-check` - Run TypeScript type check - **Build**: - - `npm run package` - Package app (application bundle only) - - `npm run make` - Build and generate distributable installers - - `npm run publish` - Publish app + - `pnpm run package` - Package app (application bundle only) + - `pnpm run make` - Build and generate distributable installers + - `pnpm run publish` - Publish app - **Testing**: - - `npm test` - Run Vitest tests - - `npm run test:watch` - Run Vitest in watch mode - - `npm run test:unit` - Same as above for unit-focused runs - - `npm run test:e2e` - Run Playwright E2E tests - - `npm run test:all` - Run all tests + - `pnpm test` - Run Vitest tests + - `pnpm run test:watch` - Run Vitest in watch mode + - `pnpm run test:unit` - Same as above for unit-focused runs + - `pnpm run test:e2e` - Run Playwright E2E tests + - `pnpm run test:all` - Run all tests ### Running a Single Test -- Unit test: `npm run test:unit path/to/test.test.ts` -- E2E test: `npm run test:e2e path/to/test.spec.ts` -- Type check: `npm run type-check` +- Unit test: `pnpm run test:unit path/to/test.test.ts` +- E2E test: `pnpm run test:e2e path/to/test.spec.ts` +- Type check: `pnpm run type-check` ## ๐Ÿงช Development Notes @@ -171,7 +171,7 @@ export const Component: React.FC = ({ prop1 }) => { }; ``` -> Before commit, run `npm run lint` and `npm run format`. +> Before commit, run `pnpm run lint` and `pnpm run format`. ## ๐Ÿ“ Terminal Output and References @@ -330,7 +330,7 @@ Summary / output: Packages and scripts: -- `npm install` (or `npm i`) +- `pnpm install` (or `pnpm i`) Shell: diff --git a/package.json b/package.json index b0dc4be..c7e5aa5 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "description": "Gemini Nexus - Electron App", "main": ".vite/build/main.js", "private": true, + "packageManager": "pnpm@10.11.0", "scripts": { "start": "cross-env DEBUG=electron-forge:* electron-forge start", "dev": "cross-env DEBUG=electron-forge:* electron-forge start", diff --git a/release.config.cjs b/release.config.cjs index b049155..3435393 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -6,7 +6,7 @@ * instead of Gitmoji (since the project history doesn't use emojis). */ -const REPO_URL = 'https://github.com/Draculabo/AntigravityManager'; +const REPO_URL = 'https://github.com/evandrodevbr/GeminiNexus'; const GITHUB_BASE_URL = 'https://github.com'; const FULL_CHANGELOG_URL = `${REPO_URL}/blob/main/CHANGELOG.md`; @@ -244,7 +244,7 @@ const releaseConfig = { [ '@semantic-release/git', { - assets: ['CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'], + assets: ['CHANGELOG.md', 'package.json', 'pnpm-lock.yaml'], message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}', }, ],