feat: add human-like behavior, Spotify tools, task scheduler; remove crypto/TON tools - #33
Open
TenSapphire wants to merge 1 commit into
Open
TenSapphire wants to merge 1 commit into
TenSapphire wants to merge 1 commit into
Conversation
…crypto/TON tools Adds humanization features (variable typing delays, reply probability, time-of-day awareness, writing style adaptation) so the bot behaves less robotically in chats. Adds Spotify integration tools, a general-purpose task scheduler, and relationship tracking in memory. Removes the DEX (Ston.fi/DeDust), DNS, and TON wallet tool namespaces to reduce default complexity and dependency surface; these crypto features can be reintroduced as opt-in plugins later. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
telegram_analyze_musictool.TaskScheduler(repeating scheduled tasks) alongside the existing one-shot scheduled task handler, plustelegram_list_scheduled_tasks/telegram_cancel_scheduled_tasktools.telegram_update_profile_photoand DM-burst batching (MessageHandler.handleBatch) so rapid follow-up DMs merge into one turn instead of firing off separate replies.sdk.tonis now only constructed whenton_features.enabledis set, so these can come back as an opt-in plugin later.Notes for reviewers
src/agent/runtime.tsandsrc/index.ts(splitting them intoturn-preparation.ts/loop/executor.ts/response-finalizer.tsandapp/agent-lifecycle-controller.ts/app/message-pipeline.ts, respectively). The merge/rebase againstmainre-homed this branch's feature code (emotional/relationship context, media+reaction message framing, DM debounce, reaction-event wiring, task-scheduler lifecycle) into the new module locations rather than reintroducing the old monolithic structure.src/memory/schema.ts: bumpedCURRENT_SCHEMA_VERSIONto1.26.0and added a migration for the newrelationship_profiles/relationship_proposals/relationship_overridestables and thetasks.repeat_every_mscolumn (both were previously ad-hocCREATE TABLE IF NOT EXISTScalls insideRelationshipStore's constructor, which broke under lightweight test DB mocks — moved to the central schema like every other feed table).docs-sdk/pages/tools-telegram.htmlupdated with the four new Telegram tools so theproduct-surfacesdoc-coverage test stays accurate.0o600checks,symlinkSyncEPERMwithout elevated privileges, and one locale-dependent number-formatting assertion) — none touched by this branch's diff; they're expected to pass in CI on Linux.Test plan
npm run typechecknpm run lintnpm test(2020/2030 passing; the 10 failures are pre-existing Windows-only environment issues, see notes above)🤖 Generated with Claude Code