106 Commits

Author SHA1 Message Date
mrcat
6362d58c13 feat: enhance PersistentShell to support shell detection and path normalization
- Implemented shell detection for POSIX, MSYS, and WSL environments.
- Added functions for quoting strings and converting paths for Bash compatibility.
- Updated command execution to handle different shell types and ensure proper path handling.
- Improved initialization by sourcing ~/.bashrc when available and managing file paths for stdout, stderr, and cwd.
2025-08-28 09:43:00 +08:00
Xinlu Lai
3d963fb4a6
Update README.md 2025-08-28 04:39:47 +08:00
Xinlu Lai
44421a594e
Update README.md 2025-08-28 04:34:48 +08:00
Xinlu Lai
2fc581865d
Merge pull request #47 from bing-zhub/fix_custom_claude
fix: custom calude;
2025-08-26 13:16:47 +08:00
Bing Zhu
b103540b99 fix: custom calude; 2025-08-26 12:28:17 +08:00
CrazyBoyM
2daa265de1 fix: unify all logs to ~/.kode directory instead of platform-specific cache paths
- Change debugLogger to use ~/.kode as the base directory for all logs
- API error logs now save to ~/.kode/logs/error/api/
- Debug logs save to ~/.kode/<project-dir>/debug/
- Remove dependency on env-paths cache directory for logs
2025-08-26 02:43:00 +08:00
CrazyBoyM
3c13c20587 fix: correct API error log file path display 2025-08-25 06:40:30 +08:00
CrazyBoyM
b6a2e7e41b feat: add comprehensive API error logging and fix npm publish workflow
- Add elegant API error logging system with file storage in ~/.kode/logs/error/api/
- Show API responses in terminal during errors (verbose mode only)
- Fix tool description usage (prompt vs description methods)
- Remove unnecessary bundledDependencies check in publish workflow
- Bump version to 1.0.80
2025-08-25 06:28:37 +08:00
CrazyBoyM
9370dc20b8 chore: bump version to 1.0.76 2025-08-25 05:47:55 +08:00
CrazyBoyM
ac3dac2150 1.0.76 2025-08-25 05:46:15 +08:00
CrazyBoyM
c644de196e fix: use prompt() method for tool descriptions in API calls
- Changed Anthropic API to use tool.prompt() instead of description()
- Ensures full tool instructions are sent to the model
- Both Anthropic and OpenAI paths now consistently use prompt() method
- Resolves issue where short descriptions were being sent instead of full documentation
2025-08-25 05:46:09 +08:00
CrazyBoyM
a089fe44b0 chore: bump version to 1.0.75
- Fix tsx dependency issue with local tsx path
- Improve ESC key cancellation handling
- Update security documentation for YOLO mode
2025-08-25 04:38:46 +08:00
CrazyBoyM
183d36c5ee 1.0.74 2025-08-25 04:37:54 +08:00
CrazyBoyM
14e8ee736f docs: Refine security notice for YOLO mode usage
- Clarify YOLO mode should only be used in trusted environments on non-critical projects
- Add strong recommendation for --safe mode when working with important files
- Add guidance for using --safe mode with questionable model capabilities
- Update both English and Chinese README files
2025-08-25 04:36:07 +08:00
CrazyBoyM
6aa73a950a fix: Use local tsx instead of global tsx dependency
- Update cli.js wrapper to use node_modules/.bin/tsx
- Fix ESC key cancellation error display in openai.ts stream processing
- Simplify REPL onCancel function
- Add security notice and model performance recommendations to README
2025-08-25 04:23:44 +08:00
CrazyBoyM
994579fadc feat: Add comprehensive documentation and update README with Bun installation
- Add CLAUDE.md with development guidelines and architecture overview
- Add AGENTS.md for Claude Code compatibility with subagent system details
- Update README.md and README.zh-CN.md with recommended Bun installation method
- Remove bundledDependencies from package.json to fix npm publish hard link issues
- Add .npmignore for proper package distribution
- Remove obsolete CONTEXT.md and next_todo.md files
- Update .gitignore to include AGENTS.md and CLAUDE.md in version control

Key documentation improvements:
- Complete development workflow commands and build system details
- Multi-model architecture explanation with 3-layer design
- Agent system with 5-tier priority configuration loading
- Tool architecture patterns and service layer documentation
- Critical implementation details like async tool descriptions
- Development patterns for adding tools, commands, models, and agents

Installation improvements:
- Bun installation now recommended as fastest method
- Fallback to npm for compatibility
- Clear step-by-step installation instructions in both languages
2025-08-24 05:48:46 +08:00
CrazyBoyM
7abf61b804 fix: Add koding mode handling for backspace/delete to prevent premature mode change
Similar to the bash mode fix, ensure koding mode only exits when deleting
the last character (#) instead of exiting prematurely during deletion.
2025-08-24 05:17:21 +08:00
Xinlu Lai
90a5d2db64
Merge pull request #32 from szis-ai/main
Fix [BUG]ERROR: failed to build: failed to solve: dockerfile parse error on line 54: unknown instruction: /root/.bun/bin/bun
2025-08-24 04:46:48 +08:00
Xinlu Lai
20a7cb34fc
Merge pull request #34 from luojiyin1987/feat/security-secure-file-service
Feat/security secure file service
2025-08-24 04:45:54 +08:00
Xinlu Lai
df745ac15c
Merge pull request #36 from glide-the/fix-docker
Update Dockerfile to copy only package.json for dependency installation
2025-08-24 04:44:38 +08:00
Xinlu Lai
9b971a7b38
Merge pull request #35 from luojiyin1987/feat/Docker=multi-stage-build-with-Node.js22
feat: Docker multi-stage build with Node.js 22
2025-08-24 04:43:57 +08:00
Xinlu Lai
25c179e6b6
Merge pull request #42 from CrazyBoyM/main
Add sub-agent & terminal-like input
2025-08-24 04:43:06 +08:00
CrazyBoyM
c279f15ba4 Merge shareAI-lab main: integrate Docker support with existing features
- Resolved conflicts in README.md by combining @ mention system docs with Docker usage instructions
- Auto-merged PromptInput.tsx improvements from shareAI-lab
- Added Docker support with .dockerignore and Dockerfile
- Updated Chinese README with latest changes
- Maintains full backward compatibility with existing @ mention and AGENTS.md features
2025-08-24 04:42:07 +08:00
CrazyBoyM
df18b1842d refactor: Use utility functions for command lists instead of hardcoding
- Remove hardcoded command arrays from useUnifiedCompletion.ts
- Add getEssentialCommands() and getMinimalFallbackCommands() utility functions
- Remove python/python2 from command list, keeping only python3
- Centralize command management in commonUnixCommands.ts for better maintainability
2025-08-22 14:21:11 +08:00
CrazyBoyM
e09acaf841 fix: Critical path completion algorithm improvements
- Fix word detection to properly handle ./ and ../ patterns
- Improve path separator handling in getWordAtCursor
- Add special handling for dot patterns in paths
- Fix shouldAutoTrigger to recognize all path patterns
- Ensure proper inclusion of dots and slashes in path context

This fixes the issue where './sr' wouldn't show 'src/' in completions
2025-08-22 14:14:27 +08:00
CrazyBoyM
1f725496d3 fix: Improve file completion algorithm for better directory navigation
- Increase display limit from 10 to 25 entries to show more files
- Fix directory navigation when path ends with slash
- Add proper sorting (directories first, then alphabetical)
- Hide dotfiles by default unless explicitly requested
- Fix path resolution for trailing slashes in directory navigation
2025-08-22 13:52:10 +08:00
CrazyBoyM
5bf4bb2182 Merge subagent implementation with intelligent completion system
# Conflicts:
#	src/services/claude.ts
2025-08-22 13:24:28 +08:00
CrazyBoyM
02c7c31a31 feat: Add GPT-5 Responses API support and model adapter system
- Implement model adapter factory for unified API handling
- Add response state manager for conversation continuity
- Support GPT-5 Responses API with continuation tokens
- Add model capabilities type system
- Include deployment guide and test infrastructure
- Enhance error handling and debugging for model interactions
2025-08-22 13:22:48 +08:00
CrazyBoyM
1878914d94 fix 2025-08-22 13:12:27 +08:00
CrazyBoyM
d8f0a22233 feat: Implement intelligent completion system with advanced fuzzy matching
- Add advanced fuzzy matching with 7+ strategies (exact, prefix, substring, acronym, initials, fuzzy, Levenshtein)
- Create comprehensive database of 500+ common Unix commands for smart autocompletion
- Implement intelligent Tab completion with @ prefix injection for agents and files
- Add sophisticated input pattern recognition for commands like "dao", "gp5", "py3"
- Enhance mention system with TaskProgressMessage component for better user feedback
- Update documentation with comprehensive intelligent completion guide
- Clean up 21 temporary markdown files to maintain repository cleanliness
- Improve project structure and configuration documentation
- Optimize completion system performance with advanced caching and scoring
2025-08-22 13:07:48 +08:00
glide-the
e606d53e9a Update Dockerfile to copy only package.json for dependency installation 2025-08-22 02:39:54 +08:00
luojiyin
adb20b88bb
code clear 2025-08-21 20:16:33 +08:00
luojiyin
b4ebe8df2e
devDependencies add @types/jest 2025-08-21 20:02:37 +08:00
luojiyin
17708b5115
test: secureFile test case 2025-08-21 19:56:19 +08:00
luojiyin
07380da992
feat: Docker multi-stage build with Node.js 22 2025-08-21 17:59:34 +08:00
luojiyin
a0f772ea98
feat: use secureFileService 2025-08-21 17:41:49 +08:00
luojiyin
8332734866
feat: secure file operation 2025-08-21 17:40:36 +08:00
深圳新思-AI研究院
07d05f3837
Update README.md
Fix [BUG]ERROR: failed to build: failed to solve: dockerfile parse error on line 54: unknown instruction: /root/.bun/bin/bun
2025-08-21 16:45:51 +08:00
深圳新思-AI研究院
276d34e233
Update README.zh-CN.md
Fix [BUG]ERROR: failed to build: failed to solve: dockerfile parse error on line 54: unknown instruction: /root/.bun/bin/bun
2025-08-21 16:45:02 +08:00
CrazyBoyM
926df2cfaf feat: Ultra-redesign completion system with @mention integration
- Complete architectural overhaul of useUnifiedCompletion hook
- Unified state management: 8 separate states → single CompletionState interface
- Simplified core logic: getWordAtCursor 194 lines → 42 lines (78% reduction)
- Fixed infinite React update loops with ref-based input tracking
- Smart triggering mechanism replacing aggressive auto-completion
- Integrated @agent and @file mention system with system reminders
- Added comprehensive agent loading and mention processing
- Enhanced Tab/Arrow/Enter key handling with clean event management
- Maintained 100% functional compatibility across all completion types

Key improvements:
• File path completion (relative, absolute, ~expansion, @references)
• Slash command completion (/help, /model, etc.)
• Agent completion (@agent-xxx with intelligent descriptions)
• System command completion (PATH scanning with fallback)
• Terminal-style Tab cycling, Enter confirmation, Escape cancellation
• Preview mode with boundary calculation
• History navigation compatibility
• Empty directory handling with user feedback

Architecture: Event-driven @mention detection → system reminder injection → LLM tool usage
Performance: Eliminated 7-layer nested conditionals, reduced state synchronization issues
Reliability: Fixed maximum update depth exceeded warnings, stable state management
2025-08-21 01:21:12 +08:00
Xinlu Lai
5e3e230eed
Merge pull request #23 from glide-the/fix-sanbox
Refactor Dockerfile entrypoint and update README instructions
2025-08-14 01:55:28 +08:00
glide-the
598726fe85 Refactor Dockerfile entrypoint and update README instructions
- Simplified the entrypoint script by removing the dynamic workspace directory creation.
- Updated the command in the entrypoint to use a fixed workspace path.
- Modified README files to include the --no-cache option in the Docker build command for a clean build.
2025-08-13 02:18:31 +08:00
CrazyBoyM
6cf566fb40 feat: Add comprehensive GPT-5 support with Responses API integration
- Add GPT-5 model definitions (gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-chat-latest)
- Implement GPT-5 Responses API support with intelligent fallback to Chat Completions
- Add GPT-5 specific parameter handling (max_completion_tokens, temperature=1)
- Support custom tools and freeform function calling capabilities
- Add reasoning effort and verbosity control parameters
- Implement GPT-5 connection testing service
- Add model capability detection and automatic parameter transformation
- Support both official OpenAI and third-party GPT-5 providers
- Add todo list and sticker request UI components
- Improve notebook support with better type definitions
- Enhance debug logging and error handling for GPT-5
- Update model selector with GPT-5 compatibility checks

This commit provides full GPT-5 support while maintaining backward compatibility with existing models.
2025-08-13 01:38:15 +08:00
Xinlu Lai
c9802faa95
Merge pull request #22 from glide-the/docker-sanbox
Add Docker support with Dockerfile and .dockerignore
2025-08-13 01:32:48 +08:00
glide-the
e768c01010 Update README files to reflect changes from anon-kode to kode in Docker setup instructions 2025-08-13 01:29:04 +08:00
glide-the
3b44c1658a Add Docker support with Dockerfile and .dockerignore
- Introduced Dockerfile for building the application with Node.js 18 on Alpine.
- Configured npm and pip to use China mirrors for faster package installations.
- Added .dockerignore to exclude node_modules from the Docker context.
- Updated README files with Docker usage instructions and configuration details.
2025-08-13 01:26:27 +08:00
Xinlu Lai
40070119bb
Merge pull request #20 from ringcrl/main
fix(PromptInput): prevent premature mode change when deleting in bash mode
2025-08-13 00:58:45 +08:00
ringcrl
d2be2f945a feat(PromptInput): add bash mode specific handling for backspace/delete
refactor(PromptInput): rename input parameter to inputChar for clarity
fix(PromptInput): prevent premature mode change when deleting in bash mode
2025-08-12 19:58:41 +08:00
Xinlu Lai
5463d8c969
Merge pull request #17 from CrazyBoyM/main
build package
2025-08-11 22:24:31 +08:00
CrazyBoyM
69a258fbf2 fix package build 2025-08-11 22:23:13 +08:00