Skip to content

Update - #14

Merged
merfiDEV merged 4 commits into
masterfrom
update
Sep 17, 2026
Merged

merfiDEV merged 4 commits into
masterfrom
update

Conversation

@merfiDEV

Copy link
Copy Markdown
Owner

No description provided.

Introduce attach_file capability: adds a new AttachFileTool (tools/AttachFileTool.js) to upload local files into the chat input by injecting a File via DataTransfer into a hidden <input type=file>. Registers the tool in tools/index.js and exposes attachFile in the JS sandbox (JsRunner) and preload tool list. Adds IPC handler (src/main/ipc.js) to run injection code from main process. Updates types (tools/cuckoo-tools.d.ts) and .gitignore. Enforces a 30MB size limit, MIME guessing, and a 15s upload-detection timeout; returns detailed errors on failures.
Reworked i18n keys (consistent formatting) and added localization for send-delay UI (labels, validation and saved message). Imported and used t() in overlay event handlers; changed send-delay inputs to seconds in the template/CSS and updated save handler to convert seconds→ms, validate and persist to localStorage. Also applied various JS cleanups in overlay/events (quote/style consistency, safer try/catch, DOM id queries) and improved token logging/storage helpers. Minor MCP, window-manager and UI string adjustments to use localized strings.
Add CHANGELOG.md entry for 4.0.25 (2026-09-17). Documents: new attach_file tool (local file attach via DataTransfer, 30 MB limit, MIME detection, JS API attachFile, typings and tool registry, window callback model), Telegram bot "typing" indicator (periodic sendChatAction with IPC handlers), UI change: input send delay now shown in seconds (stored in ms, UI conversion, 0.1 step), i18n for delay messages (ru/en), and overlay layout fix for delay labels.
@merfiDEV
merfiDEV merged commit 59fe877 into master Sep 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant