Skip to content

Alice 0.23.1

Choose a tag to compare

@Stuko0 Stuko0 released this 02 Sep 07:06
· 2 commits to main since this release

Windows portability batch

Validated end-to-end on a Windows 11 VM (Python 3.13, full test suite via the official per-file runner). Every fix verified green on Linux with scripts/run_tests.sh — no regressions.

Windows fixes

  • Image routing: local image-path regex now accepts Windows drive-letter paths (C:\... / C:/...), same anchor the gateway's extract_local_files() uses; expanded ~/x.png matches are normalized with normpath() so they print as native paths.
  • File safety: sandbox-mirror classifier returns POSIX inner_path / mirror_root (mirrors classify_container_mirror_target's existing contract).
  • Shell hooks: on Windows, shebang scripts (#!/usr/bin/env bash) resolve through _shebang_interpreter() — bash from PATH or the standard Git-for-Windows install dirs — and commands re-tokenize with shlex posix=False so C:\ paths keep their backslashes.
  • Skills: _find_windows_bash() locates Git-bash off-PATH for inline-shell snippets (!\echo ...``), with a cmd.exe fallback when no bash exists.
  • Subdirectory hints / verification evidence: shlex.split(posix=False) for commands containing Windows paths — backslash paths are no longer eaten, so sub-dir hints register and ad-hoc verification scripts are recognized.
  • Learning graph: %-d (glibc-only) replaced with portable f"{dt.day}".
  • Test runner: forces UTF-8 stdout/stderr — cp1252 consoles no longer crash on progress glyphs (✓/✗).

Test-suite portability

  • USERPROFILE mocked alongside HOME (Windows expanduser() prefers the former)
  • tempfile.gettempdir() instead of hardcoded /tmp
  • shutil.which() instead of which subprocess calls
  • Explicit utf-8 read_text() (Windows default is cp1252 — em-dashes became mojibake)
  • Path assertions compare parts instead of raw strings
  • Case-insensitive env-var key match (Windows os.environ is case-insensitive)

Also in this release

  • Repo URLs rebranded from the internal Gitea host to github.com/Stuko0/alice-agent (banner, auth, updater, Telegram adapter, installers, osint UA).
  • README fixes: providers link points to the actual /docs/providers/ page; broken 404 links and internal IPs removed from badges.

Full changelog: v0.23.0...v0.23.1