Skip to content

Releases: modelscope/leapflow

Release list

v0.0.2

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 15 Jul 02:10

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 arm and leap tasks CLI 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_toolkit and rich, 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, updated pyproject.toml, Makefile, and CI paths.
  • CLI Renaming — Renamed leap learnleap teach to 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 DisclosurePlanner for progressive tool schema and memory disclosure.
  • Unified Approval FrameworkApprovalOrchestrator coordinating 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 single leap.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., /apple vs /app).
  • Resolved CLI subprocess leaks on timeout.
  • Fixed TypeError when tool_calls is None.
  • 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 (now leap teach only).

What's Changed

New Contributors

Full Changelog: https://github.com/modelscope/leapflow/commits/v0.0.2