Releases: modelscope/leapflow
Releases · modelscope/leapflow
Release list
v0.0.2
Release Notes
🚀 New Features
- Workflow Copilot — Context-triggered auto-completion engine with multi-layer prediction (L0–L3), speculative pre-computation, idle detection, and feedback-driven online evolution.
- LeapFlow Hub — Cloud collaboration & skill synchronization across ModelScope, GitHub, HuggingFace, and local backends, with unified CLI commands and agent-callable tools.
- Task Scheduler — Long-horizon async scheduler for armed skills with interval/cron/event/condition triggers, local (DuckDB) and cloud (Docker-based) execution tiers, plus
leap armandleap tasksCLI commands. - Gateway & App Connector — External platform integration (Feishu, DingTalk, Telegram) via declarative YAML manifests, encrypted credential storage, and conversational setup flow.
- TUI (Terminal UI) — Rich interactive terminal interface built on
prompt_toolkitandrich, with native approval modals, command queuing (/cancel,/skip,/pause,/resume,/queue,/drop), and session exit summaries. - cua-driver Execution Layer — Replaced legacy Swift-based OSHost with cross-platform Python-native execution via MCP, plus passive signal observers (file system, app focus, clipboard, input tap).
- App Connector Enhancements — Adaptive context compression, terminal-aware TUI resizing, idempotency guards, and CLI help-based command discovery.
- Capability Health Ledger — Platform-neutral tracking of authorization failures and integration health【16†L8-L9】.
- Resource Provenance — Prevents resource ID hallucination during execution【16†L10-L11】.
- Progressive Discovery — Tier 1 model-initiated, on-demand capability expansion【16†L11-L12】.
🔧 Refactoring & Improvements
- Project Layout — Migrated to standard
src/layout with proper package isolation, updatedpyproject.toml, Makefile, and CI paths. - CLI Renaming — Renamed
leap learn→leap teachto better reflect user intent (teaching the agent through demonstration). - Context Compression — Multi-stage compression pipeline (Trim → Summarize → Archive → Drop) to optimize token usage.
- Concurrent Tool Execution — Asynchronous scheduling via
asyncio.gather. - Multi-Provider LLM Failover — Resilient chain with automated failover.
- Context Governance — Adaptive context governance with
DisclosurePlannerfor progressive tool schema and memory disclosure. - Unified Approval Framework —
ApprovalOrchestratorcoordinating shell commands, file writes, etc. across in-process and daemon-backed sessions. - Daemon Runtime — Shared background daemon (
leapd) enabling multi-window persistence and Unix socket communication; consolidated six DuckDB instances into a singleleap.duckdb. - Gateway Adapters — Refactored DingTalk, Feishu, Telegram, Webhook, and API Server adapters to use lightweight, dependency-free HTTP helpers.
- Readme Updates — Added news, clarified environment variables, and updated project structure documentation.
🐛 Bug Fixes
- Fixed Markov model reinforcement (excluded rejected suggestions from training) and action ring buffer overflow.
- Patched path traversal vulnerability in Local backend skill deletion.
- Fixed YAML fallback and ModelScope async I/O blocking.
- Resolved asyncio event loop blocking from synchronous
input()calls. - Fixed premature event loop termination during tool failure counting.
- Fixed false-positive command parsing (e.g.,
/applevs/app). - Resolved CLI subprocess leaks on timeout.
- Fixed
TypeErrorwhentool_callsisNone. - Added defensive session handling and background task cancellation【16†L14-L16】.
- Fixed path traversal vulnerability in profile path construction.
- Resolved race conditions in narrative memory writes.
🧹 Deprecations & Cleanups
- Removed legacy
os_host/module and Swift/Xcode dependencies. - Removed user-customizable shortcuts to streamline input handling.
- Removed backward-compat aliases for
leap learn(nowleap teachonly).
What's Changed
- [Feat] Add workflows and env conf by @wangxingjun778 in #1
- [Refactor] refactor project layout by @wangxingjun778 in #2
- [Refactor] Refactor os_host by @wangxingjun778 in #3
- [Feature] Add LeapFlow Copilot Module by @wangxingjun778 in #4
- [Feature] Improve workflow copilot and update docs by @wangxingjun778 in #5
- update readme: add news by @wangxingjun778 in #6
- [Feature] Add local-remote hub co-work module by @wangxingjun778 in #7
- [Feature] Refactor leap learn mode by @wangxingjun778 in #8
- [Feature] Add agent hub and task scheduler by @wangxingjun778 in #9
- [Refactor] Add cua-driver to replace the os_host module by @wangxingjun778 in #10
- Update readme by @wangxingjun778 in #11
- [Feature and Refactor] Add TUI and Refactor core loop by @wangxingjun778 in #12
- [Feature & Refactor] Support gateway and APPs by @wangxingjun778 in #13
- [Feature and Refactor] Refactor the core-loop and TUI by @wangxingjun778 in #14
- [Feature & Refactor] Add feishu CLI and enhance context compression by @wangxingjun778 in #15
- [Feature & Refactor] LeapFlow Gateway & App Connector Robustness Enhancements by @wangxingjun778 in #16
New Contributors
- @wangxingjun778 made their first contribution in #1
Full Changelog: https://github.com/modelscope/leapflow/commits/v0.0.2