38 Commits

Author SHA1 Message Date
CrazyBoyM
59dce97350 fix & remove ugly code 2025-09-20 15:14:38 +08:00
CrazyBoyM
d4abb2abee clean code 2025-09-20 15:14:38 +08:00
CrazyBoyM
d0d1dca009 upgrade for win & remove some un-use code 2025-09-12 00:44:15 +08:00
CrazyBoyM
6bbaa6c559 fix win 2025-09-11 09:57:38 +08:00
CrazyBoyM
b0d9f58d76 fix(multi-edit): pass structuredPatch to update UI; harden FileEditToolUpdatedMessage against undefined patches\n\n- MultiEditTool: compute diff via getPatch and render standard update message\n- FileEditToolUpdatedMessage: treat missing structuredPatch as empty to avoid crash\n- Preserves existing feature and UI while eliminating reduce-on-undefined 2025-09-10 15:33:58 +08:00
CrazyBoyM
a7af9834ef chore(update): disable auto-update flow; keep version-check banner only\n\n- Remove AutoUpdater UI and NPM prefix/permissions flows\n- Simplify Doctor to passive health-check\n- Keep only getLatestVersion/assertMinVersion/update suggestions\n- Clean REPL/PromptInput to avoid extra renders and flicker\n- No hardcoding; no auto-install; docstrings tidy 2025-09-10 14:22:33 +08:00
Xinlu Lai
f23787f50d
Merge pull request #60 from burncloud/feat/burncloud
 feat: add BurnCloud as new AI model provider
2025-09-01 02:59:33 +08:00
Wei
32a9badecd feat: add new model provider BurnCloud fix default models 2025-08-30 16:01:14 +08:00
Xinlu Lai
c8fcc90911
Merge pull request #61 from geoffyli/add-web-tools
feat: Add WebSearchTool and URLFetcherTool for web content access
2025-08-29 01:45:21 +08:00
Bing Zhu
c45e28a806 feat: claude support cache control; 2025-08-28 23:11:31 +08:00
Bing Zhu
2875af774e fix: claude tool use msg seq; 2025-08-28 23:11:31 +08:00
Bing Zhu
7d2e0e3832 fix: claude streaming tool use; 2025-08-28 23:11:17 +08:00
Yulong Li
e3d903e7bc feat: Add WebSearchTool and URLFetcherTool for web content access
- Add WebSearchTool with DuckDuckGo integration for web search
    - Provides titles, snippets, and links for current information

  - Add URLFetcherTool for AI-powered web content analysis
    - Fetches and converts HTML content to markdown
    - Processes content using AI with user-provided prompts
    - Includes 15-minute caching for efficiency
    - Uses queryQuick for fast content analysis

  - Register both tools in the tools registry
  - Update documentation to reflect new web capabilities
2025-08-28 17:50:02 +08:00
Wei
efe00eee3b feat: add new model provider BurnCloud 2025-08-28 17:04:34 +08:00
mrcat
0151defb21 feat: enhance PersistentShell with robust PATH splitting for Windows and POSIX
- Added a new function to split PATH entries correctly for both Windows and POSIX environments.
- Improved shell detection logic to utilize the new PATH splitting function, ensuring accurate path handling across different platforms.
2025-08-28 11:24:36 +08:00
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
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
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
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
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
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
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
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
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
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
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
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
CrazyBoyM
7a3c4a7baa Refactor project structure and update documentation
- Update project branding from claude-cli to Kode
- Reorganize documentation with new development guides
- Add CONTRIBUTING.md and Chinese README
- Remove worktree_merge command and relocate system-design.md
- Update dependencies and package configuration
- Improve custom commands service with better error handling
- Clean up storage utilities and debug logging
2025-08-11 21:31:18 +08:00
CrazyBoyM
11a0e46ecc kode with agent-unix-system v1.0.0 2025-08-10 19:57:17 +08:00