mibo
Copyright 2026 Qiankang (Kant) Wang
https://github.com/wangkant/mibo

Licensed under the Apache License, Version 2.0: see LICENSE.

One part of this repository carries a licence of its own: the character
portraits in `mibo/static/characters/` are under CC BY-NC-SA 4.0,
which does not allow commercial use: see
`mibo/static/characters/LICENSE.md`.

The generic page reader (`mibo/web/reader.js`, `read.py`,
`sites.py`) was written for this project; for an article's text it runs
Mozilla's Readability, vendored as listed below.
The official players it lets a card embed (`mibo/players.py`) are
each platform's own and load from that platform under its own terms.

Before it was named Mibo and numbered from 0.1.0, this code was published under
another name as versions up to 1.5.0: 1.4.0 and earlier under the MIT License,
1.4.1 to 1.5.0 under the PolyForm Noncommercial License 1.0.0. Copies of those
versions stay under the licence they were released with.

Code taken from other projects, under the licences they were released with:

- `mibo/web/Readability.js` is Mozilla's Readability 0.6.0
  (mozilla/readability), unchanged: Apache License, Version 2.0 (see LICENSE),
  Copyright (c) 2010 Arc90 Inc, Copyright (c) 2010-2026 Mozilla and
  Contributors.
- `mibo/static/welcome/markdown-it.umd.min.js` is the browser build of
  markdown-it 15.0.3 (markdown-it/markdown-it), unchanged, sha256
  391f2aa638e75e6c7859d0a5c5650ef0956722a45998f17e05b83bc655778e1e: MIT
  License, Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin. It bundles
  linkify-it, mdurl, uc.micro and punycode.js (MIT) and entities (BSD
  2-Clause, Copyright (c) Felix Boehm); every one of these notices is in
  `mibo/static/welcome/markdown-it.LICENSE.txt`.
- `mibo/web/pageops.py` is ported from browser-use's
  `browser_use/ax.py`: MIT License, Copyright (c) 2024 Gregor Zunic. Its
  checks before a pointer action (attached, visible, stable over two
  animation frames, enabled, receiving the events at its point, tried again
  on a retry ladder until a timeout) follow Playwright's actionability rules
  (microsoft/playwright, `injectedScript.ts` and `dom.ts`): Apache License,
  Version 2.0 (see LICENSE), Copyright (c) Microsoft Corporation.
- `mibo/desk/uia.py` follows the drop rule for nameless groups and
  the RuntimeId handles of dsh's cua-windows (`AccessibilityText.cs`,
  `Accessibility.cs`): MIT License, Copyright (c) 2026 DeepSeek.
- `mibo/review.py` adapts the layout of dsh's auto review policy
  (`REVIEW_POLICY`: the person's words as the only authority, everything else
  a fact) and its strict parsing of one closed answer: MIT License,
  Copyright (c) 2026 DeepSeek.
- `mibo/web/gate.py` ports the click and form rules of nanobrowser's
  `classify.ts`: Apache License, Version 2.0 (see LICENSE), changed to add the
  composer, Enter and password-form rules and the kinds Mibo asks about.
- `mibo/shell/run.py` takes the UTF-8 output lines of dsh's
  pwsh-local and its way of running each command in a fresh `-NoProfile`
  PowerShell with capped output and the whole process tree ended on stop:
  MIT License, Copyright (c) 2026 DeepSeek.
- `mibo/loop.py` follows dsh's agent loop: its ceilings on rounds and calls,
  read calls run side by side and every other call in order, the wording of
  the loop's own errors, the reminder on a repeated call, pruning the middle
  of older results, and the outcome-unknown result of a call stopped in
  flight. `tests/harness/model.py` answers from scripts as dsh's
  llm-mock-server does. MIT License, Copyright (c) 2026 DeepSeek.
- `mibo/context.py` and the compaction in `mibo/dm.py` follow dsh's
  compaction-basic (the window less the answer's reserve and a headroom, a
  tail of whole turns), token-meter (the last call's usage as the anchor),
  spill-policy and tool-result pruner, and the request of its summarizer:
  MIT License, Copyright (c) 2026 DeepSeek.
- `.github/workflows/xplat.yml` and `tools/xplat/wsl_run.sh` start the
  virtual screen, the session bus and the AT-SPI daemons as xa11y's
  setup-a11y action does (`action.yml`, `apt-packages.txt`), and headless
  sway as xa11y's `scripts/run_wayland_portal.sh` does: MIT License,
  Copyright (c) 2026 xa11y.
- `tools/xplat/grant_tcc.sh` is xa11y's `scripts/grant_macos_tcc.sh` with a
  list of services: MIT License, Copyright (c) 2025 Stephen Crowe.
- `mibo/modelcatalog.json` is a trimmed snapshot of the models.dev catalogue
  (anomalyco/models.dev, `https://models.dev/api.json`; its date and sha256 are in
  the file): MIT License, Copyright (c) 2025 models.dev.
- `mibo/web/public_suffix_list.dat` is the Public Suffix List
  (publicsuffix/list, `https://publicsuffix.org/list/public_suffix_list.dat`;
  its version and commit are in the file), its ICANN and private sections with
  the comments taken out: Mozilla Public License, Version 2.0,
  `https://mozilla.org/MPL/2.0/`. The unchanged list is at that address.

The MIT License, for the parts above that carry it:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
- `mibo/static/welcome/providermarks.js` holds the model services' marks from
  `@lobehub/icons-static-svg` 1.104.0 (lobehub/lobe-icons): MIT License. Each mark is the
  trademark of its owner and is shown only to name that service.

Libraries Mibo installs keep their own licences, which pip installs beside them.
The feeds in `mibo/sources/` are read by feedparser (kurtmckee/feedparser): BSD
2-Clause License, Copyright (C) 2010-2025 Kurt McKee, Copyright (C) 2002-2008
Mark Pilgrim. It brings feedparser-sgmllib: Python Software Foundation License.
A fetched page's main text is taken by trafilatura (adbar/trafilatura, by Adrien
Barbaresi): Apache License, Version 2.0. It brings courlan and htmldate (Apache
License, Version 2.0), jusText (BSD 2-Clause), dateparser (BSD 3-Clause),
charset-normalizer, pytz and urllib3 (MIT) and regex (Apache License, Version 2.0
and CNRI-Python). The page's charset is read by w3lib (scrapy/w3lib): BSD 3-Clause
License, Copyright (c) w3lib and Scrapy developers. lxml's HTML cleaner comes as
lxml_html_clean: BSD 3-Clause License.
