8000 Tags · gemini960114/HostSpark · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v0.4.5

Toggle v0.4.5's commit message
HostSpark v0.4.5: Decouple constants & prompts, full multimodal attac…

…hments support, and unified configuration

v0.4.4

Toggle v0.4.4's commit message
HostSpark v0.4.4

v0.4.3

Toggle v0.4.3's commit message
HostSpark v0.4.3

v0.4.2

Toggle v0.4.2's commit message
HostSpark v0.4.2

v0.4.1

Toggle v0.4.1's commit message
HostSpark v0.4.1

A patch release fixing three regressions discovered while deploying v0.4
to the live systemd service. All 107 tests still pass; no command or
config surface changed.

Fixes:
- .env was never actually loaded in the new src/hostspark package -- the
  old bot.py called load_dotenv() at import time, but that call didn't
  make it into hostspark.cli during the refactor, so TELEGRAM_BOT_TOKEN
  and everything else in .env was invisible to the process outside of a
  shell that happened to already export it. This is what took the live
  service down after v0.4 was deployed.
- logging.basicConfig was also dropped during the refactor, so every
  logger.info() call (startup, scheduler loop, job execution, etc.) was
  silently swallowed -- a real loss of visibility into a 24/7 unattended
  service normally watched via journalctl. Restored.
- Restoring INFO-level logging surfaced a pre-existing issue that
  predates this refactor (confirmed present in v0.3 too): httpx logs the
  full request URL at INFO level, and python-telegram-bot embeds the bot
  token directly in that URL, so every Telegram API call was printing
  the live token in plaintext to the systemd journal. httpx's logger is
  now pinned to WARNING to stop this.

If your bot token was ever exposed via journalctl on a deployment
running the affected code, treat it as compromised and rotate it via
@Botfather's /token command.

Upgrade notes:
- Re-run `./install.sh` to pick up the new package version and restart
  the service
- If you rotate your token per the note above, update TELEGRAM_BOT_TOKEN
  in .env before restarting

v0.4

Toggle v0.4's commit message
HostSpark v0.4

A structural refactor: the codebase moves from 12 flat root-level modules
(bot.py alone was over 2,000 lines) into a proper `src/hostspark/` package,
plus new security tooling and CI fixes. No user-facing bot behavior
changes -- all 107 existing tests pass unchanged in intent, and every
Telegram command from v0.3 is preserved.

Highlights:
- Full package restructure into src/hostspark/: config, state, core
  (executor/prompt/sanitizer/cli_args/pty/streaming), storage (chat_state/
  conversation_db/schedule_store), telegram (app/formatters/media/auth/
  dispatcher/handlers), and runtime (job_queue/instance_lock/
  pending_actions/scheduler)
- Standard packaging via pyproject.toml: `pip install -e .` gives both a
  `hostspark` console script and `python -m hostspark`; install.sh and the
  generated systemd unit now launch the package instead of a flat script
- bot.py kept as a thin backward-compatible launcher (sys.path bootstrap
  into src/, delegates to hostspark.cli.main) for anyone still invoking it
  directly
- Centralized runtime state (CONFIG/SCHEDULE_STORE/CHAT_STATE_STORE/...)
  into hostspark.state as the single source of truth, and migrated the
  test suite to patch it directly instead of monkey-patching module
  globals on the old flat bot.py
- New security-scan.sh: pip-audit, bandit, semgrep, and gitleaks in a
  self-contained tool venv, writing timestamped reports to
  security-reports/ (gitignored)
- security-scan.sh now also installs a gitleaks pre-commit hook that
  blocks any commit whose staged changes contain a secret, instead of
  relying solely on a later manual scan
- Fixed CI (.github/workflows/ci.yml), which still referenced the
  pre-refactor flat file layout and never installed the package itself;
  also pinned actions/checkout and actions/setup-python to commit SHAs
  instead of mutable version tags
- Repo hygiene: removed an unrelated local AI-skill directory (.agents/)
  that had been accidentally committed, and cross-linked README's Quick
  Install section with INSTALL_BY_AI.md for AI-agent-assisted installs

Upgrade notes:
- Existing systemd deployments should re-run `./install.sh` to pick up
  the new package install step and regenerated ExecStart
  (`python -m hostspark`)
- No .env changes required

v0.3

Toggle v0.3's commit message
HostSpark v0.3

Multi-user auth, per-chat state, streaming, scheduling-intent detection,
security fixes, stability hardening, and bilingual documentation.

Highlights:
- Multi-user/chat authorization (ALLOWED_USER_IDS, ALLOWED_CHAT_IDS)
- Per-chat model/effort/mode/sandbox/verbose settings, streamed AGY progress
- PTY-fallback quota/context queries (/usage, /quota, /context)
- CLI passthrough (/agy) with two-phase confirmation for dangerous commands
- Attachment handling with SSRF-guarded output-media forwarding
- Global job queue with auto-interrupt merging and crash recovery
- Per-chat dedicated AGY working directories, fixing a cross-chat conversation
  isolation issue in --continue
- Deterministic natural-language schedule-intent detection routed straight
  into /schedule_add instead of blocking the job queue
- Fixed --model/--effort conflicts, /status HTML-escaping bug, and
  /restart-/update not correctly triggering systemd Restart=on-failure
- One-shot context injection for /usage and /context follow-up questions
- Removed /resume, /sessions, and /continue browsing mode
- Retired class.md; folded unique content into SECURITY.md
- Multi-admin broadcast for scheduled-task results and circuit-breaker
  pause warnings
- Daily cleanup of uploads/ and per-chat/per-schedule working directories
  older than 30 days
- PID lock file and typing-indicator robustness hardening
- install.sh translated to English; README.md and INSTALL_BY_AI.md are now
  English by default with linked README.zh-TW.md / INSTALL_BY_AI.zh-TW.md
  Traditional Chinese counterparts

v0.2

Toggle v0.2's commit message
Release v0.2: HostSpark - 24/7 Autonomous AI Agent for Linux Hosts

v0.1

Toggle v0.1's commit message
Release v0.1: Antigravity CLI Telegram Bridge Initial Release

- 支援 Telegram 到 Antigravity CLI (agy) 的輕量安全橋接
- 單一管理員數字 ID 驗證機制 (ALLOWED_USER_ID)
- 支援 Safe 與 Full 雙權限模式及友善權限提示
- 支援自訂 AGY_RULE_PROMPT 注入行為規則
- 內建 /status (系統健康度) 與 /clear (工作階段重置)
- 具備逾時控制、輸出大小截斷與敏感憑證自動遮罩
- 提供 systemd 服務一鍵安裝與依賴同步腳本 (install.sh)
- 完整單元測試覆蓋 (16/16 測試通過)
0