Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f91e2d3
fix windows spawn
alexx-ftw Jul 23, 2025
dff7a27
Merge pull request #1 from alexx-ftw/codex/implement-changes-from-iss…
alexx-ftw Jul 23, 2025
58b48ba
chore: update deps and tsconfig
alexx-ftw Jul 23, 2025
4f3b451
chore: bump version to 1.1.5 and rebuild
alexx-ftw Jul 23, 2025
4cb53df
Add test for Windows shell option
alexx-ftw Jul 23, 2025
defe46d
Merge pull request #3 from alexx-ftw/codex/update-version-to-1.1.5
alexx-ftw Jul 23, 2025
9394de9
Merge pull request #4 from alexx-ftw/codex/add-test-for-executecomman…
alexx-ftw Jul 23, 2025
7037ed8
Merge branch 'main' into codex/ensure-package-dependencies-and-types-…
alexx-ftw Jul 23, 2025
96148fb
Merge pull request #2 from alexx-ftw/codex/ensure-package-dependencie…
alexx-ftw Jul 23, 2025
606bc8c
fix(package): correct json syntax
alexx-ftw Jul 23, 2025
2d6b031
Merge pull request #5 from alexx-ftw/codex/fix-package.json-json-pars…
alexx-ftw Jul 23, 2025
beb9d60
fix(gemini): quote prompts on windows
alexx-ftw Jul 23, 2025
eb2979d
Merge pull request #6 from alexx-ftw/codex/fix-string-escaping-in-mcp…
alexx-ftw Jul 23, 2025
b435c86
test: cover embedded quotes
alexx-ftw Jul 23, 2025
ccd55c2
Merge branch 'main' into 4ibi2m-codex/fix-string-escaping-in-mcp-gemi…
alexx-ftw Jul 23, 2025
8180fdb
chore: remove dist directory from version control
alexx-ftw Jul 24, 2025
fbca21b
Merge pull request #7 from alexx-ftw/4ibi2m-codex/fix-string-escaping…
alexx-ftw Jul 24, 2025
861745b
Merge pull request #8 from alexx-ftw/codex/remove-dist-files-from-pr
alexx-ftw Jul 24, 2025
54d0c82
docs: fix GitHub npx command
alexx-ftw Jul 24, 2025
7ec99f8
Merge branch 'main' into remove-dist-files-from-pr
alexx-ftw Jul 24, 2025
0e5d5d7
Merge pull request #9 from alexx-ftw/remove-dist-files-from-pr
alexx-ftw Jul 24, 2025
8f516af
test: cover legacy change mode format
alexx-ftw Aug 3, 2025
46c2225
Merge pull request #10 from alexx-ftw/find-and-fix-a-bug-in-codebase
alexx-ftw Aug 3, 2025
7a63961
docs: fix typo in funding docs
alexx-ftw Aug 3, 2025
cf1f479
Apply suggestion from @gemini-code-assist[bot]
alexx-ftw Aug 3, 2025
101ff44
Merge pull request #11 from alexx-ftw/fix-spelling-in-funding.md
alexx-ftw Aug 3, 2025
a0b4916
fix: remove stray plus in no-edits message
alexx-ftw Aug 3, 2025
8253728
docs: clarify brainstorming ideaCount default
alexx-ftw Aug 3, 2025
3271ce6
test: verify command executor progress and errors
alexx-ftw Aug 3, 2025
a36db22
Update src/tools/brainstorm.tool.ts
alexx-ftw Aug 3, 2025
34afd18
Merge pull request #13 from alexx-ftw/update-description-in-brainstor…
alexx-ftw Aug 3, 2025
6dcdf36
refactor: centralize no-edits message
alexx-ftw Aug 3, 2025
ad20e4a
Merge pull request #12 from alexx-ftw/edit-geminiexecutor.ts-to-fix-t…
alexx-ftw Aug 3, 2025
f907ed2
test: refactor command executor tests
alexx-ftw Aug 3, 2025
c5ea4c8
Merge pull request #14 from alexx-ftw/add-tests-for-commandexecutor-f…
alexx-ftw Aug 3, 2025
0b70a0e
docs: fix outdated slash commands
alexx-ftw Aug 3, 2025
f28c8d6
Merge pull request #15 from alexx-ftw/update-documentation-to-reflect…
alexx-ftw Aug 3, 2025
cb1b6fc
docs: expand brainstorming options and clarify prompt usage
alexx-ftw Aug 3, 2025
908d85e
Merge branch 'main' into w3yia8-update-documentation-to-reflect-curre…
alexx-ftw Aug 3, 2025
691343d
Merge pull request #16 from alexx-ftw/w3yia8-update-documentation-to-…
alexx-ftw Aug 3, 2025
234eb59
Add logger tests
alexx-ftw Aug 11, 2025
e7230bd
chore: type tool arguments
alexx-ftw Aug 11, 2025
7ce7bd4
chore: remove unused timeout manager
alexx-ftw Aug 11, 2025
fc1e03d
chore: format source files
alexx-ftw Aug 11, 2025
cb96211
Update src/tools/ask-gemini.tool.ts
alexx-ftw Aug 11, 2025
283ccba
Update src/tools/ask-gemini.tool.ts
alexx-ftw Aug 11, 2025
e927495
Update src/tools/timeout-test.tool.ts
alexx-ftw Aug 11, 2025
36b38d3
refactor: consolidate logger tests
alexx-ftw Aug 11, 2025
6df60d0
Merge pull request #17 from alexx-ftw/update-logger-implementation
alexx-ftw Aug 11, 2025
2e2fbeb
Merge pull request #18 from alexx-ftw/add-typed-definitions-for-tool-…
alexx-ftw Aug 11, 2025
0cdd6f6
Merge pull request #19 from alexx-ftw/evaluate-timeout-management-needs
alexx-ftw Aug 11, 2025
7381cd6
chore: skip docs deploy on forks
alexx-ftw Aug 11, 2025
9e2d7fb
chore: remove placeholder comment from logger
alexx-ftw Aug 11, 2025
9da3147
Remove newline from formatted log messages
alexx-ftw Aug 11, 2025
06f908a
Merge pull request #21 from alexx-ftw/fix-failing-job-in-ci-pipeline
alexx-ftw Aug 11, 2025
816075a
Merge pull request #22 from alexx-ftw/remove-wip-comment-from-logger.ts
alexx-ftw Aug 11, 2025
ca35c78
Merge pull request #23 from alexx-ftw/modify-formatmessage-to-remove-…
alexx-ftw Aug 11, 2025
9fc9f0a
Resolve merge conflicts between formatting (PR #20) and functional im…
alexx-ftw Aug 11, 2025
037c88f
Merge pull request #20 from alexx-ftw/run-formatter-and-commit-changes
alexx-ftw Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# AGENT Guidance

## Development
- Use TypeScript with an object-oriented approach when adding new features.
- Follow test-driven development. Add or update tests under `tests` and run `npm test`.
- Lint code with `npm run lint` before committing.
- Build with `npm run build` to ensure TypeScript compiles.
- Keep `@modelcontextprotocol/sdk` and `zod` listed as both peer and dev dependencies. Their versions should match across sections of `package.json`.
- Ensure `@types/node` is installed and referenced via `tsconfig.json` under `compilerOptions.types`.

## Windows Compatibility
- The command executor uses `shell: process.platform === "win32"` to avoid ENOENT errors.
- Documented in `docs/resources/troubleshooting.md`.

## Repository Scripts
- `npm test` – runs the Vitest suite.
- `npm run lint` – checks TypeScript types via `tsc --noEmit`.
- `npm run build` – compiles TypeScript to `dist/`.

## Package.json Integrity
- Ensure `package.json` is valid JSON. Running `npm install` or `npm run lint` will fail fast if syntax errors are present.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]

## [1.1.5]
- Bump version to 1.1.5

## [1.1.3]
- "gemini reads, claude edits"
- Added `changeMode` parameter to ask-gemini tool for structured edit responses using claude edit diff.
Expand Down
74 changes: 74 additions & 0 deletions dist/constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
export declare const LOG_PREFIX = "[GMCPT]";
export declare const ERROR_MESSAGES: {
readonly QUOTA_EXCEEDED: "Quota exceeded for quota metric 'Gemini 2.5 Pro Requests'";
readonly QUOTA_EXCEEDED_SHORT: "⚠️ Gemini 2.5 Pro daily quota exceeded. Please retry with model: 'gemini-2.5-flash'";
readonly TOOL_NOT_FOUND: "not found in registry";
readonly NO_PROMPT_PROVIDED: "Please provide a prompt for analysis. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions";
};
export declare const STATUS_MESSAGES: {
readonly QUOTA_SWITCHING: "🚫 Gemini 2.5 Pro quota exceeded, switching to Flash model...";
readonly FLASH_RETRY: "⚡ Retrying with Gemini 2.5 Flash...";
readonly FLASH_SUCCESS: "✅ Flash model completed successfully";
readonly SANDBOX_EXECUTING: "🔒 Executing Gemini CLI command in sandbox mode...";
readonly GEMINI_RESPONSE: "Gemini response:";
readonly PROCESSING_START: "🔍 Starting analysis (may take 5-15 minutes for large codebases)";
readonly PROCESSING_CONTINUE: "⏳ Still processing... Gemini is working on your request";
readonly PROCESSING_COMPLETE: "✅ Analysis completed successfully";
};
export declare const MODELS: {
readonly PRO: "gemini-2.5-pro";
readonly FLASH: "gemini-2.5-flash";
};
export declare const PROTOCOL: {
readonly ROLES: {
readonly USER: "user";
readonly ASSISTANT: "assistant";
};
readonly CONTENT_TYPES: {
readonly TEXT: "text";
};
readonly STATUS: {
readonly SUCCESS: "success";
readonly ERROR: "error";
readonly FAILED: "failed";
readonly REPORT: "report";
};
readonly NOTIFICATIONS: {
readonly PROGRESS: "notifications/progress";
};
readonly KEEPALIVE_INTERVAL: 25000;
};
export declare const CLI: {
readonly COMMANDS: {
readonly GEMINI: "gemini";
readonly ECHO: "echo";
};
readonly FLAGS: {
readonly MODEL: "-m";
readonly SANDBOX: "-s";
readonly PROMPT: "-p";
readonly HELP: "-help";
};
readonly DEFAULTS: {
readonly MODEL: "default";
readonly BOOLEAN_TRUE: "true";
readonly BOOLEAN_FALSE: "false";
};
};
export interface ToolArguments {
prompt?: string;
model?: string;
sandbox?: boolean | string;
changeMode?: boolean | string;
chunkIndex?: number | string;
chunkCacheKey?: string;
message?: string;
methodology?: string;
domain?: string;
constraints?: string;
existingContext?: string;
ideaCount?: number;
includeAnalysis?: boolean;
[key: string]: string | boolean | number | undefined;
}
//# sourceMappingURL=constants.d.ts.map
1 change: 1 addition & 0 deletions dist/constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions dist/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
export {};
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 188 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading